Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Linking SWf problem

New Here ,
Aug 10, 2008 Aug 10, 2008
i am using this code when i press the Create Button:
var swf:URLRequest =new URLRequest("GameCreate.swf");
loader1.load(swf);
addChild(loader1);
loader1.x = 255;
loader1.y = 200;

This is when i start:


This is after i press Create Button:



This is after i press OK:(i purposely set the position to show u that i am using the method above which i dont know is it correct)



Now, I going to press the quit button, How am i gona to remove the child when THIS child is on the previous FLA file? or should i just navigateToURL?


TOPICS
ActionScript
222
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 11, 2008 Aug 11, 2008
You've used addChild to add the loaded SWF... just reverse it by using removeChild 🙂
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 11, 2008 Aug 11, 2008
LATEST
1st fla , 2nd fla , 3rd fla. i addChild(2nd swf) in 1st fla, how can i remove a child thats not in the same fla file?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines