tanvi
September 13, 2004, 6:19am
1
Check out this code:
on (release) {
getURL("javascript:openNewWindow(My.swf’,New window,‘height=600,width=800,toolbar=no,scrollbars=yes,resizable=yes,fullscreen=no’) ");
}
everything here is fine. It opens finely.
But…
i want to pass parameters where if i click a button in html page My.swf should open a particular scene called ‘Scene 2’ rather than scene 1.
i tried
on (release) {
getURL("javascript:openNewWindow(My.swf?myparams=Scene 1,‘New window’,‘height=600,width=800,toolbar=no,scrollbars=yes,resizable=yes,fullscreen=no’) ");
}
but its not working
so any idea for this or if it has to be done by you, how would you do it?
Pls Help
Thanks in advance
system
September 13, 2004, 8:55am
2
tanvi:
on (release) {
getURL("javascript:openNewWindow([color=SeaGreen]My.swf?myparams=Scene 1[/color] ,‘New window’,‘height=600,width=800,toolbar=no,scrollbars=yes,resizable=yes,fullscreen=no’) ");
}
say you missed the parenthesis in the first parameter
And also Scene 1 should be urlencoded to Scene%2D1
system
September 13, 2004, 12:21pm
3
I think you cannot use AS Before the flash movie loaded. If the default Scene is “Scene 1” I think you cannot directly divert to Scene 2 without loading Scene1. because Instructions are already there. So the best thing is change the Scene order by WIndow>> Designer Panels >> Scene