Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-30-2009, 08:05 PM   #1
madcat
Trying People
 
madcat's Avatar
 
Join Date: Mar 2002
Location: Atlanta
Posts: 269
Default Is it possible to turn a variables value into movie clip?

Basically, I'm just looking for a yes or no.

If I have a dynamic textfield that rotates through the numbers 1 - 10, and I want smooth, tweened transitions between the numbers, would I first have to turn each number into a movieclip and tween, or can I turn a number sitting into a variable to a movieclip and then tween based on that text or number?

Maybe I should just think of variables as things to store information.
__________________
http://www.myspace.com/qwl
madcat is offline   Reply With Quote
Old 01-30-2009, 08:08 PM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

MovieClip with the Tween idea would work well...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-30-2009, 08:19 PM   #3
madcat
Trying People
 
madcat's Avatar
 
Join Date: Mar 2002
Location: Atlanta
Posts: 269
Default

Right, I guess I was just thinking if you had to count from 1 to 1,000 and tween through each number, do you have to make 1,000 movie clips and then apply a tween to each...

...or is there a way to dynamically create the number (like you can dynamically create shapes) and then turn those into movie clips and do your transitions.

Just trying to get a grasp for terms.
__________________
http://www.myspace.com/qwl
madcat is offline   Reply With Quote
Old 01-30-2009, 08:26 PM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Just on top of my head, I'd create the numbers into the movieClips and tween them...

How fast is the transition happening between the numbers??? If it is happening fast enough, you could just have Flash write '1', '2', '3' and so on into the same textField and be done with it???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-30-2009, 08:32 PM   #5
madcat
Trying People
 
madcat's Avatar
 
Join Date: Mar 2002
Location: Atlanta
Posts: 269
Default

Quote:
Just on top of my head, I'd create the numbers into the movieClips and tween them...
You'd create them dynamically? I guess that's pretty much what I mean, how can I dynamically generate the numbers 1 - 1,000 and turn each one into a movie clip at the same time. That way, I can tween each movie clip in any manner I need...

I can do that with sprites for example, but not with numbers.

This is not a real-world project, this is just so I understand how things work. As you can see I'm still a bit confused on the basics
__________________
http://www.myspace.com/qwl
madcat is offline   Reply With Quote
Old 01-30-2009, 09:10 PM   #6
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

What I was saying was...

Create 0 to 1 in the library as movieClip...
Add them to the stage according to the number you need to create, 0 for example...
Add the next one, 1, to the stage, but make it to be alpha 0...
Tween the '0' from 1 to 0 on alpha to disappear, and have '1' go from 0 to 1 to appear on the stage...
Once '0' become alpha 0, remove it from the stage...
Loop through that till wherever your ending number is...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-30-2009, 09:14 PM   #7
madcat
Trying People
 
madcat's Avatar
 
Join Date: Mar 2002
Location: Atlanta
Posts: 269
Default

I think I know what you mean, I'll look at it this weekend --

Thanks much for your help!
__________________
http://www.myspace.com/qwl
madcat is offline   Reply With Quote
Old 01-30-2009, 09:21 PM   #8
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

You're welcome...

BTW, I am not Japanese...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-30-2009, 09:24 PM   #9
madcat
Trying People
 
madcat's Avatar
 
Join Date: Mar 2002
Location: Atlanta
Posts: 269
Default

lol, it's kind of like a catch-all
__________________
http://www.myspace.com/qwl
madcat is offline   Reply With Quote
Old 01-31-2009, 06:35 PM   #10
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Well... That definitely is not a catch-all... You are missing Korean and Klingon...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Reply


Thread Tools
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicating a movie clip several times 2UseLess2 ActionScript 2.0 49 03-11-2008 09:36 AM
Movie Clip Parent Management dannyst ActionScript 2.0 3 07-27-2007 05:44 PM
Movie Clip Navigation Problems Quickasult ActionScript 1.0 (and below) 0 07-22-2007 06:00 PM
Drawing to a movie clip or within a movie clip pfwd ActionScript 2.0 5 07-04-2007 04:16 PM
Loading images in different frames.. nchagial ActionScript 2.0 22 12-21-2005 08:06 AM


All times are GMT. The time now is 11:14 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.