332 posts
  • Has been part of the Envato Community for over 8 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue
says

Can someone please tell me how to scale to stage a loaded image from an XML file. I’m going nuts! ;-P

For some weird reason I can’t get this to work. I understand I need to wait for the image to load first from the XML .

What I’m trying to do is load the image from xml and scale to fit (stage) height and width. I tried all different ways. Nothing…..

Here is my code: http://pastie.org/2014301

Thanks! Timothy

767 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+4 more
outandouter
says

Can someone please tell me how to scale to stage a loaded image from an XML file. I’m going nuts! ;-P

For some weird reason I can’t get this to work. I understand I need to wait for the image to load first from the XML .

What I’m trying to do is load the image from xml and scale to fit (stage) height and width. I tried all different ways. Nothing…..

Here is my code: http://pastie.org/2014301

Thanks! Timothy

Aren’t you trying to see if the image has loaded before even requesting loadMovie() in the function firstImage() ?

1688 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 more
Tean
says

Are you asking for the math to resize an image or load complete?

332 posts
  • Has been part of the Envato Community for over 8 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue
says

I guest im asking for the math? ;)

For example: Lets just say if I upload an image that is 300×300. When the time comes and the image is pulled in from the. xml file I need it to somehow scale to the stage or the document size which is 1280×720.

Does that make sense?

Thanks for your help guys Tim

1688 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 more
Tean
says

I guest im asking for the math? ;)

For example: Lets just say if I upload an image that is 300×300. When the time comes and the image is pulled in from the. xml file I need it to somehow scale to the stage or the document size which is 1280×720.

Does that make sense?

Thanks for your help guys Tim

What do you want, fit inside or fit outside?

332 posts
  • Has been part of the Envato Community for over 8 years
  • Has collected 100+ items on Envato Market
  • Located in United States
timmylogue
says


I guest im asking for the math? ;)

For example: Lets just say if I upload an image that is 300×300. When the time comes and the image is pulled in from the. xml file I need it to somehow scale to the stage or the document size which is 1280×720.

Does that make sense?

Thanks for your help guys Tim
What do you want, fit inside or fit outside?

alittle confused of what you mean? haha :D

Tim

1688 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 more
Tean
says
3868 posts Community Moderator
  • Had an item that became a weekly top seller
  • Helps us moderate the forums
  • Taught a course or tutorial on Tuts+
  • Located in Netherlands
+10 more
Joost
Moderator
says


I guest im asking for the math? ;)

For example: Lets just say if I upload an image that is 300×300. When the time comes and the image is pulled in from the. xml file I need it to somehow scale to the stage or the document size which is 1280×720.

Does that make sense?

Thanks for your help guys Tim
What do you want, fit inside or fit outside?

Why would you want to fit outside of the stage? :o

767 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+4 more
outandouter
says



I guest im asking for the math? ;)

For example: Lets just say if I upload an image that is 300×300. When the time comes and the image is pulled in from the. xml file I need it to somehow scale to the stage or the document size which is 1280×720.

Does that make sense?

Thanks for your help guys Tim
What do you want, fit inside or fit outside?
Why would you want to fit outside of the stage? :o

So that images with different proportion/size than stage can fill the screen anyway.

846 posts
  • Became a Top 20 Author of the Month
  • Had an item that became a weekly top seller
  • Has been part of the Envato Community for over 6 years
  • Has sold $75,000+ on Envato Market and is now an Elite Author
+9 more
marcfolio
says

LoaderMax.

If I have time later I’ll expand more but loaderMax is your friend.

by
by
by
by
by
by