A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Allow only parts of percentage-scaled swf to scale?

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Location
    Philadelphia, PA, USA, Earth, Sol System, Spiral Arm of Milky Way, Local Group, Virgo Supercluster, Known Universe
    Posts
    470

    Allow only parts of percentage-scaled swf to scale?

    Is there an easy way to prevent particular elements in a percentage-scaled SWF from scaling?

    I want to make a liquid Flash interface in which only the content scales with the browser window, and the navigation elements remain a constant size.

    For an example see the portfolio section of this site: http://www.stereotype-design.com/
    Argon Zark!, The original interactive webcomic (since 1995)

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    wrap the naviagtion controls in a Sprite container and wrap all other content in another Sprite container then scale 1 container but not the other heck maybe say con0.scaleX =1; con0.scaleY =1;
    ~calmchess~

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Location
    Philadelphia, PA, USA, Earth, Sol System, Spiral Arm of Milky Way, Local Group, Virgo Supercluster, Known Universe
    Posts
    470
    Thanks for the reply.

    Do you mean turn off percentage scaling in the Publish Settings and perform the stage scaling in code when there is a resizing event, or leave scaling at percentage in Publish Settings, detect a resizing event and reset the con0 scale at that point? (Or am I missing your intention altogether?)
    Argon Zark!, The original interactive webcomic (since 1995)

  4. #4
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    yeah scale it with code....i wasn't aware there was another way
    ~calmchess~

  5. #5
    Senior Member
    Join Date
    Apr 2001
    Location
    Philadelphia, PA, USA, Earth, Sol System, Spiral Arm of Milky Way, Local Group, Virgo Supercluster, Known Universe
    Posts
    470
    If you set Dimensions to Percent (100%) in the "HTML" tab of publish settings, the movie scales uniformly with the browser window, just like dropping a raw swf into the window. It's very easy, but everything scales.

    I was hoping there was an easy way to allow that and just tell certain objects not to scale.
    Argon Zark!, The original interactive webcomic (since 1995)

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