flash buttons

Discussion in 'Web Design and Development' started by andy5000, May 10, 2007.

  1. andy5000 macrumors regular

    Joined:
    Sep 17, 2006
    #1
    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
     
  2. ambient macrumors member

    Joined:
    Apr 21, 2007
    #2
    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
     
  3. sepu macrumors regular

    Joined:
    Nov 18, 2006
    #3
    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)
     
  4. andy5000 thread starter macrumors regular

    Joined:
    Sep 17, 2006
    #4
    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
     

    Attached Files:

  5. sepu macrumors regular

    Joined:
    Nov 18, 2006
    #5
    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 ....
     
  6. andy5000 thread starter macrumors regular

    Joined:
    Sep 17, 2006
    #6
    ok how would i build a holder for it?
    thanks for the help really appreciate it
     
  7. yagran macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #7
    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
     
  8. andy5000 thread starter macrumors regular

    Joined:
    Sep 17, 2006
    #8
    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.
     
  9. yagran macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #9
    ive attached a .fla of a solution to your problem.

    hope this is what you needed
     

    Attached Files:

  10. andy5000 thread starter macrumors regular

    Joined:
    Sep 17, 2006
    #10
  11. yagran macrumors 6502a

    Joined:
    Jan 8, 2007
    Location:
    Brighton, East Sussex, UK
    #11
    sure ill do that now. also i will pm you as soon as te mini is avaiable, thenx for the intrest. :D
     

Share This Page