A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: targeting a text filed one level above

  1. #1
    Senior Member
    Join Date
    May 2000
    Posts
    814

    targeting a text field one level above

    I have a txt field in my main.swf that i want to target.

    I'm importing another.swf into main.swf that has a menu and dynamic content from xml.

    This is how i successfully load the text to bodyTxt text field in another.swf

    PHP Code:
    bodyTxt.text xml.link[pict].@pgText
    i can't get the text to load into a different text box in the main.swf from the imported another.swf?

    basic stuff, and i stuck!!!!!
    Last edited by ratboy; 02-01-2012 at 08:58 AM.

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    There is a delay when you load the text from xml to the child-swf textfield. When you immediately call the text from the child-swf textfield, the textfield is most probably not yet loaded with text.

    Or are you loading the text from the child-swf textfield much later? Then you are not correctly targeting the child-swf textfield.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member
    Join Date
    May 2000
    Posts
    814
    I think i have a targeting issue!!!

    it works a bit like this.
    main movie already loaded - press a menu button to load the subnav.swf in a MC on the main.swf - from a sub nav press i want to update a textfiled in my main movie.

    when i mess about with the paths in the subnav, it throws errors when i make the swf because the target is not in the subnav swf it's in the main swf.

    should i be referencing the subnav button presses from the main.swf?

    Rat

  4. #4
    Senior Member
    Join Date
    May 2000
    Posts
    814
    still stuck

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