I have a quick question about fading a bg color using actionscript. I am creating a splash page at 800x600 in flash, which is being opened into a new window that fills the browser of the users screen. I already have the actionscript to open into a full browser window.
However, when the user clicks on a button in the 800x600 splash, the bg color in the full browser window will need to change from blue to white. What would be the best way to do this, is there a piece of actionscript that can be attached to a button to do this? Or does a large flash document size need to be created with the 800x600 centered in the middle?
I want to create a background that is made up of circles of different opacity levels. I would like the circles to continue to fade in and out while you are viewing animation. I was wondering what the best way to go about this is, using actionscript 3.
I'm currently working on this site, which was made on a linear timeline and just rewinds and fast fowards to the frame with each page on [URL]
This was done with limited Actionscript, but now I need to redo it almost entirely in AS
I figure I need to keep everything on one frame (separate vertical frames, but no animation horizontally) and create movieclips for each page's content and tell it to fade in the content of whatever page is clicked on the nav, and fade out the rest. I will also need to do the same, but with the background images in fullscreen. I also have a problem with the bottom nav. It adjusts to window height on resize, but I can't get it to adjust automatically.
So how do I
1. Tell the movieclips to fade in and out when a button is clicked
2. Get the background images to fit full screen, and also fade in/out for each page
3. Get a movieclip to adjust to screen size without using onResize
I have an image and i want to remove white color from image.That removing color is same like its background color. If anybody have any idea of this problem please answer?And my application in Flex 3 so please send me action script code of this problem.
I have a dynamic textfield that displays different text. What I want is the ability to control both the text color and the background color of the textfield.
So i'm working on this website and I want to be able to switch out the entire color scheme on the website everytime a button is pressed, I've stepped away from flash for awhile and actionscript 3 is new me. Plus I haven't quite found any truely useful stuff on forums yet.
What i can't figure out is when a button is pressed the HTML background color changes to one of 5 preselected colors (that alternate ever time the button is pressed). Then for each background change the text changes too as it is part of a entire new color scheme.
What I've managed so far is to change the color of the background thats within the Flash file. What i did was to make a movie clip that plays to a next frame and stop everytime the button is pressed. Now i just need to also get to change the HTML color and the font colors.
//"homeText" being the name of dynamic text field and "Button" the name of the button and "background" being the movie clip that is the background within the flash file.
Button.addEventListener(MouseEvent.CLICK, Button_CLICK); function Button_CLICK(e:MouseEvent):void{ background.play(); homeText.TextFormat(color "0x000000");}
I'm not sure if my code is just sloppy or if i'm completely going the wrong route here.
I want to do a nice effect that would do something like this: So far, I made a separate layer in photoshop for each colour, and I want these to slowly fade in and out. The problem is, however that each blob is about 140KB if I use PNG. Is there a better alternative like doing this in vector and blurring it in jquery?
I have been sent this website. When you click on an option from the menu, the menu and the background fade out to bring in a new background. The problem I am having is that I am trying to stop the menu fading out and just have the background change.The flash file for the part of the website I am working on can be found here:
I've read through several tutorials but I must be doing something wrong on this. I'm using Adobe Flash Pro CS4. I am trying to create a short clip that fades text in over a bacground video. When I create a motion tween on the text track, I'm generating an error and the background video is no longer visible in the preview. Instead, I see the text over the stage background color. It is as if the background video track has switched to wireframe. Here are the steps I've followed:
1. Created Flash File (ActionScript 3.0).
2. Imported Video into the State background layer - it appears as a black image in the it previews fine at that point
3. Created new layer for text and placed text - it previews fine at this point, text is overlaying video
4. I right click on the text block and choose convert to symbol.
5. Next with the play head on the first frame and the Text layer selected I choose Create Motion Tween. This is when AFP throws this error:TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.video::UIManager/http://www.adobe.com/2007/flash/flvplayback/internal::hookUpCustomComp onents() at [code]...
Here I've a sound track included in timeline from first frame (not in actionscript).
And after intro, I've a video button where I added a video with sound which starts to play by clicking
Now the problem is both background music & video sound mixing & creates a noise kinda combination.
I need a solution like fading out the background music if i click the video button & fading in when clicking some other button or navigating to other pages?[code]...
Is it possible to change the background color of AS3 Color Picker component using AS3? It is always black behind the swatches and I would prefer it be white but even after alternating the skins in the library it always appears black.For example, I would like the swatch to initially be a circle which I have done and have it open to a grid of circular swatches.
Is it possible to change the background color of AS3 Color Picker component using AS3? It is always black behind the swatches and I would prefer it be white but even after alternating the skins in the library it always appears black. For example, I would like the swatch to initially be a circle which I have done and have it open to a grid of circular swatches. I have done this but an overpowering black box always appears below.
I have an image that I want to make into a button/movie clip that starts out color then fades into black and white (that has text on top when it fades into black and white) when its clicked, and stays that way.....how can I achieve this?[URL]His is reversed from B&W to color, and stays in color after it clicks. I want something like that but B&W when its clicked instead (with text on top)
I have a flash file with a background music sound object, and I have a video player at a particular section on the timeline. When the playback head goes to the section with the video player, I would like the background music to fade, but of course, I need the volume to be up for the video. The code I have works find to fade the audio, but the problem is that the video's sound also turns off.
This is the code at the beginning of the timeline: _global.volumeVar = 40; //Stores the current volume. bgSound = new Sound(this); //This block works finebgSound.attachSound("music");bgSound.start(0,99); bgSound.setVolume(0); [Code] .....
Further down the time line, in the video player section, there this code, which works to fade the sound, but seems to turn off the video, too: nInterval = setInterval(fadeOutSound, _global.volumeVar);
I have assembled a preloader using the method from this site, everything seem to work except for one problem My site supposed to start from a black background and the image fading in. However once I placed the preloader the image dose not fade in but appears right away to the full strength after the preloader gone to 100% Looks like it jumps to a few frames after the first frame of the main swf file. Please take a look at [URL] If you reload again you will see how the image fade in.
I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.
Here is the script of it:
var myLoader:Loader = new Loader(); var url:URLRequest = new URLRequest("scene2.swf"); myLoader.load(url); addChild(myLoader);
I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!
I created a flash application which loads in many other little flash applications (.swf files) based on menu selections. When I change one of the little applications the changes are viewable except when I change the background color.
After the first time I view the application, the background color changes do not carry over to the main app. I run the little ones stand alone and they show the new color, then I run the main app and any other changes I have made are there but not the color change. When I remove the file and the load fails, the old backround color still displays in the container movie clip the .swf was previously loaded into.
I have tried several different options and the only thing that worked was renaming and copying and deleting and making a big mess. There has to be a way to force a refresh of this mysteriously saved color. doesn't there?
how I can set the background color of button components?I always have transparent buttons.I mean: they display the color of the main background and, therefore, they lack some enhancement.
I have a TextField that needs to display a string.This string has an associated highlite map that indicates if that character in the string needs to be highlighted in some way (say, a yellow background color, which would be ideal).However, after a great deal of searching, there does not seem to be a way to assign a separate background color to an individual character in a TextField.Has anyone tried to do this with any success?The css support doesn't include background image or color.
I have thought about breaking the string up into a number of TextFields (as many as there are charcters in the string) and displaying the resulting TextFields end to end, but since the original TextField/string is multiline, I'm not sure how I would determine where the line breaks.
I have an SWF that has a print function attached to a button that prints a movie clip called content_MC.I have the SWF set with a transparent background using the wmode=transparent in the embed object.The FLA/SWF has a white stage/background.When I print the SWF that is set with a transparent background to PDF the background prints as black. I'm assuming this is because of the wmode=transparent setting in the embed object. What I need is for the embed object to stay transparent on the website but for the background to be white when someone prints.Is there some sort of variable in the PrintJob class that might handle this?url...
I am using swfobject to display some Flash content (please don't tell Steve Jobs) and I need to set the background color of the swfobject content to black so it blends nicely with the black page it is on.I tried using the following code but it didn't change anything: