Solved

loading external video player need to pass some vars using as2

Posted on 2010-08-24
3
246 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
  • 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

770 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