-
Did CS3 completely change the way of doing things?
Hello,
I have not used Flash since the version before Studio 8.
The old way I would create a buttom to jump to a new scene or frame would be by using the following:
on(press){
gotoAndPlay("Products", 1);
}
Now, I can not seem to do that... any objects I create... I get a message saying the object can not have actions applied to it.
Am i missing something? Is there a setting I need to configure? I am not a programmer or actionscript guy... I am a simple user who wants to do simple things... and ive gotten frustrated with CS3.
Any suggestions would be greatly appreciated.
-
Yup. It did. Everything is classed based now, and a lot more powerful (albeit with a sharper learning curve)
check this out
http://board.flashkit.com/board/showthread.php?t=698429
You might just want to stick with AS2 (so you can still use CS3) for now
-
Unsure as to how FlashCS3 works,
but in Flex, you can apply button status to anything by doing so:
(wtv you want).addEventListener(MouseEvent.CLICK, functionName);
then, have a function with the same name as you gave above:
private function functionName(event:MouseEvent):void {
trace("The thing has been pressed"); }
It's cool as it's rather easy and can work on anything. Once you get the hang of it, you will come to adore Events in AS3
-
Originally Posted by Sid1120
It's cool as it's rather easy and can work on anything. Once you get the hang of it, you will come to adore Events in AS3
agreed. I LOVE that eventDispatcher is integrated in AS3... I hate scope issues, they are so bothersome.
-
cool thanks for the help.
I kept getting the error because it looks like now when you select actions you have to select the object from the left hand side.
If i recall correctly.. the old way had actions associated directly to the object.
this is gonna take a long time to learn. LOL
-
Originally Posted by malihk
I tried to use Actionscripting 2 to just make a simple On Press GotoFrame.
and now i get errors...
I literally copied it from a old FLA file...
Does this method no longer working?
-
Senior Member
You don't need to use classes. Create a Movieclip or button, export for actionscript and a class will automatically be created. Then place an instance on stage, give it a name (myBut) and write this script in a new frame on the main timeline:
var myBut:MovieClip;
myBut.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent)
{
gotoAndStop("scene2frame1");
}
You should always give a unique framename and not any scene/framenumbers. You cannot use any object associated scripts any more (fortunately). That was always a pretty bad habbit.
If you don't want to use AS3 you can switch to publish settings to AS2 and do your former way.
- The right of the People to create Flash movies shall not be infringed. -
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|