View Full Version : Transparent flash animation on my website
cdoh36
08-29-2007, 05:40 PM
I did one of those transparent flash animations by wmode transparent swf in a div layer, but the layer doesnt stay locked in the position I want it too, it changes by browser and by computer. Anyone know how to lock it in place?
2.0 freak
08-29-2007, 09:26 PM
DIV layers have always been unstable for me. I am a website designer, if you post the link I could probably find another method. O and tell me exactly where you are wanting it to be.
Note: I won't be able to reply again in about 3 hours.
cdoh36
08-30-2007, 09:33 PM
it is at www.twigboston.com
I want the animation to settle in
between the best of boston icons and the twig marketplace icon.
Thanks
cdoh36
08-30-2007, 09:36 PM
Oh Almost forgot, Ideally It won't be hard-coded into the page cause as you will see, I will have to change out the animation periodically.
2.0 freak
08-30-2007, 11:23 PM
It looks like the part of the page that the animation overlaps on is in Flash. By calling the "loadMovie()" action you can load an external swf into the page swf. Here is how to do it in AS2:
In your page fla file not your animation file draw a small circle on the stage, the smaller the better for accuracy. Then select it and press F8. Then select the option to convert it to a movie clip. Place this new movie clip between the two logos you mentioned but move it upwards so that it is just over the logos. Make sure the movie clip is selected and go the the properties window. Type in the instance name "blank_mc" for this movie clip.
put this action in the first frame so that it executes when the page swf loads:
blank_mc.loadMovie("animation.swf");
If you don't know what this is exactly doing; it is replacing the "blank_mc" movieclip with your swf. You will need to rename "animation.swf" to what the real swf's name is. Notice it's called blank but it doesn't have to be a blank movie clip. You have a small circle in it so that you can see where it is when your working in Flash, smaller the better for accuracy. (Loading this swf is done externaly, so whenever you change the animation in "animation.swf" it will change in the page)
One more thing that needs explaining is how the swf will replace "blank_mc":
In a movie clip object there is a register point. The register point is maked like a plus sign i think or something like that. Now this register point would mark the top left of the swf. So the top left of "animation.swf" will be in the center of the movie clip.
Good luck, let me know if you have any questions.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.