Solved

loading external video player need to pass some vars using as2

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Firefox video player - embedded native versus VLC player 3 1,088
flash cs6 4 347
Install adobe flash plugin for Firefox win 7 9 70
Adobe Flash player - Microsoft Edge 9 175
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 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.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

839 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