all groups > flash (macromedia) > june 2004 >
You're in the

flash (macromedia)

group:

path


path xJaNx
6/7/2004 10:36:05 PM
flash (macromedia):
i have main.swf ,audio.swf,and background.swf

on main i have a nav bar,in which all of the buttons have a command that im
having a problem building this is what i want it to do when the button state is
on press i want it to go the background.swf and select the frame number or the
label its looking for but for some reason its not working here is the script i
put on it,once again im not proficient in script so im not sure if this is even
right .but its not working if someone can help that would be great thanks.


onPress=function(){
background.swf.gotoAndPlay("hennesydrinkbg");
}
Re: path urami_
6/8/2004 10:23:02 AM
[quoted text, click to view]

Flash does not care about file names , it refer to it by level number (if loaded in level)
or by target MC name (if loaded in movie clip holder name)

First you must load the movie in level , say level 123 , than you must make sure its loaded
as you can't access any label nor frame number if it is not yet cached (does not exists).
After the movie get loaded you would refer to it with :

(by the way , the onpress should be attach to something , button or movie clip)

mcnameORbuttonName.onPress=function(){
_level123.gotoAndPlay("hennesydrinkbg");


--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button