Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Resize MovieClip with Image content!!!

New Here ,
Sep 19, 2013 Sep 19, 2013

Hello,

i have a movieclip and then "inside" i have as image. The problem is that i want to resize it and i can't!

Here's the code:

var ImageClass:Class = getDefinitionByName("image") as Class;

var image:Bitmap = new Bitmap(new ImageClass(100,100));

    mcImage.height=100;

    mcImage.width=100;               

    mcImage.scaleY=mcImageLeft2.scaleX;

    mcImage.addChild(image); // add image to MovieClip

    addChild(mcImage); // add MovieClip to Stage

Can anyon help?

Thanks

TOPICS
ActionScript
833
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 19, 2013 Sep 19, 2013

use:

var ImageClass:Class = getDefinitionByName("image") as Class;

var image:Bitmap = new Bitmap(new ImageClass(100,100));

    mcImage.addChild(image); // add image to MovieClip

    mcImage.height=100;

    mcImage.width=100;               

    mcImage.scaleY=mcImageLeft2.scaleX;

    addChild(mcImage); // add MovieClip to Stage

Translate
Community Expert ,
Sep 19, 2013 Sep 19, 2013

use:

var ImageClass:Class = getDefinitionByName("image") as Class;

var image:Bitmap = new Bitmap(new ImageClass(100,100));

    mcImage.addChild(image); // add image to MovieClip

    mcImage.height=100;

    mcImage.width=100;               

    mcImage.scaleY=mcImageLeft2.scaleX;

    addChild(mcImage); // add MovieClip to Stage

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 19, 2013 Sep 19, 2013

Thank's... it works it was a simples thing but... you know eheheh

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 19, 2013 Sep 19, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines