- Home /
This question was
closed Jan 03, 2012 at 01:06 AM by
TheEmeralDreamer.
Question by
TheEmeralDreamer · Jan 02, 2012 at 06:32 AM ·
flash
Reference an objects variables- flash platform
How do you access an object's variables whilst using Flash as the platform of choice? Apparently this doesn't work
var WorldObject:GameObject;
var WorldElementInfo;
function RelinquishElement()
{
WorldElementInfo=WorldObject.GetComponentInChildren("WorldElementInfo");
WorldElementInfo.CurrentElement+=1;
}
I also seem to get this error.
Assets/EnemyScript.js(16,18): BCE0019: 'CurrentElement' is not a member of 'Object'. I've tested and this works fine when using the webplayer platform build I only encounter this area whilst working via Flash.
Comment
Follow this Question
Related Questions
Is there a Unity equivalent to FlashVars? 2 Answers
flash not acting how it should on other computers? why? 0 Answers
Help getting started with ActionScript 1 Answer
Getting Fatal Error 2030 using WWW in Flash 7 Answers
build a flash . 0 Answers