|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").
What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie) I have tried the following which doesn't seem to work: Created an invisible button (or choosing the image as a button) and having on(release) { gotoAndPlay("scene 5", 1); } this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works. Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you |
|
#2
|
|||
|
|||
|
Hi, are you sure you have your layers set correctly. The button wont respond if it's under a movie clip...so are you sure the button layer is above the hex menu layer?
|
|
#3
|
|||
|
|||
|
Ok, basically I have a scene, within that scene I have a movie clip (hexagon menu) and within the slide of the hexagon menu - there are 2 scenes, scene 1 and 3. Scene 1 is the rotation of the hexagon (animation). Scene 3 shows the images that are displayed on each of the slides when the hexagon moves around (you would get a better idea of this if you saw the actual page, it's at www.elaborations.co.uk/mansour/index.html). I'm trying make the image a button (or create an invisible button) so that it goes to another scene.
|
|
#4
|
|||
|
|||
|
Hi, ok now I know what's going on...think i was being slow before :¬) ok the movie clip that has the image in can be the button, or at least have button like actions. Say the movie your referring to as scene 3 is called imageMovie. You can link mouse actions to it like this:
imageMovie.onRelease = function() { gotoAndPlay(2); } If you made each item it's entirely own movie and your talking about actual seperate scenes for each one well the principle should still carry. If you didnt put each image in it's own movie and just dropped an instance of the bitmap on the stage then you may be better off either putting it in a movie and using the above code or simply manually making a big invisible button over the bitmap on stage. To make a big invisible button just draw in the fourth frame of a button instance. That's the hit frame. It will allow the button to be functional but not show any graphics for any of its visibile states. Last edited by Tann San : February 3rd, 2004 at 01:09 PM. |
|
#5
|
|||
|
|||
|
sorry - I meant symbol 1 and symbol 3 (not scene)
|
|
#6
|
|||
|
|||
|
I've actually done that:
If you didnt put each image in it's own movie and just dropped an instance of the bitmap on the stage then you may be better off either putting it in a movie and using the above code or simply manually making a big invisible button over the bitmap on stage. To make a big invisible button just draw in the fourth frame of a button instance. That's the hit frame. It will allow the button to be functional but not show any graphics for any of its visibile states. Thats exactly what I've done - but still no result - any more ideas?? |
|
#7
|
|||
|
|||
|
Hi, I'm intrigued as to why your buttons dont work...well you can try the other option for now. I'm guessing symbol 3 is the name of from the library. Give symbol 3 an instance name on the stage.i.e. imageMovie. Then use:
imageMovie.onRelease = function() { gotoAndPlay(2); } There was a spelling mistake in my previous post..make sure to ditch the invisible button if your going to try this out. That will make the actual image movie a button essentially. This might not work for whatever reason is preventing the invisible button from working. It's not too much to try it out though. Dont put the code on the movie, use it in the parent. |
|
#8
|
|||
|
|||
|
Tried all that - but still nothing ....
I dont understand what you mean by this though "Dont put the code on the movie, use it in the parent" ?? |
|
#9
|
|||
|
|||
|
Hi, I just meant dont put it inside imageMovie iteself. Say imageMovie is on the main stage then put the code in a relevant keyframe there. Are you sure that the image is on top of the rectangle movie?
|
|
#10
|
|||
|
|||
|
Would I be able to send you a zipped version of my work to look at - I'm really confused!
|
|
#11
|
|||
|
|||
|
loadmovie registration
Hello,
Great Website! I am trying to do something similiar but I am having trouble getting the buttons to work on the movie I am loading . If I load the movie in to a clip the registration is perfect but the buttons are not working. If I load the movie into a level the buttons work but the registration is off. Any idea why my buttons would not work when loading to a clip???? Any help would be greatly appreciated. James |
|
#12
|
|||
|
|||
|
Hi, you can just use the actual image clip as a button. Say your image movie is called imageMov.
imageMov.onRelease = function() { getURL("thispic.html", "_blank"); } |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > creating a button to open a movie clip from inside a movie clip?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|