ActionScript 3.0 :: Alpha Tween Not Working On ScrollPane Gallery?
Jan 12, 2011
i have a problem with my as3 working on normal movieclips, but not on the gallery, the site works by loading an external swf file with the UILoader, the swf that is loaded is a ScrollPane that loads a Movieclip.The script i use:
If I have this line of code: var myTween:Tween = new Tween(contHolderMain, "alpha", None.easeNone, 0, 100, 100, true); contHolderMain's alph value should move from 0 to 100 in 100 seconds, but it only take about 5.
If i have a clip with a bunch of stuff inside it (on layers) like other clips, bitmaps, etc. and perform a tween on that clip (via tween class), the stuff inside the clip seems to alpha at different rates.
For instance, i have a clip with an empty movieclip which loads a bitmap image and on top of the bitmap image, i have a gradient feathered edge (.png) bitmap and on top of that I have some dynamic text (embedded fonts).
The bitmap is supposed to create a feathered edge on the photo but since they alpha at different rates, you always see the hard edge of the photo...
is there a solution like cacheAsBitmap which would let the whole clip alpha at once? If it's cacheAsBitmap, i must be using it incorrectly, b/c it's not working!
I am working on a piece where there is a big image displaying various steps of a factory process inside a scroll pane (I named it "scrollArea"). On each step there is an option to launch a pop-up window with a picture and a description. The pop-up window will be in a set position on the right side of the screen and is outside of the scroll pane.When you click on the button to launch the pop-up window I have this code:
This works fine to get the scrollPane image in the proper place, but the client has asked is there is a way to make it look like it is scrolling instead of just jumping to that position. So I want to tween from the current hPosition to a new hPosition.I feel like there is probably something in the tween class that I could use, but haven't been able to figure it out.
Looking through all the xml gallery examples and tutorials i havent found the simple thing im thinking of, which is to just have the imgs loaded through an xml into a plain old scrollpane so that the spacing between the thumbs is constant. Ive understand the code that spaces the loaded imgs based on a fixed variable, but that is when all the thumbnails are the same size and mine are all the same height, but the widths varies, so i feel i need the code that places the next img to be loaded based on the previous thumbs location._x and its ._width but i cant figure this line of code out which i bet is only a one-liner.
The issue i'm having is that I want to use the Preloaded Thumbnail gallery as described in this thread [URL]
The catch is that I have 600 photos to do this with, so I'd like to create the scrollPane which will be capable of scrolling through them.
What I've gotten so far. I created the scrollPane, and then I've followed the tutorial's on how to get that working, I've also gotten the mc working for the photo gallery. I can't seem to get the two to work together. I've stripped this down to just the working thumbnail gallery with the settings I need. intergration of the scroll pane and mc thumb?
I have a line that starts invisible then becomes solid then invisible again. First keyframe is alpha 1%, should the two keyframes that follow next in the timeline where it shows as full strength colour be left alone, showing still as colour>none in properties, or should I choose alpha and 100% ? Last keyframe again sees it given alpha 1%. ( I was told dont use 0% as it causes flash more work !)What is best practice here? I have many of these to do so leaving keyframes as 'none' for colour would make life much quicker.
Does anyone know of a actionscript that can tween something to alpha=0. Id like to tween something to alpha 0% from alpha 100% rather then do every single one manually. I have a thumnail box that changes images just thought it would be easyer to put a action on the timeline to fade it out rather then tween it one at a time.
I have used a scrollpane on my new site, it scrolls but only if you click the arrows or click in the scroll bar, if you actuall try and scroll by dragging (which people would because it's long) it vanishes![URL]
I'm doing alot of banner ad's at the mo. So I'm using the old motion tween effect quite a bit... mainly an alpha tween... on imported bitmaps, and text. While the banners end up the way I want them, I've used alot of layers and alot of the time line. Is there a better way to alpha tween objects. Basicly, I've a movie clip, with alot of bitmaps and text, and they all have alpha motion tweens....
Using AS3, how do I create an alpha tween from one movie clip to another?
My thinking is that I can't use the timeline, because the fade is variable and event driven; e.g., the user clicks on one of many pics, and the stage alpha tweens from the current to the clicked.
I have a complex window I'm designing in code. It starts as a button-like thing and once clicked, expands out to a window with text, links, and other misc. stuff. I'm designing it with all the objects to start inside the custom object (extending a MovieClip) and use tweening to expand it all out. The expansion works fine, although it's admittedly ugly..I'm running into an issue when alphaing from nothing (the button is placed over text, completely alpha'ed out to start) to 1.0. It will only start to alpha in if I have the alpha start at greater than 0, even then, when it reaches 1.0, it is NOT full alpha as it should be. Here's what I'm doing, trying to keep what I suspect to be unrelated code out:[code]the alpha of the bg (a shape) is originally set to 0, this code gives me no alpha, if I start it at 0.1, then it gives me some ...what looks like 0.3 at the most
I made the following AS tween that moves the MC from right to left. It should fade its alpha after the tween finishes. But it doesn't fade. Why not?[code]
...only if its a top tier movie clip. If the movie clip is embedded in a slide show, it doesn't work properly. It works only when I turn the scrollwheel and move the mouse in the same direction at the same time. Kinda strange, isn't it? Is there a fix?
The links on the site above have a nice alpha tween effect. It looks like the rollover fades out the alpha so that the links appear brighter. When you rollout the alpha reduces.
What would be the best/most logical way to do this? I presume you create some AS that contols the alpha tween and keep this on the timeline as a function. Then for each button you call the function.
So I have so parts of actionscript which I am figuring out on how to make them one. What I am wanting to do is move an object to the right and fadeout. Here is my code to animate right 10 pixels, this works perfectly.
If I have a movie clip that resides and plays in one frame, and I want an second (visible=false) movie clip to play on the same single frame as soon as the first is finished... what kind of event to I use? Do I have a frame action inside and at the end of the first movie clip that throws out some kind of event to tell the second to play?Basically, I have a menu (first movie clip) that alpha tweens up, then the buttons (second movie clip) to appear when the first is 100% alpha.
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?
I've got a movieClip containing a background and 3 dynamic text inputs, that I'm trying to tween via the tween class.When I apply the alpha tween, the background within the movieClip does fade to 0 like it should, but the dynamic text inputs do NOT.I was wondering if anyone could explain how I could get this working, so that an alpha tween to a movieClip also alpha tween everything within it. It was my understanding that the point of putting things into a movieClip was so that you didn't have to apply to each element of the movieClip.
I'm having some problem with a alpha tween, it works well when loading pictures then fades them IN and OUT but when I load a movieClip it only fades IN to, maybe 50%, the video object remain transparent. When I CLICK in other button before fades OUT, the movieClip fades to 100% and then it fades OUT.
The project is a XML gallery that loads images and movieClips (all external), the movieClips work like a container to one image (like the other pictures gallery) and one Youtube video (that remains over the picture).
If I remove the fadeIN tween all works fine, I think the problem was in the Timing of code compilation but I can't solve it out.[code]...
Is it posible to realize a alpha tween effect between two images with an interval of let'ssay 7 seconds, based on ActionScript. And is so how is that actionscript look likes?
I have run into this problem multiple times and never been able to find an answer, but this time rather than doing a work around, I wanted to try once-and-for-all to see if anyone has an answer.With actionscript I'm creating a new movieclip, then having that movieclip create a text field. I'm populating this text field with content pulled from an XML file, and also controlling its color, size, ect. with the same XLM document.I'm trying to set its alpha to 0, then have Tweener tween it in to 100, but have never been successful.Has anyone run into this and found a way to do it?
I'm having trouble with this code. My external swf is loading fine, it's the alpha tween that does not seem to be responding. I thought if I tween the holder movie clip that would affect the imported swf but it's not working.
import fl.transitions.Tween; import fl.transitions.easing.*; var swfLoader:Loader = new Loader(); var bgURL:URLRequest = new URLRequest("work.swf");
i am trying to do is make a simple text animation, i need the text to go from small to large and fade. I figured how to make the text move with a tween and fade with the alpha, but i cannot get it to go from small to large and back to small.Here is an example of what i mean...