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) {
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.
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:
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)?
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?
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.
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.
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]......
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.
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]
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:
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.
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.
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:
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
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"
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...
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.
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") {
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.
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.
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.
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.