Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Results 1 to 7 of 7

Thread: Resizing SWF at real time

  1. #1
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Resizing SWF at real time

    flash templates

    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

  2. #2
    Junior Member Settled In ninja_boy is on a distinguished road
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    0

    Re: Resizing SWF at real time

    Is the fla saved as CS4? Can you resave as CS3, I get unexpected file format

    Regards
    Ninja_Boy

  3. #3
    Junior Member Settled In uyanga is on a distinguished road
    Join Date
    Nov 2009
    Posts
    3
    Rep Power
    0

    Re: Resizing SWF at real time

    Quote Originally Posted by Flep View Post
    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:
    this might answer my question. thanks

    im trying resize my intro page into menu header. as if the expanded page is changing back to its normal size..

  4. #4
    Junior Member Settled In uyanga is on a distinguished road
    Join Date
    Nov 2009
    Posts
    3
    Rep Power
    0

    Re: Resizing SWF at real time

    Quote Originally Posted by Flep View Post
    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:
    your demo works but your zip file doesnt work..

  5. #5
    Moderator Moving My Stuff To The FlepStudio OrientExpress is on a distinguished road OrientExpress's Avatar
    Join Date
    Aug 2009
    Posts
    1,277
    Rep Power
    3

    Re: Resizing SWF at real time

    It's working fine to me.

  6. #6
    Junior Member Settled In uyanga is on a distinguished road
    Join Date
    Nov 2009
    Posts
    3
    Rep Power
    0

    Re: Resizing SWF at real time

    Quote Originally Posted by OrientExpress View Post
    It's working fine to me.
    hnmm.. funny. i tried the html one.. doesnt do anything.doesnt do the same effect as demo.

  7. #7
    Moderator Moving My Stuff To The FlepStudio OrientExpress is on a distinguished road OrientExpress's Avatar
    Join Date
    Aug 2009
    Posts
    1,277
    Rep Power
    3

    Re: Resizing SWF at real time

    post the code

+ Reply to Thread

LinkBacks (?)

  1. 16-12-08, 20:01
  2. 28-11-08, 09:13

Similar Threads

  1. resizing flash video controller
    By jbd123 in forum Flash English
    Replies: 7
    Last Post: 18-01-10, 15:55
  2. Proprietą oggetti run-time
    By donnie85 in forum Actionscript 3.0 avanzato
    Replies: 2
    Last Post: 23-06-09, 12:03
  3. Please Help me! Time Line Running Out!
    By jemma.jemma in forum Flash English
    Replies: 0
    Last Post: 17-07-08, 20:46
  4. Delete Cookie sol after tot time
    By markuspedro in forum advanced Actionscript 3.0
    Replies: 1
    Last Post: 09-03-08, 11:27
  5. Flash Real Life Basketball Scoreboard
    By george1984 in forum HELP free utilities
    Replies: 1
    Last Post: 12-02-08, 02:39

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts