Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-15-2009, 09:04 AM   PM User | #1
forgottenglory
Regular Coder

 
Join Date: May 2006
Posts: 128
Thanks: 3
Thanked 0 Times in 0 Posts
forgottenglory is an unknown quantity at this point
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
File Type: zip as3example.zip (6.3 KB, 219 views)
forgottenglory is offline   Reply With Quote
Old 07-22-2009, 07:26 PM   PM User | #2
Vudrok
New to the CF scene

 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Vudrok is an unknown quantity at this point
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
File Type: zip as3example_fixed.zip (6.1 KB, 491 views)
Vudrok is offline   Reply With Quote
Old 07-23-2009, 03:30 PM   PM User | #3
forgottenglory
Regular Coder

 
Join Date: May 2006
Posts: 128
Thanks: 3
Thanked 0 Times in 0 Posts
forgottenglory is an unknown quantity at this point
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..
forgottenglory is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:41 PM.


Advertisement
Log in to turn off these ads.