Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
maxg

Accessing transform properties of Loader object's parent class...

Recommended Posts

Hi all!

 

First off thanks for everything...!

 

So... I have created a "Player" class which extends MovieClip and contains an array of F4V files being loaded via LoaderMax.parse ... In my Main Document Class (Main) I want to transform properties of the entire Player class (alpha, scale, etc.) however the F4V does not see the transformations....It seems I have to reference the content directly within the Main class. For example, if i simply try to set player.visible=false, after i've already added video content to the stage, It does not stick, but if I reference player.video.content.visible=false, it works...

 

What I'm really trying to do is fade the player object out before I navigate back to a main navigation screen. I can fade each video.content individually but I'd rather just write one tween that effects the whole class. Am I missing something simple or is this larger than I think?

 

...additionally, these transformations DO work with NetStream driving the f4vs. But looping w netStream is ugly , as we know.

 

Thanks!

Edited by maxg
Link to post
Share on other sites

Gah! Figured this out... I was adding the actual video content to the stage so it bypassed all my transformations to Player....

Simple!

Link to post
Share on other sites

Thanks for letting us know. I was about to suggest that as a possibility. You beat me to it :)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×