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 July 17th, 2003, 04:22 AM
josepm josepm is offline
josepm.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Catalonia
Posts: 17 josepm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 19 sec
Reputation Power: 0
Send a message via ICQ to josepm Send a message via MSN to josepm Send a message via Yahoo to josepm
Question Button with a dinamic text inside?

Hello,

I would like to create a button with a dinamic text inside, just to have a generic button object, with text effect on mouse over and out, that I can have different instances with different text.

I have tried it, but don't work.

It's that possible?

Must I create always new button objects for every different text button with the same effects on mouse over and out?

Thanks!

Reply With Quote
  #2  
Old July 18th, 2003, 04:52 AM
dkkz dkkz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 50 dkkz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
hmm... you could try using external text file. be sure to give your dynamic text a variable name.

Reply With Quote
  #3  
Old January 15th, 2004, 09:47 AM
josepm josepm is offline
josepm.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Catalonia
Posts: 17 josepm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 19 sec
Reputation Power: 0
Send a message via ICQ to josepm Send a message via MSN to josepm Send a message via Yahoo to josepm
Thumbs up solution! :)

well, i have found myself a solution to make this:

to make this we must create a button with a movie.
(we must define its behaviour with as, rollover and so on)

Then we can define variables for text values, or define them from the _root.

By this way we can have a unique button object width different instantiated texts.


Reply With Quote
  #4  
Old January 16th, 2004, 02:22 AM
Red|5 Red|5 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Gdansk
Posts: 10 Red|5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 49 sec
Reputation Power: 0
Create a movie clip.

Inside, on layer 1 place a dynamic text field and give it a variable name (ex. textField)

On layer 2 (below layer 1) create a button. Can be blank with just a hit state.
Script the button to your needs.


In the first frame of _root write a function:

Code:
function buttName(name){
     textField = name;
}


Place the movie clip you created earlier, on the stage and give it this script:

Code:
onClipEvent(load){
     _root.buttName("nameOfThisButton");
}


Test your movie.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Button with a dinamic text inside?


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 1 hosted by Hostway