Code...?

hi all,

help me with this code

on (release) {
loadMovieNum(“SS_ERP.swf”, 1);
gotoAndPlay(“Purchase”,“Purchase”);
}

this is to the button in one swf to open second swf.

this works but i want to open it in new window

what shall i do?

help me

you can use get url and link that swf with the target of _blank :wink:

on (release) {
getURL
(“javascript:NewWindow=window.open('ShowPopup.swf,‘newWin’,‘width=400,height=300,left=0,top=0,
toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No’); NewWindow.focus();
void(0);”);
}

is this right code?

well… you could do it that way… does that work?

but i want to pass parameters also
check the first code u will see

gotoAndPlay(“Purchase”,“Purchase”);

u can see the parameters where 1). Purchase is scene name and 2). is frame name

in the url you could put newswf.swf?parameter=value&p2=v2

how do i pass this parameters?

by putting them in the url like I did :wink: newswf.swf?parameter=value&p2=v2

ok…
but you are not understanding that how can i pass parameters so that my button opens a specific scene or framename in a external swf?

on (release) {
loadMovieNum(“external.swf”, 1);
gotoAndPlay(“scene 1”,“framename”);
}

this code works perfectly but i just want to open the external.swf in new window

if the url was like this newswf.swf?scene=purchase&frame=purchase then you could just do this for the code I think…


on (release) {
loadMovieNum("external.swf", 1);
gotoAndPlay(scene,frame);// scene would = purchase, frame would = purchase.
}

I’ve never passed parameters into flash, but I’m pretty sure that’s how it works.

oh I get it, you could pass url parameters like I was saying and simply pass one called scene and one called frame, and then put this code on the first frame of your external movie:

[AS]gotoAndPlay(scene,frame);[/AS]

but what about opening it in new window?..

heu guys come on help…i am badly stuck up…

hello
anyone there to help…???

use the same code as you were using, in your second post, and just add ?scene=[scene to go to]&frame=[frame to go to] in your url of the file, and add the code in my last post to the first frame of the file you’re opening

but it isnt working…
when i click on the button the screen just go blank…thats it wat i can see afetr putting your code bombingpixel