Closing swfs in captivate movie
I am frantically trying to figure out how not to get a
javascript erro rwhen my animation ends inside my captivate movie.
how to I close the swf adn still elt the user navigate to the next
captivate screen?
Please help!
thanks,
francie
Hi francie
I have no clue as to how what terrence wood is suggesting
will help here. From what I surmise based off what you posted, you
have inserted an animation or possibly even another Captivate movie
on a slide in an existing movie? And somehow you want to know how
to close the .SWF that is sitting on the slide? If I'm correct in
what I understand you are trying to do, my guess is that it isn't
possible. Why? Well, if you were able to close the .SWF on the
slide, you would probably also close the whole movie. My guess is
that this is why you are seeing JavaScript errors.
I'm thinking that you should probably configure the end
option to simply stop. For the movies that are on the slides, that
is. This also assumes you are placing other Captivate movies on the
slides. If you are instead placing other animation, I haven't a
clue what to advise, other than to possibly adjust timing.
Hopefully this helped in some way... Rick
Similar Messages
-
Pause imported swf when Captivate movie is paused
Hello,
I have created several small swf-animations (e.g. textboxes
flying in) which I use in a captivate movie. This works fine,
however, when the movie is paused and then continuied, the
swf-animations on the slide start over again. I have noticed that
the swf-animations that come with Captivate don't show this
behaviour. What's the (actionscript?) trick?
Thanks for your suggestions.
JanThis problem stumped everyone...I was on the phone with
Raptivity for DAYS!! here is the solution they proposed which seems
to work......
Step 1: Open a Blank project and click on
‘Insert-Animation’. Browse for the swf file of
Raptivity and click OK.
Step 2: Save this project.(Create a new folder for this
project on some location on your machine.)
Step 3: Select Edit > Preferences.
a. In the Publish Settings option of the Project menu, select
Animations in the Externalize Resources list.
b. In the General Settings option of the Global menu, browse
for the saved folder (under Default locations) of Captivate’s
project and click on OK.
Step 4: Now click on ‘Insert-Animation’ and
browse for the fix.swf file (attached along with this mail) and
click on OK.
Step 5: Select Edit > Preferences.
a. In the Publish Settings option of the Project menu, select
Animations in the Externalize Resources list.
b. In the General Settings option of the Global menu, browse
for the saved folder (under Default locations) of Captivate’s
project and click on OK.
Step 6: Publish the file. To do so, click on the menu
File-Publish and ensure you publish this in the same folder of
Captivate’s project.
Finished !!! you have successfully integrated Raptivity into
Captivate directly. -
Closing swf loaded into movie clip
I have built a movie clip on my main flash file that I am loading separate swfs into. On the separate swfs I have a close button, but do not know what action script to attach to it to make the movie clip go away? I want these to go away every time you hit the close button on the separate Flash swfs loading into the main movie clip.
if the target movieclip has a non-negative depth and the close button is encoded on the loaded swf's main timeline, you can use:
var tl:MovieClip=this;
path.closeBtn.onRelease=function(){
tl.removeMovieClip(); -
Adding a Loading Animation to a Captivate movie for use in a RoboHelp Project?
Hello all:
I'm inserting SWFs (built in Captivate 5) into Robohelp topics (using RoboHelp 9, publishing to WebHelp Pro output). These topics hold only the SWFs, so I've published the SWFs to autoplay when opened.
The problem is this: when I publish my RoboHelp project, my Captivate movies display as image icons (see screenshot). There is no loading animnation or screenshot to indicate that the Captivate movie works. If I wait a few seconds (variable, depending on file size of the SWF), the movie will appear and start to play. I'm concerned that my user will think the file is broken and leave the page.
How can I enable a loading animation (or even a loading image) to show my user that there is, in fact, content on the page when the topic loads? I'd like to keep the auto-play functionality, if possible.The best option is to break out the words because it gives you the most control. However, if the two words you want to glow are next to each other you can use the Sequence Text behavior.
Select the text and apply Text Animation/Sequence Text to the layer. In the behaviors tab, click on the Add parameter and select Glow/Color. This will create a parameter that you can assign to a character, word, line or custom area.
Now you'll need to add several parameters so repeat the above step adding parameters for Glow/Opacity, Glow/Blur, and Glow/Radius. You might even want to change the color of the font for those two words. If so, add a parameter for Face/Color.
Once you have all the parameters added, change the Traversal parameter to Custom. Change the Select parameter to Custom. Use the Start parameter to determine the beginning of the "glow" area, and the End parameter to fix the end of it. Set the Spread to 0 so there is no spillage of the glow to the words on either side.
Now adjust the color, blur and radius of the glow just as you would if you were adding it to the entire paragraph.
Andy -
Load a Captivate movie in a Flash movie
I'm trying to load a captivate 5.5 swf into flash, even with a simple script like:
import flash.display.MovieClip;
var request:URLRequest = new URLRequest("captivate.swf");
var cargar:Loader = new Loader()
cargar.load(request);
var mc:MovieClip = new MovieClip();
this.addChild(mc);
addChild(cargar);
I get an actionscript error:
ReferenceError: Error #1065: No se ha definido la variable pbcBtnTips_FRA.
at Aluminum_fla::MainTimeline/frame1()
ReferenceError: Error #1065: No se ha definido la variable pbcBtnTips_SPA.
at Localization/frame1()
This seems to be happen only to non-english Captivates, ie Spanish version.
Any ideas?You could pause the Captivate project when you start to preload it by using the Captivate system variables. Then when your file has been loaded 100% you could resume it again by using a different system variable.
You can see a list of the various system variables here: http://www.cpguru.com/2009/04/28/system-variables-in-captivate-4-%e2%80%93-a-complete-list /
The relevant variables for you would be:
rdcmndPause = 1; (to pause the project)
rdcmndResume = 1; (to resume playback)
Naturally you need the instancename (where you load your Captivate movie into) infront of the variable name.
myLoaderContainer.rdcmndPause = 1;
/Michael -
Text Missing from SWF in Captivate Slide
I inserted an SWF on my first slide in my
presentation. When I press F3, it works great. When I press F4 to
preview the project, the file plays but the text that is within
this file, is not visible. I have changed backgrounds and
transparencies, and I still have no text. This text is animated and
I don't know if this is part of the problem.Did you create the SWF in Flash and then embed it in
Captivate? If so, did you publish the Flash SWF for the same Flash
Player version as your Captivate movie. For example, if you are
publishing your Captivate movie for FP7, did you also publish your
Flash SWF for FP7 (or earlier)?
If your Flash SWF is for v8, and your Captivate movie is for
v7, then that MIGHT be the problem. -
Controlling captivate movie with JavaScript
Hi,
I am trying to use Flash methods to control a captivate movie
using procedures documented in the support center article:
http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03. html
I am using the following code in a JavaScript:
var movie = window.document.Captivate1;
movie.StopPlay();
Captivate1 is the object ID assigned by Captivate when it
generates the HTML file. The movie does not respond to the command.
I have created my own Flash movie and the StopPlay command
works with it.
Thanks in advance for any help anybody can provide!Captivate SWFs don't respond like other Flash movies. You can
use similar techniques, but must use some specific, legacy "control
variables" that are hanging around since the RoboDemo days:
To pause a movie, use rdcmndPause = 1;
A good place to find more details is here:
http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=27&Itemid=29 -
Hello
I'm trying to integrate a Captivate (swf) into my Director
environment so when the movie stops playing the playhead jumps to a
marker.
Can someone please tell me how to do this.
Any help much appreciated.
regards
AndyHi Aus_Steph
There are two ways to approach it.
1. When you publish a Captivate movie as .SWF format, you
have the ability to Export HTML. This results in two files. The
Captivate .SWF and a .HTM page that is used to display the .SWF. So
in RoboHelp (RoboHelp HTML assumed here) you would right click the
folder where you want the Captivate movie and choose import. Then
you would navigate to and select the .HTM file that was produced by
Captivate.
OR
2. From RoboHelp while editing a topic, you can click Insert
> RoboDemo Movie... (or Insert > Multimedia) and navigate to
the raw .SWF file Captivate produced.
I think the big deciding factor here is whether you want the
entire page to contain the Captivate movie, or if it will appear
perhaps tucked away inside a DHTML drop down or something where
other items are on the page too. I'd go with option 1 for the whole
page or option 2 if I were including the .SWF along with other page
content.
Hopefully this helps... Rick :) -
Rewind Captivate movie in PowerPoint
I've managed to get a Captivate movie into PowerPoint
following instructions found at
http://www.flashgeek.com/tutorials/
However, although I've followed the instructions, I can't get
the movie to start at the beginning each time the slide with the
movie displays.
Can anyone help with precise instructions on how to rewind
the movie?If you deselect "Borders" under Project/Skin the navigation
bars are included in the resulting swf. Which you can embed in
powerpoint.
There is some little trickery with VBA you can use to start
the movie automtically:
(sorry it is partly in german because of my program skin)
In Powerpoint open the Toolbar „Steuerelement
Toolbox“ or open it with (View / Symbolleisten / …).
There click on “weitere Steuerelemente“ klicken
(Symbol with a hammer).
In the alphabetical dropdown list select „Shockwave
Flash“ .The mouse changes to a cross with which you can open
a rectangle on the slide. There the video will appear later. Now it
is filled with a big "X".
Right click on the rectangle and select "Properties". There
behind "Movie" enter the name of the video (if it is at the same
location) or the path.
If you choose TRUE after "embed movie" the resulting
powerpoint presentation contains the flash movie, if you choose
"false" it just links to it. So you can either assure that the
video is part of the presentation or you can update the
presentation by naming a new video identically to the old one and
the link in your presentation now shows the new video (do you
understand what I mean?)
If you start your presentation the video starts (even if it
is on the last slide). You can restart it automatically by doing
the following:
Double-click on the rectangle whre your video will be shown.
The VBA editor opens in a new window. There click on Insert/modul
in the toolbar.
The modul is a editor-window where you now place your code.
Copy&Paste the following (example from me for three movies just
edit it depending on your needs):
Sub OnSlideShowPageChange()
Dim film1 As ShockwaveFlash
Dim film2 As ShockwaveFlash
Dim film3 As ShockwaveFlash
Set film1 =
ActivePresentation.Slides(2).Shapes("ShockwaveFlash1").OLEFormat.Object
Set film2 =
ActivePresentation.Slides(3).Shapes("ShockwaveFlash2").OLEFormat.Object
Set film3 =
ActivePresentation.Slides(4).Shapes("ShockwaveFlash3").OLEFormat.Object
film1.Playing = False
film2.Playing = False
film3.Playing = False
film1.Rewind
film2.Rewind
film3.Rewind
film1.Play
film2.Play
film3.Play
End Sub
This is doing the following:
Each time you enter a slide with a flash-video the video is
rewind and played from the beginning. In this example there are
three videos in the presentation. Do not change the order of the
commands or it will not work!
The numbers in ( ) are the number of the slide on which the
movie is appearing (here: the 2nd, the 3rd and the 4th). The name
of the movie which you can find in the properties behind "name" or
"title" is also entered. If you make a mistake here the code cannot
affect your movies. Keep in mind that the numbering of the slides
in the presentation is to be used, not the numbering shown in the
vba editor, which you can see on the left (where you also see your
module)
In this example the movie „Shockwaveflash1“ is on
the second slide.
Then click on "Save" in the vba editor and close the window.
Now test your presentation... It should work just fine! -
Incorporating a Captivate movie
How do I put a captivate movie into the help files?
thanksHi Aus_Steph
There are two ways to approach it.
1. When you publish a Captivate movie as .SWF format, you
have the ability to Export HTML. This results in two files. The
Captivate .SWF and a .HTM page that is used to display the .SWF. So
in RoboHelp (RoboHelp HTML assumed here) you would right click the
folder where you want the Captivate movie and choose import. Then
you would navigate to and select the .HTM file that was produced by
Captivate.
OR
2. From RoboHelp while editing a topic, you can click Insert
> RoboDemo Movie... (or Insert > Multimedia) and navigate to
the raw .SWF file Captivate produced.
I think the big deciding factor here is whether you want the
entire page to contain the Captivate movie, or if it will appear
perhaps tucked away inside a DHTML drop down or something where
other items are on the page too. I'd go with option 1 for the whole
page or option 2 if I were including the .SWF along with other page
content.
Hopefully this helps... Rick :) -
Trigger actionscript from end of captivate movie
Hi Guys,
I'm going insane trying to work out how to trigger an
actionscript event from the last slide of my Captivate movie.
Basically I'm doing a product walk through which I am exporting as
a swf an then dynamically loading into my flash file.
I need to be able to detect when the externally loaded
Captivate swf has completed playback so that I can then continue on
with the rest of my flash movie.
I have tried adding a swf in Captivate with actionscript to
trigger the event at the end of the slide but it doesn't work?
I have also tried exporting the whole thing as an fla and
then re exporting it from Flash MX 2004 and the animation seems to
get ruined and out of synch.
Any ideas on how I can detect and trigger and AS event when
the loaded Captivate swf has completed would be much appreciated.
Thanks heaps for reading.
Chrishi Chris
i created a similar workaround. i ran into a number of issues
when trying to call an actionscript function at the end of a
Captivate swf. i determined that captivate is VERY picky about
imported swfs. for instance, i had a single imported swf that
contained an animated background and one line of actionscript, and
it never worked. however, when i split it into two separate swfs
(one just for graphics, one just for actionscript), it worked! go
figure.
i also noticed you have to be careful where you place it on
the captivate timeline, depending on what you're trying to do. if
you're calling an end-of-movie function, be sure the swf is only on
the last few frames of the last slide. sometimes when i placed the
actionscript swf on the first frame of my last slide it wouldn't
work, but after moving it down a bit, it worked fine.
lastly, i had to use "_root" to get mine working. i know many
people consider it bad form, but if it works, it works. i did the
following:
1. created a function in my Flash interface named "endDemo()"
2. created an empty Flash file with one line of actionscript:
_root.endDemo();
3. imported the swf into my captivate movie and placed it on
the last few frames of the last slide.
4. set my captivate movie prefs to stop at the end of the
movie, and not to fade out.
worked for me... good luck!
- philip -
Swf on captivate slide too big
I created a flash animation that looks like movie credits --
text which scrolls from bottom to top. The flash animation is 590 x
150. The published swf file looks fine. But when I put it on a
Captivate slide (with Insert>Animation) where the Captivate
project is 630 x 425 , the animation object ignores its 590x150
size and plays full screen, moving over the top of other elements
on the slide. I've checked the animation properties--the size of
the object is set to 590 x 150.
How can I make it play at the size I intended?Did you create the SWF in Flash and then embed it in
Captivate? If so, did you publish the Flash SWF for the same Flash
Player version as your Captivate movie. For example, if you are
publishing your Captivate movie for FP7, did you also publish your
Flash SWF for FP7 (or earlier)?
If your Flash SWF is for v8, and your Captivate movie is for
v7, then that MIGHT be the problem. -
Hi
I am new to Captivate, but Advance flash user. I have bunch of captivate movie that I am embeding in my flash app with loadMovie action. Now I notice that when I load captivate movie in another swf with a mask on top it then non of the Close Caption text shows up and when I put it up over the Mask then text in close caption shows up fine. I am not sure why but I can't get rid of the mask and need know how can I put the captivate movie under the flash mask.
Any help please
Thank youI'm having the same issue. Were you able to resolve this by any chance?
Thanks! -
I was editing my Captivate movie and it disappeared as I was
working on it. I thought it was rather strange so I re-opened the
Captivate program and I opened the file I was working on when the
program crashed. I received an error telling me that the file
closed incorrectly the last time and would I like to repair it. I
clicked on yes and nothing happened. I tried opening the file again
and it shows the progress bar but does nothing else. When I look at
the saved file, the size is still the same, however, the captivate
program says there are 0 slides. The slides still seem to be there
though as I open a blank movie and import the movie and the movie
shows in the directory. When I click on it the slides open up and I
can see all 51 slides so I select All and click on Import but
nothing happens. This is very strange as I can see the slides but I
can't use them. Somebody Please Help.I just experienced a very similar issue - my saved movie
"disappeared" after I published it. The title is there, size shows
as it was with all 80 slides, but when I open it, it shows just one
slide, blank.... Did you figure out what happened and how to
resolve it?..
This is very alarming, especially that it seems like this
error happens more than just once, although I had no problems with
my previous 20+ movies... This was the first one I made with audio
voice recording though.
Can anyone help?.. -
I have an entire layout framework built and one of the controls is a GUIControlWrapper with every conceivable option for wrapping and aligning (uniform scale, stretch, stretchwidthonly_aligntop/middle/bottom, stretchheightonly_alignleft/center/right, etc.) non-framework controls (i.e. controls that are display objects, but do not inherit from my layout framework's base GUIControl display class).
Generally this wrapper obtains the object size by calling wrapped_control.getRect( wrapped_control ), to obtain the object's rectangle in its own coordinate system (i.e. its unscaled or original size), and it clips this rectangle to the origin by setting the left and top properties to zero.
The problem I'm encountering only affects captivate movies. When I used my framework's uniform scale option, there ends up being a gap at the bottom exactly the size of the captivate movie's playbar (which is visible), which indicates to me that the captivate movie's getRect and height properties are overreporting the height.
If I use the captivate movie's "cpMovieWidth" and "cpMovieHeight" properties instead, then the uniform scale results in perfect alignment. The captivate movies "contentHeight" variable is 38px smaller than "cpMovieHeight", and the playbar height is 40, which is about that 38px difference.
So my question is, why do captivate movies' getRect and height methods report the wrong height for the movie, such that if you actually scaled the clip based on that height to fit the stage size, there is a gap about the size of the playbar?I'm sure it's because the movie controls are a seperate swf. CP supplies you with the variable that works as you've found.
Maybe you are looking for
-
Problem with default value for Billing when creating Business Partner
In Sales Area data - Billing screen we want to default a value for Price List Type when creating a Busines Partner. We implemented BADI 'BUPA_FRG0030_UPDATE' and followed suggestions from another thread : Defaulting Currency Value to 'USD' during B
-
Any way of deleting unwanted apps from your recent purchase,
I have Recently found my son downloading 17plus apps on his phone. and i want to get rid of them permenatly.. i have put a perental lock on it now... is there anything else to do
-
Hi. I just got the Blackberry Curve 8330 last week and am still having some problems. My latest is this: i bought a 2 gb media card and installed into phone. Then i transferred about 50 or so songs onto the card. Later I went to transfer more music b
-
So i recently transfered all my old file and settings to this new macbook. When I was using my old computer (a iMac G4) the mighty mouse broke and I just used a normal mouse. When ever I right clicked using that mouse, it would make all the windows z
-
AVCHD in Final Cut Express HD?
I just got myself a Canon HG10, I have final cut express HD. Is there a way to get Final Cut Express HD to support AVCHD?