# This is easy to do, but i cant do it.. :(

**URL:** <https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441>\
**Category:** flash\
**Created:** [April 2, 2002, 11:35am UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441 "2002-04-02T11:35:23Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [April 2, 2002, 11:35am UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441/1 "2002-04-02T11:35:23Z")

</div>

Hey there everyone…  
This would probably be easy for you guys to do but for some reason i cant figure it out. Im still kinda new to flash… So if someone replies, please dont talk too technical…please write easy step by step intructions… 🙂

Ok, this is the problem.  
I have made my main page for my website in flash. I have also made some other pages that i want to link to the main page.

I am not trying to make a URL link…

What i want is, on the main page i have a button, how do i link that to another page i have made and make it load up in the same or different window?

Can someone pleaze help me… i need to know!

Thanks Heaps…  
jakatta… 🙂

---

<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:** [April 2, 2002, 1:48pm UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441/2 "2002-04-02T13:48:03Z")

</div>

put this code on your button::

on (press){  
loadMovie (“SomeMovie.SWF”, 0);  
}

and just change the name of the .SWF file to whatever movie you want to load.

---

<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:** [April 3, 2002, 1:37am UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441/3 "2002-04-03T01:37:12Z")

</div>

Hey Jubba,

Yeah that didn’t work… ☹ When into flash 5 and opened up on of the pages and just resaved it as SWF. (do i just change it instead of fla. to swf?)

And then i made a button and put in this action:  
on (press){  
loadMovie (“SomeMovie.SWF”, 0);  
}

And when i published it, i pressed the button and the button disappeared and nothing happens, nothing loads ☹

What am i doing wrong???

---

<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:** [April 3, 2002, 1:55am UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441/4 "2002-04-03T01:55:46Z")

</div>

Yeah man, easy things keep messing me up, too.

Firstly:  
Did you save BOTH files in the same folder?  
Secondly:  
Did you write the filename of the SWF file into th code you pasted into the button?

Example:  
The File you want the button to be on is 1A  
The File you want to be opened by the button is 1B

The code should be then:  
on (press) {  
&nbsp &nbsp &nbsp &nbsp loadMovieNum (“1B.swf”, 0);  
}

I tried it, and it works fine.  
MAKE SURE YOU NAMED THE FILE RIGHT

---

<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:** [April 3, 2002, 2:13am UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441/5 "2002-04-03T02:13:09Z")

</div>

you cant just save it as a SWF, you have to export it. Go to File\>Export Movie…

and then save it under any name. the code works for me. you must be missing something

---

<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:** [April 3, 2002, 2:13am UTC](https://forum.kirupa.com/t/this-is-easy-to-do-but-i-cant-do-it/2441/6 "2002-04-03T02:13:54Z")

</div>

Don Albino,

Thanks man, you made my DAY! i’ve been at this for a while, and now that you have told me how to do it… And i DID IT! i had the BIGGEST GRIN on my face…

Thanks HEAPS man…  
Your a True Champion…

Jakatta… 🙂
