ActionScript 2.0 :: Alpha Of MovieClip To Rise And Low At Set Amount

Jul 12, 2002

I am still new to actionscript. What I want to do is set the alpha of a movieclip to rise and then lower at a set amount. I can do it so it set it at random but not the way I want it, e.g., clip starts at 20%alpah, and rised by 1 until it at 50% and then reduces by 1 until back to 20% over and over.

Second frame :
i = i+1;
setProperty ("/grid", _alpha, +i);
result = getProperty("/grid", _alpha);
if (result = 50) {
setProperty ("/grid", _alpha, 50-i);
}

Third frame.
gotoAndPlay (2);

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 2.0 :: How To Get Bubbles To Rise Up

May 19, 2004

All I want the bubbles to do is rise instead of fall like the snowflakes. I know how to get the bubbles to go up but I don't know why they are not reproducing again after the initial bunch goes away. I have attached the code. What do I need to do to make it work?

View 1 Replies

ActionScript 2.0 :: How To Make Snow Rise Up?

Nov 15, 2003

how do you make the snow rise up? I sorta did it but the snow doesn't reappear where it should.You can download the original from the provided link,[code]

View 1 Replies

Flex :: Frameworks - Does Not Run The Application, But Rise An Error?

Jun 14, 2011

Recently i got this error

SecurityError: Error #2148: SWF file file:///C:/Users/SUN/Desktop/TriStateCheckBox2/bin-debug/index.swf cannot access local resource file:///C:/Users/SUN/Desktop/TriStateCheckBox2/bin-debug/framework_4.5.0.20967.swf. Only

[code].....

View 1 Replies

ActionScript 2.0 :: Movieclip To Go Under Or Over A Certain Amount?

Mar 30, 2012

titles a bit vague, i had no idea what to call it, i am sorry if this is a stupid question, i just can't find the answer anywhere.

I am using AS2 and i want to create an enemy, but i need it to spawn randomly. yes i know, use random. but i don't want the movieclip to go under or over a certain amount.

i want the movie clips y axis to be over 122 and under 292 (i gave up trying so i just have it set at the highest i want it to be

newenemy._y = random(292)

i want it to be something like random(122,292). but that doesn't work might mention i am extremely new. only started using as2 last week(from memory, i used to just copy all codes i didn't know and the only thing i added myself was key.isDown things)

View 1 Replies

ActionScript 3.0 :: Video Amount Played MORE THAN Amount Loaded?

Feb 11, 2012

I have been having a serious issue with custom video where flash is saying that the amount of the video so far played is MORE than the amount that it has downloaded, which is clearly impossible. This results in various problems, such as the playhead (scrubber) moving past the end of the loader bar. I posted a simple demo that displays the amount loaded and the amount played in text fields. You can see it at: [URL][Code]...

View 5 Replies

Actionscript 2.0 :: Video Amount Played More Than Amount Loaded?

Feb 11, 2012

So I have been having a serious issue with custom video where flash is saying that the amount of the video so far played is MORE than the amount that it has downloaded, which is clearly impossible. This results in various problems, such as the playhead (scrubber) moving past the end of the loader bar.I posted a simple demo that displays the amount loaded and the amount played in text fields. You can see it at: URL...[code]I encoded the video at a high rate so that it would download slowly. It may not playback smoothly, which I am not concerned about. What I am concerned about is the numbers below the video what are derived from ns.bytesLoaded and ns.time. If you watch it for a bit, the amount played should exceed the amount loaded.

I double checked the video duration and the bytestotal that flash is reporting and they are correct. I don't know of any way to check the accuracy of bytesloaded.If your internet connection is super fast, you may not see the issue - it only occurs when it is playing back faster than it is downloading - if this is the case, you may need to throttle your speed down, or start downloading a large file while you are watching this demo in order to see the issue.But this is a serious issue and means that building custom video interfaces with loadbars and playheads is impossible!

View 1 Replies

Removing A Movieclip From Stage After A Set Amount Of Time

Jun 26, 2009

I've got a movieclip animation which is added to the stage at the start of the .swf.Its an introduction to the game, and the user is encouraged to click on the movieclip to start the animation.Once the animation is finished I'd like the movieclip to be removed from the stage.Do I need to setup some sort of event handler which listens out if the movieclip has finished then start a function once its finished to remove it from the stage?  Which methods look out for movieclips finishing?

View 1 Replies

