Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

HTML5 Canvas: Finding the height of a symbol

$
0
0

Hey guys

 

I'm probably missing something really obvious here.

 

I have an image within a MovieClip in the library and I'm adding it to the stage using this code:

 

var sym1 = new lib.symbolName();

this.addChild(sym1 );

 

However, I need to find the height of what I have just added to the stage, I have tried the obvious alert(sym1.height) but to no avail, I just keep getting 'undefined'.


How would I go about doing this?

 

Thanks


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>