Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 21st, 2013, 09:13 AM
ulfie81 ulfie81 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 ulfie81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 9 sec
Reputation Power: 0
Flash CS5 - Need help... motion tween buttons

Hey people!

I started creating my site but my poor flash skills stopped me
My problem: I have created the initial part with some motion tweens that moves around som objects in the scene, when these have settled in their place I want these to work as buttons but I dont know how to do that. So if anyone could help me I will be happy. Both with turning them into buttons but also linking them to the next page of the site.

I have used actionscript 2.0 in cs5

so please guys, any help is greatly appreciated

brgds

Reply With Quote
  #2  
Old March 1st, 2013, 02:29 PM
Frank Grimes's Avatar
Frank Grimes Frank Grimes is offline
Plays with fire
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Outside looking in
Posts: 894 Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level)Frank Grimes User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 4 h 40 m 15 sec
Reputation Power: 95
What tween engine are you using?

I'm a bit rusty with Flash's built in engine built by Adobe, but you're looking for an onFinished event to fire when the tween stops. When it stops, add a new listener for a click event.

Kind of like this:

Code:
myTween.addEventListener(TweenEvent.COMPLETE, makebutton);

function makebutton(e:TweenEvent):void {
   myTween.removeEventListener(TweenEvent.COMPLETE, makebutton);
   myObject.addEventListener(MouseEvent.CLICK, myClickReaction);
}

function myClickReaction(e:Event):void {
  // button code
}
__________________
“Be ashamed to die until you have won some victory for humanity.” -- Horace Mann

"...all men are created equal." -- US Declaration of Independence

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash CS5 - Need help... motion tween buttons

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap