The concept is, you have this big picture and when you hover over a label the picture zooms in and you get a detail.
Problem is, say you’re hovering over “Operations” then you just move your mouse down to “Customers”. The movie sorta stutters over from Operations to Customers. What I would LIKE it to do is act as if I had removed my mouse from the button, THEN hovered over the next item.
Ie:
User sees big picture
User hovers over “Operations”
Movie Zooms In to Operations.
User hovers over “Customers”
key -->5. Movie zooms all the way back out, THEN zooms into “Customers”
so on…
I hope this makes sense.
So far I’ve tried to put a switch into the frames where the movie is zoomed all the way out. something saying “ok, we’re ready to zoom in” then have the buttons say “if the frame says “we’re ok” then we can zoom in”. But that didn’t work for me.
Right, like a switch. I’m trying and trying but I just can’t get it to work. I don’t know what’s going on.
At the frames where I want the clip to soom I say I make a var and call it “Ready” and make it true. All the other intermediate clips are empty (false).
On the button I say “if ready is true then go and play X”. But it plays X regarless.
You could make each section zoom back to the wide view (quickly) before zooming to the new close-up. I got this from Flashkit last year, and it works pretty smooth:
That would come in very handy. I sort of have a feeling I might just be confused about something silly…but how do you do that?
I’m fairly new to Actionscript. In asp I would have it spit out the currentWhatever or in JS I could have an alert popup with the variable I’m looking at, but I haven’t been able to find a way to do that with AS. Stupid question?
On frame 2 of the tweens, you should have a loop that’s like:
if (!_root.finished) {
prevFrame()
}
on the first two frames, have no animation at all, as it will flip between these two frames while the ‘other’ effect is finishing. When the other effect is complete, and sets _root finished=true, then this loop will not run, and the movieclip will start playing.
so now when you click on a button, it runs through that loopand waits, until the other button is finished.
OR an easier way have an onClipEvent(enterFrame) to check where it is currently zoomed in to (use a variable for this, eg. name as currZoom) and if it isnt the same as targZoom tell it to run the zoomout anim. And on the zoomed out anim have it check where to zoom in via the variable targZoom… on rollover your buttons simply set the variable targZoomequal to where you wanna go!
one variable for where you want to zoom, one for where it is zoomed to
one check when it is zoomed all the way in, one check for when its not