Modifying cylinder image display script

I’m working on a site that I was hoping I could use the cylinder image script with (http://www.levitated.net/daily/levCylinderImageDisplay.html), except as a menu rather than an image display. Unfortunately, my idea to make each of the images in the script a button didn’t work. Then again, having only two weeks experience of flash and viewing actionscript as a foreign language doesn’t help me. What I’d like to do is either be able to call up a certain scene when one of the choices is clicked, or else load a movie; neither of which I have any idea of doing. I have seen this done before (http://www.rarefaction.com/rmac/in.html), and would really like to be able to add it to this site I’m making for my cousin’s netlabel. My rough site with a nonfunctional menu is located here (http://sonmi.150m.com/flash/01.html). If anyone could help me out I’d greatly appreciate it. I’d like to have the contents pop up in the top right corner of the swf file, though, the process of doing so is hurting my tired brain which has been working on the site all day. If more info is needed, like my fla file, i’d be happy to provide it. thanks!

Well, if I remember correctly, you can press the images and they become bigger. Which means they ARE buttons already…

pom :stuck_out_tongue:

well, yeah, but it’s just a matter of making them work the way i want them to work. when i put this code on the button

on (release) {
gotoAndPlay (“scene2”, 1);
}

and then try clicking on the button, nothing happens. hence my dilemma :sleep:

You can only play a new scene from the main timeline.

If you button is encased in a movie clip, it will not work.

You will have to call it to gotoAndPlay a frame on the main timeline, and on that frame you need to have the gotoAndPlay scene action.

hmm… that sounds reasonable enough. How do i make it call a frame on the main timeline though? I’m only aware of calling scenes and movies from urls… :-\ (i apologize for my ignorance)

OK, usually on the main timline you have a stop() action on the last frame.

Well on frames AFTER this stop() action you can add more frames, and each of these extra frames will contain a link to one of your scenes.

Inside your frame you put this type of action…

gotoAndPlay("Scene 2",1);

Now click on your frame and hit CTRL+F3 to open the properties window. There is an area that says < Frame Label >, give it the label “scene2” (no quotes).

Now inside your movie clip, you will need to call this frame from your button. So click on your button and edit its actions. Add these actions in there…

_root.gotoAndPlay("scene2");

This will go back to the _root timeline and play the frame that is labeled “scene2”. Since this frame contains your actions to change to Scene 2, you should be moved to Scene 2.

But if I may… I recommend loadMovie instead of scenes, that way unneccessary sections aren’t loaded, this decreases your load time.

i must say lib, your ability to answer everything amazes me! :o thank you so much. i’m not familiar with the load movie action. do all movies have to be loaded from a url?

loadMovie is just loading an external .swf into your main .swf file.

You can use whatever method you want. If you are more comfortable with scenes right now, then go with that, but I HIGHLY recommend reading up on loadMovie in the near future. It will decrease your file size, load time, and allows for easy updating.

It is better than Scenes all around.

actually, i’m having trouble again with the scenes. it worked when i put it on the first button of the movie, but when i put it on the second, and then tested the movie, the scene ran right away without pushing the button… :*(

You need to put a stop() action at the end of the scene or else it will keep on going until it hits a stop action.

If no stop() action is found, it will loop through all your scenes over and over.

I did put a stop action after the scenes, though. it doesn’t even play the first scene, it just goes to the second right away. and this only happens when i put the action on the second button. on the first button it works fine… blast.

Go to Window/Scene and make sure your Scenes are in the right order.

It goes from top to bottom… so the one on the top will be your first scene, and the one below that will be your second scene.

You can click and drag them to change the order.

I think this might be your problem.