The Ultrashock Ultra Bundle
  • Home
  • Community
  • Forum
  • Flash
  • Flex
  • Thread
  •  
  • Previous topic
  • Next topic
Sign up to post

Flash
 Flex

  • tcoulson Author 
    • 4184 
    • 0 
    • 3 
    resizing in flex
    Isocase

    Last reply Oct 09 2008, 11:33 AM

    by Isocase

    Posted: Oct 08 2008, 03:15 PM

    by tcoulson

     

I have the following code in an actionscript project in flex builder plug in on eclipse:

package {
    import flash
.display.Sprite;
    
import flash.events.Event;

    public class 
testing extends Sprite
    {
        
public function testing()
        
{
            stage
.scaleMode = "noScale"
            
stage.align = "TL"
            
stage.addEventListener(Event.RESIZE, onResize);
        
}
        
public function onResize(event:Event):void{
            trace
("Width: "+stage.stageWidth);
            
trace("Height: "+stage.stageHeight);
        
}
    }
} 

The problem is that the stageWidth and stageHeight resize at every size except when I move the browser window smaller than 465 px.  The html has the size set at 100%.  Nothing else is in this project, where is the width getting set that is keeping it at a minimum stageWidth of 465?  Anyone? TIA:yes:

  3 REPLIES
 
Isocase
1  
Isocase

What are you using to embed the SWF into your HTML and do you have the width and height of that set at 100%?

Also your using AS3 so it should be

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE; 
  • 08 October 2008 03:58 PM
  •  
tcoulson Author 
2  
tcoulson

yeah, I am just using the defaults that Flex Builder spits out.  And it comes out with 100% set for w and h.  Switching to the static calls is the same as the string itself.

  • 09 October 2008 09:43 AM
  •  
Isocase
3  
Isocase

Not sure if this will work but try adding this after your imports. You can set the width and height to whatever you want to test with.

[SWF( width="900", height="600" )] 
  • 09 October 2008 11:33 AM
  •  
  •   Log in or join for free to make a comment.
 
Topic actions
  •  Share on Facebook
  •  Share on Twitter
Topic Categories
  •  Show All Topics
  •  Development
    •  Server Side
    •  Client Side
  •  Creative Software
    •  Web
    •  Video
    •  3D
    •  Illustrator
    •  Photoshop Battles
    •  Photoshop
  •  Design
    •  Typography
    •  Resources & Insight
    •  Checkpoint
  •  Career
    •  Copyright Matters
    •  Advice & issues
    •  Job Seekers
    •  Job Offers
  •  Flash
    •  UltraMath
    •  OOP
    •  Third Party Tools
    •  Open Source alternatives
    •  Data Communication
    •  Components
    •  Flex
    •  AIR
    •  Flash Lite
    •  Flash Professional
    •  Flash Newbie
    •  ActionScript
    •  XML
  •  Lounge
    •  Polls
    •  Random Chat
    •  Showcase And Critique
    •  BombShock Award Nominations
  •  Community Essentials
    •  BombShock Award Winners
    •  Tutorials
    •  Interviews
    •  News
    •  Bitmap tutorials
Popular Topics
  • Sort by: 
  • Activity
  • Views
  • Comments
  • Likes
Advertise with us
  • Your advertisement here!
  • loading
Ultrashock
  • Creative Assets
  • Community
  • Blog
  1. Home
  2. Forum
+/-
Creative Assets
  • Categories
  • Contributors
  • How to buy
Make Money
  • Commission Rates
  • Referral Program
  • Contributor Program
Community
  • Activity Feed
  • Forum
  • Profiles
About
  • Quick Tour
  • Our History
  • Banners & Logos
Support
  • Contact Ultrashock
  • Advertise with us
  • Legal Information
  •  Keep up to date
  • Flash 779  Flash
  • Audio 6,481  Audio
  • Vector 2,130  Vectors
  • Image 12,338  Images
  • Creative Assets 21,728  Assets
  • Profiles 282,751  Members
  • Topics 93,776  Topics
  • Blog 4  Blog
  • Facebook 1,679  Facebook
  • Twitter 1,163  Twitter
  • Join our FREE monthly newsletter!
  • Archive
  • Invalid email address. Please try again.
Subscribe
  • ©2012 Ultrashock LLC - All rights reserved
  • Terms of Use
  • Privacy Policy
  • Switch to dark theme
  • RSS Feeds
  • Top

©2012 Ultrashock LLC - All rights reserved

Printed on Sat, February 11, 2012 - 18:45:48