A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [F8] Need help please

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    100

    [F8] Need help please

    I have a two frame movie. In the second frame I am dynamically creating some text fields. What I would like to do is when a user enters text into the text fields on frame two, if they go to frame one and come back to frame two the text will still be there. Can someone help me with this?

    ThanksNeed help please
    sgekko

  2. #2

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    32
    See the flash tutorials. They have an example like this with an Accordion component. You may be able to look at the code and translate it into what you need.

    The tutorial is called "Fix Your Mistake". (Use "search" while viewing the help files.)

  4. #4
    Senior Member
    Join Date
    May 2001
    Posts
    100
    Thanks for everyones help. I did discover one thing. If you manually create textfields say in my case on frame two and need the values to stick between frames one and two just give the textfield a variable name and this seems to work. However if you create them dynamically I could not get this to work by using textfield.variable = whatever;.

    Thanks Again
    sgekko

  5. #5

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    example:

    Code:
    this.createTextField("my_txt", 1, 10, 10, 200, 22);
    my_txt.variable = "today_date";
    var today_date:Date = new Date();
    
    var date_interval:Number = setInterval(updateDate, 500);
    function updateDate():Void {
        today_date = new Date();
    }

  7. #7
    Senior Member
    Join Date
    May 2001
    Posts
    100
    Yes, I know you can I am just saying that it did not cause the users text entry to stick from frame two to frame one and back to frame two when settting the variable dynamically but it seem to work when creating a textfield manually and entering a variable name. Kinda strange.
    sgekko

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center