Results 1 to 7 of 7

Thread: textbox resize.

  1. #1
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default textbox resize.

    alright this might be an easy answer but for some reason i can't get it to work.

    i have a text box that i want to set its width to the size of the stage width and the height 30 pixels less. and have it resize when i resize the movieclip.

    here the code i'm using

    Code:
    Stage.scaleMode = "noScale";
    
    //position content
    var HPositioner:Number = (Math.round((Stage.width - 640) / 2));
    var VPositioner:Number = (Math.round((Stage.height - 480) / 2));
    
    function HPosition () {
               var HPositioner:Number = (Math.round((Stage.width - 640) /2));
    
    		   setProperty(updateText, _width, Stage.width);
    	
    }
    
    function VPosition () {
               var VPositioner:Number = (Math.round((Stage.height - 480) /2));
    
    		   setProperty(updateText, _height, Stage.height - 30);
    		  
    }
    
    HPosition();
    VPosition();
    i want the text to automatically fill out the new adjusted text box as well. am I doing this correctly?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    It's a decent start. I don't foresee any problems with it unless you want to get fancy later.

    Is there a problem with it so far or are you just looking for confirmation?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    as far as i know its not working the way i envisioned after i resize the movieclip and move it around the text inside doesnt move to fill out the new box, if it is even changing size. Is there another piece of code needed to make it fill out the box or one to use to even check to see if it's resizing?


    Thanks again Blizzard for your help.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Well I am having difficulty seeing what it is that you want me to be looking at. I understand your desires, I think I am just missing the point. Of course I have been awake for 3 & 1/2 days and that may be affecting my thoughts a tad.

    Make sure you have all the properties for the font selected correctly... embedded for readability, multi line (with wrap), etc.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    i've checked all of that. i also found noticed the box that shows the textbox border for the first time and when i resize the movie clip the text box doesnt resize at all. i attached my file, if you would have the time. To take a look at it, def get some rest. 3 1/2 days is quite sometime.

    thanks a lot

    Jake

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Sleep happens when the State Auditors are not at work with me! LOL I got 4 hours today though!

    I have a couple other things in the queue ahead of you but I will look as soon as I can.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    lol damn auditors. alright thanks a lot blizzard

    Jake

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •