Solved

gotoSceneAndPlay

Posted on 2006-07-19
5
354 Views
Last Modified: 2006-11-18
Hey guys,

I have been asked to create a little flash based movie thingy and I need to have 4 images (front covers) and when you roll over the cover, it expands, you move your mouse of and it strinks down to normal size.  Fine.

Scene 1

all the covers lined up, converted to buttons

scene 2

1st mag growing

scene 3

2nd mag growing

etc etc

Now i have the gotoSceneAndPlay on the roll over but it just plays the scene 2 on its own, meaning that other magazines disappear because they are not a part of that scene.

Now how do I get around this?  I though the thing needed to do is to when someone rolls over, it plays both the main scene AND the scene of it growing.  Is this possible and if not what is?

Thank you

Steve
0
Comment
Question by:stevemarsh99
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 17141533
firstlt..stay in scene 1

this is for one cover .. repeat for others.
make the cover into a movieclip.
doubleclick on the cover .. you now see another timeline.
put a stop();  on frame 1 ..this is so the movie doesn't run until you tell it
put the content you have in scene 2 ..of the cover growing.. into that timeline from frame 2 onwards

back to the main timeline
on  the cover movieclip put the code..

on(rollOver)(
this.gotoAndPlay(2);
}

on(rollOut){
this.gotoAndStop(1);
}

so all the content is in scene 1 ..
bottom line..don't use scenes .. these were thought up by the developers.. who probably don't use the software and
don't know what a pain and how unnecessary they are.
:)
Z
0
 

Author Comment

by:stevemarsh99
ID: 17144845
Hey Z, I am using SWISH so I can't double click on the image itself.  Is there anything else I can do?
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 17145745
yes..use flash

Z
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now