AS3 Is doing me in!
- Started
- Last post
- 9 Responses
- wwfc
...OKAY - I'm new to AS3 and am failing miserably to in this battle with it.
I have this script:
http://pastebin.com/m171a3199that creates a carousel effect - but I want this script to work on four seperate frames. Sounds easy enough but is it f*ckery!
On each frame that I want it on I need to have different mc's to rotate (ball1_mc - ball2_mc - ball3_mc).
Do i need to place the script on each frame and then simply change the mc names to suit - or should 'all' four variations go on the first frame of the timeline??? I dunno! I have tried and tried with no success!
HOW HOW HOW!!!!
- Elfangio0
I am not sure, but I think u need to make all your var into _global ...
- wwfc0
thanks for the quick response elfangio - how do I that???
...sorry for sounding like a gonk on ketamine!
- ********0
I got lost with AS 2. I'm too old to learn 3.
- visualplane_0
Any chance you can post the .swf file? I'm new to AS3, but i'm curious to see what it looks like.
- mikotondria30
surely you're just making each carosel instance be populated with the 'balls' in the balls array, so in your script make a function that instantiates a new carousel, using balls[n]..
like,
function makeCarosel(ballsType):void {
//new carosel making stuff..
}
etc, am I understanding what you're trying to do right ?- frame1: makeCarosel(balls1...
frame2: makeCarosel(balls2...
mikotondria3
- frame1: makeCarosel(balls1...
- wwfc0
....yes, that is how I thought/hoped it would work!
But it doesn't seem to - I also tried changing the carousel ref's too - but without any joy! :-(God AS3 hasn't half moved the goalposts eh?
- maximillion_0
what error do you get?
is "ball1_mc" the instance name on stage?