ActionScript 2.0 :: Custom _alpha Function Not Working (one Way)?
Jul 8, 2011
I'm trying to fade a piece of text that I'm loading via XML in and out (as well as moving it's location in and out).* The fade out part is working fine, and as long as I have a _alpha.100 command where I'm currently calling my "slidein" function (really the fade in function) it works fine. No idea why! I've tried about 100 different placements and I'm stumped.. It's very perplexing.*
ActionScript Code:
function loadXML(loaded) {
if (loaded) {
[code].....
View 2 Replies
Similar Posts:
Jun 20, 2007
In my app I fade a movieclip, and when that movieclip reaches _alpha=0, I want it to send out a signal to let another movie clip begin to fade in.
How do I do this? Is it something even remotely like:
Code:
firstMC.on(_alpha==0) = secondMC.beginFade;
???
EDIT: I don't want to put any code on movie clips -- my code all runs from the root/main timeline.
View 6 Replies
Apr 27, 2011
have a big Flash (AS2) book, with a small button that, on zoom, disappears (_alpha = 0)This is working either when i run the swf directly, in Firefox 4 and Chrome.
View 2 Replies
Nov 29, 2004
I'm using Flash MX 2004.
PHP Code:
// function to automate the hit tests
function hitClip (aCPlaceNum, loopNum, loopName, aCButtonNum) {
[code]....
View 2 Replies
Jan 13, 2006
I have eight images in a MC that I would like to sequentially fade in, display for a few seconds and fade out using _alpha function. So far I can fade one in with this AS:
img1._alpha=0
img1.onEnterFrame = function() {
this._alpha +=10;
}
Assuming my instances are img1, img2, img3, etc, etc... how would I go about sequentially fading each instance from 0 to 100, letting it display on the stage for a few seconds and then fade out (like a slideshow)?
View 7 Replies
Nov 29, 2004
I'm using Flash MX 2004.
[Code]...
Can you please tell me why this isn't working? It takes me 10 minutes to test the movie every time and it's taking me forever to fix things. Do I have to do something else with the variable names I'm using or something?
View 2 Replies
Feb 25, 2004
I have a movie clip (dnk) 7 (not key!)frames long, with 7 different objects (mc's) inside, named dnk0-dnk6.Then, on the mc (dnk) I have:
onClipEvent (enterFrame) {
strDnk = "dnk"+(_currentframe-1);
alpha = getProperty(strDnk, _alpha);[code]...
So, the idea is, to have this mc's (dnk0-dnk6) fading one after the other in a sequence. Which happens as it is supposed to, but what I am trying to do now, is reverse it. With no luck, as you can see from the top script .I was thinking about a solution in a way of telling when _alpha is below 0, than the _alpha would start to rise, until it reaches a hundred, then it would start to fall again.
View 2 Replies
Apr 1, 2008
I want to call a function from another function's parameter but I don't know how and don't know if it is possible.I've considered this as a solution but it didn't worked.
Code:
function myFunc(target_mc:MovieClip, nX:Number, nY:Number, cFunc:Function) {
target_mc._x += nX;
targen_mc._y += nY;
target_mc.onPress = cFunc;
[code]....
View 2 Replies
Apr 22, 2003
I have 2 movieClips that I want to fade.mc 1 fades out while mc2 fades in. I want to do it in AS to keep my file size down, 'cause I will be having quite a few of this happing.I know how to have one mc fade in using:(I know this is a fade in and I can fadein/out individually)
speed = 10;
bigCalendar_mc.onEnterFrame = function() {
if (this._alpha<100) {[code]......
View 4 Replies
Jan 7, 2008
I'm not having luck setting alpha values with _parents that contain child textFields created dynamically. The text filed doesn't change its _alpha with the other objects in the movie clip.
View 3 Replies
Feb 13, 2004
I have this code. It works fine when i press a button.
if (_root.mc._alpha == 100) {
this.onEnterFrame = function() {
speed = 50;[code]....
I need to know how can I trace the _alpha value of the mc and when the value is 0 a movie clip is loading in the same mc.
View 3 Replies
Dec 9, 2011
I have created a Custom Event, that is fired from a custom component. It should be catched in the main application to change the selectedindex of the viewstack.[code]
View 1 Replies
Dec 11, 2010
I have made a very simple custom event class and have it imported to the main timeline and another class. The problem is I'm not getting an error but it's also not working. Below explains my setup main timeline:
ActionScript Code:
import Operator1;this.addEventListener(Operator1.CONNECT_ME, eventHandler);
function eventHandler(evt:Operator1):void {
trace(evt);
}
in another class I import the Operator1 class and dispatch the event using the following (from a button's press):
ActionScript Code:
dispatchEvent(new Operator1('hello'));
heres the operator class:
[Code]......
View 7 Replies
Aug 12, 2010
Can anyone help with this, I've been working on it for hours straight and I'm still having major issues.
Sometimes it works great, sliding each new status update down as it should. Most of the time it seems to have completely random positions set. I am completely at a loss. [URL]..
I think it's an event issue, specifically with line 127 trying to loop through the children and dispatch a custom event to all children. I'm not sure how to best do that.
View 8 Replies
Aug 3, 2010
Does setting _alpha levels to values less than 0 or greater than 100 cause problems?I know I can program these out but I am trying to make some code as efficient as possible.
View 9 Replies
Aug 20, 2010
I'm trying to do something fairly simple. I have a movieclip that when clicked with change it's alpha = 0.This is the script I'm using for the movie clip:
ActionScript Code:
onClipEvent (mouseUp) {
_alpha = 0;
[code].....
View 4 Replies
Oct 30, 2006
how to have a MC have _alpha = 0 when clicked anywhere outside the mc
View 9 Replies
Jan 19, 2004
im using the current code on an mc to fade in
[AS]onClipEvent(load){
this._alpha = 0
fadespeed = 15;
}
onClipEvent(enterFrame){
_alpha += fadespeed;
} [/AS]
how can i make this increment until it reaches 75% instead of 100?
View 5 Replies
Jul 1, 2010
I'm trying to set a custom envelope for a sound in Flash CS5. I can bring up the envelope editor fine. But, I find that all the control points are after the end of the sound itself. If I click on the waveform to create a new control point, the point momentarily appears where I click it, then automatically jumps to the end of the waveform. If I try and drag any of the control points from after the waveform to during it
View 1 Replies
Apr 15, 2011
I want to create flex application by which i can verify user age i have use following code can u tell me why i cant see mx component "dialogtitle","dialogcontent""dialogbutton"
<?xml version="1.0" encoding="UTF-8"?>
<mx:VBox creationComplete="{initComponent();}" height="219" width="560" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" xmlns:local="*">
[code].....
View 1 Replies
Apr 20, 2011
How to create and to work with custom metadata in ActionScript3/Flex?
View 2 Replies
Jan 5, 2010
I'm using AS2 (Flash 8), and I created a subclass of MovieClip - Card and attached an instance to the stage using attachMovie. However, I can't seem to make it invisible using _visible. Using _alpha works, however, but I would like to use _visible instead. where the problem might be? Here's the relevant code:
[Code]....
One more thing, what are the events for when the mouse cursor enters or leaves a MovieClip? I've tried onRollOver and onRollOut, but those are apparently not the correct events...
View 2 Replies
Jan 13, 2009
I have created a movieClip and placed two dynamically created text fields within it. These fields use embedded fonts and work when I first add text and the format to themThe issue I'm having happens when I change the _alpha of the containing movieClip to 0. After that I can not get the text to appear again, even though the _alpha on the containing clip traces out to 100.I am not using the tween class on the textFields or containing clip to achieve the _alpha. I am however using the tween class elsewhere.
View 9 Replies
Jan 7, 2011
I was trying to make a menu for a game, (and I succeded, it works fine) when I noticed that if I store a clip name in a string var I can't I acess it's alpha with varName._alpha (?) or some other ways I tried.
Is there anything wrong in my code, or is there a way to do it that isn't the one I'm trying?
The way I'm doing it, I have a MovieClip for each screen, that in turn contains all the MovieClips and Buttons, etc, that each screen must contain. So sometimes I must specify the path to things with "_root.MovieClipName.thatThing._blah". Although I think this has nothing to do with my problem there, since the vars are all declared in the stage's timeline...
If you don't quite understand how the functions work, here's a call swapScreen function example: swapScreen("overlap", "OptionsScreen", "options");
If "swap", it removes the screen I'm in, and attaches another one in place. If "overlap" it overlaps the current screen with an overlaper screen (like opening the Options menu ingame). restoreScreen() restores to the previous screen that has been overlapped.
ActionScript Code:
function swapScreen(swapType:String, ID:String, screen:String):Void
{
if (swapType == "swap")
{
[Code].....
View 2 Replies
Apr 4, 2006
I have a dynamic text box and i want to mask it but its not working. i remember once someone was showing me something that had to be done to a dynamic text box to get _alpha effects on them and I wonder if its the same thing. Problem is, I don't know what that "thing" is.
View 4 Replies
Nov 13, 2006
I have a slideshow that loads images fia xml.
I have a caption in the middle of stage, that fade in with image.
my problem is that it blinks all the time. I don't know what should I do this is my code that fade image:
ActionScript:
this["image_dropzone" + _root.currentImage]._alpha = 100 * (_root.counter / (_root.fade * _root.second));
[Code]....
I have this Slideshow. http://www.flashkit.com/movies/Scrip...8470/index.php
How to make _root.caption Fade in and fade out with Image. Without Blink.
View 3 Replies
Dec 12, 2007
On frame 1 i have
Code:
var mc_top:MovieClip;
mc_top._alpha = 68;
And after our hero dies i have this code in frame labeled "die"
Code:
gotoAndPlay(1);
also tried
Code:
gotoAndStop(1);
But now the _alpha setting isn't shown??
View 1 Replies
Jun 14, 2011
I have been struggling trying to get this Custom Mouse Pointer code working.I have tried both the following and neither work.[code]There error I receive is:"Symbol 'Symbol 1', Layer 'Layer 1', Frame 1, Line 21120: Access of undefined property cursor_mc."I have also zipped up the code in a simple fla file.
View 7 Replies
Feb 8, 2006
I made a class that runs fine when used in a movie published from flash 8 on a PC WinXP, but when i try to use it in mx2004 Mac OSX, i get the error:
Code:
**Error** xxxxx:Archive 02 WIP:test:PicSwitch.as: Line 42: There is no property with the name 'onMotionFinished'.
tweenIn.onMotionFinished = function() {
**Error** xxxxx:Archive 02 WIP:test:PicSwitch.as: Line 48: There is no property with the name 'onMotionFinished'.
tweenOut.onMotionFinished = function() {
In my class on the first line i use:
import mx.transitions.Tween
... so that i can use the Tween class in my class.
View 2 Replies
Nov 12, 2004
I have an actionscript that controls the movieclips _alpha through instance names. The problem is: I habe a lot of movieClips and I will use the same action in all of them. The same action, just changing the instance name.
View 4 Replies