While I have not tried with Captivate 2.0, I have on many
occasion placed
actionscript within Captivate 1.0 created swf files.
In the Flash IDE create the single keyframed-swf with your
actionscript in
it, export as Flash 6 comptaible, and then import it into
your Captivate CP
(via the Captivate IDE) as a new Animation.
I could send you an example of this in action if you like. I
had to do this
for a project I was working on a couple of years ago where
we wanted to
create some short 2-minute tutorials/software demos. I hated
the navigation
bars that Captivate 1.0 supplied so I wanted to create my
own navigation
shell and load in Captivate SWF's as needed, but like you I
needed the
Captivate swf to communicate to the parent flash swf, and
vice-versa.
I have not tried this with Captivate 2.0. I would be
surprised if it didn't
work though.
Mark
mark.siegrist vertexinc.com
----- Message from Ronda Snook <rsnook humana.com> on Wed, 21 Mar 2007
14:55:06 -0500 -----
To: flashnewbie chattyfig.figleaf.com
Subject: [Flashnewbie] Seeking help with listener.
I am loading an external SWF that's created by captivate (so
you can't add
any actionscript inside of it) and need to trigger events in
the parent
movie based on the frame that external SWF is on. How can I
detect what
frame that SWF is on by using listeners or something else?
The following code does not work.
var mylistener1:MovieClip = new MovieClip();
mylistener1.onLoad = function(blankmc) {
trace(_root.current);
};
var myListener2:Object = new Object();
mylistener2.onFrameEnter = function(framesloaded) {
trace("Frame:"+_root.blankmc._currentframe);
};
blankmc.addListener(mylistener1);
blankmc.addListener(mylistener2);
The information transmitted is intended only for the person
or entity to
which it is addressed and may contain CONFIDENTIAL material.
If you
receive this material/information in error, please contact
the sender and
delete or destroy the material/information.
_______________________________________________
Flashnewbie chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om
|