...

View Full Version : Targeting Movie Clips in AS3.0



forgottenglory
07-15-2009, 10:04 AM
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

Vudrok
07-22-2009, 08:26 PM
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...

forgottenglory
07-23-2009, 04:30 PM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum