FORUMS: list search recent posts

External swf load and unload issues

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Fred Shakeshaft
External swf load and unload issues
on Sep 6, 2012 at 3:25:22 pm

I am building a video gallery that begins with a flv with a slide to unlock button under the video that allows the viewer to skip the intro video. There is also a genres tab on left that if clicked will also kill the video and slide in the genres menu. The menu fills the center area where the intro and other videos will be shown. There are six buttons and clicking on a genre button will slide the tab menu back to the left and load the associated external swf. Each genre is a stand alone swf. The first genre video plays center and other video thumbs appear on on the right. Clicking on the thumb loads the associated video. Clicking on the genre tab stops the video and in theory removes the swf, slides the menu center allowing the viewer to pick another genre.

This works 90% of the time. However, sometimes thumbs do not load but more often it’s the first video that does not start playing right away.

Could this be the result of progressive download?
Or is a product of not removing everything? Once I have a proof of principal I plan on convincing my boss to subscribe to a CDN. But I don’t want to demo it and risk a misfire on my external swf.

Thanks in andvance for your help.

Here is how the swf is loaded and unloaded

//venumenu function

var VidSrc:String;
vTab1_mc.vTab_mc.addEventListener(MouseEvent.CLICK, Slide_In);

function Slide_In(event:MouseEvent):void {
if (vTab1_mc.vTab_mc.x ==-666) {
SliderMaster_mc.alpha = 0;
removeEventListener(Event.ENTER_FRAME, checkSliderX);


load swf code .
// Btns Universal function
function btnClick(event:MouseEvent):void {
if (VidSrc != "venbut_mc" && VidSrc!="vTab_mc" && vTab1_mc.vTab_mc.x !=-666) {
var newSWFRequest:URLRequest = new URLRequest("swfs/" + + ".swf");
loader.x = Xpos;
loader.y = Ypos;


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved