A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Loading external swf issue

  1. #1
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971

    Loading external swf issue

    Hello,

    I'm working in a quiz game to help a girl in Vietnam. The game works perfectly. Now she wants to make a menu, to load 3 different quizes, one sounds, on words and one images. I can load them all, but when I press the previous and next buttons on each loaded swf, i receive an error

    TypeError: Error #1010: A term is undefined and has no properties.
    at RadioButtonXMLQuiz_fla::MainTimeline/setup()
    at RadioButtonXMLQuiz_fla::MainTimeline/goNext()


    I think it has to do with referencing and scoping, but it's weird, because in all these external swf's, I load data from each .XML on the main stage, and the sounds, and the images.

    The buttons respond to the listeners, but don't execute the actions they should. Do I have to set in the 3 swfs , to add the childs in "root" ? or maybe "parent"? Or maybe I have to make a reference of all the variables used in these swf's on the main swf?

    Thanks
    Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries

  2. #2
    Senior Member
    Join Date
    Apr 2008
    Location
    Rotorua / New Zealand
    Posts
    117
    Hi there,
    I assume that it is Flash you are using - not really specified? In Flash / FLEX I would use modules which would not give any problems at all & you also would be if needed or enhanced in future Read & Write to the Xml which would make the quiz much more Interesting as well as use it maybe in a web or even desktop environment which truly would rock! regards aktell

  3. #3
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    Thanks for the suggestions and for replying!!!

    Yeah, i'm using flash CS6... i think i have to set all the variables of the child swf's in the main swf, so there's reference to them. But i ended puting all the content in 1 fla, in a movie clip , in frames with labels, and when you chose a category (like Words Quiz, or Sounds Quiz, or Images Quiz), then the main movieclip is added to the stage, and accordingly to the category selected, it gotoAndStop(the corresponding frame label here). And its working great now! Thank you
    Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries

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