Control of captivate movie with JavaScript
HelloI am trying to use Flash methods to control a captivate movie using the procedures documented in the article of the Support Center:
http://www.Adobe.com/support/Flash/publishexport/scriptingwithflash/scriptingwithflash_03. HTML
I use the following code in a JavaScript:
film var = window.document.Captivate1;
film. StopPlay();
Captivate1 is the ID of the object assigned by Captivate when it generates the HTML file. The film does not meet the order.
I created my own Flash movie and the command of StopPlay works with it.
Thanks in advance for any help that anyone can provide!
You can control Captivate with javascript, Rick has an example HERE
Tags: Adobe Captivate
Similar Questions
-
Control filters CSS with javascript
I know that I came across a post in the past values explaining how retrieve CSS with javascript, but I can't find it now. Basically, it came down to something like this:
sym.getSymbol (componentNum) .getSymbol (BKnum).$("open1").css ("opacity");
I am now trying to control the CSS values and can reverse this to control the standard CSS values, but may not understand the appropriate structure for control of CSS filters.
sym.getSymbol (componentNum) .getSymbol (BKnum).$("open1").css ({'opacity':0.5});})
This changes the opacity a.5 successfully, but how I would control the inverted property? Animate lists like:
CSS: filters: invert()
As opposed to:
style = "opacity:." 5; »
You can do something like this:
var filterVal = "invert (0.6);
SYM.$("rectangle")
. CSS ('filter', filterVal)
. CSS ('webkitFilter', filterVal)
. CSS ('mozFilter', filterVal)
. CSS ('oFilter', filterVal)
. CSS ('msFilter', filterVal);
HTH,
Vivekuma
-
Publication and display locally a captivate with javascript project custom
Hi all
Ive had a problem that I can not work.
I started working with javascript, so when I want to listen to excerpts of the document, I use F12, which works correctly.
Also, when I use captivate to publish my projects directly on my site it works fine also.
However when I publish locally, when I go to view the output, javascript does not seem to load.
Pretty funny. The same file when downloaded on my site and then seen it works fine.
What is the cause? And I can do to fix this?
Concerning
Mathew
Mathew, you must add the location of publication record as a trusted location in your Flash Global security settings.
Google for info on Flash Global Security.
-
Alternate slides with JavaScript (or advanced Actions)?
I was wondering if someone out there with the knowledge of JavaScript could help me a little...
A colleague came to me with a question about randomization of the slides. We work in Captivate 5.5. The slides are all part of a quiz (but aren't question slides). They have a click box. The idea is that if the user clicks on the box (or off the beaten track), it shows a good (or bad) legend and then jumps to a random slide (new). If the user manages at the end of the slide without selecting anything, their time is running out and they get fried to a random slide and it is regarded as an incorrect answer. The user should see all of the slides in random order, with no recurrence.
I created a tip Action, integrating the widget of random number, and it works. My problem is that the project has 50 blades, and I'm not sure it is very feasible with advanced Actions. As it is, my test with 3 random slides is an action with 4 conditional statements, so I'm not really looking to create one for 50 slides. (I don't know even if Captivate would be able to handle this).
Is there a way (judging) to achieve with JavaScript instead? My vague idea based on my very limited knowledge of programming is:
- on enter first Captivate slide, create the array of random slides - 1 slide numbers (because cpCmndGotoSlide index starts at 0)
so if I had a project where I wanted to shoot random slides 3-8, the would be [2, 3, 4, 5, 6, 7] - Shuffle/random table
- set up a variable called slideviews = 0 to keep track of how many slides have been seen (and so which item in the table to move to the next randomly)
- Create a function that I'm going to run when I want to access a random slide (whether at the end of a slide or in the success or failure of a click on a square)
something like... If slideviews < array.length, cpCmndGotoSlide = array [slideviews]; slideviews ++; Another thing, cpCmndGotoSlide is 8 (jump at the end of the slides)
Of course, this lack of things (like the proper syntax and things needed to communicate with captivate)... but is sound logic? Is there a better way to do it?
Come to think of it, the table and the slideviews variable should be saved if we wanted it works with bookmarking... I think that this project will be SCORM 1.2 LMS System.
It would be nice to have a variable user I can access within the Captivate project and I can put in a legend to show the script #. Something like scenario = slideviews (I know that's not the syntax, reading series of JavaScript of Jim Leichliter on CaptivateDev.com, but that's the basic idea.)
Anyway, pointers would be very useful! Thank you.
Edit: I played a little bit; for randomization, I found a code online, and then I wrote something that automatically creates a table and a function for the jump to a slide randomly. Here's what I have so far (not tested in Captivate yet):
var objCP = document.Captivate; var randomNumbers = []; // The following creates the values for the array: 3 to 52. // I want to randomize slides 4-53, using cpCmndGotoSlide (index starting at 0) to jump to them for(i=3; i<53; i++) { randomNumbers[i-3] = i; } var n = randomNumbers.length; var tempArr = []; for (i = 0; i < n-1; i++ ) { // The following line removes one random element from arr // and pushes it onto tempArr tempArr.push(randomNumbers.splice(Math.floor(Math.random()*randomNumbers.length),1)[0]); } // Push the remaining item onto tempArr tempArr.push(randomNumbers[0]); randomNumbers=tempArr; var slideViews = 0; var randomSlide = function() { if (slideViews < 50) { objCP.cpEISetValue("cpCmndGotoSlide", randomNumbers[slideViews]); slideViews++; objCP.cpEISetValue("scenarioNumber", slideViews); } //after all the slides have been seen, jump to the final results slide else { objCP.cpEISetValue("cpCmndGotoSlide", 53); } };
I doubt it will work off the bat, but maybe this is a beginning?
I managed to get things working, so I thought I'd post my (probably a little unwieldy and inefficient) code in case people come across this thread and want a starting point:
var objCP = document. Captivate;
var randomNumbers = [];
var slideViews = 0;
CVS var = 0;shuffle var = {function (array)}
var m = array.length, t, j;
so that {(m)
j = Math.floor (Math.random () * m-);
t = array [m];
table [m] = array [j];
table [j] = t;
}
};var jumpSlide = function() {}
If (slideViews < randomNumbers.length) {}
objCP.cpEISetValue ('cpCmndGotoSlide', randomNumbers [slideViews]-1);
slideViews ++;
objCP.cpEISetValue ('scenarioNumber', slideViews);
}
else {}
objCP.cpEISetValue ('cpCmndGotoSlide', 52);
}
};var randomSlide = function() {}
If (g_objAPI.LMSGetValue ('cmi.comments') = ") {}
for (i = 3; i < 53; i ++) {}
randomNumbers [i-3] = i;
}
Shuffle (randomNumbers);
g_objAPI.LMSSetValue ('cmi.comments', randomNumbers);
resume ++;
jumpSlide();
}
ElseIf (resume = 0) {}
randomNumbers = g_objAPI.LMSGetValue('cmi.comments').split(',');
slideViews = objCP.cpEIGetValue ('scenarioNumber');
resume ++;
jumpSlide();
}
else {}
jumpSlide();
}
};The random slide order is stored in cmi.comments, and the position in the sequence is stored in a Captivate variable called scenarioNumber. I could have stored the two variables of Captivate in cmi.suspend_data, but in the end, I liked being able to see the numbers when considering the SCORM data. To work around problems with initialization, I made the creation/restoration of the part of random numbers of the function which climbs to a slide randomly, so nothing is actually executed when entering the first slide.
- on enter first Captivate slide, create the array of random slides - 1 slide numbers (because cpCmndGotoSlide index starts at 0)
-
Stay on the Page/move with text/pull on my hair
Dear friends,
I asked this question before and yet I'm still terrible problems with my graphics flies over the text document when I add more text. I'm not able to find the archives with the answers that people have written to me.
I need to write a series of laboratory reports and using a terrible time amount to try to put the images in place. I do not receive a flow of text running. Even in sections that I created, some of the images floated back up to the top of the section and are sitting there tight. I am not able to move.
Here is an example of a problem: I inserted a scatterplot and written my text. I click on the tab "move with the text." The Text wrap tab chooses spontaneously "Inline with the text. My plot is moved to the left column - but I don't want that here. I need to add a small annotation. I'm not able to merge the plot toward the Center where the function of "In line with text" does not allow this.
Basically, I try and change all the figures and plots to "Move with the text", but they tend to change to 'Stay on the Page' when I look away.
Now, I wonder if I shouldn't open a new document in layout? This way I can add all my numbers for the section of the results in place holders. But what I can combine "Text Layout" sections "Page Layout"?
I really want to go back to Microsoft Word. I would like to become proficient with Pages - and of course to learn my lab equipment!
5.6.2 pages
OS X El Capitan
MacBook Air
Thank you for your attention.
Jonelle
Today, I opened my document to
Jonelle,
Each object, with the exception of a table when it is inserted in a document of v5.6.2 Pages, has its object set to Move with text placement and its set to automatic text wrapping. To keep your images of richocheting around your document out of your control, or push a the other, visit the reorganize with the selected image tab and change skin to zero. Now you can place pictures anywhere in your body text.
Unlike Word, Pages v5.6.2 doesn't have a convenient annotation tool, and we need to position and an oblong text box that contains the annotation group - under the image.
-
No video only audio during playback of movie with Windows Media Player
I downloaded a movie, however it only plays the sound as if I announce myself to music what's wrong?
Windows Media Player
Hi Wolves1693,
Have a. you tried to play the movie with a different actor?
B. What is the format of the video file?
C. do you have video when you play other movies or songs?
D. What is the size of the file?
Try these steps in the meantime.
Step 1
Try to update the codec and check the status.
Install or update a codec:
http://www.Microsoft.com/windows/windowsmedia/player/FAQ/codec.mspx#q14_3http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions
If the problem persists then try step 2.
Step 2Try to reduce hardware acceleration, then play the video.
1 open the screen resolution by clicking on the Start button, click Control Panel, and then under appearance and personalization, click adjust screen resolution.
2. click on Advanced settings.
3. click on the tab Troubleshooting , and then click change settings. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
4. move the Hardware Acceleration slider down.
I hope this helps.
Please answer in return.
Bindu S - Microsoft Support
-
disable the box around cursor; box moves with the cursor
suddenly, a transparent box appears around the cursor and moves with him. Cannot delete the box that moves with the cursor... tried to personalize, mouse pointers, etc. The default tab has been grayed out, so would not activate.
Hello
Looks like you have turned on the magnifying glass.
Open Control Panel / ease of access Center.
Click the make the computer easier to see.
Scroll to the bottom and Remove the check mark from the option turn on Magnifier .
Let us know the results.
Concerning
-
Cannot compile BB Widget with JavaScript Custom Extension
Hello:
I have came across the entire video creating a Javascript Extension customized for BB Widgets and made my own. I made some functions available and named my main package as 'rgpackage' and this is where all of my classes.
After that, I just exported to a JAD/JAR file (just like the video says).
Open Web plug-ins, BlackBerry (v2.0.0.201003191451 - 33) and a new project of Widget of BB.
A new ext folder appeared and I dragged my JAR/JAD file in this folder.
Went to the file config.xml by default BB Widget Config Editor and added functionality. Mine appeared in the list, so I double clicked it.
Everything is fine now. Add the code to my main index.html file to test my extension.
When press the 'Run' button, my widget has started to compile (and also the extension) and this message keeps appearing (and I can't get rid of it... at least I do not know how and what could happen):
[INFO] Compilation of widget
C:\Users\Andy\AppData\Local\Temp\widgetGen.3461070221272448531372.tmp\blackberry\web\widget\autogen\WidgetConfigAutoGen.Java:27: package rgpackage does not exist
_widgetExtensions.addElement (rgpackage again. RGPhotoTakerExtension());Please help as I cannot move with the development because of this error (weird?).
Thank you in advance.
Andy
Trying to get this to work finally found the problem.
Anyone for reference:
During the export of JAR file, the 'resources and Export Java source files' option should be selected instead of "Export generated resources and class files". In my Eclipse, the last of them has been selected by default.
Unfortunately, the video tutorial is not clear on this point. Anyway, you can see in the video that the correct option is selected, but because it is not mentioned, it can be confusing as it dawned on me.
But now, everything works as expected. Finally!
I thank everyone.
Andy
-
Parental controls for music/movies/TV shows that have been downloaded
Windows Media Center:
Is there a way to add parental controls for music/movies/TV shows that have been downloaded if they have the xml file with the sides included?
Hello
There is nothing in Windows 7 by default, adding parental controls to shows or downloaded movies.
You will need search for 3 third-party software that will do what you want.
Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
Hope this information is useful.
-
Visibility of scene with javascript
Hello
, I create a pdf document, creating a scene of u3d. The scene contains two objects in scene, one with a visibility FRONT only and the other with a REAR visibility only (essentially the same as openGLs front and back of slaughter). If I manipulate not nodes in scene with javascript, everything works correctly, i.e. for the first object only its front is drawn and the second object only the rear side is drawn.
However, if I use javascript to hide the objects in the scene and show them once again, each object is drawn with two visible sides (front and back). In my JavaScript code, I use the attribute .visible among the objects in the scene, which is a Boolean value according to the JS notes 3D API reference (e.g. scnobj.visible = true/false to show/hide)
This is expected behavior? Can I control the visibility FRONT and BACK of my objects in scene with javascript somehow?
Thank you!
Dear Dave,
Thank you very much prompt response. Deletion of the declaration of scene.renderDoubleSided = true did the trick. It seems that I put it by accident all fooling with js some time ago.
He now works as expected.
-
Securing of Captivate movies and access via the Web
Hi all
My apologies if this is a little off topic, but I just thought that someone out there has fallen on this problem and come upwards with a solution. All the tips / pointers thank you gratefully received!
I would create a bunch of Captivate movies that will be accessible on the web. Different customers/clients need to access different movies. What I would really like to be able to do is post these movies on my site OR a site offering secure accommodation.
The customer would be given a URL - when you can access the URL, they are going to a login page (and provide a password), and then be presented with a start page / menu where they can access movies that relate to the software they use (customers all use different versions of the software as well as movies are subtly different for each).
A grave on this type of hosting solution or has any ideas for this scenario?
Thank you very much
CraigCraig,
I think you have the wrong end of the stick about htaccess
I made a small example for you here protected folder
username and password = larrya good host is http://ukwebsolutionsdirect.co.uk/hosting.php
I use them for all my domains/site and they are cheapPaul
-
My boss asks me to insert a .wmv movie into a Captivate movie. I found Digital Media Converter (using the demo version for the moment) to convert the .wmv to .avi. When I finished to convert, I then try to put the .avi in the Captivate movie. I get a message that Captivate is the .swf conversion. When the file is finally inserted, he does not like in the movie .wmv or .avi. In Captivate, it is very jagged, risk and quite poor in quality. My boss has his heart on put the .wmv in my Captivate movie. I tried Insert\Animation, Insert\Animation drag, import movie. Someone at - it any other suggestions to convert the .wmv file or get better results from the .avi? We have Captivate 1.0.1.1418. Thank you, Judy, author of the Menusoft Solutions technology.
Do you have Flash? I had a similar project with the help of a .wmv in Captivate. First of all, I imported the video file in Flash MX 2004, then exported out as a .swf. (Remember to export it out of Flash as an earlier version of Flash file... I think I used Flash 5, because Captivate throws an error message if you try to import the Flash 7 format...)
Then I imported the .swf in Captivate. The process worked great... the video maintained its video and audio quality. The other advantage of conversion the .wmv to a .swf was file size savings. My video of about five minutes went more than 30 MB in format .wmv to slightly more than 13 MB in Flash format!
Joel
-
images don't "move with the text" correctly when I have several columns
I use 2 columns, have been inserting images in my text and chose 'move with the text' but when I have to go back and fix something, or add text over the images all move and do not stay with the text. They start on their knees and move to the other columns and will not stay with the text. In my view, this has to do with the use of columns, does anyone have any suggestions?
What version explicit pages (Pages: pages) and the Apple logo: about this Mac) operating system version are you using? There are different, a functional version of the Pages that are running on the current releases of OS X and guessing will not help you.
-
Make a movie with clips of 1080 and 4 k sources
Hi all
If I do a movie with clips of 1080 p sources (like my iPhone 6) and 4 k sources (like my GoPro) I'll still be able to export the animation to quality 4 k? Is there something specific I need to do to keep export k 4 option in iMovie available i.e. the order I add clips in the project, etc.? Will be 1080 p "blasts upward" clips at 4 k resolution?
Thank you for your help.
Miles
10.1.2 iMovie will use the size of the first element that you add to your project to determine the format of the exported movie.
See Help: http://help.apple.com/imovie/mac/10.1/#/move6ccb3330
The resolution and the frame rate of your movie project are determined by the first clip you add to the timeline. iMovie now supports 4 K video and image rates at 30 frames per second (fps). If you want your project to be set at 4K resolution, the first clip you add to the timeline should be a clip of 4K. If you want your project to be set to 60 fps, the first clip you add to the timeline should be a clip of 60 frames per second.
-
When playing the movie with apple tv
When I play movie with apple TV into TV movie is slow but in mac book or I touch all is good.
I have apple 32GB (new) TV and Airport Express .all concretion is WIFI
Help
What is exactly slow, are you using AirPlay.
Maybe you are looking for
-
Microads puts ads on my screen when I'm on firefox. I need to get rid of Microads. How?
-
Satellite A300 - overheating graphics card
Hello. My Satellite A300 got recently repaired from the Toshiba official represent in my hometown of Portugal. The problem was overheating, as usual. They understood the problem, it was dust and the radiator was malfuncion. They have changed the radi
-
5742e: lost 2 sides scan option for HP5742e after the software update
HP Support Assistant told me to update the drivers and software for my 5742 all-in-in-one. After I did that the scan dialog changed (from 2014 2015 version) and I can scan is more 2-sided, the dialog box allows only the selection 1-side. It's less co
-
Pagefile on a separate partition?
Is there an advantage to put the swap file in a partition separated on a single computer hard drive?
-
Hotmail blocked, account
My hotmail account * address email is removed from the privacy * has been blocked for more than a week I made the account validation and tried to reset my password more than 7 times, they gave me the PIN numbers, and I've tried and tried without resp