Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

80 users online



Stuck on my basic Action script. Help Please

Stuck on my basic Action script. Help Please

Currently viewing this thread: 1 (0 members and 1 guests)


konsumed

konsumed

I am myself, in this world.
Status: Offline!

Stuck on my basic Action script. Help Please

Alright I'm going to try to explain what I want to do the best way possible. I have a movie clip of a circle, and when you run your mouse over it I want it to grow and shrink. I also want it to continue to shrink after I move the mouse away from it.
I started working on it myself and I think i'm getting closer to getting my effect correct.

Right now i'm working with two movie clips, the static one and the animated on (which will shrink). I gave the instance names

static_mc
over_mc

//current code for the static movie clip

onClipEvent (mouseMove) {
_root.over_mc.loadMovie();
{ play();
}
}

Is this even near correct for what I want?

___________________

- konsumed 4.3 - Simple is my Argument -

nykoelle

nykoelle

Crazy Pants
Status: Offline!

I would go a gotoAndPlay(3) Where 3 is the frame where that animated clip is.

So basically, you'd have something like

static_mc.onRollOver() { gotoAndPlay(3); }

//not sure if thats the exact actionscript, i havent opened flash in weeks, im rust lol.

___________________

:: pop ::

fredmv

fredmv

Status: Offline!
Quote:

Originally posted by nykoelle
//not sure if thats the exact actionscript, i havent opened flash in weeks, im rust lol.

Probably meant:

Code:

static_mc.onRollOver [color=blue][b]= function()[/b][/color] { gotoAndPlay(3); }

___________________

http://home.comcast.net/~fredv4/tf/firefox.gif

nykoelle

nykoelle

Crazy Pants
Status: Offline!

yea. there ya go lol. as i said, i havent opened flash in weeks, probably months heh. damn you work!

___________________

:: pop ::

konsumed

konsumed

I am myself, in this world.
Status: Offline!

When I tired the code you provided the de bugger spit this at me.

Scene=Scene 1, Layer=circle, Frame=1: Line 2: Statement must appear within on/onClipEvent handler
static_mc.onRollOver = function() { gotoAndPlay(1); }

I'll be back after I take some action scripting tutorials :P

___________________

- konsumed 4.3 - Simple is my Argument -

fredmv

fredmv

Status: Offline!

I don't know Flash at all. I just know ActionScript because I know JavaScript and they're both based on the standardized version: ECMAScript. Based on that error message I could only guess that you might try changing onRollOver to onClipEvent.

___________________

http://home.comcast.net/~fredv4/tf/firefox.gif

nykoelle

nykoelle

Crazy Pants
Status: Offline!

could you just upload the fla?

___________________

:: pop ::

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0077 seconds.