Variable Width in Flash

  • routhu
  • Beginner
  • Beginner
  • User avatar
  • Joined: Feb 28, 2007
  • Posts: 47
  • Loc: India
  • Status: Offline

Post March 4th, 2007, 11:08 pm

Hi to all,

I am using the below code. But here is my problem . In the starting the image is stretching , if i done any operation like minimising or Maxmising I get the correct Image. I need to solve that Starting Image stretching problem.

Can anyone please help me to Solve this one.

my source code :http://www.ourwebstudio.com/test.zip

Thanks,
Krishna
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 4th, 2007, 11:08 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post March 4th, 2007, 11:26 pm

It sounds like you've got somthing contained within a Stage.onResize handler that you need to call manually when the movie loads.
Strong with this one, the sudo is.
  • routhu
  • Beginner
  • Beginner
  • User avatar
  • Joined: Feb 28, 2007
  • Posts: 47
  • Loc: India
  • Status: Offline

Post March 4th, 2007, 11:48 pm

Hi joebert,

Thanks for your reply,

I Can't Understand if you don't mind can you provide me any example.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post March 5th, 2007, 12:08 am

Look in your sourcecode for.
Code: [ Select ]
Stage.addListener(


If you find that, there will also be an object with it, for example it might say
Code: [ Select ]
Stage.addListener(myListener)


Once you find the object that is listening to the Stages Resize event, you can call that objects event handler manually.
In the example above, since the listening object is called "myListener", you would call the Stages Resize event manually like so within your movies Load handler.
Code: [ Select ]
myListener.onResize();
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 61 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.