View Full Version : New topic query ever asked......!
skm0911
September 18th, 2001, 02:55 PM
How to develop a interface that lets the user choose among several different SWF files , do i need to develop different scenes or different SWF files and write some actionscript to link them.should i do something like having one main swf file and from which i load another swf file according to the user choice.please help me as how i should start
skm0911
eyezberg
September 18th, 2001, 03:09 PM
WHAT is the user choosing by making his choice, a different background, different content, sound etc etc, or what? Depends..
skm0911
September 18th, 2001, 03:40 PM
the user is choosing a different movie clip for each selection.once it completes its timeline it should return back to the main movie clip.i think i have to do it with loadMovie and unloadMovie actions.can anyone explain with sample code please.......!
Thanks
skm0911
suprabeener
September 18th, 2001, 04:12 PM
button:
on(release){
targetswf = "myfunkybackground.swf";
}
action to initiate the loadMovie:
loadMovieNum(targetswf,1);
this assuming some kind of "control panel" type interface where you choose options and then press ok. so initially you just set variables, and then once it's initiated, you actually load the movies.
sidky76
September 18th, 2001, 07:55 PM
loadMovieNum(targetswf,1);
where do u write/paste this code? on the frame where the button is located or the first frame of the swf file that is being loaded?
suprabeener
September 18th, 2001, 10:27 PM
this command will load whatever "targetswf" has been set to into _level1. where you put it is up to you. perhaps in a submit button of some some nature...
be sure to set "targetswf" before this code is executed.
for testing purposes, put it in a button of it's own. that way you can execute it at your discretion and see what it does.
sidky76
September 19th, 2001, 07:59 AM
so can i put the loadMovieNum(targetswf,1)
right after the on(release){blah blah blah}
on the same button?
suprabeener
September 19th, 2001, 06:12 PM
you betcha
upuaut8
September 20th, 2001, 12:04 AM
onRelease() will perform everything you put inside it's {}'s..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.