ActionScript 2.0 :: Alpha Setting - Object Goes To 0 Percent On MouseOver

Jun 7, 2005

I want to achieve the effect on [URL]. The effect on the left on the about page in which when the mouse moves over the alpha of the object goes to 0%. I have all the layers set up with masks and all but need the action script. I tried applying the following code to a mask which I converted to a movieclip.

on(rollover){
this._alpha--;
}
But this did not work for some reason.

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

Oct 23, 2010

[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?

[Code]....

View 2 Replies

ActionScript 3.0 :: Set Alpha To 30 Percent In Constructor Function - TypeError

Apr 7, 2009

I am new to AS3 and writing classes and keep having a hard time with these error messages I am getting. I have the following AS:
public class PrevNextNav {
public var back_next_nav:MovieClip;
public var next_btn:SimpleButton;
public function PrevNextNav() {
back_next_nav.next_btn.alpha = .3
} .... etc.

The class works fine, except when I try to set the alpha to 30% in the constructor function, I get this error in the output window.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at _classes::PrevNextNav()
at InteractivePilotDocument()
If I comment that line out, all is good. What does this mean?

View 8 Replies

ActionScript 3.0 :: On MouseOver Change Alpha

May 7, 2010

I am quite new to actionscript 3 here is what I want to do: When the mouse hovers over a movieclip I want another movie clips alpha to go from 0% to 100% then when the mouse moves off of the movie clip the reverse happens.

View 2 Replies

ActionScript 3.0 :: Mouseover MovieClip - How To Change Alpha Level

Sep 15, 2011

When I mouse over a movieclip, I want its alpha level to change. Here's what I have:

ActionScript Code:
object.addEventListener(MouseEvent.MOUSE_OVER, mouseOverObject);
object.addEventListener(MouseEvent.MOUSE_OUT, mouseOutObject);
function mouseOverObject(e:MouseEvent){
if(!inventoryOpen){ e.currentTarget.alpha = 100; }
} function mouseOutObject(e:MouseEvent){
if(!inventoryOpen){ e.currentTarget.alpha = 50; }
}

It does work, but the mouseover only registers when the cursor is over certain areas of the movieclip.

View 2 Replies

ActionScript 3.0 :: Move Object Along With Percent Loaded?

Aug 15, 2011

I've created a preloader in which an object moves along a curve. I want this object to move as the percentage increases, much like a loading bar would increase as the percent loaded goes up. right now my object moves over 3 seconds and not percentage.[code]...

View 0 Replies

ActionScript 2.0 :: Moving Object Based On Preloader Percent?

Mar 27, 2006

I am trying to move an object across the stage while my preloader is going. (i want two fists to meet when the preloader hits 100%). i am not very good with AS but i have tried things such as this.fist1_mc._x = percent + 100; but i am just taking shots in the dark at this point.

View 2 Replies

ActionScript 3.0 :: Setting Alpha On A Loader?

Aug 11, 2011

set the alpha on a loader which is inside a class Portrait. I've got 27 pictures I load through a class. I can set the alpha for 23 pictures. But when I try to set the alpha for 27 pictures the alpha for the first 4 pictures cannot be set. I can set it only to 1. They've been loaded and when I trace the alpha value it states 0.5 for example but nothing is displayed. The strange thing is that this is only so for the first 4 pictures when there are more then 23 pictures to load. I've tried replacing the pictures but that doesn't make a difference.Here is the Portrait class:

Code:
package
{
import flash.display.*;

[code]....

When I change if(i==0) to if(i==6) that is, anything higher than 3 it works fine.

View 21 Replies

Alpha Setting When Paste In Place?

Dec 6, 2009

I am creating smiley faces and then copying them to a banner. I have two fla files open, one has the smiley in it and some layers of the smiley are made up of areas with a alpha setting of less then 100%.When I highlight all of the smiley and copy, then move to the other other open fla file that has a blue banner, and 'paste' the smiley pastes ok but all the areas that have an alpha setting of less than 100% have a blue shade to them from the banner. How do I prevent this and retain the colours I had?

View 1 Replies

ActionScript 2.0 :: [FMX2004] Setting The Alpha?

Jul 4, 2004

I am having trouble setting the alpha of a movie clip (this is a bitmap, if that matters). My code is as follows:

Code:
on (change) {
if (this.getSelectedItem().data == 3) {
set (this._parent.ahouston._alpha,100)}
if (this.getSelectedItem().data <> 3) {
set (this._parent.ahouston._alpha,0)}
}

I don't believe it is a problem with my combobox actionscript, as just putting:

Code:
set (this.ahouston._alpha,100)

in the only frame of the parent movie clip doesn't work either.

EDIT: Now it shows it with 0% alpha, but won't turn to 100%. I was wrong. It is a combobox problem.

View 7 Replies

ActionScript 2.0 :: Setting A Movieclip To Alpha 0 %?

Jul 10, 2005

like my movie container in my _root, how do i set it`s alpha to 0? does this work: _root.contMovie.setAlpha(0); ? or is there any other possibility to set it`s alpha to 0?

the best thing for me would be if i could fade it to alpha via AS command, i can't control it direct because the movieclip is 2 levels above....:-)

View 6 Replies

ActionScript 3.0 :: Setting Alpha Value On Specific Color?

Nov 29, 2009

Suppose I have a Bitmap containing a color which is some arbitrary mix of RGB, how would I go about setting the alpha value of that particula color?

View 6 Replies

ActionScript 2.0 :: Setting Alpha Of Dynamic Masks

Oct 15, 2009

I am having problems with the _alpha property of dynamic masks. For some reason they don't seem to accept it. I have a holder mc that I use as a mask and the holder is full of dynamic mcs for which I would like to set apha properties. My code is:

[Code]...

View 6 Replies

ActionScript 3.0 :: Setting Alpha On Clip Already On Stage

Jan 7, 2011

If I have a clip already on the stage. how can I go about having code to set the alpha = 0 so that the clip is default invisible. If I set the alpha in the class constructor it gets reset to what its set on the stage. I tried to use the Event.ADDED event since that gets dispatched before rendering too (I think). I mean If I don't have any choice then I'll just set it to 0 manually . Just was hoping to have the capability to set it in code. So that I can still see the clips on the stage just to make it easy for moving them around if I needed to. Where I need to set the alpha so that it takes effect 'after' the default values get applied..

View 9 Replies

ActionScript 2.0 :: Change The Value Of The Alpha Setting Of An AttachedMovie?

Nov 2, 2005

is it possible to to change the value of the alpha setting of an attachedMovie

I have

Code:
function attachBk (thisBk, nextBk):Void {
if (thisBk == undefined) {
this.attachMovie(nextBk,"bkHolder1", this.getNextHighestDepth());

[Code]....

When I click a button I want bkHolder1 to fade out but so far I haven't had any success, I tried doing bkHolder1._alpha = 0 just to see if it would affect it's property but it didn't.

View 4 Replies

ActionScript 3.0 :: Change MovieClip Color & Alpha Setting?

Nov 17, 2011

I have a MovieClip with white background and would like to change it's Background color and alpha settings at runtime. How can I?

View 1 Replies

Flex :: Button Skin Disabled Alpha Setting Ignored?

Nov 14, 2011

I attempted to build a Flex 4 skin for a Spark button, typical practice. I adjusted the colors and other styles to my liking, including using dot selectors to specify alternate colors and such during different states. However, these are all ignored when the button is disabled. Regardless of what I do, in the disabled state, my button always has the wrong color and is alpha'd to 0.5 (even if I specifically state that alpha.disabled="1"). All the other skin states work as expected. This is my custom skin. If it were working correctly, it would appear to have no shadow or highlight, and would be a gradient grey color. Instead, it appears as a 50% alpha version of the up state (shiny green).

<?xml version="1.0" encoding="utf-8"?>
<s:SparkButtonSkin xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="[URL]"
minWidth="21" minHeight="21" alpha.disabled="1">
[Code] .....

This is the code used to create and then disable the button:
_action1Button = new Action1Button();
view.actionGroup.addElement(_action1Button);
_action1Button.enabled = false;

The error was that _action1Button is not the actual button, rather, it's the container of the button. Doh! Switching it to _action1Button.actionButton.enabled = false; fixed the issue.

View 1 Replies

ActionScript 2.0 :: Setting Movieclip Alpha From Text File?

Dec 16, 2009

I am currently trying to set a movieclips alpha property from an external text file. The movieclip is called Text_Main_Slide1

The text file:
banner_settings_468x60.txt
which contains:
&Alpha_Main_Slide1=0&

I have currently written:

loadVariables("banner_settings_468x60.txt", 0);
Text_Main_Slide1._alpha = Alpha_Main_Slide1;

which doesn't work.I can however set it manually: Text_Main_Slide1._alpha = 0;

But I need to be able to set the number from the text file.

View 6 Replies

ActionScript 2.0 :: Setting Default Alpha For Image During Loop

Sep 6, 2010

I have a script which dictates alpha on rollout and onroll but I want to set a default alpha setting for images which are loaded via xml. Here's a tidbit:

[Code]...

I've tried combinations of tn_group["tn"+i].tn_button.tn_pic._alpha = 85; and such but I'm still a big newbie

View 2 Replies

ActionScript 2.0 :: Setting Alpha/visibility Of Multiple Movieclips?

Apr 3, 2011

What I am trying to do I think is pretty simple.

Consider this code:

ActionScript Code:
var imageContainter:String;
var fileName:String;

[Code]....

This code appears to be working. I'm dynamically creating a bunch of movieclips that each contain an image. The also code stacks each clip on top of each other.

I'd like to be able to now set the alpha or visibility of all of those movieclips to 0 or false, except for the first one. I have other code that will set specific movieclips to display based on mouseEvents.

How do I refer to all of them? And should I be using arrays as well?

View 7 Replies

ActionScript 2.0 :: Change Frame 20 Alpha Setting From Outside SWF File?

Feb 5, 2008

I have 20 frames on a timeline, and a mc in the frames. Frame 1 the mc is _alpha 0%, at frame 20 the _alpha is 100%. A tween between the frames fades up the mc alpha. How can I change the frame 20 _alpha setting from outside the swf file? Say I need the alpha to be 60% at frame 20 BUT I can't open up the FLA, can I adjust the Alpha setting (using Loadvars perhaps) without going back into the FLA? I won't have access to the FLA (when the file is online) and I want to be able to manipulate the frame 20 _alpha setting. I have tried doing this totally in actionscript and not using the timeline, but if I can't get that to work I will need to be able to adjust the alpha parameter without editing the FLA.

View 2 Replies

ActionScript 2.0 :: [CS3] Textfield - Setting Alpha In '.textColor' And '.backgroundColor'

Oct 26, 2008

Folx; Does the manual document the setting of transparency in TextField.textColor or TextField.backgroundColor, not just the _alpha of the TextField altogether? If so, I cant seem to find it. In addition to the RGB/hex values, the color palette in the Properties panel allows you to set transparency in %, yes, but can this also be achieved programmatically?

View 1 Replies

Professional :: Why Does Setting A MovieClip's Alpha Prevent It From Moving In Another Keyframe

Mar 12, 2012

I have a MovieClip, named "thing", that's in one position and in another position on the next frame. I added an eventlistener to "thing" to advance frames. Very simple, everything works fine.I then add "thing.alpha = 0.5" in the button's event listener. Now when I publish the file, thing fades but doesn't move.

p.s. For reference, here's the entirety of my AS3 on the first frame:
  
import flash.events.MouseEvent; 
stop(); 
thing.addEventListener(MouseEvent.CLICK, doClick);

[code]....

View 6 Replies

ActionScript 3.0 :: Mouseover Object 2 Comes After Mouseout Object 1?

Sep 27, 2011

i have an object on the stage, and, on mouse over of that object, a menu made of 4 other objects appears works great i want the menu to stay there as long as the mouse is over one of the objects in the menu, or the original object that spawned the menu so for every object in the menu, and the original object that spawned the menu, i made mouse over and mouse out listeners they keep track of weather the mouse is on one of the objects, with a boolean that is turned true on mouse over, and turned false on mouse out and also on mouse out, there is an if statement that checks if all of these booleans are false, and if they are, the menu is removed the problem is that, when mousing between objects, the mouse out listener for the previous object occurs before the mouse over handler of the next object, the boolean check is performed, and the menu is removed before the next mouse over boolean is turned on i was thinking about making a timer to make the thing wait for a milisecond or 2 before making the boolean check, but there must be a better way to do this, since older computers take longer to do stuff this solution might be buggy.

View 1 Replies

Actionscript 3 :: Setting Alpha On Parent Sprite Without Affecting Sprites Children

Mar 12, 2010

If I change some value for a parent sprite, the same value will affect all of its children. So if I set alpha or width on the parent, the child will automaticly get the same value.

View 4 Replies

Slide Object In On Mouseover?

Sep 4, 2010

I'd like to mouseover an object and have it slide across (tween) and stop. Then when the mouse is removed from the object, it returns to its original position.It's fine if we just make it happen to a box - don't worry about all the slideshow bits and all that.

View 21 Replies

ActionScript 3.0 :: Object XY Rotation On Mouseover?

Mar 4, 2011

I am completely new to AS and have been having a rough couple of days trying to figure this one out.

I'm having struggle creating a xy rotation - or an image "tilt" - on mouseover / mouse position on a movie clip (600 x 300). When the mouseover position is at the top left corner it should be rotated e.g. x = -50 and y = -50 (or "away from the mouse") and subsequently rotated x = 50 and y = 50 (still "away from the mouse") when the mouseover position is at the bottom right position.

View 1 Replies

ActionScript 3.0 :: Any Way To Detect Mouseover Covered Object?

Mar 16, 2009

By, let's say, another display object. I have no idea what it was called.

View 1 Replies

ActionScript 3.0 :: Bring Object To Front On Mouseover?

Dec 31, 2009

Another simple question here.  I have 2 objects next to each other.  On mouseover I have them enlarge.  I would like to make it so that whatever object is being enlarged is brought to the front.  Here is my code.

[Code]...

View 3 Replies

ActionScript 2.0 :: Revolve Tabs Around An Object+mouseover Action

Sep 19, 2011

I really am a noob at AS2.0 so please if anyone can give me a head start as to what i need to use and keep in mind to do the task.

View 2 Replies







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