Topic: MovieClip properties shown as undefined. |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: London |
posted 01-28-2008 11:31
Hi there, code: private function onLoadInit() : Void { video_form["video_player"].stop(); video_form["play_button"].onRelease = OnPlayReleased; } private function OnPlayReleased() : Void { trace("Play released pressed"); trace("play_button._visible: "+video_form["play_button"]._visible); video_form["play_button"]._visible = false; trace("play_button._visible: "+video_form["play_button"]._visible); trace("making play button invisible"); video_form["video_player"].play(); }
|
Paranoid (IV) Inmate From: London |
posted 01-28-2008 12:10
Ah crap, I always forget to Delegate, I simple need to change my onRelease call to code: video_form["play_button"].onRelease = Delegate.create(this, onPlayReleased);
|
Nervous Wreck (II) Inmate From: |
posted 04-18-2008 08:47
spam removed. user banned. |