# Passing parameters..?

**URL:** <https://forum.kirupa.com/t/passing-parameters/64088>\
**Category:** Uncategorized\
**Created:** [September 13, 2004, 6:19am UTC](https://forum.kirupa.com/t/passing-parameters/64088 "2004-09-13T06:19:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanvi](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tanvi](https://forum.kirupa.com/u/tanvi)\
**Post date:** [September 13, 2004, 6:19am UTC](https://forum.kirupa.com/t/passing-parameters/64088/1 "2004-09-13T06:19:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 8:55am UTC](https://forum.kirupa.com/t/passing-parameters/64088/2 "2004-09-13T08:55:42Z")

</div>

> [@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**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 13, 2004, 12:21pm UTC](https://forum.kirupa.com/t/passing-parameters/64088/3 "2004-09-13T12:21:38Z")

</div>

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
