I'm working with a Flash (CS5) presentation, so I have a "Next Slide" button on my app. Sometimes, I want to be able to fade in certain elements when I hit "Next Slide".My current way of doing this:
Create a MovieClip from a Rectangle with an opacity tween from 100 to 0 (with ActionScript to stop() at first frame).Copy and paste the MovieClip over the place where I want it to fade in, and give the instances a unique name.Add actionscript to the relevant keyframe of the slide with just rectangle1.play().This works fine when running. The only disadvantage is that once I have one of these rectangle MovieClips on my page, I can't see what's behind it, making it annoying to design the presentation.
I am having trouble figuring out how to implement TweenLite with an xml menu (jumpeye component) Im using actionscript 2 (as I figure Flash player 8 is stilll more widely used) and Im doing it in Flash CS4 with TweenLiteI have a rectangle (glass_mc) on my stage that acts as my main "window" with the menu off to one side, and both sit over a background Movieclip (stage_mc). the buttons load different external swfs into a moviecliploader. so far so good. But what I would like to do next is where I get hung up.when a button is pressed I would like to pass parameters that are stored in the xml file to the different movieclips throughout the interface.
I would like to be able to resize glass_mc to the xml specified values of height, width, alpha and color, and at the same time tween the tint of the stage_mc (again, specified in the xml). The way the component works is I have to call a function from the fla to make this all happen. Im not sure how to get TweenLite to communicate with the xml file though. or rather, Im not sure how to load the xml variables into a function that can then be read by the tween. Im stumped and I cant find any tutorials online about how to do this (Im using actionscript 2.0)
I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration point is always is the middle of the rectangle because this makes rotating a lot easier. Before I start implementing this, I was wondering if anyone knew of any libraries or sample source code that does this, or could share some tips and tricks to calculate the transformations.
[Code]...
I attached a screenshot of what I'm trying to accomplish and another one that has some lines drawn onto it that should allow me to deduct the trigonometric calculations. The cross is the cursor.
I need to express the limit as an independent variable approaches a value, but I don't know how to phrase the syntax for such a procedure, or for that matter if it is even possible; for the record, I am using Flash 8. Is there a way to express limits in flash, and if so what is it?
I have read the various posts here on SO regarding screen capturing, but none seem to be answering my situation.On our website (inside a web page), essentially here is what I would like to be able to do.
User clicks on a 'capture region of screen' button.They get some sort of draggable/sizable box they can use to define the area to capture the captured area gets converted into a (preferrably) .png image is uploaded (or at least made available to upload - maybe saved somewhere).I realize this is not doable with javascript alone.So,I am open to a Java or Flash solution, and/or even a commercial solution (a drop-in java applet that I can add to our site).
I have an HTML document with a Flash object and an absolutely positioned HTML element above it. If I set the HTML element's opacity CSS property to any value less than 1, the Flash object (that is actually covered) receives mouse events. This problem cannot be reproduced with pure HTML elements. Furthermore, Flash only receives hover events, so I cannot click below the layer.I put a demonstration of the problem online.I get this behavior in Firefox 3.6, Safari 4.0 and Chrome 5.0 in both Mac and Windows. Flash plugin version 10 is installed.Is it a bug or the the normal and expected behavior? If the latter, then how can I prevent Flash receiving events when it is covered with a translucent layer?
I'm getting the following error: Motion tweening will not occur on layers with ungrouped shapes or on layers with more than one group or symbol. I don't have any ungrouped shapes (it's all text), each layer has 5 instances of only one symbol (keyframes), no objects are grouped and text is all static text.
When watching the animation, the first word (web) looks fine, on the second word (design) the tween fails on the last couple of frames of that clip (the blur filter disappears), the third word (and) is OK, and on the forth word (development) the blur filter is not applied to the last 16 frames of that clip.I broke each animation into its own MC thinking that was causing the issue, but that didn't fix anything.
not sure if this is technically "actionscript"but i didn't know wher eelse to post iti need to place an flv on top of a background image, and i want to set the flv to have an opacity of like 30%-
Just taking Koolmoves for a test drive and ran into a snag, I want to change the opacity of some shapes/objects that Ive created but I cant seem to find an option to adjust the opacity anywhere.
I'm trying to figure out how to make a slide bar that would control opacity. If I were to take to pictures on top of each other, the slide bar would control the opasity of the top image.
Suppose I have an image in the background with a white box over the image. What I am trying to do is get the box to oscillate it's _alpha property while diminishing to zero. Producing a 'twinkling' effect. I have the actionscript on the box_mc in an onClipEvent (enterFrame) function. Really there will be a lot of these boxes so the oscillation would have to be random.The code I have right now, which just lowers the opacity at a random rate - no oscillation is below:
onClipEvent (load) { h = Math.random();}
onClipEvent (enterFrame) { if (this._alpha>0) { this._alpha -= h; }}
I have buttons inside/on window01/mc that are still active/clickable when the opacity is 0, I basically have a area on my website that if you click it opens the window corresponding to the button. how do I stop this? I only want the buttons to work when window01 is opacity 100. I'm not a pro at AS so please if you reply, walk me through it a bit or edit my code. [URL] just click in the blank black area below the nav bar and the window will appear. The normal way to get to this window is click products than the buttons.
Code: Select allimport gs.TweenLite; btn06.addEventListener(MouseEvent.CLICK,f2); function f2(e:Event){
could someone point me in the right direction of how to pulse the opacity property. Math.sin on something and offset and scale the wave to run from 0-1 ?
I am trying to create a Photo Editor using Flash One of its features is to change the Opacity of the Image. Now my problem is how to change the Opacity of a bitmapData and save the image so that the resultant image has a changed Opacity.
I tried to refresh my little flash knowledge -- but I stumbled upon a problem with the new Flash CS4!
When I try to make different blur or alpha effect on one keyframe I got after making the motion tween -- Flash adjust the other keyframe as well (got the same reaction on both keyframes as if it was the same instance of movie clip -- and not as in old flash; the keyframes created separated or independent instances)
The only thing working for me is when I move the movie clip out of the stage on the first keyframe -- and it correctly move its position.
I have a plan of a park and want to make some different zone (red, green, blue, etc.) I know how to make them but dont know how to put them to 50% of opacity.
I have 22 rollover buttons that are a tint. On the rollover, I want the button (75px square) to disappear. On the rollout, I want it to display it's original state.I can't use visibility because it causes a flicker. When I use alpha it resets the opacity to 100% regardless of the number I set it to - e.g. rollover {button.alpha = 0;} / rollout {button.alpha = 50;} still results in a solid box.
I'm trying to "fade" out a movie clip when I click on another movie clip. I know how to change the visibility to false or alpha to 0, but I want it to do this gradually rather then instantly.This is the code I currently have placed on the movieclip I'm using as a button, I am only trying to fade the SolidPurple, everything else is working exactly like I want it to...
(NOTE: I often mix up weather opacity means "fully visible" or "fully invisible". Is Opacity the same as alpha, or the opposite? Just to be safe, I'm using the word "transparency" instead.) Let's say you ask for a color, and I hand you 0x52BD86
Assuming you were wanting a "regular" color, I just handed you a nice little bluish color. However, assuming you wanted a "32 bit" color (that is, including an alpha channel) I just handed you a completely transparent color (0x0052BD86 to be precise), so it really doesn't matter what the visible color was, it's still going to be invisible.That's why AS3 BitmapData has separate methods "setPixel" and "setPixel32".
Would it not be better to have the first 8 bits be a "transparency" value, so instead of 0 being invisible and 255 fully visible, flip them, making 0 completely visible, and 255 completely transparent? That way, if I hand you 0x52BD86, you can basically assume I mean completely visible. Then we won't even need separate functions for 32 bit colors. But, this probably goes deeper than AS3, and likely would mean changing the way color is treated throughout the last couple of years, or? Is there any reason they created the alpha bits like that?
I have this array of MovieClips (btnArr) and array of GlowFilters (gloArr):
var btnArr:Array = new Array(aBtn, bBtn, cBtn); var gloArr:Array = new Array(); var glow:GlowFilter = new GlowFilter(0x00aaff, 0, 12, 12,
[code].....
I have traces set up which seem to show that until I declare that Tween all is going as expected, but the last trace there shows -1, and when I check the values of each individual filter in the array they are all increasing and decreasing together.
I have made a small rectangle in the flash with the tweening effect and export in to the FLEX. When i publish in the FLEX i could see the rectangle with out tweening effects.How can i see the tweening effects.
I made a .as Class where some graphical elements are spawned into the stage. However, the Flash (.fla) have some internal graphics that are supposed to be over the graphical elements spawned from the custom class.I tried to make another layer over the layer where the as3 Class is being called, but unfortunately it doesn't do anything, the graphic from the .as still appearing over the internal .fla graphics.