Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Resizing SWF at real time

This is a discussion on Resizing SWF at real time within the Tutorials forums, part of the Flash English category; Not everyone knows that you can change the size of a SWF in real time , at runtime. When Flash CS3 ...


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
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 28-11-08, 08:33
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,535
Rep Power: 6
Flep is on a distinguished road
Resizing SWF at real time

Not everyone knows that you can change the size of a SWF in real time, at runtime.


When Flash CS3 came out many of us hoped that the new version of Actionscript allowed to

set the size of the stage so that we could change the size of the SWF embedded in html page.

We thought we could act on the properties stage.stageWidth and stage.stageHeight but we were wrong because these properties are read-only, not writable.


So, how to change the size of SWF?

This is possible using Actionscript and Javascript.


I found a really good Actionscript class that allows to do so.

The author is Noel Billig.


I created an example, have a look...


DEMO


Source files:
Attached Files
File Type: zip resizingSWF.zip (52.4 KB, 121 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

Reply

Bookmarks

Tags
ExternalInterface

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
Please Help me! Time Line Running Out! jemma.jemma Flash English 0 17-07-08 21:46
Flash PHP Image Size in Resizing Window with Animations DC3 Flash CS3 | PHP | mySQL 0 22-06-08 23:53
Resizing di un'swf caricato esternamente zebraapois Actionscript 3.0 base 8 26-05-08 15:37
Delete Cookie sol after tot time markuspedro advanced Actionscript 3.0 1 09-03-08 12:27
Flash Real Life Basketball Scoreboard george1984 HELP free utilities 1 12-02-08 03:39


All times are GMT. The time now is 16:30.

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