Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-30-2005, 06:50 AM   #1
warforge
Registered User
 
Join Date: Jan 2005
Posts: 1
Default loading swf in another level?

I was working on a purchased template and is rather newbie to flash actionscripts since I only used them for mostly animations.

Edit: forgot to mention it's flash mx actionscript..

Top level = main.swf
bottom level = pagexx.swf (xx = 1,2,3,etc)

Problem: When loading another swf from the main.swf into main.swf, it works fine. But now I have a problem of loading page2.swf from page1.swf which is now opened in main.swf. I've tried using loadmovienum but they overlap each other instead of page1.swf disappearing. Hope I explained the situation well enough. Here's the script from main.swf used to load page5.swf (where all the 5 = page5).

on(rollOver) {
if(_root.link<>5) {
gotoAndPlay("s1");
}
}

on(rollOut) {
if(_root.link<>5) {
gotoAndPlay("s2");
}

}

on(release) {
if(_root.link<>5 and _root.flag_animation=="true") {
_root.flag_animation="false";
_parent["item" + _root.link].gotoAndPlay("s2");
_root.main.plane.robo.gotoAndPlay("p4");
_root.link=5;
_level2.main.gotoAndPlay("dissappear");
}
}

Last edited by warforge; 01-30-2005 at 04:30 PM. Reason: Clearer explaination?
warforge is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:10 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.