ActionScript 2.0 :: Add MovieClip From Library Then Disappear On Certain Amount

Jan 18, 2010

How can I increment attached movies once I hit a button? And returns to zero when it reached a certain amount.

Example.
There's a movie clip with an instance name of "release".
Once clicked
A movie clip will appear from the library.
and it adds another movie clip when clicked again.
And adds and adds and adds... until it reached 10 movie clip visible in the stage. When it reached 10, all of the called movie clips will disappear.

View 3 Replies

ActionScript 3.0 :: Removing A Movieclip From The Stage After A Set Amount Of Time?

Jun 26, 2009

I've got a movieclip animation which is added to the stage at the start of the .swf. Its an introduction to the game, and the user is encouraged to click on the movieclip to start the animation.Once the animation is finished I'd like the movieclip to be removed from the stage.How do I go about doing this? Do I need to setup some sort of event handler which listens out if the movieclip has finished then start a function once its finished to remove it from the stage?

View 3 Replies

ActionScript 2.0 :: Put A Timer On A Movieclip So That It Appears And Disappears After A Certain Amount Of Seconds?

Aug 12, 2009

how to put a timer on a movieclip so that it appears and disappears after a certain amount of seconds

View 1 Replies

ActionScript 2.0 :: Run A Function Where After An Amount Of Time Of The Mouse Being Idle A Movieclip Plays?

Jan 19, 2012

I'm trying to run a function where after an amount of time of the mouse being idle a movieclip plays, then if the mouse moves another one plays. I have gotten my code to do this, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once. how do I do this?

here is my code,

standstill = 0;
lastmove = 0;
timeout = 3000; // 1000 ticks = 1 sec

[code]....

View 1 Replies

ActionScript 3.0 :: Error 1009 - Add A Movieclip With The Amount Of Points Scored When A Hit Test Occurs

Jul 15, 2009

i am trying to do is add a movieclip with the amount of points scored when a hit test occurs. I have a movieclip with some text and a motion tween. i add this with this code in the hitTest function:

[Code]...

View 2 Replies

ActionScript 2.0 :: Run A Function When After A Specific Amount Of Time Of The Mouse Being Idle A Movieclip Plays?

Jan 20, 2012

I'm trying to run a function when after a specific amount of time of the mouse being idle a movieclip plays, then when the mouse becomes active again a different movieclip plays. I have gotten my code work for the most part, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once.

here is my code:

standstill = 0;
lastmove = 0;
timeout = 3000;

[code]...

View 1 Replies

ActionScript 3.0 :: Movieclip Can;t Set To Alpha

Nov 18, 2010

i draw a rectangle, convert it to symbol1 and export for actionscript. after that i edit the rectangle class and inside the constructor i want to change the alpha value by writing this._alpha=44; a error msg popout : 1119: Access of possibly undefined property _alpha through a reference with static type Symbol1.

View 2 Replies

ActionScript 2.0 :: CS3 How To Alpha Out Movieclip On DragOver

Aug 24, 2009

I posted last week on the topic of getting movieclips to lock into place after you have dragged them in the correct location. Luckily I was able to figure it out by myself, love when that happens.

Anyway, I have a new issue. What I want to do is have a movieclip alpha to 0% when another movieclip is dragged over it. I want to it to happen by 25% each dragOver though. So it starts at 100% then the user drags over and the alpha is at 75% now, then another drag over and 50% etc...

The MC that is being dragged is called ragMC and the one that is alpha'd out is greaseMC.

View 2 Replies

ActionScript 3.0 :: Alpha Not Working On MovieClip

May 28, 2009

I created a symbol (Movie Clip) for my library, and I can manipulate all of its properties except for one—alpha. Here is a sample of the code:
 
var range:Range = new Range();  // Range is the symbol in my library, and has been exported for ActionScript
range.alpha = .1; // Doesn't seem to work as the symbol is still at 100% opacity.
_buffer.draw(range, range.transform.matrix); // This is where I draw the symbol to the buffer
 
Everything draws fine, but it is as if the alpha property is not working.
 
P.S. - If anyone knows, should I use a Graphic for my symbol instead of a Movie Clip if I only have one frame?

View 7 Replies

ActionScript 3.0 :: Alpha Tween From One MovieClip To Another?

Jan 15, 2010

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.

View 1 Replies

ActionScript 3.0 :: How To Change Alpha Value On MovieClip

Jul 12, 2010

