A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: How to tell full screen Flash elements to go to the corners?

  1. #1
    Member
    Join Date
    Dec 2007
    Posts
    37

    How to tell full screen Flash elements to go to the corners?

    Hey all --

    I've been searching around trying to find an answer to this and have been unsuccessful.

    I'm trying to figure out how this site: http://www.cando.com/ :was able to have the four corner elements know to always bounce themselves to the corners of the browser window or full screen. I've been able to do something similar on load, but not dynamically, resizing in real time. I have a client site I'm designing in which this functionality would be quite excellent, but can't seem to figure it out. I'm assuming this is being done in AS2, not AS3, because the html code is only calling the Flash 8 plug-in.

    Any ideas would be very, very welcome!

    Thanks,

    Symphy

  2. #2
    Member
    Join Date
    Aug 2007
    Posts
    32
    I'd like to know that too!

  3. #3
    Member
    Join Date
    Dec 2007
    Posts
    37

    Well then!

    Let's hope someone smart answers us!

    (waits)...


  4. #4
    Junior Member
    Join Date
    Dec 2009
    Posts
    4
    hey guys I have got the flash file to this, its a template I downloaded created in action script 2.0. Message me if u want it.

    Cheers

  5. #5
    Junior Member
    Join Date
    Dec 2009
    Posts
    9
    you need create an on Resize event whether actionscript 2 or 3 and listen to the stage changes. When the user resizes the browser your object should be replaced according to the dynamic values ( stage.stageHeight- 10 (bottom of the stage), or stage.stageWidth/2 ( centre of new stage ) ) etc.
    You can watch this tutorial to get the basic idea http://www.gotoandlearn.com/play?id=31
    or search youtube for stageResize flash tutorials
    hope this helps
    My Current Project, basically a language school in Turkey.Still at development stage though
    ingilizce kursu
    My friends are running this company in London, and I love hummers...
    hummer limo London

  6. #6
    Junior Member
    Join Date
    Dec 2009
    Posts
    4

    full browser

    Big up! I have noticed a lot sexy flash sites have a full screen view's. Im trying to create a flash site with a dynamic background image that re size's when the browser is enlarged. But done in as2.

    I need to create something like this www.captiveminds.co.uk or like this www.interpolnyc.com

    If anyone could help that would be great.

    This is the code I'm working from at the moment. The mc is called "bg".

    In this part of the code its doing its job, but it's only resizing the background when you refresh the page. So I need the width to resizing the when corner is being expanded and if possible to not have the image to distort either.

    // ***Stage aligned top left

    Stage.align = "TL";

    // *** Stop the stage from scaling with the browser window.

    Stage.scaleMode = "noScale";
    stop ();

    // initiate postitions and scaling values for objects

    bg._height = Stage.height;
    bg._width = Stage.width;

    bg._y = Stage.height/2
    bg._x = Stage.width/2

    bg._width = Stage.width
    bg._height = Stage.height

    bg._x = 0
    bg._y = 0

    //create a listner that checks to see if the browser window is resized

    sizeListener = new Object();
    sizeListener.onResize = function() {

    // change movieclip properties when the window is resized

    bg._height = Stage.height;
    bg._width = Stage.width;

    bg._y = Stage.height/2
    bg._x = Stage.width/2

    bg._width = Stage.width
    bg._height = Stage.height

    bg._x = 0
    bg._y = 0

    };


    Cheers hope to hear soon. Until then have a happy Christmas and Happy New Year!

  7. #7

  8. #8
    Junior Member
    Join Date
    Dec 2009
    Posts
    4
    Hi Whispers,
    Much appreciated for the links. This link could be useful.
    http://www.ultrashock.com/forums/fla...-73307-11.html

    Merry xmas and happy new year!

  9. #9
    Junior Member
    Join Date
    Apr 2010
    Location
    DfW Texas
    Posts
    13
    Quote Originally Posted by freedmirza View Post
    hey guys I have got the flash file to this, its a template I downloaded created in action script 2.0. Message me if u want it.

    Cheers
    I will take it!

    Thanks!!!!!


    Edit by admin: no contact info permitted on the forum, thank you

Tags for this Thread

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center