|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Layered Flash Banner
Has anyone seen those flash ads that fly all over your page?
Army has alot of them, go URL and watch what comes out of the bottom left. Does anyone know how to make that happen? I am pretty knowledgeable in flash but I have absolutley no idea how do to that. Thanks |
|
#2
|
||||
|
||||
|
Put your banner inside a movie clip and give it an instance name of "clip." From the root, place the following code inside a keyframe:
Code:
MovieClip.prototype.Increment = function(max_x, speed) {
this.onEnterFrame = function() {
this._x += speed;
if (this._x>=max_x) {
this._x = max_x;
delete this.onEnterFrame;
}
};
};
with (clip) {
_x = -123;
_y = 200;
Increment(123, 11);
}
With regard to your html document. You should make the flash movie transparent. Macromedia has a tutorial on that. This way, the banner could appear to overlap the html. Last edited by jmichels : February 4th, 2004 at 02:15 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Layered Flash Banner |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|