Page Transitions W/ Background Colour Change Or Would It Be Timeline In Reverse?
May 24, 2009
I'm trying to create a flash website where when you click on one page the background becomes darker and as you're about to click on another page the background becomes lighter again but if you want to go back to the previous page the background goes back to being darker. I hope this is clear. I've been trying to find a tutorial on this but I'm not sure if I'm using the correct terms, which is why I'm having no luck.
I finaly got the code I needed to change the colour of my background but it clearly needs altering. At the moment it works but I have to click the button twice for the colour to change. Now for once I see that this makes sense because I have onRelease twice!
This code is on the button:
on (release) { home_btn.onRelease = function() { var myColor:Color = new Color (this._root.background1); myColor.setRGB(0xFF8844);}
However i'm unsure how to alter the code correctly....I assume the second onRelease needs to change to something else? I tried just: home_btn = function() { but am really just guessing.
I got this code from Kax. This allows me to change colour of my background. This use to work on my movie but now is just not working anymore!Since i created a button loading a .swf file this has stopped working, Any suggestions anyone?[code]I understand that I have to replace "myMovieClip" with the name of my clip!
<!-- fill --> <!--- Defines the appearance of drop-down list's background fill. --> <s:Rect id="background" left="1" right="1" top="1" bottom="1" > <s:fill>
[Code].....
If you look closely you'll see that I've changed the default value for the bgFill color. However, when I run my application, the background color for the dropdownlist is still the default white.
I've created a banner ad (attached) for my company and intended to have it appear as a rectangle with rounded edges (transparent corners). It seems like I need to create a transparent border or mask to have my animated banner appear in this way.
Can I add a mask or a border to the whole thing just to make the rounded corners transparent and see the background colour of the site I'm putting it on?
Note: the corners are currently white. I can't change the colour to match the site background as 1. the banner will be shown in different places, and 2. the background is a gradient.
It seems like there are various hacks out there to change the background colour of the row of a datagrid but all of them seem to happen at render time.See: http:[url]....I have a datagrid where I need to change row colours to red then back to normal frequently based on changes to the bound ArrayCollection. So I'm looking for a way to change the row colours dynamically.Obviously as the changes are happening frequently it would be nice if changing the background colour of the row wasn't an expensive process.
how to change the background colour of a flash slide-show. I am trying to post a slide-show on a website, but some of the pictures do not fit the box well and, as a result, there are black bars surround them. Is there a way that I can change the background colour so that it blends with the background colour of the website?
There are a few posts around this topic but not on exactly what I'm trying to do. At various points in my flash app I want to try to affect a change in the containing html. basically I want to be able to change the background colour of a div. I understand i will probably have to use external interface to call a javascript function, but I'm strugging to get the js right, I'm imagining something like this[code]...
I need to change all the elements in my movie that have the color X and change their color to color Y. Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?
Is there a way that I could change the background colour using the "ColorPicker" component in flash CS5? I want to be able to change it from within the swf once it is published.
[URL]is there a way to instead of having an outro animation for your movieclip, make it reverse the whole timeline to the start and THEN load the next external swf? [URL]
I want to create a flash document that allows me to change the colous of an image using a colour palette of my own. I am a complete beginner and have no idea where to start this, hence i would need to know what to do and how to do it. I basically want the image to be a simple 2d image that i will create using different layers in photoshop and import them into flash, the layer images will all be one colour so the colour of the whole layer changes. so the colour palette will be on the side of this and when i click on an image and then a colour the image changes to the colour i clicked.
I have a flash file that I'm trying to change backgrounds for each page. The background itself changes nicely but I'm having a problem getting the background to scale to the stage size. I'm using Greensock's Liquid Area to try and handle it and it does well with a single background but as soon as I introduced more my code choked..
This may sound stupid, but does anyone know if is possible to change the background of an html page in which the flash movie resides via a script in the movie?
it's possible to dynamically change the background of the holding HTML page from Flash?I thought it would be possible through making a Javascript call from Flash?
I made a website a year back or so and I'm having to update it now. However I've noticed the flash menu I have on the site doesn't seem to appear correctly anymore when I check in on a PC using IE.
Basically in the bottom left hand corner the swf background colour should appear grey (#333333) not white. Seems to work fine on Safari and Firefox.
This is probably easy, but I'm an AS3 noob and google is returning every result under the sun apart from the ones I want. Is there a way to set the background colour of a flash movie according to a value pulled from an XML file?I already have the background colour property set as BGCOLOUR within my XML file, and I've used the code in line six to pull that value through (I think)...
ActionScript Code: function processXML(e:Event):void { var my_xml:XML=new XML(e.target.data); my_speed=my_xml.@SPEED; my_images=my_xml.IMAGE;
[code].....
Since adding the sixth line of code in the section above, it's broken the project, so I've had to remove that line.
Basically I have just created an animated button using frame labels, and was wondering if there is any way to reverse the timeline.
Currently my code looks like this:
Code: btnHome.addEventListener(MouseEvent.ROLL_OVER, btnHomeOn); btnHome.addEventListener(MouseEvent.ROLL_OUT, btnHomeOff); function btnHomeOn(event:MouseEvent):void {
[code]....
The way it's coded here, if the user removes the mouse from the above the button the timeline continues from homeOff.What I want is for the timeline to reverse from its current position instead of just playing forwards from a fixed point.
Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.here's my code:
public function print():void { //bitmap_to_print.smoothing = true; var print_page:Sprite = new Sprite();
and I want place the following javascript in my HTML file:
ActionScript Code: <script language="JavaScript"> <!-- function changeBgColor(newBgColor) { if (window.document && window.document.bgColor) {
[Code].....
but I don't know where in my HTML file to place it as there is alot of Java I don't understand. I have tried to place it in myself but it won't work. The HTML file I wanna place the Java into, is attached.
Basically I've created a print class which has all the print job code in to print a sprite, however when I print it, the sprite which I've created acts like a mask and the area where the sprite graphic should be is filled with my background colour.When I scale the image to the width and height of the print width and height, obviously I've got a page full of purple.
ActionScript Code: public function print():void { var print_page:Sprite = new Sprite(); var sp:Sprite = new Sprite();
I'm working with AS3 and I have two questions. First, to save on having to re-do work, is there a way to simply play the timeline in reverse IE from frame 210 - 200? I've got a page set up to slide in from the right when clicked on, and if you click on the back button, I want the page to slide out to the right again. Figured the easiest way to do this would be to simply reverse the timeline. Just don't know if that's possible in flash.
Secondly I've got it set up in the timeline for a FLVPlayback component to slide in to the center of the stage from the right when its page is clicked on and though this works in the timeline, when I test the movie, it doesn't slide in and if I expand the preview to full screen, the flv and its controls are still on the right side of the stage. how to get the movie to slide in properly?
im using flash CS3 with actionscript 2.0. what i want to create is a column for an online magazine, the column will display a list of content, this list will be longer than it appears and have a "next" and "prev" buttons located at the bottom. i can set it up so than when next is clicked the content shifts and displays more, the problem is, what do i do about the "prev" button? i cant make the timeline play in reverse can i?
How would I get to play backwards a timeline from a specific frame to another frame?
I need to be able to play back from frame 62 to 1 and from 101 to 62 depending on what frame I am on. I know I can do 2 if loops with if (currentFrame == 62) etc but what is the code to play the timeline in reverse for AS3?
(1) I would like to be able to "grab" the current frame (as an integer) that the timeline is currently playing as the SWF plays and use it as a variable:Number. Is this possible? Alternately, it could be how many (milli)seconds the swf is into at a given point during playback. Is this possible? I'm trying to create a scrubbable SWF based on current frame that playhead is on relative to frame(1) and frame(last).
(2) Is it possible to have a timeline play in reverse? Example: swf plays until frame 25 where it is told to stop();, then depending on a condition, it either play();'s on to the next stop(); action or playReverse();'s (I know that this doesn't exist) back to the beginning of the SWF at the document's frame rate.