Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

How to display an SWF at 100%

This is a discussion on How to display an SWF at 100% within the Tutorials forums, part of the Flash English category; I'm experimenting some more with this tutorial. I'm trying to get a MC that is fixed in the ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 Flash CS4 > Flash English > Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 19-04-08, 14:52
Junior Member
 
Join Date: Jan 2008
Posts: 3
Rep Power: 0
madeonearth is on a distinguished road
Re: How to display an SWF at 100%

I'm experimenting some more with this tutorial. I'm trying to get a MC that is fixed in the left corner. That was no problem. I am not sure if it's the correct way, but my MC stays in the left corner.

collage_mc.x = 0;
collage_mc.y = 0;

But now I want it to scale also when the browser is resized.
I have following code

package {
import flash.display.MovieClip;
import flash.events.Event;
public class Moe extends MovieClip {
public function Moe() {
init();
checkResize();
}
private function init():void {
stage.frameRate=31;
collage_mc.x = 0;
collage_mc.y = 0;




}
private function checkResize():void {
stage.addEventListener(Event.RESIZE, resizeStage);


}
private function resizeStage(event:Event):void {
init();
collage_mc.width = stage.stageWidth;
collage_mc.height = stage.stageHeight;

}

}
}


Now my collage_mc is stretched, because I use stage.stageWidth.
How can I scale a MC that is in the left corner?

And can anyone recommend some good training books on AS3. I have an account on Lydia.com, but a lot of questions I have about AS3 are not coverd in the training. Like the scaling of MC's on stage resize.

Thank you ones again for any helpfull tips.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 08-05-08, 14:38
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Ric Ordea is on a distinguished road
Re: How to display an SWF at 100%

Could someone post the code from the Main.as file from Test 7? I am having issues and seeing the completed code would deffinately help.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 08-05-08, 14:55
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to display an SWF at 100%

Do you see it now ?
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 08-05-08, 15:08
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Ric Ordea is on a distinguished road
Re: How to display an SWF at 100%

I see the code specifically for the set before the test 7 but I was wondering if you could post the entire completed code. I am having trouble putting all the .as code pieces together.

Thanks for such a wonderful resource!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 08-05-08, 15:13
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to display an SWF at 100%

That's all

Where do you have problems ? May I help you...
__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 08-05-08, 15:39
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Ric Ordea is on a distinguished road
Re: How to display an SWF at 100%

Thanks for the quick replies!
I guess I am really confused. Please forgive my ignorance as I am just learning. Is there anyway I could see your source files for Test 7? It would explain a lot.

hollbajj@hotmail.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 08-05-08, 15:45
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Re: How to display an SWF at 100%

Sure, I attach all the files of this tutorial:
Attached Files
File Type: zip cento_per_cento.zip (115.9 KB, 16 views)

__________________

 


I recommend: Essential Actionscript 3.0

- I do not reply technicians pvt messages. Open a thread !
- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 08-05-08, 15:54
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Ric Ordea is on a distinguished road
Re: How to display an SWF at 100%

Thank you so much Flep! That will make it much easier.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
image display flex nitish dhar FLEX builder 3 0 07-07-08 14:37
Display List e accesso alle proprietà dei Movieclip f_ferrau Actionscript 3.0 base 1 24-03-08 08:18
tween display above loaded swf jimbo Actionscript 3.0 newbies 10 16-10-07 15:29
Display Object Container e gestione classi tem Actionscript 3.0 avanzato 5 22-08-07 13:45


All times are GMT. The time now is 12:50.

Powered by vBulletin version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap