Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

andy5000

macrumors regular
Original poster
Sep 17, 2006
185
0
Hi, i am doing an assignment of a country park.and have to include what my lecturer calls a spotlight(basically a circle that you drag around the screen to see the park). so the spotlight works (you can drag the circle around) but i cant exit the movie.
What i have done so far is created my country park. and as a seperate flash movie the spotlight. then copied the country park into the spotlight and placed a button in the bottom corner which i want to take me back to the normal country park movie.
The spotlight movie is a circle on a layer called beam and the country park is masked.
My problem is clicking the button doesnt take me back to my normal country park. The code on the button is:

on (release) {
loadMovie("inpark.swf",0);
}

Using Flash studio 8

Hope thats clear,Thanks
 
Hi, i am doing an assignment of a country park.and have to include what my lecturer calls a spotlight(basically a circle that you drag around the screen to see the park). so the spotlight works (you can drag the circle around) but i cant exit the movie.
What i have done so far is created my country park. and as a seperate flash movie the spotlight. then copied the country park into the spotlight and placed a button in the bottom corner which i want to take me back to the normal country park movie.
The spotlight movie is a circle on a layer called beam and the country park is masked.
My problem is clicking the button doesnt take me back to my normal country park. The code on the button is:

on (release) {
loadMovie("inpark.swf",0);
}

Using Flash studio 8

Hope thats clear,Thanks

can you take some screenshots timeline,stage ect...
is there multiple frames in the timeline?? what is the inpark.swf??
sorry but its still kinda hard to understand what is going on
 
do you have a holder movie ? or something where are u loading the movie a container?

you need something like

loadMovie("mySWF", myHolder)

myHolder.loadMovie("mySWF", 1)
 
right.the first pic is the spotlight.fla and the 2nd pic is the inpark.fla. the black arrow is what i want to click to go back to my inpark.swf and the torch in the inpark.fla is to take me to spotlight.fla
Hope this has helped clear things up
 

Attachments

  • flash2.jpg
    flash2.jpg
    92.6 KB · Views: 107
  • flash1.jpg
    flash1.jpg
    105 KB · Views: 103
as I said if you are going to use loadMovie() function

you need a holder an empty MovieClip, there are 2 different SWF or you can put all in one FLA and use Movie Clips for it or also use Frame labels ... but the first option is better ....
 
ok how would i build a holder for it?
thanks for the help really appreciate it
 
ok how would i build a holder for it?
thanks for the help really appreciate it

to make an empty movie clip just draw a box, click it and hit F8 and say ok, double click your new movieclip and then delete the box inside of it (or set box as transparent to keep a shape to the movieclip). then give it some instance name and linkage
:)

but i think your saying that you can load the spotlight overlay fine..but once you got it you cant click anything, correct? if so i had the same issue, im sure someone here knows how
 
yeh the spotlight movie loads fine. i just cant exit it. the arrow i want to click to go back to the inpark.swf but it doesnt let me click it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.