Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,157 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,029 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



problem with full screen animation

 
Reply to this topicStart new topic

problem with full screen animation, I can not lock my animation to the top and left side of the screen onc

bettypage
post 20 Jun, 2008 - 11:31 AM
Post #1


New D.I.C Head

*
Joined: 20 Jun, 2008
Posts: 1

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>


User is offlineProfile CardPM

Go to the top of the page


BetaWar
post 20 Jun, 2008 - 11:30 PM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,223



Thanked 38 times

Dream Kudos: 725
My Contributions


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.
User is online!Profile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 9/5/08 05:40PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month