I was wondering if there is a way to find a slightly darker and slightly lighter colour based on a particular value?
I have a MovieClip with 2 nested MovieClips inside. The background movie I set to a certain colour using ColorTransform and the other movie is sort of shading.
What I'm trying to do is make sure that I transform the shadings colour to be a darker shade of the background movie's colour.
I was also thinking could I then have a mid point where if the background colour is really dark have the shading start to be a certain shade lighter?
On the DateChooser component, it shows the days for only the current month... but i'd like to show some of the previous month's days and some of the next month's days.Is there a property to set on the DateChooser component to show 42 days. I mean, to show some of the previous month's days + the current month's days + some of the next month's days. I'm not sure what this is called...If you look at a typical month calendar, for example for June 2011 it shows:
S M T W Th F Sa 20 30 31 1 2 3 4 5 6 7 8 9 10 11
[code].....
Is there a property that I've overlooked which shows some of the days from the prev. month and next month in the current month view? Or would I need to extend the DateChooser component and override a method?
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.
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!
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();
<!-- 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.
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();
Anyway for some reason when i test scene the box comes up showing my flash fine but when i go and locate the .SWF in the folder that all my flash fla and swfs are then for some reason its only a graphic clip and movieclip animation that displays and the rest of the background is the background colour. I checked this by first changing it to black and preview. To which the background changed black and then did the same and changed the background colour to blue and the same thing happened, the background in the swf changed to blue aswell. I have no actionscript in the scene and the majority of the things are just art besides a graphic clip the movie clip animation.
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.
I've used script -[URL] to open a centralised window on the release of a button. It works brilliantly but how to change the background colour of the opened window to black. I'm no programmer so don't really have much of a grasp of Action or Java script but having looked on the web, I think what I need to do is use document.bgColour('#000000') somewhere in the script but have no idea where to put it or even if it's right!
I have tried to locate any guidance how you would go about creating a small control panel that would allow a user to adjust the size of the text, its colour and say the background colour too using actionscript 3.I understand that text formatting can be done on dynamic textfields but can this be achieved on static textfields?I am currently putting together a number of modules each a swf that contains e-learning and to comply with DDA.
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.
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]...
how do you control the backround colour of a movie clip and the stage? i have thought about placing a mc within the mc as a backround_mc, then change the tint attribute from my main timeline, is this on the right track?
i have a movie where a user loads images into an image viewer (mc) i have craeted. If a user clicks on gallery 1, the loader appears, and load the jpg and then tells the viewer to show onceloaded. But, if a user clicks on gallery 1, then clicks on gallery 2, the movie finishes loading picture 1, before loading picture 2, is there any waqy i can force the loader to stop loading one,a dn load two immediately.
I have careted a class, now, how do i assign an mc to be an object of that class, from the main timeline or the onclipevent load event
I have flash file with 5 dynamic textfields which reads everyday from an array 365 (year) inside the file what I want is to read from an xml file instead.
The first layer contains this code the arrays: function make365() { arr1[49] = "05:30" arr2[49] = "12:35" arr3[49] = "13:10" arr4[49] = "15:55" arr5[49] = "18:20" [Code] .....
The stage contains 5 dynamic textfields each one named respectively quote1 ,quote2 ,quote3, quote4 and quote5. How can I make the function 365() reads from an xml file instead.?
I'm having a very odd bug with ActionScript 3 in Flash CS4. I am adding movie clips to a stage in a for loop and then moving them out of view so that I can pull them in and remove them when I need them.
I've narrowed down the issue to a point that I know that every time one of the movie clips are added to the stage using addChild(), the stage shifts to the right by one pixel. I know that sounds odd, but it's literally true... the 0 line on the y axis is shifted to the right one pixel every time the movie clip is added.
Here's the code that is doing the work:
private function setupSlides():void { for(x = 0; x < TOTAL_SLIDES; x++) {