Solved

loading external video player need to pass some vars using as2

Posted on 2010-08-24
3
245 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
Comment Utility
Can you tell me the player name
0
 

Author Comment

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

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now