Is it possible to load an external swf at a specific frame?
hey! i've got flash file acts main menu program i'm developing. works fine main menu when click return main menu whole main menu file reloads. possible use loadmovienum( ) go specific frame within main swf file? if not, there way this?
here's button code i'm using now:
on (release) {
unloadmovienum(0); //unloads current movie can reload main menu
loadmovienum("demomainmenu.swf", 0); //reloads main menu
}
thank whatever can provide! :)
here's button code i'm using now:
on (release) {
unloadmovienum(0); //unloads current movie can reload main menu
loadmovienum("demomainmenu.swf", 0); //reloads main menu
}
thank whatever can provide! :)
mcommini wrote:
> hey! i've got flash file acts main menu program i'm
> developing. works fine main menu when click
> return main menu whole main menu file reloads. possible
> use loadmovienum( ) go specific frame within main swf file? if
> not, there way this?
first let me clarify 1 thing you. level 0 main level on flash
player. loading things in level 0 remove current content , replace
it new one. not idea because works purge, clears
player , there on can't maintain functionality unless reload
whole html document on again. also, not unload , load in same time in
same level. flash can hold single swf per level, once load content, whatever
loaded automatically replaced, loadmovie action , set.
good practice have main level (zero) empty base , load , unload
things in above levels, 1 , on...
> here's button code i'm using now:
> on (release) {
> unloadmovienum(0); //unloads current movie can reload main menu
> loadmovienum("demomainmenu.swf", 0); //reloads main menu
> }
>
in regard load , go to. yes possible no matter frame want
go to,you need load whole movie first. come in second.
while execute loadmovie action, can set variable, example:
loadmovienum("file.swf", 1);
variable="mcommini_01";
than in loaded movie have preloader makes sure movie loaded before
playing , once done loading, make jump frame has if else condition in kind
of loop, using setinterval or enterframe. condition checks variable value , based
on proceed particular frame.
that's why told not clear level zero, if set variable , load movie in level
in same time, information gone , have totally no reference point
get variable from.
you use shared object native form of flash's cookies. write sol file
user drive temp folder, read other file , go frame based on given value.
--
best regards
urami
--
beauty in eye of beer holder...
<urami>
if want mail me - not laugh @ address
</urami>
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment