This is a discussion on "Tween.onMotionFinished = function()" within the Flash & Multimedia Forum section. This forum, and the thread "Tween.onMotionFinished = function() are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Tween.onMotionFinished = function()
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Tween.onMotionFinished = function()
Hello..
Ive got some probs with the onMotionFinished and I really can't get why it does as it does. let me describe. Ive got 2 functions(lets call em A and B) with a Tween declared in the B. ah, I'll show you instead. function duck() { myTween.onMotionFinished = function(){ <alot of Code...> } } function ape() { var myTween:Tween(....); } But the code in the motionfunction never runs :O Ive tried with _root.myTween. :S Got any ideas? Sorry for my bad explanation and english... =O Thanks. FroXie |
|
|
|
#2
|
|||
|
|||
|
Re: Tween.onMotionFinished = function()
whats the code you left out?
|
|
#3
|
|||
|
|||
|
Re: Tween.onMotionFinished = function()
I don't think that code does matter? =O Ive tried to change some stuff in there too. The code inbetween does work fine though.. =) Got any idea?
how do I reach the myTween from a function from another function? =S And I can't figure out how to solve it in any other way =/ Thanks. |
|
#4
|
|||
|
|||
|
Re: Tween.onMotionFinished = function()
the code would matter if you used the word "this" to refer to your objects i had that prblem. if u ues "this" in side and onmotionfinished, it would make "this" refer to the tween as opposed to what ever MC the code is inside. make sure ur not having that problem
if it DOES turn out to be the problem, ull have to use the universal path that starts w/ _root. |
|
#5
|
|||
|
|||
|
Re: Tween.onMotionFinished = function()
Ah, you've got a point there. Though thats not the problem. Tried diffrent stuff in the onmotion and it doesnt make any diffrence. So it must besomething with the onMotionFinished function? I just can't figure out what =S I've tried diffrent path's
EDIT: myTween.onMotionFinished() <-- Problem should be here. It never executes the code in the function :S Last edited by FroXie; Feb 6th, 2007 at 19:29. Reason: .. |
|
#6
|
|||
|
|||
|
Re: Tween.onMotionFinished = function()
sorry but i really cant help you any more w/o seeing the actuall code
|
|
#7
|
|||
|
|||
|
Re: Tween.onMotionFinished = function()
function duck() {
myTween.onMotionFinished = function(){ _root.myFunction(); } } function ape() { var myTween:Tween(....); } function myFunction() { trace("This **** is workin' eh? =)"); } Just something like that =P The problem really happends before. Its something wrong with the onMotion function. =O Thanks for the help though =) |
![]() |
| Tags |
| function, onmotionfinished, tween |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| png tween animation issue | deluxmilkman | Flash & Multimedia Forum | 1 | Dec 25th, 2007 17:14 |
| Is there a way to Tween kerning? | griffonwing | Flash & Multimedia Forum | 3 | Jun 13th, 2007 01:53 |
| Garbled Shape Tween Text | 574839507348250 | Flash & Multimedia Forum | 0 | Feb 10th, 2007 03:11 |
| Sequntial Tween- WHY WONT IT WORK?? | joe3dge | Flash & Multimedia Forum | 3 | Feb 6th, 2007 23:27 |
| image-tween | mosesus | Flash & Multimedia Forum | 3 | Oct 2nd, 2006 13:24 |