|
-
anyone else hear that?
Captivate in flash via loadMovie stops working?!
I've got a flash movie and I'm loading a series of captivate movies into it. I've got a custom controller in flash to let the user move from slide to slide within the movies. It works great when I publish it and run the swf. It works great when I make an exe out of it, but, when I play it in the browser, it works for the first movie, but, once it gets to the second movie (and all subsequent movies), it doesn't work anymore???
I'm using the following code to load the movies:
Code:
var movieArray:Array = new Array("1_2", "1_5", "1_7", "1_9", "1_10", "1_11", "1_13", "1_14");
var movieNum:Number = 0;
//
//test for end of Captivate
capFT_mc.onEnterFrame = function() {
if ((this._parent.captivate_mc.rdinfoFrameCount == this._parent.captivate_mc.rdinfoCurrentFrame)) {
nextCapEF();
}
};
//
//function for next.swf animation
function nextCapEF() {
if (movieNum<9) {
movieNum++;
captivate_mc.loadMovie("Package/"+movieArray[movieNum-1]+".swf");
} else if (movieNum == 9) {
gotoAndPlay("end");
}
}
nextCapEF();
stop();
And, I'm using the following code on the control buttons, Next & Back:
Code:
navPanel_mc.forwBtn_mc.onRelease = function() {
if (this._parent._parent.captivate_mc.rdinfoCurrentFrame<this._parent._parent.captivate_mc.rdinfoFrameCount) {
this._parent._parent.captivate_mc.rdcmndNextSlide = 1;
}
};
navPanel_mc.backBtn_mc.onRelease = function() {
if (this._parent._parent.captivate_mc.rdinfoCurrentFrame>1) {
this._parent._parent.captivate_mc.rdcmndPrevious = 1;
}
};
Thanks!!
Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.
-
anyone else hear that?
Alright...I think I figured this out...completely by accident.
I uploaded the files to a site to test online and...they work fine...it keeps tracking the rdinfoFrameCount and the rdinfoCurrentFrame!
Bizarre!! The only thing I can think of is that it must be some sort of security issue with the Captivate swf files.
Anyway...seems to be fine now!
Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|