My SWF Animation Won't Call FLVs When Loaded In Captivate 6.0
Hi,
I'm inserting a SWF into my Captivate presentation. The SWF calls and displays external videos using AS3. The SWF runs fine outside of Captivate, however, when I insert and play the Captive project the SWF doesn't call the videos. Any ideas?
Thanks
//Here is the AS3 code I'm using to call the videos in my SWF.
dvd2_butt.addEventListener(MouseEvent.CLICK, onDVD2);
function onDVD2(event:MouseEvent):void
addChild(dvd2video);
dvd2video.visible = true;
dvd1video.visible = false;
dvd1Highlight.visible = false;
dvd2Highlight.visible = true;
videoStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
function asyncErrorHandler(event:AsyncErrorEvent):void
trace(event.text);
dvd2video.attachNetStream(videoStream);
videoStream.play("Hippo_Dog1.flv");
dvd2video.x = 354.00;
dvd2video.y = 234.55;
dvd2video.width = 256.50;
dvd2video.height = 195.95;
//Loop;
videoStream.addEventListener(NetStatusEvent.NET_STATUS, videoListener);
function videoListener(e:NetStatusEvent)
if (e.info.code == "NetStream.Buffer.Empty")
videoStream.play("Hippo_Dog1.flv");
Great! There are other Flash instances that do not work until published also. Could you mark the answer as correct so that others may benefit.
Similar Messages
-
i want my application to load page1 if item1 = 0 or load page2 if item1 = 1
this process must be called when loading page1
the question is how to call redirect from procedure?
or there are any other way to solve this?
I know that it can be solved by Java code, but i don't know it at all.Write a onload before header procedure that uses owa_util.redirect_url(...); to redirect to a different page. Search this forum for owa_util.redirect_url for usage examples.
-
SWF animation issue in Captivate CS4
Hello All...
Okay, I have been working on this for hours, and I am getting pretty frustrated.
I have an swf animation that I need to insert into Adobe Captivate CS4 slide. I have thested the swf file and it opens and plays just fine. I am able to insert it into the Captivate slide just fine, and it plays - however it only plays for about 27 seconds then cuts out. The total swf animation is approx. 40 seconds long.
Why is it cutting out the animation? When I import the swf file, it plays the entire animation before I actually insert it (in the Animation window). However, the "duration" only shows 27.7 seconds. Why is it only showing a duration of 27.7 seconds, when the actual animation is longer?
I extended the slide to be over 40 seconds in length, and I am playing the animation for the "duration of animation" - but it is still stopping early!
Any ideas?
Thanks for the help, it is much appreciated!Hi there
I'm wondering if the issue might be a mismatch of frame rates. You need to investigate the frame rate the SWF was created at. Captivate typically uses 30 frames per second. So if the SWF animation has a different frame rate, perhaps that explains it?
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
Exporting to one .swf when including other swf animations
Hi
When exporting my project to flash, three files are created.
I am not using any skins etc, I am just trying to incorporate two
animations (one per slide) and finish with one overall .swf file.
I have managed to do this in two other slides, though! Which
is most frustrating!
So just to reiterate:
When I publish the file, the two animations I am using are
exported again along with the rest of the publication. So I have
the main swf, which calls in the other two .swf animations when
required. I need to have just one file as a result.
Please help!!Welcome to our community, t1mmie
Are you referring to the supplied animations? (Arrows,
Highlights, etc)
If so, there are a few that refuse to embed. For those, you
need to edit the source files in Flash and export from Flash as
Flash 6 format. Once you get them in Flash 6 format, add them again
and they should embed.
You may download the source files for animations that don't
have the source from the Captivate Exchange.
Click here to
visit the Captivate Exchange.
Cheers... Rick -
I bought my iPhone 4s in the Uk and then brought to Cyprus where I live. I used Siri to call my husband 2 days ago without problem but now when I try to use Siri it won't call any local Cypriot number but will call my Uk contacts. I can call the same numbers manually so it's not my network. Any help would be appreciated.
This sounds like an international issue? Although I can not see why? I brought my phone in Australia and operating it in Indonesia, I have the same issues.... Otherwise Siri works fine, even texting (SMS) to local numbers siri works well, but dialing local number it just wont work...! I will try using my Australian SIM card and see if that is the reason.. I tried changing the number in the contacts and took out the international prefix, I turned the international assist on and off still nothing.. How frustrating. I called apple, the technican had know idea and we to his supervisor, had to wait fro 40 miuntes and then I hung up..
PLEASE HELP..! -
When publishing a captivate I get the message "Swf compilation failed. Note: Please verify if any of the actionscript keywords is used as user variable name." and it won't allow me to publish the Captivate, can anyone help?
Hi There,
Can you tell me the Operating System and Captivate version you are using?
Also can you confirm if you are getting this issue will this one project or all the projects? Try to copy paste this project on a new blank project and then try to publish.
Regards,
Mayank -
Pausing swfs and audio in a browser when the tab is out of focus
I'm trying to code my flash file so that the html will pause all swfs AND audio when the tab is out of foucs. I found this code on http://frontenddeveloper.net/wiki/index.php?title=JavaScript_and_VBScript_Injection_in_Act ionScript_3 and it works,but not completely. It only pauses the movie clips that are in the Flash file and not any that are exteranlly loaded with audio included.
How can I adjust it to pause the externally loaded swfs that are loaded to a mc within my main movie clip and the audio OR what should I use in place of this code? Someone mentioned on a different post that I needed to use a window.onblur funcition, but they didn't give details.
import flash.display.MovieClip;
import flash.utils.setTimeout;
// This is a more "safe than sorry" setting, since multiple domains
// have entry into my site. Can be removed or hardcoded if you feel
// secure or insecure, as you see fit.
flash.system.Security.allowDomain("*");
// Throw any errors around to make sure somebody actually gets them.
ExternalInterface.marshallExceptions = true;
// This is not the most ideal way to toggle animations on and off, but
// it's thorough, generic, and simple. Iterate all movieclips within
// clip, shutting them down each in turn. A better, but much more tedious
// method would be to target specific clips using dotpath notation, telling
// each in turn to turn off or on depending on what we need.
// BUT this is just a demo, and what we're really interested in is the
// event-handling mechanism that actually calls this routine, and not the
// routine itself.
function toggleAllClips(doAnim, clip) {
if ( clip is MovieClip) {
if (doAnim) {
clip.play();
} else {
clip.stop();
for (var i = 0; i<clip.numChildren; i++) {
toggleAllClips(doAnim, clip.getChildAt(i));
function animOn(e:*=null) {
toggleAllClips(true, this.mainMC);
function animOff(e:*=null) {
toggleAllClips(false, this.mainMC);
function injectPrep(e:*=null) {
try {
ExternalInterface.addCallback("jsanimOn", animOn);
ExternalInterface.addCallback("jsanimOff", animOff);
} catch (e) {
trace(e);
function injectListeners(e:*=null) {
try {
// Object/Embed ID of this movie needs to be inserted into the
// JavaScript before we actually wrap and send it to the browser:
var jsfix=js.toString().replace(/xxx/g, ExternalInterface.objectID);
ExternalInterface.call(jsfix);
} catch (e) {
trace(e);
// Using timeouts ensures the movie is actually done loading before
// these fire, helping compatibility for a few browser versions.
setTimeout(injectPrep,0);
setTimeout(injectListeners,100);
JAVASCRIPTS
JavaScript needs to be wrapped in a tag, a cdata, and a closure
function in order to be wrapped up and sent to the browser.
Note that an ActionScript function will replace all instances
of "xxx" with the actual ID used for this SWF.
We're battling some major bugs and crossbrowser idiosyncrasies
here:
1) In Internet Explorer the 'onblur' event is implemented
incorrectly (as opposed to Firefox/Mozilla browsers). It is
wrongly fired when focus is switched between HTML elements
*inside* a window. As a result, we have to use onfocusout
instead of onblur, and keep track of which element is active.
If we focusout and the active element is not the previous
active element, then we haven't actually "blurred" and dont
want to trigger Flash.
2) Firefox has problems interpreting both getElementById and
document["swf"] when dealing with "twicebaked" object/embeds.
Adobe's method of finding the swf fails to address the fact
that document["swf"] sometimes returns an array in this
situation rather than an object ref, and getElementById
sometimes confuses name and id.
3) When a window is created in Firefox, it doesn't actually have
"focus" (event though it appears to) and therefore won't "blur"
unless you actually click in it first, i.e if you open up a
window, then immediately send it to the background, it never
gets the command to halt the flash. So we have to explicitly
focus the blasted thing to get it to work properly.
4) Because of irregularities caused by Ajax, the way browsers shut
down, and other factors, there's a good chance our swf won't
be there when a blur (or focusout) event occurs. Therefore we
need an explicit check within the event handler itself.
5) Finally, we want to wrap everything inside a wrapper-closure
function, to keep everything safe from being stepped on. Lucky
us, we have to do this anyways to get everything to fit inside
a single ExternalInterface.call event.
var js:XML = <script><![CDATA[
( function() {
var active_element; // tracker for ie fix;
var bIsMSIE = false;
// Modified version of Adobe's code resolves a bug in FF:
function getSWF(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
// Resolves a bug in FF where an array is sometimes returned instead of a
// single object when using a nested Object/Embed.
if(document[movieName].length != undefined){
return document[movieName][1];
return document[movieName];
// Need to check for swf each time we try this because the swf may actually be gone
// because of ajax or a window closure event. Prevents error dialog from popping up.
// Future release should check for this condition and then remove the calling event
// so it doesn't keep triggering.
function animOff(){
if (bIsMSIE && (active_element != document.activeElement)) {
active_element = document.activeElement;
} else {
var logoThang = getSWF("xxx");
if(logoThang){logoThang.jsanimOff();}
function animOn(){
if (bIsMSIE && (active_element != document.activeElement)) {
active_element = document.activeElement;
} else {
var logoThang = getSWF("xxx");
if(logoThang){logoThang.jsanimOn();}
// Add the listeners. Hear ye, here ye.
if (typeof window.addEventListener !== "undefined") {
// Firefox, Mozilla, et al.
window.addEventListener("blur", animOff, false);
window.addEventListener("focus", animOn, false);
} else if (typeof window.attachEvent !== "undefined") {
// Internet Explorer
bIsMSIE = true;
window.attachEvent("onfocus", animOn);
// Another bug: window.onblur ALWAYS fires in IE, so
// we have to keep track of what we're clicking using
// another method:
active_element = document.activeElement;
document.attachEvent("onfocusout", animOff);
// Necessary to trigger toggling in FF if the page hasn't actually been clicked in and the page
// is sent to the background. Can be commented out if necessary, e.g. if you don't want the page
// popping to the top or want focus to remain somewhere else like a form field.
window.focus();
]]></script>;I added this code and it removes the externally loaded swfs. I don't want that, I want them to pause and then resume when the tab is back in foucs. Also, the main code restarts the main movie clip upon refocusing too.
Added code:
function toggleAllLoaders(doAnim, loader) {
if ( loader is Loader) {
if (doAnim) {
loader.play();
} else {
loader.stop();
for (var i = 0; i<loader.numChildren; i++) {
toggleAllLoaders(doAnim, loader.getChildAt(i));
I added the new function to all of the places that had the "toggleAllClips" function. -
AVI, SWF, FLV and issues with Captivate
Hello,
This is my first post here. But I have been searching so some
time to find the answer to my issue. The closest thing I have found
was this
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=67&catid=464&threadid =1290481&highlight_key=y&keyword1=convert
Post but the issue was not really resolved the user just
reconverted the file (which you will see in the post why this is
not working for me)
So without further delay here is my issue.
I am creating a training video. The video will open with a
live action scene. This video is or will be about 2 minutes long. I
have been testing Captivate because I read that it will import
AVI’s. That being said every time I import an AVI I get the
error message.
"This AVI file cannot be converted to a Adobe Flash File.
Conversion aborted."(You can see why the above post sparked my
interest)
The AVI has been rendered from Sony’s Video Vegas
(mighty fine editing software if I might say). I have rendered it
using multiple codec’s. When I try and import the video into
Captivate I am creating a new slide at the beginning of the project
and then trying to add the AVI as an animation, this when I receive
the error.
After reading on line that other users were having similar
issues I decided to try and convert the video to SWF or FLV. The
converter I chose was “super” converter (really I found
this on my own and was not copying it from the post)
Now my issue is the following. With SWF files, it imports
fine and when I play the video in the time line the video looks
fine and I can see the video play. But when I try and preview the
project the will not play and I cannot move the “time line
bar” the only option I have is to close window.
With and the FLV files the following happens. I can import
the FLV as a flash video and it appears in the slide but it is
“grayed out” when I try and view the video in the
Timeline for the slide I cannot see anything.
So after a lengthy 1st post what I really want to know is;
1) Is there something special that I need to do to get
AVI’s to import? Is there a special codec or something I need
to do when I render the video?
2) SWF files working in the time line but not in the final
project o the project preview.
3) Is there a “preferred” converter that people
are using to convert files from AVI to SWF
Thanks for your time
Michael MHi Michael,
I haven't tried AVI or SWF videos, but I've used several FLV
videos (though I had someone else convert them for me, so I can't
help you there). The main problem I've had have to do with where
the files are stored so that Captivate can correctly access the
files and play them back. Also, if you use a skin in the Flash
video, when you publish the file, make sure that the skin .SWF file
is published. If you are using Captivate 2 and happen to use the
corona skin, you need to change the "C" in CoronaSkin3.swf (for
example) to a lowercase "c", or else the published video won't play
at all (just gray - like I think you're describing). I've got some
2+ minute FLV files that play fine though once we got everything
squared away. Let me know if you have any questions about what I
described above (which doesn't have a whole lot of video cause I'm
a little short of time at the moment).
Good luck,
David -
.swf file won't play on any in house computer except the one it was rendered on
So, I work in a company that does some animation. I handle the website and uploading our stuff to it. The animator upstairs makes the stuff. He rendered out the file as a .swf, a html and a flv. He says he did it the same as he always does it, which is fairly often and he is definitely competent. The file plays in the browser on his computer (a mac).
He transfered the file to several of us to test where the problem is. On mine (mac), two coworkers (also macs), and a pc the files do nothing when opened in a browser, blank white screen. The icons for the files are also just a blank page. We can all play the other .swf files from the website, both on the site and downloaded to our comps.
Flash player has been updated on them all. He has re-rendered them with different file names. We are transferring them over our network.
We need to get this animation on the web and I have no idea whats up with these files. Anyone got any ideas?upload the embedding html and the swf and loaded files to a server and post the url.
-
In Flash CS4 a generated html with swf file won't play swf
Using Flash CS4 and having the Flash plug-in ver 10 on my PC, the generated html file will not play the swf in the browser.
I noticed that the active-x javascript is now included in the header as well as the javascript portion in the body tag.
But it won't play. I get the typical blank window in IE with the "X" in the upper left corner.
I don't have this problem with Flash CS3.
Any ideas what may be going on?
Thank you.I am having similar difficulty; mostly I am confused.
I want to open a flash video file in a frame within a webpage.
I have generated a Flash CS4 html and swf file. When loaded they play, but they play on a separate, full size web page, not in the frame where I want it.
I then generated FLV and F4V files but that doesn't work.
It appears that I need to insert the object and embed tags "for Flash Movies" in the html file.
Once I do that, do I go back to only putting in the html and swf files and create a link to the html file to bring up the video in the target frame?
What are the FLV files for? -
Flash animation doesn't work when I publish Captivate file
Hi,
I have an e-learning developed by a third party using Captivate 6, they've inserted animations (swf files) created using Flash CS6. When I try publishing the Captivate file on my computer all the animations work well except for a particular one (a wheel that spins and asks questions).
When I publish the Captivate file and go to that particular slide and click anywhere other than this animation the whole thing freezes (this doesn't happen on other slides with the other animation/quizzes developed using Flash CS6 on the same project). However, when the developer publishes the same file on their machine it works well.
I don't have Flash CS6 installed on my machine (I only have Flash CS4 and can't open the animation/swf files), I asked someone else (that had Flash CS6) to try publishing the Captivate file and had the same issue I had.
Has anyone had this issue before? how can I fix it?
Thanks!Since you are loading another SWF file into your main root timeline and want to transfer control to the loaded SWF you need to call _lockroot on the container that holds the loaded content since you are using _root. Like this:
myMCLMain.loadClip("flashSite.swf", "container2");
container2._lockroot = true; //Add this line after loadClip
Or you can remove the _root in the loaded SWF. -
Swf containing my classes not shown when runned on a server
Hi everyone,
I hope you can help me!
I am trying to show my swf on my localhost server, and everyting looks just great when adding a simple box in my main file.
However, the problem commes when creating the same box in a class and the call that class from the main file. Running it
locally from my machine everything looks as it should, however when trying to run the swf from my localhost server nothing is
beeing showed..soo what am I doing wrong here?
I really hope you can help me!!For the first approach you need to have the flv and the swf loaded to the server, and the two javascript files that the html page indicates...
If the swf file is in a different directory than the html page, then you may need to adjust the url you use to target the flv. It should be specified as if the swf file is in the same folder as the html page. So if the html page uses "images/pagepeak2-1.swf" to load the swf, then the swf would have to use "images/pagepeak2_3.flv" to load the flv if the flv is also in the images folder. The alternative would be to not change the coding and move the flv to the html page's folder. -
Flash 'test movie' animation won't play until refresh screen.
Suddenly, the flash animation won't play until I refresh the screen, in test movie. What's gone wrong? Has worked as it should until last night. Now, when I create a new flash file, the animation doesn't play until I refresh the screen. Then it works fine. It also plays the other swfs fine.
Thanks for the fast response. I appreciate it, Meishak.
I remember saving everything. I have the file. I go to File
>> Open >> I select the file I want>> Target file
DOES OPEN... but only in preview. I popup opens up and plays the
movie. But I cannot, to the best of my understanding (student
newbie advert. major) open it to where I can edit timeline and
stage and whatnot. I used to be able to. It is saved. It does open.
But just not to be altered... is the best way I could describe it.
I am assuming that maybe there is some type of "open as..." setting
somewhere and it just have it on "always open as preview."
I don't know... I have googled every troubleshot wordphase
under the sun and nothing. Any thoughts?
Thanks,
-KD -
In Flex 3 how to Stop and Replay .swf animation created in Flash
Hi
I have an animation file that is created in Flash (I think
CS3). In Flex if I import it inside a SWFLoader or if I import it
as an Image. It plays once and stops. Then I can not replay it. I
also can not pause it when its playing.
I have tried few things based on help and code available in
the Web to of no help. I have tried to convert the swfLoader
instance to a movie clip like so to stop
var c:MovieClip = swfLoaderHeaddress1.content as MovieClip;
c.stop();
<mx:SWFLoader x="53" y="116" width="206" height="255.3"
visible="true"
source="assets/animations/curatorial/ZoomHeadress_2nd.swf"
id="swfLoaderHeaddress1"/>
It does not work.
I have not created the .swf animation, I am not sure how it
is done. I belive it may not be using any ActionScript as I know
the artist who created it does not know ActionScript. Does
something need to be done inside the Flash to support the stop and
play? Or is there a way to restart/replay stop a .swf animation in
Flex 3 no matter how (and whether or not its developed using
ActionScript) its developed in Flash?One way is she has to add some AS code to the animation, or
you can do it yourself.
In swf there must be something like this:
var connReciever:LocalConnection = new LocalConnection();
connReciever.client = this;
connReciever.connect("fromFlexToSWF");
function myFunction(parameter:SomeClass):void {...}
And in Flex:
var connSender:LocalConnection = new LocalConnection();
connSender.send("fromFlexToSWF", "myFunction", [..args]);
The other way: in case with just play/stop there is a way to
resolve this by using that Flex Component Kit (or maybe "Flex Skin
Design Extension", i do not remember), it is something like she
just adding labels to animation frames then she exports it with
Flex Kit and then you can work with it like with an object with
"states". -
Animated gif will not stop when placed in director
I have an animated gif I am trying to place into a director
file.
When its placed and I press play it will play the animated
gif over
and over. I also took the gif and saved it as a swf file
placed it in
director it does the same thing. Please tell me what I am
missing.
Also I will show the dir file if you need to see it.Oops - wrong button - didn't mean to send that yet...
anyway...
You don't have much control over Animated Gif members in
Director. You
can use
sprite(animGifSprite).pause()
to stop the animation and
sprite(animGifSprite).resume()
to restart it. The tricky bit is knowing when to do those
things.
There is no way I know of to find out if the sprite is at the
end of
it's image sequence.
Perhaps a better way of going about it would be to take the
animation
apart into individual frames and load them into a swf member
(in Flash)
or a Film Loop in Director. You may have more control over
the
animation that way.
The fact that it keeps repeating over and over again is sort
of the
point of an animated gif... though I believe that you can
make an
animated gif that specifically does not loop back to the
start using
ImageReady or the newer version of Photoshop. Though I have
not tried
this...
Maybe you are looking for
-
Can't configure Wireless Connection to HP OfficeJet Pro L7780
I recently purchased both my iMac 24" 2.8GHz computer with OS x 10.5.2 and HP OfficeJet Pro L7780. I was able to use the HP setup CDs for my Windows laptops and configured them to use the printer in a wireless configuration. The iMac is creating the
-
How can I control the bits per sample property in a TIF file when saving it?
When I save an image in the TIF format the bits per sample property is set to the amount of bits that are used by the image. In my case I can also have 'dark' images where not all bits are used. For this I would like to set the amount of bits instead
-
Exception condition "CNTL_ERROR WD-abap Smartform to pdf
Hii, I am using a webdynpro - abap application. I am showing a smartform as a pdf in one on the windows. When the link in the main window is clicked, a secondary window. Instead of the pdf, I get following exception.Kindly help me understand, where
-
Problem writing Serial Number programatically and printing report
Labview 8.5 TS 4.0 I modified the my PreUUT sequnece to call a VI which enters a new Serial Number via a string control. This works fine. The problem is this new SerialNumber does not seem to be accepted by TestStand and therefore does not print the
-
Lightroom printing problem Epson R1800, XP SP2, colors dark
I'm having no success with printing from Lightroom 1.3.1, with a quite new Epson R1800, on an IBM R51 with Windows XP SP2. Printing is fine, using Epson's Easy Photo Print, and PhotoShop Elements 2.0. In fact, the results with Epson's Easy Photo Prin