Tween.onMotionFinished = function()

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 5th, 2007, 19:01
New Member
Join Date: Feb 2007
Location: home
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 6th, 2007, 00:44
Junior Member
Join Date: Jan 2007
Location: Michigan
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Tween.onMotionFinished = function()

whats the code you left out?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 6th, 2007, 16:07
New Member
Join Date: Feb 2007
Location: home
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Tween.onMotionFinished = function()

Quote:
Originally Posted by joe3dge View Post
whats the code you left out?
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 6th, 2007, 18:51
Junior Member
Join Date: Jan 2007
Location: Michigan
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 6th, 2007, 19:27
New Member
Join Date: Feb 2007
Location: home
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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: ..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 6th, 2007, 19:31
Junior Member
Join Date: Jan 2007
Location: Michigan
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Tween.onMotionFinished = function()

sorry but i really cant help you any more w/o seeing the actuall code
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 6th, 2007, 20:13
New Member
Join Date: Feb 2007
Location: home
Age: 19
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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 =)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
function, onmotionfinished, tween

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved