To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-07-2007, 08:14 AM   #1
addy121
Junior Member
 
Join Date: Jul 2007
Posts: 3
Play Symbol in a Symbol

hey im new to makign games in flash, and have been trying to do this for hours but its bugging me really abd and looked everywhere.

basically im making a game and a man has a gun wich he can shoot with, i have 3 symbols all movieclips embedded in one another. like this

Man > Hand > Weapon

but i got the weapon to be animated when he shoots, ive tried everything and dont know how to animate just the weapon in the Hand in its currerntly location, i can do it via a fixed point using the code below;

attachMovie("deagle", "deagle", 4, {_x:50, _y:50});

that will play the animation everytime i click, but only in a fixed location, where i already have the hand moving on an axis, all i really need to know is how to run an animation thats embedded in multiple symbols.

thx alot andy
addy121 is offline   Reply With Quote
Old 07-07-2007, 08:40 AM   #2
addy121
Junior Member
 
Join Date: Jul 2007
Posts: 3
problem solved movieclip1.movieclip2.movieclip3.play(); works, just incase anyone else has this problem.
addy121 is offline   Reply With Quote
Old 07-09-2007, 02:16 PM   #3
addy121
Junior Member
 
Join Date: Jul 2007
Posts: 3
i got a new problem now, say deagle is built up like this man.hand.deagle, and the deagle moves around the screen via rotation of the hand. how would i get the coordinates of the deagle when it moves, becuase its where i want to base the bullet shot from. ive tried man.hand.deagle._x & ._y but it always returns the same coorindates even tho the deagle has moved on the screen, anyone got any ideas im new to this and want to learn .

thx alot - andy
addy121 is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash Newbies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 -4. The time now is 07:05 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.