Actionscript 3.0 :: TweenMax Looping Slideshow?

May 7, 2009

I have two pics (pic1 & pic2) and I want them to fade in and fade out between each other forever.so basically I want this effect to repeat forever (pic 1 is currently on a higher layer than pic 2 so that it is the only picture that needs to fade in and out, but I'm sure this is not the best way to do it, especially if I add pic3):

TweenMax.to(pic1, 0, {alpha:0});
TweenMax.to(pic1, 1, {alpha:1, delay:5});
TweenMax.to(pic1, 1, {alpha:0, delay:10});

[code]....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: TweenMax Not Looping?

Mar 5, 2008

I have (what should be) a really simple little piece of code inside a moviclip, trying to get it to fade in and out in a loop. Here's the code (within the movieclip):

Code:
import gs.TweenMax;
this._alpha = 100;

[code]....

View 3 Replies

Make A Looping Slideshow

Jul 27, 2009

i want is a simple 4-picture slideshow for the site, and i already have it done. Thing is, i want it to loop indefinitely, but i can not achieve that unless i put this script into actions: stop();function delay () {nextFrame();}setInterval(delay, 6000); Thing is....that prevents the loop because of the stop command. However, i can't slow it down unless i do this.....I want 6 seconds in between looping pictures.

View 3 Replies

ActionScript 2.0 :: Looping A Dynamic Slideshow?

Jul 29, 2005

I'm working on a flash slideshow with transitions that I need to loop smoothly. I have four movie clips, one on each layer and each one loads and fades on top of the previous one. When it loops back around to the beginning, I don't get a a smooth transition. I get white space for a few seconds. On the last frame I have gotoAndPlay(1); and on frame 1 I have my loadVariablesNum statement.

how to loop this seamlessly?

Here's the url - the images may be blurry and are only for testing: [URL]

View 2 Replies

ActionScript 3.0 :: Looping Slideshow/Frames Initiated By FWD/REV Buttons?

Dec 4, 2010

How do I code the logic to create a slideshow that plays nextFrame() or prevFrame() using eventListeners for FWD and REW/REV buttons?

[Code]...

View 11 Replies

ActionScript 2.0 :: Incorporate In A Xml Based Slideshow(slideshow.zip) To Show Image Loading Process?

Feb 6, 2008

I have created a pie preloader(preloader.zip) which is working fine. Same preloader I am trying to incorporate in a xml based slideshow(slideshow.zip) to show image loading process but some how I got stuck. I am new to flash. Suggestions are welcome.

1. How to solve the problem of preloader2. Is it possible to integrate everything in a movie clip (including AS). I mean no AS on main time line but inside the movie clip. It would be much easier then to to create multiple slideshows by duplicating mc and changing the xml file.

View 1 Replies

ActionScript 2.0 :: Text In A Slideshow - Make A Basic Photo Slideshow With External Images

May 29, 2008

i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.

View 1 Replies

Actionscript 3.0 :: How To Create Gs(TweenMax)

Sep 25, 2009

after i try to use it and publish as SWF, it not function and get error-->1172: Definition gs could not be found. only i realize that need a folder like a classes and import it. this is the website i found [URL]

View 2 Replies

Java :: Android - Is There A TweenMax Equivalent

Feb 10, 2011

I'm still relatively new to Java and Android development, so I'm still unfamiliar with the multitudes of libraries available for use, particularly for animation. Where I'm from (the Flash world), we have access to several 3rd-party tweening engines that make life very easy for us when we want to programmatically move things around the stage without relying on the (vastly inferior) built-in Adobe tween APIs. One of the most popular is Greensock's TweenMax

Looking at the way Android handles tweening natively, it appears to be very cumbersome compared to what I'm used to. I'm curious if there's a TweenMax-equivalent library out there for Android that makes animation sequencing equally easy to write in-code, with the benefits of smart intellisense, rather than having to write them all out in an external animation.xml file in the res folder.

View 3 Replies

ActionScript 3.0 :: TweenMax Plugin Error?

Jan 11, 2010

I'm using Greensock's frameworkand everything worked fine until I tried to use one of the plugins. I'm just trying to get the bezier plugin to work on a single movie clip. My code looks like this:

var flakeMC:mcFlake = new mcFlake();
flakeMC.x = 12;
flakeMC.y = 12;

[code].....

View 4 Replies

ActionScript 2.0 :: Make TweenMax Stop?

May 4, 2010

I have a tween (code on main timeline) for a mc and on hitTest (code on mc) its supposed to stop, but it doesnt. This is the code on the mc:

Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.rivalMc)) {

[code]......

View 1 Replies

ActionScript 3.0 :: Get The Target Object With TweenMax?

Jun 17, 2011

i'm pretty new user with TweenMax and i have simple question. Usually using flash built-in TweenEvent i could get the object that is tweening, using e.target.obj. But then apparently i couldn't do it if i use Greensock TweenEvent, because it seems unable to retrieve the object as the property "obj" could not be found.

What should i write that is equivalent to "e.target.obj"?

View 3 Replies

ActionScript 2.0 :: About TweenMax And Easing Equations?

Jul 1, 2008

im a former user of FuseKit, for the time being as i like more the performance of TweenMax over Fusekit, but i got used to the flexibility of Penner Easing Equations, is there a way to use them on TweenMax?

I tried fl.motion.easing.* seems to have all of the penner equations Expo, Sine, etc.So, is there a way to use them with TweenMax?maybe im not writting the syntax correctly i dont know here is my piece of practice code

Code:
import gs.*;
import mx.transitions.easing.*;
import fl.motion.easing.*;
function moveSq() {

[code]...

View 3 Replies

IDE :: TweenMax Drop Shadow Hiccup?

Mar 10, 2009

So, the good news is that I've got this about 90% solved. Anyway, I'm trying to use TweenMax to have a drop shadow fade up on a Mouse Event (on a roll out). Everything works fine except for the shadow color. I've got it set to black (0x000000), but it's making a shadow that's the same color as the menubar sprite it's trying to shadow.

In other words: I've got a bright blue menu button, and it's giving it a bright blue shadow, despite the fact that I've got the color value set to 000000. Basically, I've got some code to put together the parts of the menubar (size, shape, text, shadow, etc.)

[Code]...

View 2 Replies

IDE :: Strange TweenMax When Fired By KeyPress()

May 12, 2009

Code:

base_scale = 70;
my_scale = 1;
scale_mod = 30;

[Code]....

EDIT: In fact, it is working now (behavior changed with updated TweenMax...?!), BUT still, when I zoom with mouseclick, everything goes well. When I zoom with a keypress, the image is resizing... but if the image is not centered, the registration point (set to center of the image) - the image is moving - for no reason...

Different results with the SAME function, no parameters etc.

View 2 Replies

ActionScript 3.0 :: TweenMax OnComplete GotoAndStop?

Nov 11, 2009

I'm trying to get onComplete (frame 5 in this case) to skip to a given frame after a series of animations. Here is what i have written so far. Shouldn't this work?

stop();
import gs.TweenMax;
import gs.plugins.*;

[code].....

View 2 Replies

ActionScript 3.0 :: TweenMax Object In Loop?

Jan 6, 2010

This may look like a long post but you may not have to read throught the whole thing... I have created a textfield within a loop and put it in a sprite called textHolder. I loaded images in the same loop and put them in a container called imageHolder. The containers are assigned to the buttons button created by the loop. This works all great. But the thing that I am having trouble with is being able to tweenMax one of the holders. for example:

I have a tweenMax that scales b1 (the first buttons created from the loop) by 3x. But I also need the text to fade out without the image fading out. So I tried just putting a tween on textHolder but nothin' happens! Maybe there is some rule here that I am missing that says I cant do that? If not, I dont know what I am doing wrong. here is some of my code:

[Code]....

View 2 Replies

ActionScript 3.0 :: Breadcrumb Navigation With TweenMax?

Mar 19, 2010

I have an array of buttons on stage and a want when one if them is clicked to chage its tint.But when another one is clicked then the tint of the previous clicked button goes back to normal state , and eventually new clicked button's tint change.I am using this code

PHP Code:

 var buttonsArray:Array = new Array(ai_btn, b_btn, c_btn); 
//Loop through the buttons array
for (var i:uint = 0; i < buttonsArray.length; i++) {[code]...

View 2 Replies

ActionScript 3.0 :: Make Use Of TweenLite / TweenMax?

Dec 17, 2010

I'm trying to make use of TweenLite / TweenMax and I'm getting nowhere. I made a test file - this is all that is in it:

Code:
import com.greensock.TweenMax;
import com.greensock.TweenLite;
import com.greensock.*;

[Code]....

View 3 Replies

ActionScript 3.0 :: RemoveMovieClip() With TweenMax OnComplete?

Jan 10, 2012

I have an onEnterFrame function, and when the clip goes passed a certain x value, it tweens alpha to 0, and then on complete, it removes its listener and is removed from the stage ... here's the loop :::

Code:
function loop(e:Event):void
{

[code].....

View 1 Replies

ActionScript 3.0 :: Movieclip Attachment And Tweener Or TweenMax ?

Nov 19, 2008

I have a strange issue in flash player 10. I have done a simple slider class that is clickable and in flash player 9 works great but when I test it in flash player 10, the list just dissapears. The example uses elements from an xml but the problem happens even if I attach a simple array of shapes instead of text.I have attached the example with the bug. I've included also Tweenlite for testing purposes and if you uncomment the line 95-96 of the [url]......

95-96
//Tweener.addTween(masked, {x:xPhotoPosition,
y:yPhotoPosition, time:1});[code].....

View 3 Replies

ActionScript 3.0 :: Jumpy Tween To Alpha 1 With Tweenmax

Mar 1, 2012

I'm trying to tween in a movie clip to alpha:1 using the code TweenMax.to(mc, 1.5, {delay:2.5, alpha:1});But this results in a smooth tween to around 50% or so and then it jumps to 100%.I have had this problem before but it's really effecting a project I'm working on for a client. Is this a problem with the Tweenmax?

View 15 Replies

Flex :: Use TweenMax With Filters Created In Flash IDE?

Dec 16, 2010

Is there a way to get TweenMax to tween the filters of an DisplayObject where The filters are added in the Flash IDE.

I want to Tween between two states and it would be nice if I could do it without creating the two states with bitmaps and tween between them. One state with the filters and one without the filters. [code]...

View 1 Replies

Actionscript 3 :: TweenMax: Tween Stumbles The First Time?

May 11, 2011

I have some image Containers which hold a lot of images(10-100). Some of those Containers(Sprites) are off screens but are loaded and added. Through arrow keys I start a tween in the according direction.The tween is not smooth(stumbles) always the first time when a container comes on-screen. How do I get a smooth tween ?

View 1 Replies

Flash :: Animate OnRollover OnRollout With TweenMax

Mar 25, 2009

I'm using TweenMax to animate some arrows to move when I roll over a link, and the animate back, when I roll out. But it's not working, it animates on rollover, but not rollout.

function boxLink(mc_function:MovieClip, mc_target:MovieClip) {
mc_function.onRollOver = function() {
var myTween:TweenMax = new TweenMax(mc_target,0.5,{_x:"2", _alpha:50,

[Code].....

View 3 Replies

Actionscript :: Import Tweenmax Files To My Project?

Mar 2, 2012

While im working on simple animation like text rolling.. in that i created external xml for menus. As im new to flash im learning it from tutorial, but its not clear. I download tweenmax rar file. i dont know how to import that file into my project.

View 1 Replies

ActionScript 3.0 :: Animating Color Of Text With TweenMax?

Oct 6, 2009

Basically I have a menu with submenus. The submenu is a Sprite with two children, one is a square for the background and the text on top. On mouse over, I can change the color of the first child, the background, but not the color of the text, the second child. Here is the code.

ActionScript Code:
private function subMenuItemOver(evt:MouseEvent):void {
TweenLite.to(evt.target.getChildAt(0), 1, {tint:0x9ca26e}); // Works
TweenLite.to(evt.target.getChildAt(1), 1, {tint:0xffffff});  // Doesn't work
}

The menus are created from an xml document and the color is assigned with TextFormat.

View 9 Replies

ActionScript 3.0 :: Import TweenMax & TweenLite In Same Class?

Nov 3, 2009

I have a class that I was using TweenLight for handling all the tweens but came across one tween I needed the extra capabilities of TweenMax for and had to import it. Should I now convert all the tweens to TweenMax and stop the import of TweenLite? Will having both imported slow things down or swell the file size any?

View 2 Replies

ActionScript 3.0 :: Dynamic Mcs And Memory Leak And Tweenmax?

Dec 5, 2009

I am creating mcs in a Timer loop, and I am not keeping any references to them; I am using tweenmax ( but it has a great reputation for being clean, so I doubt that it is the culprit );


ActionScript Code:
//--------------------------------------------------
function om_routine ( argo_e : TimerEvent ) : void[code]..............

View 4 Replies

ActionScript 3.0 :: Tween Multi Same-filters With TweenMax?

Jul 24, 2009

I know that we can tween multi-filters like this:

Code:
TweenMax.to(mc, 1, {glowFilter:{color:0x123456, alpha:1, blurX:3, blurY:3}, blurFilter:{blurX:20}});

[code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved