Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2004, 11:53 PM
marhadrian marhadrian is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 marhadrian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
go to action script

Here's what I'm trying to do. I've got a litle movie that shows a kid swing a hammer. At the end of the movie I want users to be able to click some text that says "click me" to make him swing the hammer again. I type the text, then turn it into a symbol (or a button?) - right? Then add the script - but how? Help!!
Thanks..

Reply With Quote
  #2  
Old February 4th, 2004, 12:52 AM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Code:
//on a button-instancename  myBtn
myBtn.onRelease=function(){
_root.yourmovieclinamehere.gotoAndPlay("the 1st frame in the clip");
};
//this "as" doesnt go on the button
//it goes on a layer called actions

you make a buttonout of it ofcourse..
three symbol choices ..movieClip,Button,graphic..let me know if you need more help !
cheers

Reply With Quote
  #3  
Old February 4th, 2004, 06:59 AM
marhadrian marhadrian is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 marhadrian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, I'll try that. Is "myBtn" the name I assign to the button? And what about "yourmovieclinamehere" ? BTW - I'm using Flash MX.
Marc - from Texas

Reply With Quote
  #4  
Old February 4th, 2004, 12:43 PM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
yes .instance names..you can use the same btn over and over again if your using instancenames and using the action script i just showed you.. and for the movie clip ..create your object on the stage in the first frame afte your finshed select all the object press key board f8 convert to a movie clip ..now inside that "MC"<_movie clip you have another time line work on that time line for you animation ....then go back out to the stage ,that is the _root time line ..and then you can make your button to control the mc animation ..
also look at this site for resources http:..www.flashkit.com//good tutorials for beginners
http://www.kirupa.com//good site as well s
with these 2 sites i think you will have a much better time learning flash ...
than coming to the forums ..download some examples and look at how they are made and loo at the "AS"=actionscript ..


also this will explain alot for you >
http://www.macromedia.com/support/f...ipt_dictionary/

and dont forget the help files in flash which are god-sent ..
cheers

Reply With Quote
  #5  
Old February 4th, 2004, 01:02 PM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
also see the attached file i made a very easy tutorial for you to follow ..
a Btn& a MC animation .
cheers
Attached Files
File Type: zip new folder.zip (120.5 KB, 68 views)
__________________
please see my site http://www.f-web.net
also tutorials coming soon..
I am for hire .timo@f-web.net

Reply With Quote
  #6  
Old February 4th, 2004, 06:39 PM
marhadrian marhadrian is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 marhadrian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wow, thanks for your help - however - the Flash project file contained in the ZIP gave me an error - "unexpected file format". I really wanted to look at how it was set up. Its just what I need! Do you know why I'm getting the error??

Marc

Reply With Quote
  #7  
Old February 4th, 2004, 07:14 PM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
because your using a mac or you dont have mx 2004 ..
let me know

Reply With Quote
  #8  
Old February 4th, 2004, 11:03 PM
marhadrian marhadrian is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 4 marhadrian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No Mac - Windows XP. Flash MX 6.0 r25. Is that the problem? Do You have a more recent version? Can we make it work?
-cheers to ya too

Reply With Quote
  #9  
Old February 5th, 2004, 12:04 AM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Quote:
or you dont have mx 2004 ..

yes you are not using mx 2004 ..sorry m8
cheers

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > go to action script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway