Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    128
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Targeting Movie Clips in AS3.0

    I have finally decided to get into AS 3 by practicing on some dummy examples. From what I've read so far there have been quite some changes. As I have been coding in AS2 for quite a while I find myself very often thinking in AS2 whilst coding in AS3, which can cause some problems!

    The problem I'm having so far is targeting nested movie clips in another movie clip. I have not been able to find a solution despite going through my AS3 manual, Flash help and the Web.

    Can somebody have a look at my fla and tell me how the path in the buttons should be written to target the relevant movie clips? I must be missing a very fundamental point for it not to work at all and the compiler throwing up 1120 errors.

    Thanks
    Attached Files Attached Files

  • #2
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    About your As3 Code...

    Okay there is an issue about the approach you are trying to implement, I very hardly advice you not to use as3 this way, if you want to create a proper as3 project you should read "OReilly ActionScript 3.0 Beginners Guide" this is a very good book and will help you a lot, I did fix your example and it compiles and runs has you want to so check it out, even thought it work it should not be implement this way...
    Attached Files Attached Files

  • #3
    Regular Coder
    Join Date
    May 2006
    Posts
    128
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Vudrok View Post
    Okay there is an issue about the approach you are trying to implement, I very hardly advice you not to use as3 this way, if you want to create a proper as3 project you should read "OReilly ActionScript 3.0 Beginners Guide" this is a very good book and will help you a lot, I did fix your example and it compiles and runs has you want to so check it out, even thought it work it should not be implement this way...
    Thanks for looking at my files and amending the code. I totally agree with you that it seems doubtful to use AS3 in this way. I have just started learning AS3. Although it shares the same name with AS2 the logic of how it works, although similar, is vastly different.

    To be honest, I can't quite grasp the logic behind AS3 so as to design intelligent solutions yet. I've been using O'Reilly's Learning Actionscript 3.0 by Shupe and Rosser. Although, it is a good book, to go through the basics of AS3, it hardly gives you any solution as to how to tackle everyday practical problems faced by designers - I use Flash to design a lot of websites.

    For example, the book goes to great length in explaining the for loop (which I use to attach multiple movie clips which represent the different pages of a Flash website) but doesn't give any clue as to how to add children to the stage for movie clips created in the Flash interface which contains custom graphics.

    Another example is where you are shown how to target movie clips from the stage but nowhere are you taught how to communicate between movie clips via the stage.

    I wish Sham Bhangal who wrote Actionscript For Flash MX 2004 would write an equivalent for AS3. Sham's book was targeted at designers and focused on practical solutions as opposed to just going through the theory.

    OK...enough of my rant. Can you tell me, the book you recommended, is it different to the one I mentioned?
    Last edited by forgottenglory; 07-23-2009 at 03:32 PM.


  •  

    Posting Permissions

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