problem with full screen animation

I can not lock my animation to the top and left side of the screen onc

Page 1 of 1

1 Replies - 439 Views - Last Post: 20 June 2008 - 11:30 PM

#1 bettypage  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-June 08

problem with full screen animation

Post icon  Posted 20 June 2008 - 11:31 AM

Actionscript :

______________________________________________________________________________________________
______________________________________________________________________________________________

_root.onEnterFrame=function(){
placer=function (xstart, ystart, nbrl, nbrc, v1x, v1y, v2x, v2y) {
mc_width = Stage.width;
var depth = 0;
i=0;
for(var i = 0; i < nbrl; i++) {
for(var j = 0; j < nbrc; j++) {
var mc = attachMovie("mc_ligne", "mc_ligne" + depth, depth,{_height:1,_width:mc_width,_alpha:random(10)});
mc._x = xstart + v1x*j + v2x*i;
mc._y = ystart + v1y*j + v2y*i;
depth++;
};
};
};
placer(0, 0, Stage.height/2, 1,1, 0, 0, 2);
};
//
// __________________________________________________________________
// PROPRIETES Coordonnées absolues
//
_global.anim_width = 800;
_global.anim_height = 600;
with (Object.prototype) {

setX = function (posX) {
this._x = posX+(_global.anim_width-Stage.width)/2;
};
getX = function () {
return this._x-(_global.anim_width-Stage.width)/2;
};
setY = function (posY) {
this._y = posY+(_global.anim_height-Stage.height)/2;
};
getY = function () {
return this._y-(_global.anim_height-Stage.height)/2;
};

addProperty("x", getX, setX);
addProperty("y", getY, setY);

Stage.scaleMode = "noScale";

Stage.addListener(this);

this.onresize = function() {

xstart=posX+(_global.anim_width-Stage.width)/2;
ystart=posY+(_global.anim_height-Stage.height)/2;
placer(xstart, ystart, Stage.height/2, 1,1, 0, 0, 2);

};

onresize();

______________________________________________________________________________________________
______________________________________________________________________________________________


Html


______________________________________________________________________________________________
______________________________________________________________________________________________

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
html, body {
margin: 0;
padding: 0;
height: 100%
}
#contenu{
width:100%;
height:100%;
position:absolute;
left:0;
top:0;
}
-->
</style>
</head>
<body>
<div id="contenu">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="bg_flash_02.swf">
<param name="quality" value="high">
<embed src="bg_flash_02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>
</object>
</div>
</body>
</html>

Is This A Good Question/Topic? 0
  • +

Replies To: problem with full screen animation

#2 BetaWar  Icon User is online

  • #include "soul.h"
  • member icon

Reputation: 1148
  • View blog
  • Posts: 7,144
  • Joined: 07-September 06

Re: problem with full screen animation

Posted 20 June 2008 - 11:30 PM

Sorry, can't exactly tell what your question is (as it is written in the description portion of the topic title, and that has a set number of allowed characters) the text has been cut off. If you could post the question I would be happy to try and help you solve your issue.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1