weimingtom / tweener Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/tweener
Automatically exported from code.google.com/p/tweener
These folders will probably be changed soon to a more SVN-friendly scheme. Here's the description for the main SVN folders: /as2_fl7 : Tweener source classes, Actionscript 2 version, *without* advanced features such as filters. Must be used on AS2 projects (when targeting Flash Player 7+, and Flash Lite Player 2+). /as2 : Tweener source classes, Actionscript 2 version. Must be used on AS2 projects (when targeting Flash Player 8+). /as3 : Tweener source classes, Actionscript 3 version. Must be used on AS3 projects (when targeting Flash Player 9+, including when using Flex). /as3_swc : Same as /as3, but in SWC form. /branches : Other code branches, for experiment and test purposes. They're not guaranteed to work, so nobody should usually download them. /docs : Documentation, in various shapes and forms (HTML, Flash IDE, Help Toc, etc). /examples : Example files with source. For more information on which version to download, please visit: http://code.google.com/p/tweener/wiki/WhichVersionToDownload
[Flash CS3 IDE & external class, strict mode on & off]
Color transformation with ColorShortcuts throws an error:
ReferenceError: Error #1069: Property ra not found on flash.geom.ColorTransform
and there is no
default value.
at caurina.transitions.properties::ColorShortcuts$/_colorTransform_splitter()
at caurina.transitions::Tweener$/addTween()
After commenting out legacy color support in this splitter error does not
occur. I think it's time to
get rid of this legacy support anyway. Cheers!
Original issue reported on code.google.com by [email protected]
on 8 Nov 2007 at 3:11
In case of a defect report, please use this form for *VERIFIED* bugs only.
If you're unsure whether this is a defect or not, or you're unsure you're
using the right syntax, use the mailing list first to ask for advice or to
check if you're doing anything wrong.
Q. What is the expected outcome? What happens instead?
A. movie should be exported without error, but an error message
"Tweener.as, Line 35 The class or interface
'caurina.transitions.Equations' could not be loaded." appeared instead.
Q. What code will reproduce the problem?
Q. What version of the class are you using, and under which development
environment (IDE version, compiler, etc)?
I'm using the flash CS3 Flash 8 version. I've downloaded the sample files
here and try to export the movie without changing anything, but the same
error happened too.
Please provide any additional information below. Also, please attach
*small*, sample files with minimum functionality to reproduce the problem
if possible.
Original issue reported on code.google.com by vteck0562
on 1 Nov 2008 at 4:36
Attachments:
This is an enhancement request. In many cases I have seen the need
to "finsihAllTweens()" so all objects are set to the end state of each
animation. This is usually needed based on user activity. The user may
click an action while something is animating and in many use cases I can
see a need to have all or select tweens to "jump" to their end state
before starting the next set of tweens. Otherwise some tweens may conflict
with the new tweens and cause undesireable results.
The "removeAllTweens" is one workaround but this method leaves partially
completed tweens which require considerable effort to manually reset.
Original issue reported on code.google.com by [email protected]
on 26 Sep 2008 at 3:12
What steps will reproduce the problem?
1. set the compilter option "strict" to true on the ide or at the command
line compiler
2. include any Tweener usage, such as Tweener.addTween
What is the expected output? What do you see instead?
The compiler throws quite a lot of warnings. Most have to do with type
declaration (missing returns... implicit coercions).
A few have to do with using "delete" to free memory (better set the value
to "null" on as3).
I am attaching the compiler warnings.
Original issue reported on code.google.com by debert
on 2 Mar 2007 at 3:18
Attachments:
Tweening any special property seems to throw the following error:
## [Tweener] Error: The property 'XXXX' doesn't seem to be a normal object
property of [object Object] or a registered special property.
I've tried with a few (_scale, _color, etc...)... I checked the SVN log,
and it seems to be since version 1.31.66 when SpecialPropertiesDefault.as
was deleted.
Cheers and thanks
Original issue reported on code.google.com by [email protected]
on 26 Nov 2007 at 12:13
To use color tranform in AS3 you must pass a colorTransform Object in the
tweener object
//------------
package {
//> Import Classes
//-- -- -- -- -- -- -- -- -- -- --
import flash.geom.ColorTransform;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.MouseEvent;
import caurina.transitions.Tweener;
public class ColorTransformTest extends Sprite{
//> Private Properties
//-- -- -- -- -- -- -- -- -- -- --
private var circle : Sprite;
private var ct : ColorTransform;
//> Public Properties
//-- -- -- -- -- -- -- -- -- -- --
//> Constructor
//-- -- -- -- -- -- -- -- -- -- --
public function ColorTransformTest() {
circle = new Sprite();
circle.x = stage.stageWidth/2;
circle.y = stage.stageHeight/2;
circle.graphics.beginFill(0x000000);
circle.graphics.drawCircle(0,0,150);
circle.graphics.endFill();
addChild(circle);
ct = circle.transform.colorTransform;
trace(ct);
addEventListener(MouseEvent.MOUSE_UP, changeColor)
}
//> Private Methods
//-- -- -- -- -- -- -- -- -- -- --
private function changeColor(e:MouseEvent) : void {
var newColor : uint = Math.random() * 0xFFFFFF;
ct.color = newColor;
trace(ct);
Tweener.addTween(circle, {_colorTransform:ct, time:1,
transition:"easeOutExpo"});
}
//> Public Methods
//-- -- -- -- -- -- -- -- -- -- --
}
}
//-------------
also, You must edit caurina.transitions.SpecialPropertiesDefault.as
//--
//
--------------------------------------------------------------------------------
--------------------------------------------------
// _colorTransform
/**
* Splits the _colorTransform parameter into specific color variables
*
* @param p_value Number The original _colorTransform value
* @return Array An array containing the .name and .value of all
new properties
*/
public static function _colorTransform_splitter (p_value:*):Array {
var nArray:Array = new Array();
if (p_value == null) {
// No parameter passed, so just resets the color
nArray.push({name:"_color_ra", value:1});
nArray.push({name:"_color_rb", value:0});
nArray.push({name:"_color_ga", value:1});
nArray.push({name:"_color_gb", value:0});
nArray.push({name:"_color_ba", value:1});
nArray.push({name:"_color_bb", value:0});
} else {
// A color tinting is passed, so converts it to the object values
if (p_value.redMultiplier != undefined) nArray.push({name:"_color_ra",
value:p_value.redMultiplier});
if (p_value.redOffset != undefined) nArray.push({name:"_color_rb",
value:p_value.redOffset});
if (p_value.blueMultiplier != undefined) nArray.push({name:"_color_ba",
value:p_value.blueMultiplier});
if (p_value.blueOffset != undefined) nArray.push({name:"_color_bb",
value:p_value.blueOffset});
if (p_value.greenMultiplier != undefined)
nArray.push({name:"_color_ga", value:p_value.greenMultiplier});
if (p_value.greenOffset != undefined) nArray.push({name:"_color_gb",
value:p_value.greenOffset});
if (p_value.alphaMultiplier != undefined)
nArray.push({name:"_color_aa", value:p_value.alphaMultiplier});
if (p_value.alphaOffset != undefined) nArray.push({name:"_color_ab",
value:p_value.alphaOffset});
/*
if (p_value.ra != undefined) nArray.push({name:"_color_ra",
value:p_value.ra});
if (p_value.rb != undefined) nArray.push({name:"_color_rb",
value:p_value.rb});
if (p_value.ga != undefined) nArray.push({name:"_color_ba",
value:p_value.ba});
if (p_value.gb != undefined) nArray.push({name:"_color_bb",
value:p_value.bb});
if (p_value.ba != undefined) nArray.push({name:"_color_ga",
value:p_value.ga});
if (p_value.bb != undefined) nArray.push({name:"_color_gb",
value:p_value.gb});
if (p_value.aa != undefined) nArray.push({name:"_color_aa",
value:p_value.aa});
if (p_value.ab != undefined) nArray.push({name:"_color_ab",
value:p_value.ab});
*/
}
return nArray;
}
//--
Original issue reported on code.google.com by [email protected]
on 22 Aug 2007 at 5:08
It seems, that the "_frame" property doesnt work for the 1.31.70 as2
Version (currently SVN Version). "_frame" works in the 1.26.62 as2 version.
example code
_x is executed, while _frame doesnt start.
Tweener.addTween(_mc_jar, {_frame:10, _x:100, time:2,
transition:"easeinoutquad"});
Original issue reported on code.google.com by [email protected]
on 21 Feb 2008 at 9:55
Hi guys,
I use your Tweener script with much pleasure. The simplicity is key.
But the design could be just a little better.
By making a Transitions class that holds all the type of transitions in
constants, you prevent typo's.
I would really like it if it would use the normal event system of as3.0. So
that I can add event listeners, like I always do.
Maybe it is an option to make a TweenerData class. Instead of giving the
addTween method just an object you pass it an TweenerData instance.
This instance you build earlier, and you just change the properties. This
also prevents typo's.
I am curious what you guys opinion is about this.
Greetings, Peter
Original issue reported on code.google.com by [email protected]
on 21 Sep 2007 at 8:57
key online documentation pages are missing:
http://hosted.zeh.com.br/tweener/docs/en-us/methods/specialproperties
Original issue reported on code.google.com by sekati
on 21 Nov 2007 at 4:37
There's a misspelling in Elastic equations methods inside the Equations.as
class
the p_params.p_period should be p_params.period on lines 510 and 562.
I got this from revision 362 files.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2007 at 7:19
The current architecture uses references to functions to handle "events" (
i.e. onComplete/onUpdate/etc.), however this should probably be changed to
emit true events. I have a working example if anybody would like to see
it, but this really should become the standard in the main library given
the current state of technology.
Original issue reported on code.google.com by [email protected]
on 25 Mar 2008 at 5:17
Basically, so that it will not get lost in the ML.
http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/2008-
May/000914.html (an option to suppress all but one handlers)
http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/2008-
May/000916.html (support for multiple values for multiple objects)
Original issue reported on code.google.com by [email protected]
on 27 May 2008 at 1:28
There are a number of easy to fix syntax issue in trunk/as3 (which have existed
for many
commits now). Most are simple fixes - nothing huge but definitely worth fixing
since they
produce warnings depending on your editor/parser of choice (FB/FDT/etc) which
make it more
difficult for those uber-anal to detect early warnings in true project code:
AuxFunctions.as [r5] lines:
67. for (var pName:String in p_object) totalProperties ++; // Local var never used (no likely fix?)
85. finalObject[prop] = currentObject[prop] // missing semicolon.
Equations.as [r5] lines:
37. trace ("Equations is a static class and should not be instantiated.") // missing semicolon
113,126,139,152,180,193,206,234,247,260,288,301,314,342...etc. (all easing functions): p_params:Object = null // local var never used.
Tweener.as [r5] lines:
92. public static function addTween (p_scopes:Object = null, p_parameters:Object =
null):Boolean { // local var never used.
729,759,821,834. } catch(e:Error) { // e is defined more than once.
850. public static function init(p_object:* = null):void { // p_object local var never used.
1058. var eventScope:Object = Boolean(pTweening.onErrorScope) ? pTweening.onErrorScope :
pTweening.scope; // local var eventScope never used.
Hopefully this is helpful and quick to get the errors out - or at least not too
annoying; just
wanted to do my part to make it strict editor friendly.
Original issue reported on code.google.com by sekati
on 18 Mar 2008 at 3:20
theres a public function to remove a teen by index and this is like the
most needed feature! how can u add several tweens on one object and remove
just one of them... currently you cant, you can only remove all!? When
addTween is called, why isnt the tweenIndex being returned instead of a
boolean?
Original issue reported on code.google.com by [email protected]
on 5 Dec 2007 at 3:34
When you scale a clip on RollOver, and bring it back to it's original size
on RollOut, as soon as you get close to an edge of the clip, it start to
"jump" like crazy... I wonder if there is a way to avoid that...? I saw in
forums that other people are having the same problem...
Thanks for your help.
Original issue reported on code.google.com by [email protected]
on 10 Feb 2008 at 3:51
Attachments:
What steps will reproduce the problem?
1. Create a class that uses tweener in flash 9 alpha from labs and publish
a flash 9 swf
2. Create an apollo app that uses a SWFLoader to load in said swf.
What is the expected output? What do you see instead?
Swf makes animation calls but animation doesn't happen
What version of the product are you using? On what operating system?
WinXP - Tweener 1.24.47
Please provide any additional information below.
Any ideas how to get this work?
Original issue reported on code.google.com by [email protected]
on 13 Apr 2007 at 9:58
simple get accessor for Tweener._engineExists, it's very usefull, add it in
there
Original issue reported on code.google.com by [email protected]
on 4 Oct 2007 at 10:14
Please report everything we need to know.
Can you tell me how to assign URL to a link?
Original issue reported on code.google.com by [email protected]
on 22 Dec 2008 at 1:30
Eae zeh blz, a algum tempo venho usado a tweener e percebi que se durante a
execucao de uma animacao, ao mesmo tempo alguma outra linha de as alterar
alguma propriedade do movieclip que esta sendo animado a tweener
simplesmente para de ser executada.
Original issue reported on code.google.com by gabrielcairesmar
on 5 Jul 2008 at 2:04
The filters bevel, dropShadow, glow, gradientGlow and gradientBevel use
the attribute knockout. For all of them - except gradientBevel - this
attribute is supported by Tweener, too.
For gradientBevel it's not documented and also doesn't work.
I really know it's not a big issue, but I populate Tweener via a "for (...
in ...)" and always have to explicitly exclude it.
Kind regards,
Uli
By the way: Tweener simply the best
Original issue reported on code.google.com by [email protected]
on 21 May 2008 at 10:04
What steps will reproduce the problem?
1. Tween an MC a large distance... couple thousand pixels maybe.
2.
3.
What is the expected output? What do you see instead?
Instead of smoothly tweening to the final destination, the clip slows
almost to a stop before reaching its target and then snaps into place.
What version of the product are you using? On what operating system?
AS2 version on Windows
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 May 2007 at 7:44
What steps will reproduce the problem?
1. create a tween
2. delete the target object (i.e. removeMovieClip or object =null)
3. start the tween
What is the expected output?
I expected the null target not to have it's tween applied.
What do you see instead?
The tween for the deleted object still runs.
more background on this issue:
http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/2007-March/000019
.html
This fix is a one-liner.
needed changes in lines 555 (as2 version) and 562 (as3).
cheers
Arthur
Original issue reported on code.google.com by debert
on 9 Mar 2007 at 3:33
Attachments:
Hi,
First I wanted to say that you guys did a great job !!! Thanks !
Until now I was using mc_tween.as, today I found this class and tried to
use it.
For now my problem was to tween the _alpha property of a movieclip with
inside a background and a textfield containing html.
I tried this :
Tweener.addTween(this.text_mc, {_alpha:0, time:5, transition:"linear"});
The background of the movieclip is tweening well but the text is not
tweening at all (the same way as standard flash scripting without using the
class).
Then I tried :
Tweener.addTween(this.text_mc, {_alpha:0,_blur_blurX:0, time:5,
transition:"linear"});
Now both the background and the textfield are tweening perfectly.
Could you please add somewhere in the class a parametre that would allow to
force the class to use a blur filter or another one (I didn't test with
other filter) to allow html textfields to be tweened on their _alpha property.
Thanks.
Alex
Original issue reported on code.google.com by [email protected]
on 13 Aug 2007 at 3:43
This is probably more a suggestion than anything. Shouldn't addTween return
a index? That way it's easier to call method for specific tween. Like for
instance remove a specific tween with removeTweenByIndex.
Thanks!
Original issue reported on code.google.com by [email protected]
on 12 Feb 2008 at 9:47
Hi,
I was wondering how come the tweenings are not working properly when you try to
use it inside an
"IF" condition...? (sorry for my bad english) Here is an extract of my code :
Thanks for your great help.
Stef
// ------------------------------------------
import caurina.transitions.Tweener;
setBackground = function () {
centre_y = Math.round(Stage.height/2);
if (_root.flag_panel == "true") {
Tweener.addTween(menuCentre, {_y:centre_y-200, time:0.4, transition:"easeInOutQuart"});
} else {
Tweener.addTween(menuCentre, {_y:centre_y-100, time:0.4, transition:"easeInOutQuart"});
}
};
Original issue reported on code.google.com by [email protected]
on 12 Mar 2008 at 12:06
Could you post some info on when the AS2 Stable (download) version of Tweener
will support
Filters and special properties (glow, brightness, etc)?
svn/trunk has clear bugs (last checkout _color was broken for example) so Im
hesitant to use this
on one of the large scale projects Ive got in progress but really wish you
could wiki some kind of
timeline for these core features for both AS2/AS3 builds - thanks so much and
keep up the good
work!
Original issue reported on code.google.com by sekati
on 2 Dec 2007 at 2:34
1046: Type was not found or was not a compile-time constant: TweenListObj.
Original issue reported on code.google.com by [email protected]
on 14 Feb 2008 at 1:06
Hi folks.
I've hack an implementation for the "inheritance" mechanism of tween
objects properties.
This thread started at
http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/2007-May/000074.h
tml
The idea is that a new property will be check when adding a tween, the
"base" property.
The "base" property can be an object or an array with object to extend.
Properties will be copied to the tween from left to right, meaning that
objects with higher indexes will overwrite previous objects.
For example if we have:
var obj1 : Object = { time:3, delay = 2, transition: "linear"};
var obj2 : Object = { time:null, delay = 4, _x: 20};
var final : Object = {_y= 30, base: [obj1, obj2]};
Tweener.addTween(someObj, final);
In this case, the final object will look like this:
final = {
_y: 30,
_x: 20,
delay: 4,
transition: "linear"
}
The base property can also be a single object, in which case:
var obj1 : Object = { time:3, delay = 2, transition: "linear"};
var final : Object = {_y= 30, base: obj1};
Tweener.addTween(someObj, final);
In this case, the final object will look like this:
final = {
_y: 30,
delay: 2,
time:3,
transition: "linear"
}
If an object with higher precedence has a property set to null, that
property will be removed from the composite object.
No objects are modified, but only a shallow copy is made.
Zeh: I've decided not to mangle with Tweener's code. Instead I moved the
inheritance to a function:
public static function makePropChain(p_obj : Object) : Object
This way this can be used in addCaller and addTween alike.
For me, it would make sense if it lived on the TweenListObj.
I've done some initial testings for as2 and as3, and it looks okay.
If you find this any issues, please let me know,
cheers
arthur
Original issue reported on code.google.com by debert
on 12 May 2007 at 10:37
Attachments:
What steps will reproduce the problem?
1. onComplete:functionname(someparameter)
2.
3.
What is the expected output? What do you see instead?
expect functionname to be called after tween
instead function is called with correct parameter but
well before the tween completes possible at start of tween.
What version of the product are you using? On what operating system?
actionscript3 version , windows vista pro
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 31 May 2007 at 2:03
In case of a defect report, please use this form for *VERIFIED* bugs only.
If you're unsure whether this is a defect or not, or you're unsure you're
using the right syntax, use the mailing list first to ask for advice or to
check if you're doing anything wrong.
Q. What is the expected outcome? What happens instead?
expected: alpha tween for appropriate number of time. When i say 2000 it
should tween for 2 seconds. or when i say 2 it shoud tween for two seconds,
however this only works when tweening from 0 to 100, but when tweening
back, from 100 to 0 it breaks.
Q. What code will reproduce the problem?
Tweener.addTween(theClipToTween_mc, {alpha:0, time:2});
Q. What version of the class are you using, and under which development
environment (IDE version, compiler, etc)?
Flash IDE, CS3 Prof.
Please provide any additional information below. Also, please attach
*small*, sample files with minimum functionality to reproduce the problem
if possible.
When tweening from 0 to 100, 2000 is equal to two seconds
but when tweening back from 100 to 0, 2000 does not equal two seconds, and
2 does not equal 2 seconds, so there must be wrong with the multiplication
factor in the time
see attached file for example
Original issue reported on code.google.com by sidney.dekoning
on 31 Jan 2008 at 4:18
Attachments:
What steps will reproduce the problem?
1. web_blue_mc.onEnterFrame= function () {
Tweener.addTween(web_blue_mc, { _alpha:100, delay:1, time:2,
transition:"linear"});
Tweener.addTween(web_blue_mc, { _yscale:150,delay:1, time:3,
transition:animationType});
Tweener.addTween(web_blue_mc, { _xscale:5000, delay:1, time:3,
transition:animationType});
2.
3.
What is the expected output? What do you see instead?
when I applied the delay the animation does not work, If I take out the
delay, It works fine.
What version of the product are you using? On what operating system?
flash 8 , windows vista.
Please provide any additional information below.
I am trying to do an animation with a delay on 1 second on each one , but
when I applied the delay , it does not work. please help
Original issue reported on code.google.com by [email protected]
on 9 May 2007 at 10:06
how do you specify elasticity now? in the properties object?
Original issue reported on code.google.com by [email protected]
on 13 Jul 2007 at 7:10
Using FDT3 with moderate warning/error checking there are a few unused
variables, syntax
warnings and such Ill try to document cleanly for you (non-critical but nice to
cleanup):
AuxFunctions.as
-------------
- Line 64: for (var pName:String in p_object) totalProperties ++; // pName
Local var never used:
no fix.
- Line 82 fix: finalObject[prop] = currentObject[prop]; // was missing semicolen
Equations.as
-------------
- Line 36: trace ("Equations is a static class and should not be
instantiated."); // was missing
semicolen
Tweener.as
-------------
- Line 64: trace ("Tweener is an static class and should not be
instantiated."); // was missing
semicolen
- Line 96: var i:Number, istr:Number; // local vars j:Number, jstr:String never
used
- Line 186: //var cTime:Number; // Local var cTime never used
- Line 271: var i:Number; // `j:Number` local var never used
- Line: 981: fmc.onEnterFrame = function():Void { // missing return type
Original issue reported on code.google.com by sekati
on 16 Nov 2007 at 1:06
I have a fever, and the only prescription is more cowbell.
(I'm just testing this)
Original issue reported on code.google.com by [email protected]
on 4 Jan 2007 at 4:12
ReferenceError: Error #1069: Property _saturation not found on
flash.display.Sprite and there is no
default value.
at com.caurina.transitions::Tweener$/getPropertyValue()
at com.caurina.transitions::Tweener$/updateTweenByIndex()
at com.caurina.transitions::Tweener$/updateTweens()
at com.caurina.transitions::Tweener$/onEnterFrame()
- Pose Flash 9.0.2 update I've encountered this runtime error, with
Tweener.addTween add
functions given Sprite's as the target.
Original issue reported on code.google.com by [email protected]
on 14 Feb 2008 at 11:58
Q. What is the expected outcome? What happens instead?
I am currently using Flash 8 AS2 and I downloaded the Tweener AS library
that is used in your photo stack example. I can gain access to your
library cause I can do trace(Tweener) and it returns [type function]...
which tells me it can see the new classes. However, I am getting an error
using this line of function code from your example:
function photoSlideOut(e:Event):void
That line fails. It fails do to not finding the Class or Interface for
Event. I don't know if this function is specifically for AS3 but its not
working for me. Can someone please help me. Thanks!
Original issue reported on code.google.com by [email protected]
on 5 Dec 2008 at 4:33
Attachments:
It would be very nice if you could specify an array as the value for a
property:
circle._alpha = 50;
Tweener.addTween(circle, {_alpha: [0, 100], time: 1});
This would tween circle._alpha from 0 to 100 ignoring the existing value.
Original issue reported on code.google.com by [email protected]
on 1 Aug 2007 at 1:17
Even adding an onComplete function to ensure the x property is set to a whole
value doesn't work.
Tweener.addTween(this, { x:10, time:.4, transition:'easeOutQuint',
onComplete:function(){this.x=10;
trace(x)} });
If instead of tweening, I simply set the x property to 10, no pixelation
occurs. I've also tried looping
through all of the sprite's children, and forcing the children x properties to
int. Hasn't worked.
Original issue reported on code.google.com by [email protected]
on 6 Nov 2008 at 8:35
using: Flash CS3, AS3.0, Mac PPC 10.4.10
When tweening dynamic textfield's alpha (from 1 to 0) that a textFormat with
mytextfield_txt.autoSize=TextFieldAutoSize.LEFT, was applied to - a thick
segment of the letters' bottom stays visible at the bottom of the textfield.
Not applying this TextFieldAutoSize in the textFormat resolves this issue.
please contact me for a sample if needed.
Original issue reported on code.google.com by [email protected]
on 28 Sep 2007 at 6:56
In case of a defect report, please use this form for *VERIFIED* bugs only.
If you're unsure whether this is a defect or not, or you're unsure you're
using the right syntax, use the mailing list first to ask for advice or to
check if you're doing anything wrong.
Q. What is the expected outcome? What happens instead?
The image should stay intact, the drop shadow becomes darker on each tween
until its solid black.
Q. What code will reproduce the problem?
// import tweener
import caurina.transitions.Tweener;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
// holds current url/link for current image
var curLink:String = '#';
// delay between slides
const TIMER_DELAY:int = 5000;
// fade time between slides
const FADE_TIME:int = 1;
// reference to the current slider container
var currentContainer:Sprite;
// index of the current slide
var intCurrentSlide:int = -1;
// total slides
var intSlideCount:int;
// timer for switching slides
var slideTimer:Timer;
// slides holder
var sprContainer1:Sprite;
var sprContainer2:Sprite;
// slides loader
var slideLoader:Loader;
// url to slideshow xml
var strXMLPath:String = "slideshow-data.xml";
// slideshow xml loader
var xmlLoader:URLLoader;
// slideshow xml
var xmlSlideshow:XML;
function init():void {
// create new urlloader for xml file
xmlLoader = new URLLoader();
// add listener for complete event
xmlLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
// load xml file
xmlLoader.load(new URLRequest(strXMLPath));
// create new timer with delay from constant
slideTimer = new Timer(TIMER_DELAY);
// add event listener for timer event
slideTimer.addEventListener(TimerEvent.TIMER, switchSlide);
// create 2 container sprite which will hold the slides and
// add them to the masked movieclip
sprContainer1 = new Sprite();
sprContainer2 = new Sprite();
mcSlideHolder.addChild(sprContainer1);
mcSlideHolder.addChild(sprContainer2);
// keep a reference of the container which is currently
// in the front
currentContainer = sprContainer2;
}
function onXMLLoadComplete(e:Event):void {
// create new xml with the received data
xmlSlideshow = new XML(e.target.data);
// get total slide count
intSlideCount = xmlSlideshow..image.length();
// switch the first slide without a delay
switchSlide(null);
}
function fadeSlideIn(e:Event):void {
/* var bmap:Bitmap = slideLoader.content as Bitmap;
bmap.smoothing = true;
bmap.width = 239;
bmap.height = 123;
bmap.scaleX = 1;
bmap.scaleY = 1;
currentContainer.addChild(bmap);*/
// add loaded slide from slide loader to the
// current container
currentContainer.addChild(slideLoader.content);
// clear preloader text
////mcInfo.lbl_loading.text = "";
// fade the current container in and start the slide timer
// when the tween is finished
Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME,
onComplete:function() { slideTimer.start(); }});
}
function switchSlide(e:Event):void {
// check, if the timer is running (needed for the
// very first switch of the slide)
if(slideTimer.running)
slideTimer.stop();
// check if we have any slides left and increment
// current slide index
if(intCurrentSlide + 1 < intSlideCount)
intCurrentSlide++;
// if not, start slideshow from beginning
else
intCurrentSlide = 0;
// check which container is currently in the front and
// assign currentContainer to the one that's in the back with
// the old slide
if(currentContainer == sprContainer2)
currentContainer = sprContainer1;
else
currentContainer = sprContainer2;
// hide the old slide
currentContainer.alpha = 0;
// bring the old slide to the front
mcSlideHolder.swapChildren(sprContainer2, sprContainer1);
// create a new loader for the slide
slideLoader = new Loader();
// add event listener when slide is loaded
slideLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
fadeSlideIn);
// add event listener for the progress
slideLoader.contentLoaderInfo.addEventListener
(ProgressEvent.PROGRESS, showProgress);
// load the next slide
slideLoader.load(new URLRequest(xmlSlideshow..image
[intCurrentSlide].@src));
// change current link
curLink = xmlSlideshow..image[intCurrentSlide].@link;
// add handler for click
mcSlideHolder.addEventListener(MouseEvent.CLICK, onMouseClick);
// show description of the next slide
////mcInfo.lbl_description.text = xmlSlideshow..image
[intCurrentSlide].@desc;
// show current slide and total slides
////mcInfo.lbl_count.text = (intCurrentSlide + 1) + " / " +
intSlideCount + " Slides";
}
function onMouseClick(e:MouseEvent):void
{
var request:URLRequest = new URLRequest(curLink);
navigateToURL(request, "_blank");
}
function showProgress(e:ProgressEvent):void {
// show percentage of the bytes loaded from the current slide
////mcInfo.lbl_loading.text = "Loading..." + Math.ceil
(e.bytesLoaded * 100 / e.bytesTotal) + "%";
}
// init slideshow
init();
Q. What version of the class are you using, and under which development
environment (IDE version, compiler, etc)?
- Tweener.as // AS3 1.31.74
Please provide any additional information below. Also, please attach
*small*, sample files with minimum functionality to reproduce the problem
if possible.
Original issue reported on code.google.com by [email protected]
on 23 Dec 2008 at 6:06
Would it be possible to distribute Tweener as an SWC to build against? This is
fairly easy to do with
Ant (assuming eclipse or standalone) and the free Flex3SDK and might have some
nice benefit in
terms of project clutter/versioning for people implementing the latest.
I do something similar on my API project - if you are interested in this
enhancement and want to
see the Ant targets which power it:
http://code.google.com/p/sekati/source/browse/trunk/build.xml
http://code.google.com/p/sekati/source/browse/trunk/build/build.properties
Best,
Jason
Original issue reported on code.google.com by sekati
on 18 Mar 2008 at 3:59
Please instead of using plain objects use casted VO's for the properties
throughout.
Original issue reported on code.google.com by [email protected]
on 19 Sep 2008 at 6:42
In case of a defect report, please use this form for *VERIFIED* bugs only.
If you're unsure whether this is a defect or not, or you're unsure you're
using the right syntax, use the mailing list first to ask for advice or to
check if you're doing anything wrong.
Q. What is the expected outcome? What happens instead?
When I download the latest AS3 zip file, it seems to handle _color
transitions properly, when using the code literally from the SVN repo, it
throws errors
Q. What code will reproduce the problem?
N/A
Q. What version of the class are you using, and under which development
environment (IDE version, compiler, etc)?
Please provide any additional information below. Also, please attach
*small*, sample files with minimum functionality to reproduce the problem
if possible.
Original issue reported on code.google.com by [email protected]
on 11 Dec 2007 at 9:15
when useFrames:true, time does not reflect number-of-frames as documentation
says.
if i say useFrames:true, time:7, it still takes 7 SECONDS to animate, not 7
frames.
Original issue reported on code.google.com by [email protected]
on 17 Oct 2007 at 10:17
The current code do not allow the onStart to change the starting value of
the tweened property.
To allow code such as:
// move a movieclip,
showUp = function() {
<movieclip>._x=100;
<movieclip>._visible=true;
};
<movieclip>._visible = false;
Tweener.addTween(<movieclip>, {_x:400, time:1, delay:4, onStart:showUp});
in tweenrer.as
Replace:
// First update
tProperty.valueStart = getPropertyValue (tScope, tProperty.name); if (k ==
0 && tTweening.onStart != undefined) {
try {
tTweening.onStart.apply(tScope, tTweening.onStartParams);
} catch(e:Error) {
//trace(e);
}
}
by:
// First update
if (k == 0 && tTweening.onStart != undefined) {
try {
tTweening.onStart.apply(tScope, tTweening.onStartParams);
} catch(e:Error) {
//trace(e);
}
}
tProperty.valueStart = getPropertyValue (tScope, tProperty.name);
Original issue reported on code.google.com by [email protected]
on 2 Mar 2007 at 6:24
In case of a defect report, please use this form for *VERIFIED* bugs only.
If you're unsure whether this is a defect or not, or you're unsure you're
using the right syntax, use the mailing list first to ask for advice or to
check if you're doing anything wrong.
Q. What is the expected outcome? What happens instead?
Q. What code will reproduce the problem?
Q. What version of the class are you using, and under which development
environment (IDE version, compiler, etc)?
Please provide any additional information below. Also, please attach
*small*, sample files with minimum functionality to reproduce the problem
if possible.
Original issue reported on code.google.com by [email protected]
on 18 Apr 2008 at 1:48
Implementation for scaling objects with one property instead of 2. Kept
convention of using an underscore for special properties. (_scale)
I am not too sure this is very useful. Tweener has such a clean syntax that
scaling both dimensions is very straight forward, but anyway I find my self
specifying both dimensions very often, so others might find it handy as well.
Attached code for as2 and as3.
Original issue reported on code.google.com by debert
on 13 May 2007 at 4:35
Hi is is minor bug,but when you use easeInBack, easeOutBack, easeInOutBack,
easeOutInBack,easeInBounce...I did not test every transitions it gives you
error:
1120: Access of undefined property easeOutInBack.
but when you write it like "easeoutback" is OK. Maybe samo const value have
to be change.
10x for best classes!!!!
Original issue reported on code.google.com by [email protected]
on 12 Apr 2008 at 11:58
First of all: Great Work !
I have a request which I think would make Tweener even better ...
It would be very useful if a tween would have an extra transformationPoint
parameter.
When you create a lot of displayobjects or textfields by code ( with their
transformation at 0,0 ) and applying a tweened scale for example, you have
to manually adjust the x and y values if you want it to scale from it's
center.
The same applies to rotations around a specific point ( eg around the
center of another displayobject or the center of the stage ).
Maybe with an x and y value like this :
mc.width = mc.height = 100;
Tweener.addTween(mc, {_scale:1.2, time:1, transformationPointX:50,
transformationPointY:50});
or a string like this :
Tweener.addTween(mc, {_scale:1.2, time:1, transformationPoint:"center"});
If implemented in Tweener, a greater form of creativity would be possible,
besides easier coding.
Regards,
Youssef Aberkane
Original issue reported on code.google.com by [email protected]
on 6 Aug 2007 at 2:25
Q. What is the expected outcome? What happens instead?
MTASC reports several untyped variables in SpecialPropertiesDefault and
Equations
Q. What code will reproduce the problem?
Simply try compiling Tweener with -strict
Q. What version of the class are you using, and under which development
environment (IDE version, compiler, etc)?
FD3, MTASC
Original issue reported on code.google.com by [email protected]
on 31 Jul 2007 at 11:42
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.