ActionScript 3.0 :: Saving Alpha Property When Changing Frames

Mar 22, 2010

i have this little display and when you click on certain items their alpha changes to 0.1, this worked fine until i added another frame with a different display on another frame. so now when you change frames and go to the new display then go back to the old display on frame 1 the alpha properties are all reset back to 1. So to fix this i thought i could simply add all the movieclips with an alpha less than one to an array when i left the frame then when you come back to the frame you could reset all the moviclips in that array back to having an alpha of 0.1. But this doesnt seem to work. here is the code i used.[code]But this code doesnt seem to work, the strange thing is even when i add some trace statements they tell me that the alpha does in fact equal 0.1 but visibally they haven't changed.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Changing Alpha Of Object - How To Define Property

Aug 15, 2009

I am very new to Flash and I have the following script:
mouseInterval = setInterval(changeAlpha,10);
function changeAlpha(){ fader_mc.alpha = Math.round(root.mouseX/550*100) }
This is simply to change the Alpha of my object as I change the X value of the mouse cursor. I keep getting the following error message:
1120: Access of undefined property mouseInterval

View 5 Replies

Flex :: Changing Value Of DateField.text Property Setting SelectedDate Property To Null?

Jul 26, 2011

Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).

View 2 Replies

Professional :: After Saving, Certain Frames Disappear?

Mar 20, 2012

With CS5.5 on OSX, after saving a file and reopening it, certain frames (and their artwork) end up missing, i.e. aren't saved with the rest of the file. This happens with random frames. Other artwork, created after these frames, is still there.

View 1 Replies

ActionScript 2.0 :: Saving Data Across Frames?

Dec 5, 2007

Ok here is my situation. I've developed a quiz application. Their is 30 frames. 2-29 is the presentation that contains the answers. Frame 30 has the quiz on it. When the user hits submit (once theyre all answered) and if their are wrong answers, it does not continue and it highlights the wrong questions and sets some _visible = false buttons to true. The buttons say "Review answer" which is going to take them back to the frame that has the answer and once that review is over it goes back to frame 30.

My problem is that when the user returns to the quiz frame, everything is reset. How can I store what the user has already selected so when they come back to frame 30 everything they filled out is still their?

View 2 Replies

ActionScript 3.0 :: Alpha Vs. Movieclip 2 Frames?

Aug 14, 2010

So I've a movieclip with 2 frames placed on stage. 1st frame is button on state, 2nd frame is button off state which is just a bit lighter icon which can be achieved with alpha 40%.So I was wondering what would be better to do: leave the movieclip with 2 frames and then in ActionScript use .gotoAndStop() to show the off/on state or create movieclip with 1 frame and with ActionScript just change the .alpha of icon ? I mean better in performance, speed and all those things. Because if I have the movieclip with 2 frames and it's added to stage it's redrawing it going to 1st, 2nd, 1st, 2nd.. frame until I .stop() it..

View 2 Replies

ActionScript 3.0 :: Changing The Alpha Of A Swf

Aug 10, 2010

I'm trying to create a tab system on my website. I have a small 25 pixel tall swf file at the top of the page that acts as the tabs. It uses PHP to communicate with the rest of the site. I have a larger swf below that acts as a directory to my files. When the user finds a file, he or she can open it in a new tab by clicking a certain button. And then switch between tabs using the top swf. I've got all of this down using AS3, but I'm not as good at the basic web design elements. How do I communicate to have every lower layer except for the one that the viewer wants to look at go to 0% alpha? Also, I cannot just have the tab system be all in one swf because some of the files that I want the user to open will be in AS2, which won't run inside an AS3 host.

View 3 Replies

Actionscript 3 :: Changing Alpha Of A MC On Hover?

Apr 11, 2011

this.addEventListener(MouseEvent.MOUSE_OVER,function() {
this.alpha=0
})

In an MC, I want it to become invisible when the mouse hovers over it. The reason I'm putting this code inside the MC and not making an instance out of it is because this MC will recur numerous times. The listener does work, as tested with trace(). For whatever reason, alpha doesn't.

View 1 Replies

ActionScript 2.0 :: Changing The Alpha Of A M.c. With A Slider?

Jun 21, 2005

I have been checking out the following tutorial:on how to adjust the volume with a slider.it's great!what I'd like to do is use that same slider to adjust the alphaof a movie clip.is that possible?or maybe adjust the alpha of a symbol.what i'm trying to do is create "mood lighting"where the user can move a slider and lighten or darken an interiorspace, by adjusting the alpha of a dark square on top of the scene.

View 3 Replies

ActionScript 2.0 :: Changing Alpha Settings?

Apr 28, 2003

i made text into a movie clip and put in this code to adjust the alpha.

