alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user nireve
nireve (4)

Stage align - best structure for your website

Read the action script layer, you will understand how to build a header, footer, full-screen button and how to align your movie clips in main-stage. Will be a good start to learn how to implement and use TweenLite.
If you download the file, read the html source file, to see how to make settings to alow fullscreen and how to set the <body> to remove the browser scrollbar.
IMPORTANT = afther you...
more >
Listing url: www.ifirme.ro
4203 downloads, 31383 views

stage align best structure


Download (160.16 KB)

Comments

You need to login to post a comment.

user nireve
the listing author nireve 14 years ago

luokas, use the mail, here it is not a flash forum.

user loukas
loukas 14 years ago

ok good job and thinks :)
but how set the position of loader on stage?

user nireve
the listing author nireve 14 years ago

loukas: put the line "var loader =new Loader();" outside of function loadM (under import gs.easing.*; line)

and for function UnloadMovieFuntion2 try:
TweenLite.to(loader, 0.5, {alpha:0.0});
removeChild(loader);
PS: set the position of loader on stage.

PS2: use the mail next time !

user nireve
the listing author nireve 14 years ago

send me your fla, and be more specific.

user loukas
loukas 14 years ago

I would like to add a button unloadMovie, I need your help please,

user loukas
loukas 14 years ago

j'aimerai ajouter un bouton Unloadmovie, j'ai besoin de ton aide s'il te plait,

user loukas
loukas 14 years ago

thank you :D

user nireve
the listing author nireve 14 years ago

loukas: loadMovie is for as2, you need a way in as3 like:
function loadM (MouseEvent): void {
var loader =new Loader();
loader.load(new URLRequest(my.swf));
addChild(loader);
}
don`t use frames (gotoAndPlay(2)), put your content in an external swf.

user loukas
loukas 14 years ago

Hi, it really cool goal. I can not download a swf with loadMovie


RightUpper_mc.buttonMode = true / / Make the mc With hand currsor
RightUpper_mc.addEventListener (MouseEvent.CLICK, gotoAndPlay) / / Call the function on click "goFullScreen"
gotoAndPlay function (event: MouseEvent): void {
RightUpper_mc.gotoAndPlay (5);
}


RightUpper_mc.addEventListener (MouseEvent.ROLL_OVER, onRollOver) / / Call the function on click "onRollOver"
onRollOver function (event: MouseEvent): void {
RightUpper_mc.aw10.gotoAndPlay (2);
}



RightUpper_mc.addEventListener (MouseEvent.ROLL_OUT, onRollOut) / / Call the function on click "onRollOut"
onRollOut function (event: MouseEvent): void {
RightUpper_mc.aw10.gotoAndPlay (16);
}

/ / crea.addEventListener (MouseEvent.CLICK, loadM) / / Call the function on click "onRollOut"
/ / function loadM (MouseEvent): void {loadMovie ("crea1", 1);

/ /}

user lorand_83
lorand_83 15 years ago

Hi. My name's Lorand, web designer, romanian, but kind of new in flash as3.
I took your site as reference and created my own, but i'm having some troubles with xml loading, from an external swf. Please help me with this one and give me a sign at [email protected]

user nireve
the listing author nireve 15 years ago

o0Purple: this is a simple example of how to keep "your_mc" in the center of the stage.

Stage.align = "TL";
Stage.scaleMode = "noScale";
sizeListener = new Object();
sizeListener.onResize = function() {
your_mc._x = Stage.width/2
your_mc._y = Stage.height/2
};
Stage.addListener(sizeListener);

to have a fluid movement read and use TweenLite, Caurina....etc.
Have a nice day.

user oOPurple_HazeOo
oOPurple_HazeOo 15 years ago

hey man is there a way to make this in as2? im a designer (student) so my scripting knowledge isn't amazing. Ive been trying to make a website like that for AGES now where no matter what the browser size it adjusts itself..any help?

Mad respect on this though man it's awesome.

user nireve
the listing author nireve 15 years ago

jair3d: i don`t know exactly what do you whant but you can try:

if (stage.stageWidth >= 600){
LeftUpper_mc.scaleX = 5;
}
if (stage.stageWidth <= 600){
LeftUpper_mc.scaleX = 1;
}
and for LeftUpper_mc.height use scaleY.

Have a nice day,

user jair3d
jair3d 15 years ago

Hi Nireve....Thanks for your structure, it really cool , I want to know, if I can scale the elements, I mean the same structure, the same work but scalable you know, when the people resize the explorer window the elements scale too???

How I can do that???

Thanks Bye

user AudioVoyuer
AudioVoyuer 15 years ago

Great Code, Thank you! Great to learn form!!!! Thank you!

