Eloo Home about us
You are now at Eloo.VirtualReality.Flash Tutorials-


How to start this ActionScript Stuff?
-Where can I learn?-

Your experience

This is really the first thing you should try and try by all yourself, and I call this is experience. The question you might ask is "how do I learn from my experience when I even don't know how to do it?" You got it, however, this is what I mentioned of in the beginning of this tutorial that to learn a thing always becomes easier after you know how to start. Now you maybe even uncertain about what ActionScript looks like and what can you do about it, however you do know where you can write this, don't you?

The in the Flash version before MX2004, and MXProfessional 2004 all have a reference guide directly inside of Actions panel that let you select specific items and automatically create some simple script for you (both in normal mode and expert mode), if you are using the latest version from Flash(MX2004 and MXProfessional 2004), you will not know what I am talking about?because this script auto-made thing doesn't exist in the Actions panel anymore.
  • Behaviors panel

  • behaviors panel
    I was surprised when I saw this changing (Macromedia really did a tough decision) and felt pity that the new Flash users couldn't have changes to play around the ActionScript as easily as before. However, MX2004 and MXProfessional 2004 still offers users a similar function panel to make scripts automatically and that is Behaviors panel,by this Behaviors panel, you can make some limited script instantly.
    So now, let's have some first experience?..
    Note: I assume you have already known the workspace in flash, and know how to test the movie.

    After you've open a new document, and click on Frame1 in Layer1 (or any Layer will work also)on the Timeline.

    (Q1)Try this:
    Write the following codes in your Actions panel
       Trace ("Where am I?");
    Afterward, test your movie.
    (A1)What you see:
    You'll see a window name Output popup in front of you, and have text written "Where am I" Correct? Congratulations! I won't tell you what dose the codes above mean, because here we haven't needed to know about that yet, but I'll tell you this Output window will popup when you test the movie if you have any ActionScript wrote wrong (The Flash will tell you the error of your ActionScript).

    ========Delete the code above and try Q2.=========

    (Q2)Try this:
    Write the following codes in your Actions panel
       here = "Where am I?"
    And select Text Tool from the Tools panel, create a Dynamic Text on the stage, in the Properties panel of this Dynamic Text, type "here" inside the Var blank space.
    dynamic text   dynamic var
    (A2)What you see:
    You'll see a text written 'Where am I?' in the movie rather than in that Output window.

    ========Now create a button in the library(and make some shape as what shape as you want, just to be sure you can recoganize this button later), drage this button on the stage, double click this button,and you'll notice the Actions panel now is written "Actions-button"(in MX2004/MXprofessional2004), and try Q3=========

    (Q3)Try this:
    Write the following codes in your Actions panel
       on(press){ here="" };
    (A3)What you see:
    After you text the movie, you should still see the text 'Where am I?' is still written in the movie, but when you press the button(which you created yet), that text will disappear.

    Not satisfy you? But you do try the script personally, not just read the codes other wrote! The next step, you'll get more experiences from others.



    --Index--
      
    Project Log
    New tips
    (Jan 28th,2004)
    Pass value of ASP querystring to FlashMovie rather useing loadVariables method.
    Piano Chords Finder
    (Oct 4,2004)
    After a little tired of making flash for web, started making this music tool to entertain myself hee:)
    New Tutorial
    (Sep 19,2004)
    Glad...Once I had topic about web programming. ActionScript is such a cute thing that gives designers so much imagination to explore.
    player 3.0
    (Sep 9,2004)
    A new design from mp3 streaming player2.0, also add volume control.
    Never imagine how you want to be creative.


    Virtual Reality .What's new .Delphi .Asp   .Snippets&Resources .My articles
    Flash Workshop .My Tutorials .My Tips .Feedback Log
    Sound of Music .Latest works .My Compositions .My Performances
    Color,Light,Visual What's new .Vector Art .Photo Fusion .My Stock
    Physics .My Articles
    Extras .Blog .Photo Album .Guestbook

    Eloo Fiction Plant
    Copyright 2004-2010©izlenim.com All rights reserved. 

    - Last Update on: 25 December 2007 18:50:40 / Tuesday -