onClipEvent (load){
this._alpha=100;
i=1;
}
onClipEvent (enterFrame) {
if(this._alpha=0 && i==0){

[Code]...

The alpha is going down.I think, because the text isnt there. What i'm having trouble with is getting it to go back and forth. Increasing and decreasing the alpha when it gets to it's maximum or minimum. I hope I'm making some sense.Does anyone have any ideas? And no I cannot do this with a simple motion tween because there are things happening in the background.

View 3 Replies

ActionScript 3.0 :: Changing Alpha Of A BitmapData?

Jan 11, 2010

I'm blitting a map onto the screen with tiles.. and the source of these tiles are BitmapData objects.I know you can change the alpha of a bitmap.. but I'm not too sure if it can be done on the BitmapData object itself.I want some tiles to have less alpha than others. Applying the alpha to the Bitmap.. makes everything on the current screen have an alpha.. but I only need one tile of it..

View 4 Replies

ActionScript 2.0 :: Changing Alpha In A While/for Loop?

Nov 3, 2009

i'm trying to get it so a MC1 on top of MC2 slowly fades in. It starts with alpha of 0 and i put it in a while loop (on MC1):

onClipEvent(load) {
this._alpha = 0;
var i = 0;

[code]....

View 2 Replies

IDE :: Alpha Tween (ease In From 0 To 1) An Object On Stage Over 25 Frames?

Apr 29, 2010

I want to alpha tween (ease in from 0 to 1) an object on stage over 25 frames. And after the tween is over i want the object to persist on the stage and in the timeline. How can i do that?afaik i have to extend the tween in the timeline beyond the keyframe with 1 alpha. But when i do that this also extends the time of the tween from 0 to 1 and it actually lowers the alpha 1 in the keyframe automatically to some figure that fits with the ease in which apparently spans the entire tween.

View 8 Replies

ActionScript 3.0 :: Dynamically Changing Color Of MC - Using Alpha?

Mar 8, 2009

I am changing colors of an mc dynamically, in this way: I have an mc of the color green for example. What I want is it to turn to a specific color in time. I have in that mc a sprite, that is that specific color (red in this case). iIset it's alpha to 0 and put it in the layer above the green part. Now when I set its alpha to 1, it will be that colour. When I set it to 0.5 ofcourse it'll be a mix between those colours. Is it faster to do it, but changing 0xFFFFFF? I wouldn't know how to do it though. i want to be able to tell it to go 3/4 of color nr 1 and 1/4 of color nr 2, for example. i also want to be able to choose those colours specificly, for the sake of art. so just choosing 0xFF0000 for red, wont do, for artistic reasons.

View 3 Replies

ActionScript 2.0 :: Changing Alpha From A Different Movie Clip?

Apr 6, 2010

The thing should work like this: theres a movie clip in frame 10 of the timeline with two buttons inside, by clicking one of them the movie should jump to frame 15 and take the alpha of two Mc there (they are inside a different movie clip) to 0. This is what ie been trying (code on the button, btw):

on (release) {
McScene2.lettuce._alpha = 0;
McScene2.pumpkin._alpha = 0;

[code].....

View 9 Replies

ActionScript 3.0 :: Changing Mc Alpha That's Inside A Button?

Jan 28, 2012

i really can't belive i'm asking this, but i've been about an hour trying to look after a solution for this but I couldnt find nothing. i'm trying to change a movieclip's alpha when the swf loads and when I press an existing button. the problem is that that movieclip is inside a button and as3 has a problem with it.

this is what i am trying to do in the first frame of the first scene.

[Code]...

View 1 Replies

ActionScript 2.0 :: Make Menu Alpha Changing?

Jul 28, 2004

I have a menu inside a MC, and Id like to make s alpha = 50% when some button is clicked ,but when the mouse is over it, s alpha changes back to 100%.

View 1 Replies

Actionscript 3.0 :: Papervision 2.0 And Alpha Property

Jan 4, 2008

Do you know how we can modify alpha parameters on Plane object with the new release of Papervision (2.0 alpha)? Previously, I was doing something like that : Code: Select allplane.containers.alpha = 0.5; But containers property disappeared from Plane object in version 2.0; I browsed every property of the new Plane object and couldn't figure it out.

View 9 Replies

ActionScript 2.0 :: Changing Alpha On Multiple Movie Clips?

Jan 7, 2010

I know how to change the alpha of one movie clip at a time on rollover, rollout, and release. But I'm a bit stuck trying to figure out how I would change the alpha of multiple movie clips, when one is clicked. It's for a simple photo gallery and I want all the thumbnails to darken once one has been clicked & the image is loading. I can't just fake it by having a somewhat transparent black movie clip appear over everything, because I need the alpha of each thumbnail to be able to change again once people roll over a new thumbnail.(a section of my code is included for reference but there are like 30 thumbnails so I didn't include it all, the code is the same for everything)

Code:

thumb_001.onRollOver = over;
thumb_001.onPress = down;
thumb_001.onRollOut = out;
thumb_001.onRelease () {

[code]....

View 2 Replies

Actionscript 3 :: Memory Gain Changing Alpha Value Of An Object?

Dec 30, 2011

for a periodic table tool I'm making, I've incorporated an effect that changes the alpha value whenever I hover over an element (pretty standard). I've noticed a mysterious gain in memory when hovering over my elements; using SYSTEM.TOTAL_MEMORY - there would be about 0.005MB increase in memory usage when I hover over an element, which isn't relinquished when I move my mouse off. However, if I move my mouse back on again, there isn't a second memory gain.

[Code]...

Does anyone know why this memory gain is happening when the alpha value is changed? And curiously why it only happens once? Some extra info: my Element class is a MovieClip, with a couple of TextFields, primitive variables and a MovieClip in it. It has had its mouseChildren property set to false (and buttonMode property set to true).

View 1 Replies

Changing Alpha Of Movie Clip On Button Rollover

May 15, 2009

how to increase the alpha of a movie clip when you rollover a button.

View 1 Replies

ActionScript 2.0 :: Finite Menu - Changing / Increasing Alpha

May 9, 2005

I have created a finite menu and it works fine, the only problem is that now I want to have the menu set to 50% alpha and when the user moves the mouse over the menu it gradually increases to 100%, Since I have never messed with Alpha's using action script.

View 14 Replies

ActionScript 3.0 :: Alpha Property For Dynamic Text

Jan 20, 2009

How to apply alpha rpoperty for dynamic text.

View 1 Replies

ActionScript 3.0 :: Papervision Alpha Property Does Not Work

Apr 7, 2011

I have a papervision project and this problem has kept me from going for days. I have Text3D object in my project and I have to reduce and increase the alpha property of this object , and I do it by changing the alpha property of the ViewportLayer that contains this Object. everything works fine but when I change it's text property due to some circumstances I can't work with it's alpha property anymore.

I change it's text like this:
var text1:String = "second string";
mytext3D.text = text1;

I don't (and I can't) use "useOwnContainer" and I use a defined ViewportLayer for this Text3D which I've defined like this:
var textLayer1:ViewportLayer = viewport.getChildLayer(mytext3D);
And I change the alpha property of this "textLayer1" in order to change the alpha of my Text3D object. Everything works fine till I change the text property and after that when I change the alpha of my "textLayer1" nothing happens!

View 2 Replies

Actionscript 3.0 :: Adjusting Alpha Property Of Textfield?

Jul 29, 2011

I've seen a few posts about this, but nothing that explains this issue concretely. Can anyone tell me how to change the alpha of a textfield in Actionscript 3?, and more importantly a textfield that uses embedded text fonts? I've heard changing blendmode.

I know how to do this in Flash IDE, but not purely in code.

View 8 Replies

ActionScript 2.0 :: Smoother Increment On Alpha Property?

Apr 29, 2004

I normally spend hours battling with the simpliest AS and eventually work it out.I've trying to run the following AS applied to a button:

on (rollOver) {
i = getProperty(this.button01, _alpha);
while (i<100) {
if (i>100) {

[code]....

The action seems to work, however the increment is instant and I want to achieve a smoother transition.

View 10 Replies

Professional :: Gradual Image Fading Via Changing Alpha Values?

Dec 18, 2010

I'm doing this via the motion editor.  But, is it possible to fade an image gradully from left to right instead of the whole image at once?

View 8 Replies

ActionScript 3.0 :: Alpha RollOver Thumbnails - Changing The Opacity Of The Button

Nov 17, 2009

another rollover question dealing with changing the opacity of the button. Anyways. after digging through the site I found this:

[Code]...

View 1 Replies

ActionScript 2.0 :: Controlling MovieClip In Presentation - Removing / Changing Alpha

Mar 29, 2007

I've been playing around with the presentation screens and slide in Flash, from browsing the web there seems to be very little if any information of how to control MC's within different parts of a presentation i.e. removing them or changing alpha. I've loaded an MC and now I'm am trying to remove it from the stage been experiment on the same slide and I just cant seem to get control of it.

I was using
_root.slide1.intromc._alpha = 0;
But this doesn't work for. How I can get access to MCs in a slide if its possible !!!!

View 1 Replies

ActionScript 3.0 :: Loading And Changing The Alpha Of An Image Via A Static Class

Dec 30, 2008

I'm trying to make a URL-Loader Class to speed up my workflow, but I can't manage to make the images I am loading visible, turning their alpha to 1.

I use the following line to invoke my custom loader:

import com.ab.utils.Load
Load.Image(menuitem.holder_mc, menuitem.image, this)

[Code]....

Notice where I call a Tweener, trying to make my mc (_ITEM)'s alpha turn 1.

I tried thing like loader.content and loader.content.holder_mc, but to no avail.

View 2 Replies







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