Solved

loading external video player need to pass some vars using as2

Posted on 2010-08-24
3
250 Views
Last Modified: 2013-11-11
I'm loading an external video player that needs to get it's var from the swf thats it's loading into. I have the movie loading fine just not able to pass the vars. Below is the code I'm using to load the player. The player has a video path that will change from the parent swf.

var _mcl:MovieClipLoader = new MovieClipLoader();
var _listener:Object = new Object();
_listener.onLoadInit = function(videoHolder:MovieClip)
{
    trace("Done loading...");
}
_mcl.addListener(_listener);

this.createEmptyMovieClip("videoHolder", this.getNextHighestDepth());
_mcl.loadClip("flvPlayer.swf", videoHolder);


I need to pass the videoPath to this loaded player.

Thanks
0
Comment
Question by:ucohockey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Expert Comment

by:ray_cracker
ID: 33518702
Can you tell me the player name
0
 

Author Comment

by:ucohockey
ID: 33523198
The external swf is called flvPlayer.swf and I think the player is called mcVideoPlayer
0
 

Accepted Solution

by:
ucohockey earned 0 total points
ID: 33592620
I used a global var, and it works.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question