user nireve
the listing author nireve 15 years ago

VALERA: welcome

user VALERA.
VALERA. 15 years ago

Yo!

Many thanks from all Russian nation!

user sveisvasta
sveisvasta 15 years ago

nireve,
Why i have margins on left and right side in browser, in normal mode?

webng.com/sveisvasta/

Thanks

user nireve
the listing author nireve 15 years ago

sveisvasta: flash cs3 export the html with .js file to detect Flash Player PlugIn version.
Flash cs4 have this script in html body.
So, your example HAVE js (java script) but inside of html file, ok?.
So you know how to modify "false-true" and copyright, this is a good start :)

user sveisvasta
sveisvasta 15 years ago

Sorry for my bad English.
I have Flash CS4, and in that case (?! or...) you not need *.js file.
Edit *.html:

AC_FL_RunContent(
'...
...
'allowFullScreen', 'false',
...
in:
AC_FL_RunContent(
'...
...
'allowFullScreen', 'true',
...
and everything is OK, you have fullScreen.
Examle, without *.js:

webng.com/sveisvasta/

user mevluteren
mevluteren 15 years ago

thanks nirve nice work very nice Have a nice day

user BBLV
BBLV 15 years ago

I say your work and hi is amazing ! I am beginer in flash action scripts. I love action scripts when i say your works ! Have a nice day :)

user fir
fir 15 years ago

hello nireve.im a new flash user in as3.i only know how to animate in flash but lack of experience in AS3.i wish if you can attach your source code for photo album.it's very interesting and interactive.could you explain how to make it?i wish i can learn from you.my email is [email protected]

user nireve
the listing author nireve 15 years ago

kamleshgaonkar: please send an email to [email protected] and attach the .fla, i will resend you the file with your background.

Have a nice day,

user kamleshgaonkar
kamleshgaonkar 15 years ago

I waant to add the background image in this movie which will fit to screen, Pleas help .

user nireve
the listing author nireve 15 years ago

Patnik: the photo album it is work of webdesign-flash.ro
i only make few modifications on it, as3.

user patnik
patnik 15 years ago

the website ifirme.ro/album/index.html is beautiful. how did u do it? i'm just a beginner in AS, i like ur concept :) thanks

user nireve
the listing author nireve 15 years ago

if i can, i will help you, please visit ifirme.ro and send me a message, on contact form. I will chat with you via email.

user prince26
prince26 15 years ago

I have a question. I made a internet web page in flash. but i have a probem that the web page is not full screen. do you know how i make it full screen?

user nireve
the listing author nireve 15 years ago

Kingofrespect: "but you need to make it with spicfied width and height..."

what do you mean ?

user kingofrespect
kingofrespect 15 years ago

and i think you did great...

user kingofrespect
kingofrespect 15 years ago

nice work...
but you need to make it with spicfied width and height...
great work

user staxman
staxman 15 years ago

i managed to do in AS2 is easy, I saw some of your work and guide me a bit, thanks for answering, saludos ^ . ^

user nireve
the listing author nireve 15 years ago

staxman:
i`m bad in as2, so i start to learn as3, do the same !:)

user staxman
staxman 15 years ago

hey to as2. u can do to as2. i am bad in as3 :(:(:(:(

user alenloop
alenloop 15 years ago

Great! very usefull, thanks

user swatisn
swatisn 15 years ago

Thanks a lot...

user patnik
patnik 15 years ago

this is kewl!! :) thanks

user energywelt
energywelt 15 years ago

TOP

user nireve
the listing author nireve 15 years ago

yes, you can specify a min/max. for stage, you can see an example on ifirme.ro .
/////////////////////////

if ( stage.stageWidth < 800) {
TweenLite.to(your_mc, 1.8, {alpha:0.0,...
}
if ( stage.stageHeight < 350) {
TweenLite.to(txt_mc, 1.8, {alpha:0.0, ...
}

Please read all examples on blog.greensock.com/tweenliteas3/
to understand how to use tweenlite.

If you don`t have time just use

your_mc.alpha = 0;

Have a nice day,

user pedrokost
pedrokost 15 years ago

Great. Is there a way to specify a min width/height so that the objects don't collapse?

user sambrown
sambrown 15 years ago

very cool - nice work. Was just studying a few tut about this - Thanks!~

user polcitolotus
polcitolotus 15 years ago

Thanks, great job!!!

user luismalab
luismalab 15 years ago

Thanks men, its rare to get as3 examples... good work!

user LuisRamirez
LuisRamirez 16 years ago

Thanks indeed!

user nireve
the listing author nireve 16 years ago

Welcome

user Conrado_Raccoon
Conrado_Raccoon 16 years ago

Thanks!