A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: How was this done? ( Part 2 )

  1. #1
    Junior Member
    Join Date
    Dec 2003
    Posts
    3

    How was this done? ( Part 2 )

    http://www.intentionallies.co.jp/content_normal.html

    How come when you resize the window the objects don't scale/distort? The object move along with the window's size, where as, the logo and text stand still.

  2. #2
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    in flash :

    code:

    Stage.scaleMode = "noScale"

    listener = new Object();
    listener.onResize = MyFunctionForResize

    Stage.addListener(listener);
    Stage.align = "TL"

    function MyFunctionForResize(){
    // here u can change positions , scale of the objects in the stage etc
    }



    on the html part you have to put size of the swf 100% / 100% ...
    Stoc Digital Studio - Web Applications Development
    http://www.stoc-studio.ro

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Posts
    1
    Originally posted by stoc
    in flash :

    code:

    Stage.scaleMode = "noScale"

    listener = new Object();
    listener.onResize = MyFunctionForResize

    Stage.addListener(listener);
    Stage.align = "TL"

    function MyFunctionForResize(){
    // here u can change positions , scale of the objects in the stage etc
    }



    on the html part you have to put size of the swf 100% / 100% ...
    Stoc could you upload a sample .FLA for us to view. PLEASE PLEASE!

  4. #4

  5. #5
    Junior Member
    Join Date
    Dec 2003
    Posts
    3
    Thanks for your feedback. You guys rock!

  6. #6
    Senior Member
    Join Date
    Sep 2003
    Posts
    974
    ummm. . .

    can you upload a zip type instead of rar?
    Flash MX + ASP + WinXP Pro
    Now Learning PHP & MySQL

  7. #7
    Senior Member
    Join Date
    May 2001
    Posts
    351
    this is turning into flash challenge, lol


    ive been playing with stoc's code for a little while trying to get it to work for multiple boxes and i still cant get that effect

    do you think you(stoc) could make one with multiple boxes?

  8. #8
    Junior Member
    Join Date
    Dec 2003
    Posts
    3
    Nadskram, you should check out Morran2's work. There are 3 objects. One scales 100% width and 100% height, One 100% width only and the other does not scale but remains centered.

  9. #9
    Senior Member
    Join Date
    May 2001
    Posts
    351
    what i meant by the multiple boxes, was being able to move and rotate multiple boxes

    like this:
    www.dcmdesign.net/play/flash/rotation_02.html

    i dont fully understand the math, but getting pieces of it
    by tweaking of course

    but i couldnt have done it with stoc's code

    thanks stoc

  10. #10
    Senior Member
    Join Date
    Mar 2001
    Posts
    235
    Originally posted by mxgen
    ummm. . .

    can you upload a zip type instead of rar?
    http://www.skaggivara.com/fla/bg_scale.zip

    Sorry it took a while, here your go

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