Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Flash resize

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash
View previous topic :: View next topic  
Author Message
dnk2001



Joined: 14 Jun 2005
Posts: 81
Location: Zagreb

PostPosted: 28.01.2009 17:00    Post subject: Flash resize Add user to your forum ignore list Reply with quote

Uf.. pokušavao sam naći ovo al nisam uspio..

Dakle.. zanima me kako napraviti kada proširim swf koji je recimo (800 x 600) da se pozadina poveća full screen ali da se nekim dijelovima ne mijenja širina nego da se samo pomjeraju.. znam da zvuči komplicirano..


dakle imam meni koji je stupac i stajao bi uz lijevi dio stage-a, e sad ako je rezolucija veća od 800 x 600 i ako se flash proširi, nebi htio i taj meni da se širi, nego samo da se pomakne u lijevo i zadrži svoju širinu.

A druga stvar je recimo taj isti meni.. htio bih pošto će se povećat hight browsera da se i taj meni povisi, a ne da mi ostane rupa ispod kod veće rezolucije..

dakle da ne mijenja širinu, samo visinu i da uvijek bude skroz lijevo bez obzira na rezoluciju..

kao što rekoh.. uf.. al nisam znao drugačije objasnit..
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hrvoje_86



Joined: 06 Dec 2006
Posts: 107
Location: Zagreb

PostPosted: 28.01.2009 18:08    Post subject: Add user to your forum ignore list Reply with quote

AS 2 verzija:
Code:

// da x i y 0 budu gore ljevo
Stage.align = "TL";
// mora bit no scale da se poziva onReisze
Stage.scaleMode = "noScale";

stageListener = new Object();

stageListener.onResize = function() {
sirina = Stage.width
visina = Stage.height

pozadina._width = sirina
pozadina._height = visina

ljevistupac._height = visina


};
Stage.addListener(stageListener);

AS 3 verzija:
Code:

// da x i y 0 budu gore ljevo
stage.align = StageAlign.TOP_LEFT;
// mora bit no scale da se poziva onReisze
stage.scaleMode = StageScaleMode.NO_SCALE;

stage.addEventListener(Event.RESIZE, Resize);
function Resize(event:Event) {

sirina = stage.stageWidth
visina = stage.stageHeight

pozadina.width = sirina
pozadina.height = visina

ljevistupac.height = visina
}

ljevi stupac ce ostat di je
ako hoces desni pomaknut onda jos dodaš
Code:

//as2
desniStupac._x = sirina - desniStupac._width
//as3
desniStupac.x = sirina - desniStupac.width
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Flash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group