Click to See Complete Forum and Search --> : flash cs3 actionscript 3.0 problems


weapon x
08-16-2007, 02:53 AM
hi,

iam currently using flash cs3
but the problem i'm having is that the tutorial i'm using is actionscript code for flash 8

it now appears that the new flash has a new actionscipt.
i was attempting to make an animated button, using a movieclip to do so

here is my acctionscript

btn_design_mc.onRollOver = function (){
btn_design_mc.gotoAndPlay("_over");
}

btn_design_mc.onRollOut = function (){
btn_design_mc.gotoAndPlay("_out");
}

does anyone know what needs to be written for this to work in actionscript 3.0

i've tried hitting the tab that brings it back to an earlier version of actionscipt but it wont allow me to

any help would be great thanks
jamie

Webjedikungfu
08-16-2007, 05:25 PM
I use flash cs3 as well.

You can go into your publish settings and assign it to be ActionScript 2.

Then your code should work. Or open "help" in flash to see how to code a movieclip button in ActionScript 3. It tells you how in the help section.

weapon x
08-17-2007, 05:00 AM
thanks.. that worked

has now allowed my movieclip to run and give me new problems like it was meant to.

i've tried the help section, but unless one has ample time to go through it all, or let alone understand it. it tends to render itself almost useless.

i had a video tutorial for flash 8, which is why i was using as2
of which i knew nothing of, as i'm new to flash

one futher question however... if as3 is the new code, will there be any issues in putting a website together using as2?

Webjedikungfu
08-17-2007, 06:04 AM
Not at all, it'll work fine on the web everywhere.

The only difference in AS3 is that is it a more intelligent and powerful code structure and gives you more options as a developer.