onequickmemory Posted December 23, 2006 Share Posted December 23, 2006 Hello experts,I am working with FLASH for the very first time and I have made a big effort trying to do something that appears simple-To change the background color of my .swf finished movie on a series of frames toward the end. I have unlocked the layers of the frames in question, attempted to insert action script in the root frame of the clip, but any advice at this point would be highly appreceiated. I did not create the .swf movie, so this is new stuff in my camp. Thanks.Onequickmemory. Link to comment Share on other sites More sharing options...
Sniffy Posted December 23, 2006 Share Posted December 23, 2006 The .swf can only have one bg-color for the file and cannot be changed, at least in MX 2004, but as an alternative.....1. Create the layer 'bgchange' or something that you'll remember.2. Click the rectangle tool and give it any size, your desired color, but make sure it has no border.3. Make sure your rectangle is selected, and then open up the properties box. 4. Change the width and length of your rectangle according to the stage size. E.G.: width: 500; length: 400;5. Press F8 to convert the rectangle to a symbol, a movie clip would probably be most convenient, although a graphic may also work.6. Now open the align panel.7. Make sure 'To Stage' is selected, and align horizontal and vertical center.8. Now insert a keyframe on the frame with the final result of the change.9. On that keyframe, open up the properites box again, make sure your MC(Movie Clip) is selected.10. From the dropdown box 'color', select tint, and the desired color of your changed BG.11. In the timeline, right-click > Create Motion Tween, anywhere between the start and end of your change.*If you don't already have the properties or align box open, find them somewhere in Window>. Link to comment Share on other sites More sharing options...
onequickmemory Posted February 11, 2007 Author Share Posted February 11, 2007 The .swf can only have one bg-color for the file and cannot be changed, at least in MX 2004, but as an alternative.....1. Create the layer 'bgchange' or something that you'll remember.2. Click the rectangle tool and give it any size, your desired color, but make sure it has no border.3. Make sure your rectangle is selected, and then open up the properties box. 4. Change the width and length of your rectangle according to the stage size. E.G.: width: 500; length: 400;5. Press F8 to convert the rectangle to a symbol, a movie clip would probably be most convenient, although a graphic may also work.6. Now open the align panel.7. Make sure 'To Stage' is selected, and align horizontal and vertical center.8. Now insert a keyframe on the frame with the final result of the change.9. On that keyframe, open up the properites box again, make sure your MC(Movie Clip) is selected.10. From the dropdown box 'color', select tint, and the desired color of your changed BG.11. In the timeline, right-click > Create Motion Tween, anywhere between the start and end of your change.*If you don't already have the properties or align box open, find them somewhere in Window>. Sorry for the slow reply, but I am still attempting this(once again). I tried the method you mentioned but I cannot seem to get it. I did notice however that the frames in question have both a bitmap image and a symbol that are identical in the Library. I tried the floodFill method since there is only one color to chage in the bitmap. This however only changed a small section of color when I tested the movie. I started a new layer in a .fla format and then imported the .swf movie to the stage. If you could offer any more insightful advice I would appreceiate it. Perhaps it is easier to simply edit the bitmap or symbol that is used during that section of the .swf movie(about 50 frames total consisting of two layers)?Thanks again,onequickmemory Link to comment Share on other sites More sharing options...
funkyjunky Posted February 12, 2007 Share Posted February 12, 2007 Sorry for the slow reply, but I am still attempting this(once again). I tried the method you mentioned but I cannot seem to get it. I did notice however that the frames in question have both a bitmap image and a symbol that are identical in the Library.If choose the symbol (movie clip) and place that in the place of the bitmap, sniffy's method will work.E xAs your new too flash...i will give you a helping hand =]So you cant get it wrong!! and therefore...you will learn =]Ok so first.Import the Bitmap to stage!File>Import>Import to stageClick on the image and press f8 and convert it into a movie clipAdd a keyframe somewhere along the timeline!Click on the keyframe. Now go to the properties box (Ctrl+F3) and select the little "color" drop down box.Select tint.Now select color and alpha (how transparent it is) using the drag control and drop down palleteRight click on the time line and create a motion tween!And thats it! Link to comment Share on other sites More sharing options...
onequickmemory Posted March 16, 2007 Author Share Posted March 16, 2007 If choose the symbol (movie clip) and place that in the place of the bitmap, sniffy's method will work.E xAs your new too flash...i will give you a helping hand =]So you cant get it wrong!! and therefore...you will learn =]Ok so first.Import the Bitmap to stage!File>Import>Import to stageClick on the image and press f8 and convert it into a movie clipAdd a keyframe somewhere along the timeline!Click on the keyframe. Now go to the properties box (Ctrl+F3) and select the little "color" drop down box.Select tint.Now select color and alpha (how transparent it is) using the drag control and drop down palleteRight click on the time line and create a motion tween!And thats it! Hello once again,I really appreceiate the efforts in helping me with this issue. I have tried both approaches above numerous times now but it seems the frames I am trying to edit stem from a bitmap wich appears to be an instance of a .jpg. When trying the above methods and others it seems I can only change the percentage values (RGB) of the bitmap giving me still and undesirable background color on that image set. If a new layer in the form of a rectangle is created, the same problem: a mix of colors rather than a NEW background color. Question: Could I export this bitmap image to an image editing program or fireworks and then change the background color manually? If so could I re-import it back to my flash movie and rename it the same as the frames call for? Just a thought. Any solution would be greatly appreceiated. I keep hearing how much "fun" Flash can be. Thanks,Onequickmemory. Link to comment Share on other sites More sharing options...
gilgalbiblewheel Posted April 7, 2007 Share Posted April 7, 2007 You can do it on Adobe Illustrator. Choose object live paint on the open jpg file. But you may not be satisfied with the results (I've tried that). But Illustrator is probably the closest to Flash, closer than Photoshop. If you use live paint on a cartoon or drawing image is easier that a live picture.Let me add that if you take a live picture it would have more variety of colors making the live paint more difficult. Thus converting to Flash will create hundreds of layers; one layer per color. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now