2 Replies - 1047 Views - Last Post: 10 October 2017 - 10:56 AM

#1 Transistor   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 50
  • Joined: 20-November 13

How to change movieclip width & height

Posted 09 October 2017 - 08:55 AM

Hi -

In my xml file I have an image url and desired width and height.
Now in AS2 I a moiveclip assessment and inside of it is picture_clip. I can get it to get image url from
the xml and it loads it just fine but if I try to get it to change the size it just disappears.

How can I get the assessment.picture_clip to change width and height ?

Thanks.

        textContent = myContent[2].childNodes[3].firstChild.nodeValue;
	loadMovie(textContent, assessment.picture_clip);
	
	
	textContent = myContent[2].childNodes[4].firstChild.nodeValue;
	assessment.picture_clip._width =  textContent;
	textContent = myContent[2].childNodes[5].firstChild.nodeValue;
	assessment.picture_clip._height = textContent;
	




Is This A Good Question/Topic? 0
  • +

Replies To: How to change movieclip width & height

#2 Transistor   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 50
  • Joined: 20-November 13

Re: How to change movieclip width & height

Posted 10 October 2017 - 10:52 AM

Never mind. Figured it out.

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15222
  • View blog
  • Posts: 60,929
  • Joined: 12-June 08

Re: How to change movieclip width & height

Posted 10 October 2017 - 10:56 AM

Curious - I am not a flash person, but what was the fix?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1