| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
Is this possible?
I made and animation using a nice tutorial on this site (thx for that ActionScript Code:
And also I'd like to make it play at random intervalls, it's for a website that's why I'm using script, to keep down the file size. thx ![]() Last edited by CyanBlue; 01-26-2005 at 12:06 PM.. Reason: AS tag is applied... |
|
|
|
|
|
#2 |
|
Registered User
|
I did some research and installed Extension Manager for this:
MovieClip.tween() command, these are the properties: my_mc.tween(property, pEnd, seconds, animType, delay, callback, extra1, extra2) So I tried this: ActionScript Code:
but the graphic in the movieclip still isnt moving, although I don't get any errors anyone ? ![]() Last edited by CyanBlue; 01-26-2005 at 12:06 PM.. Reason: AS tag is applied... |
|
|
|
|
|
|
|
|
#3 |
|
-->
Join Date: Sep 2004
Location: Newport Beach, CA
Posts: 346
|
you are on the right track, you just have to have a way to dynamically assign your _y position "variant"...
this will make things ease in... not the smoothese, but it should show you the basic concept... ActionScript Code:
post again if you dont understand or if its not what you are looking for... cheers. j |
|
|
|
|
|
#4 |
|
-->
Join Date: Sep 2004
Location: Newport Beach, CA
Posts: 346
|
this:
ActionScript Code:
should be written as: ActionScript Code:
check if that works...using the tween function (what you are doing above) is an excellent way to do what you are wanting... cheers. j |
|
|
|
|
|
#5 |
|
Registered User
|
thx both!
i'm still not getting it to work though ![]() trying a lot, not getting error, but it's just not moving ![]() wtf ![]() maybe there is something wrong in my structure? I got an unnamed mc in the _root in that mc, i've got the movieclip I want to move, it's called "mc1" and in "mc1" there's a graphic maybe this helps ? Last edited by nfms; 01-26-2005 at 10:52 AM.. |
|
|
|
|
|
#6 |
|
-->
Join Date: Sep 2004
Location: Newport Beach, CA
Posts: 346
|
where are you placing this code... the way it is currently targeted, it need to be in a frame on the main (_root) timeline...
cheers. j |
|
|
|
|
|
#7 |
|
Registered User
|
I kinda got it to work by putting this in the root:
ActionScript Code:
I can't get it to move back in it's orignal place with this, I tried some stuff, like making the "i" negative, but as you can see, I'm not that good with scripting yet ![]() I tried by adding this: ActionScript Code:
Last edited by nfms; 01-26-2005 at 11:25 AM.. |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jan 2005
Posts: 158
|
try putting this on the timeline where you want it to animate
ActionScript Code:
ps only works if timeline is one frame long |
|
|
|
|
|
#9 | |
|
Registered User
|
Quote:
![]() gonna try to reverse it now argh, how do I do that? create a new distance var? or use the same, and switch the + and -'s ? ;p I added this: ActionScript Code:
but I get this error: 'left side of the assignment opperator must be a value or property' ![]() Last edited by nfms; 01-26-2005 at 11:47 AM.. |
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jan 2005
Posts: 158
|
when it goes up (oo-er) do you want it to start fast and slow down or start slow and speed up?
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|