OZONE Asylum
Forums
Multimedia/Animation
MovieClip properties shown as undefined.
This page's ID:
29931
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi there, I've a MovieClip ("play_button") that acts as a button on my stage, it overlays another MovieClip ("video_player") that plays a loaded video swf using MovieClipLoader. My problem here is that although my play_button does respond to events, I can't seem to set its properties such as _visible, when I trace out this property I get "undefined" returned. Here's some code... [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(); }[/code] Now, when my play_button is pressed, I do get traces output as the OnPlayReleased function requests, so I know it's bubbling through. the interesting thing is, that firstly, my play_button does not respond to its _visible property being set to false (both traces output undefined here). and my video_player does not start to play. I can't work out why this would be the case, and I've played with writing this in another way but I have similar results, is it a question on scope here? Any help and pointers would be really appreciated. Cheers, [img]http://www.geocities.com/blaise69dude/images/BlaiseSig.gif[/img]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »