Re: [flexcoders] Tween Class buggy?

2008-02-08 Thread Giles Roadnight
A parallel effect might have worked. In the end I just wrote my own Tween
class.

No one else has had trouble with the Tween class?

On Feb 7, 2008 2:29 PM, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Thursday 07 Feb 2008, Giles Roadnight wrote:
  For all of the effects I am using a Tween class. I decided to use a
  tween as I need to move and resize the canvas that slides out.

 Would a Parellel effect not work as well ?

 --
 Tom Chiverton
 Helping to conveniently maintain B2C services
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






-- 
Giles Roadnight
http://giles.roadnight.name


[flexcoders] Tween Class buggy?

2008-02-07 Thread Giles Roadnight
Hi All

I'm building a slide out menu.

The requirement is when you mouse over a button it expands
horizontally with a label in it. When you then click it it expands
down with a form inside. If you don't click and mouse out it goes back
to it's initial size.

On the whole this works fine except sometimes when rolling over the
button quickly it doesn't slide all the way back in.

For all of the effects I am using a Tween class. I decided to use a
tween as I need to move and resize the canvas that slides out. This is
because it must expand out to the left so I need to change the x value
to keep the right bound of the button in the same places.

Sometimes it seems the tween will issue call 1 onTweenUpdate call and
then stop with no onTweenEnd call.

I use 1 variable to keep track of all these tweens so before starting
a new tween I can stop the old ones.
I only get problems when re-using this tween variable (never on the
first tween) so I think it must be something to do with the way I stop
the previous tween.

I use this function when I am about to call a new tween:

private function cleanTweens(callLaterFunction:Function):Boolean
{
if(tweenEffect)
{
tweenEffect.stop();
tweenEffect = null;

callLater(callLaterFunction);

return true;
}

return false;
}

and call it like this:
private function onClick(e:Event = null):void
{   
if(cleanTweens(onClick))return;
tweenEffect = new
Tween(_horizontalCanvas,_horizontalCanvas.width,expandWidth,effectDuration);
tweenEffect.easingFunction = _easeOut
}

Is there anything else I should be doing before I start a new Tween?

Any suggestions why this might be happening?

Thanks

Giles.



Re: [flexcoders] Tween Class buggy?

2008-02-07 Thread Tom Chiverton
On Thursday 07 Feb 2008, Giles Roadnight wrote:
 For all of the effects I am using a Tween class. I decided to use a
 tween as I need to move and resize the canvas that slides out. 

Would a Parellel effect not work as well ?

-- 
Tom Chiverton
Helping to conveniently maintain B2C services
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/