Basically, I want to change the alpha value on my movieclip. I start my mc with an alpha of .08 (8%).
mc.alpha = .08;
What I then want to do is increment it to .9 (90%) and when it hits that, decrement it back to .08, and then when it hits that, increment it again to .9 etc.

I have tried
if(mc.alpha==.9){
mc.alpha -= .01;
}else{
mc.alpha += .01;
}

View 7 Replies

ActionScript 2.0 :: Change Alpha Value On Any Movieclip?

Jul 3, 2009

Ok. I am new again so I hope I am describing this correctly. I don't know the best way to do this but this is what I've dreamed up so far: I have a number of movie clips on my screen, all thumbnail sized images, each with an instance name (ex: tw_lifeoftheparty, tw_xmen, tw_xfiles, tw_diehard, etc.).

In each movieclip there are 2 layers: the thumbnail image(bottom layer) and a black border(top layer). The black border is an object named wk_border and isin each of the thumbnail movieclips.

I have given wk_border the same instance name in each thumbnail movieclip "border"

[Code]...

View 5 Replies

ActionScript 3.0 :: Change Alpha Value Of A Movieclip Through It?

Jan 18, 2010

How can i change the alpha value of a movieclip through actionscript?

View 1 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 2.0 :: How To Change MovieClip Alpha

May 6, 2004

I've been trying to change an MCs alpha with actionscipt. the movies FPS is 30. Here's the as:
onClipEvent(load) {
var alpha = blue._alpha;
alpha = 50;
var forwardA = true;
var changeA = true;
[Code] .....
Btw, "blue" is the MC that I want to change the alpha of, and this code is on that MC.

View 6 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 2.0 :: Loading A Swf Into A Movieclip With An Alpha Of 0?

Aug 31, 2008

I have a movieclip named holder inside a movieclip named wrapper and a button that loads an external swf into wrapper.holder when it is pressed.I want to be able to fade in the external swf after its loaded by tweening the Wrapper movieClip's alpha property but the external swf just keeps appearing. When I use the same code to load an external jpg everything works fine. I used an onEnterFrame event to trace the _alpha of wrapper and it shows wrapper tweening in in 3 unit intervals.

Code:
myButton.onPress = function() {
loadMovie("projects/aboutBox.swf", wrapper.holder);
wrapper.holder.onEnterFrame = function () {[code]...........

View 1 Replies

IDE :: Alpha Transparency Upon Loading Swf In Movieclip?

Nov 11, 2009

I have a movieclip and I am loading on it an external swf. The mc is just a square box basically...it is set to 69% alpha/transparent in the "Color effect: style: alpha" settings.The problem is, when I load the swf now the swf is also transparent (seems like 69%)...I basically want the mc to be transparent, but the swfs that load w/in it should not be transparent.

example code:
mc.createEmptyMovieClip("newClip", this.getNextHighestDepth());
mc.newClip.loadMovie("some.swf");

View 4 Replies

ActionScript 3.0 :: Individual Alpha Elements On A Movieclip?

Nov 18, 2009

I have a movie clip that holds a button (latter a dynamic textfield -- (button is quicker for testing )).  I have the movie clip alpha set at .65 as I want the background image to bleed through slightly.  I put the button on the movieclip as I want it to be visible as the movieclip tweens on stage.  My question is, can I target the buttons alpha when the button is a part of my movie clip or does the movie clip and the button have to be seperate?

[Code]...

View 3 Replies

ActionScript 3.0 :: Alpha On Children Of Movieclip Instance

Jan 21, 2010

I've created a class which displays a carousel menu , I've then instantiated this carousel class in another class, created a method to hide the carousel and a button to open / close the menu by setting the alpha to 0. Within the carousel object is the controls for rotation. The problem is when I compile and run and then click the button the carousel is made invisible along with the controls but when I press it again, the controls appear again but the carousel doesn't. Really stumped on this one,

View 6 Replies

ActionScript 3.0 :: Alpha Value Not Working Correctly For MovieClip

Jun 29, 2009

I'm wanting to create a simple red flash effect which entails a red flash suddenly appearing and fading away on screen.

I'm currently doing this by creating a red box as big as the screen and made it a movieclip. I'm then decrementing this movieclips alpha value from 100 to 0 but ofcourse, it's not as simple as that.

It seems that any alpha value greater than 0 makes the object have 100% alpha. So what's going on? How should I do it?

View 2 Replies







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