dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Did CS3 completely change the way of doing things?

  1. #1

    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.

  2. #2
    Flash Your Flex
    Join Date
    Apr 2007
    Location
    Provo, Utah
    Posts
    45
    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

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    70
    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

  4. #4
    Flash Your Flex
    Join Date
    Apr 2007
    Location
    Provo, Utah
    Posts
    45
    Quote 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.

  5. #5
    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

  6. #6
    Quote Originally Posted by malihk
    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
    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?

  7. #7
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center