ActionScript 2.0 :: [FMX] Call Back A Function - Control The Alpha Of A Few Squares
Mar 31, 2004
I have a made function to control the alpha of a few squares. The function looks like this:
[Code]....
I know that I can call that function for one mc with: [AS]fadeSq (square1, 0, 4);[/AS] But is it also posibe to call the function for let's say seven mc's at once. I mean without writing seven lines of scrip?
I am developing a photo gallery using an XML file as the structure. As the document class I have a class called PhotoGallery:-
[Code]...
Once the parsing is finished here I want to call a function back in the PhotoGallery class to start setting up the PhotoGallery. Is this possible, or am I even going about this in the right way? I am not sure I am using classes in the correct
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
The links on the site above have a nice alpha tween effect. It looks like the rollover fades out the alpha so that the links appear brighter. When you rollout the alpha reduces.
What would be the best/most logical way to do this? I presume you create some AS that contols the alpha tween and keep this on the timeline as a function. Then for each button you call the function.
When a movie clip is clicked on, another movie clip will fade out.The problem is that the clip that needs to fade out just disapears in a second, is there a way to controll the speed.I read a lot of info about this for complicated setups, is there a simple fix for this.I was hoping I could just do this designR_mc._alpha = 0/4;But that does not work.HERE IS THE CODE
I'm trying to accomplish a similar effect as seen on :[URL].. I suspect its just perlin noise displacement with a loop on the DisplacementMapFilter to decrease/increase the distortion over time as well as an alpha tween. I have been able to spy that they are using caurina tweener, which isn't of interest to me.
Its the principle I'm after, not a copy of their effect. I'm trying to assign an alpha value to say, the White/Black area of a PerlinNoise generated Bitmap. Where the White would be 0% and the dark 100%. And have that White value increase over time so that the entire image, the filter is applied to, gradually fades into view.
I get the alert but I can't get the lightbox window to display. When my as code makes the ExternalInterface call I get what looks like a page refresh and a blank browser window.
I have an enterFrame action that I use on a graphic:
[Code]....
Because I want to use the above code more than a few times, I tried to make it a function.
[Code]....
But for some reason the function call does not work when I call it via an action on a graphic where initially the code worked when it was explicitly written and not called as a function.
how to create the proper Actionscript code that will control the Alpha Transparency of a MC I want as a preloader. I want the MC to start of at 100% alpha-transparency, and then decrease to 0% alpha-transparency when the whole Scene is loaded. Also, it should show the precentage of the Scene loaded. I have the code that I thought would work to control the alpha transparency of the mc and loading it. But, I get confused with the perloader code to incorporate into the alpha transparency code? Does this make sense; is it possible?In Leaman's Terms, As the scene loads, the mc goes from invisible to visible at completion of the scene load.
Here is the code:
Code: onClipEvent (enterFrame) { loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal();
[code]....
Now, I have no idea if and where you'd include the poper code to control the mc's alpha transparency based on the percentage of the scene loaded? Can someome maybe rework the code to make this work. And use a working example, that way I see it working to fully understand the concept? The mc's instance name is "sm_logo". Where would I use the instance name in this code, or better yet the proper code alltogether?
how I can use the location of the mouse to control the alpha of a movie clip. I have 3 images that are the full stage width/height. One image will be in the background and does not need to be changed. However the other images I want to fade in when the mouse is moved from the middle to the left or the right. So I know I need to set a min and max value to be the range of the alpha, but I have never worked with mouse position before. I can't use the mouse over function like many tutorial's show due to images being full screen.
I need to get a javascript var in my Flash application. I like to be able to just set a variable in the javascript (client constraints) rather than define a function.
Can this be done? I am trying to use the ExternalInterface.call()
Is there a way to have php call back? Say, if i have an error on the php end, it'll echo "&error=disconnected" or something. I want to be able to call back information However its not working in my favor
I need to return to my original function after capturing an event (downloading something) with another function. The original function needs to return a value, which depends on the downloaded data. So, I'd like to pause original function for the time needed for the download and the eventhandler function to complete it's work, and resume it afterwards.
The obvious way is to set a flag value (both the original function and the eventhandler are within the same class) and make the original function check it until the eventhandler function changes the flag. But that would be wasteful, and my AS is slow enough already:) [other parts of the application utilise some heavy graphics]. Is there another way? Like an event that gets captured "in the middle" of the function? Or some other form of flow control?
I'm making a slider which will eventually control the alpha levels of a movieclip of mine but I'm having trouble controlling the parameters in the startDrag() function. Here is the code:
[Code]...
This seems to work ok, however, the problem is encountered when I go to drag the MC...for some unknown reason it ventures off its slider bar and goes to the left. I will attach the .fla.
have a node that has an asfunction embedded - won't work. if I change the a href to a web page- it works fine. If I try to call a custom function it doesn't call it at all.
My flex 3.5 application has an audio player whose content is accessed by calling an AMF service to get the mp3 data. As far as I can tell, flash.media.Sound is initialized with a URLRequest, so it's not clear to me how I can provide it with data using my RemoteObject.
I want to do one of the following things:
Provide data to the Sound object's load method from a RemoteObject service call. Create a URLRequest object that will perform the requisite AMF wrapping so that my service implementation will look exactly like any other service call if at all possible. Any alternative that allows me to invoke a PHP4 AMF service and play the audio it returns in a Flash audio player.
iam using FLVPlay back control in my project, i need to mute it while running first time automatically. it may thr script or any other option? i got struct up. mute buttton has to be ther, but initially it has to be muter, and video has to play.
I have a tweened movie which plays on a loop. A click on the image area stops the movie and the image fades nicely from alpha 100 to alpha 0. A second click brings the image back immediately to alpha 100 and the clip continues. I would like the movie image to fade back in from alpha0 to alpha 100 before it re-starts; (the reverse of the fade out). At the moment the re-appearence of the image is a crude jump. So far my ill informed tinkering has not worked.