views:

6

answers:

0

Pardon me if this post was already answered in any post or forum, I tried searching but could not able to find any solution. Please help!

ACTION SCRIPT CODE


private function addContent ($mcBox,$x,$y,$w,$h):void
{
   if($mcBox.getChildByName("TextAreaMC")){
    $mcBox.removeChild($mcBox.getChildByName("TextAreaMC"));
   }

   var padding=10;

   var textArea:TextField=new TextField();
   textArea.name="TextAreaMC";
   textArea.x=padding;
   textArea.y=padding;
   textArea.border=true;
   textArea.width=$mcBox.width;
   textArea.width=$mcBox.height;
            textArea.wordWrap=true;
   textArea.condenseWhite =true;
   textArea.multiline=true;
   textArea.wordWrap=true;

   textArea.styleSheet=_css; //apply external css
   textArea.htmlText=_content; // write the content

   $mcBox.addChild(textArea);

}

HTML FILE CONTENT

<img src="files/someimages.png" id="cardImg" hspace="30" vspace="20" width="118" height="113" align="right" /><p class="head">Some Heading</p>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante elit. Suspendisse potenti. Etiam et dolor et nulla pulvinar volutpat. Aliquam erat volutpat. Ut arcu massa, sodales in fringilla in, iaculis quis tellus. Nam et massa eu ipsum tincidunt tincidunt. Vestibulum eget sapien erat, eget ullamcorper magna. Maecenas faucibus, mi vitae posuere lobortis, tortor risus ultrices massa, quis dapibus tortor quam placerat nibh. Aenean velit urna, fringilla quis adipiscing a, ornare quis eros. Nulla dictum erat at leo tristique bibendum.</p>

MY PROBLEM:

Image embedded in the HTML stretch or shrink when ever i change the width of the movie clip. How can I make the image fixed in size?