ActionScript 3.0 :: URLLoader - Loading Question Pools For Captivate Quiz

Jan 18, 2010

I'm using URLLoader to load my external SWFs in as a ByteArray before use so I can preload them without the possibility of them playing prematurely. It's been working great so far, but I just ran into an issue. It's not loading question pools for Captivate quizzes. If I use Loader.load() for my quiz it works fine and the question pool loads. If I use URLLoader to get a ByteArray and then use Loader.loadBytes(), I get an error saying that it can't load the question pool. My code is below. If you comment out the urlLoader.load() line and use the loader.load() one instead, it'll work fine. Otherwise, I get an error.

Code:
var loader:Loader = new Loader();
var urlLoader:URLLoader = new URLLoader();
addChild(loader);
urlLoader.dataFormat = URLLoaderDataFormat.BINARY;
urlLoader.addEventListener(Event.COMPLETE, done1);
[Code] .....

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Loading Swf Created In Captivate 4?

Dec 24, 2010

I have created a .swf using Captivate 4. When I try to load the swf into a Flash project - (AS2) I get the following output:

Branching::script:;;
deepak branching : scripteval:[object Object];

I rewrote the Flash using components and the same thing happens. So, I'm thinking it has something to do with how Captivate makes the .swf.

View 9 Replies

ActionScript 2.0 :: Removing Correct Answers From Array In Of Random Quiz Questions In Xml Quiz?

Jul 21, 2010

Anyone know where to start thinking about logic for an XML quiz with multiple correct answers, that when the user gets the question right, that question is removed from the random array of questions so we never need to answer it again?

View 0 Replies

ActionScript 3.0 :: Creating Quiz Action At End (Loading Next SWF)

Mar 10, 2010

I am writing a module and I have a section in this flash file where a quiz comes up and if you don't click on the right answer it tells you to try again. If you click on the right answer it will load the next swf file. But I can't get this last part to work. The quiz is within an xml file.

var current:Number = 0;
var qbox:Sprite = new Sprite;
var quiz:XML; var xloader:URLLoader = new URLLoader();
qbox.x = 10; qbox.y = 125; this.addChild(qbox);
[Code] .....

View 4 Replies

Professional :: Loading External Quiz Into Video Player SWF

Oct 20, 2010

I'm having some resizing/full-screen difficulty with loading an external quiz swf into a video player swf. What's happening is that, when the quiz swf is first loaded into the video player, the size of the loaded swf has the correct dimensions and aspect ratio. That part is fine, but as soon as I try to fullscreen or resize the video player (using listeners with stage dimensions) the external quiz swf changes dimensions on me and looks vertically squished and smaller.

I've talked to other people about this issue, and they're telling me that this issue is occuring because the quiz swf contains elements outside of the stage. These hidden elements are supposedly giving the video player "incorrect" dimensions. Is this really the case? Is there any other solution other than fitting any hidden elements within the quiz swf within the stage? And if this is the only solution, then why on initial load does the quiz swf show up properly?

View 1 Replies

IDE :: Loading Sound With URLLoader?

Feb 21, 2010

I am loading a sound file with the URLLoader class passed to the URLRequest class, just as one would load any other external content type.

Code:
var loader:URLLoader=new URLLoader;
loader.load(new URLRequest("file.mp3"));

When the loading is complete I would like to pass the data to a Sound Object.

Code:
var mySound:Sound=e.currentTarget.data

The object returned on the complete event is of type flash.net::URLLoader.

Code:
e.currentTarget

How can I turn this URLLoader into a Sound Object?

View 5 Replies

ActionScript 3.0 :: Loading Variables Using URLLoader And URLRequest

Feb 18, 2010

I am building a simple swf that will load in variables from an asp page using a URLloader and URLRequest. The asp page loads in the current values from a SQL database but these values will change every second. My swf loops every 6 frames and loads the data. How much load this puts on the server? And when the server is busy might this cause a problem with the variables I am reading in?

Does AS3 run all actions on frame 1 before going to frame 2 etc? I don't know if this is the best way but my last variable in the ASP page is called Loaded and I test for it before moving on. My major concern is the load I am putting on the website but is this small? In firefox the status box constantly flickers transferring data from ... and waiting .. but in other browsers you can't see the activity.

View 2 Replies

ActionScript 3.0 :: Should Use Loader Calss Or URLLoader For Loading Data

Sep 14, 2009

in AS2, I used loadVars class to download data, but I am not sure if I should use loader calss or URLLoader for loading data in AS3.

View 1 Replies

ActionScript 3.0 :: Multiple Loading Via URLLoader Object (using Loop)

Mar 26, 2010

what is the problem of this code:

package{
import flash.display.*;
import flash.events.*;
import flash.net.*;

[Code].....

View 5 Replies

Actionscript 3 :: Loading A Text File In XML Format Through An URLLoader?

Feb 21, 2011

does anybody have a good explanation of the as operator? On one hand it seems to me, that it is often better to use as instead of instantiating a new object.But then there are situations, when this operator let's me down. For example when loading a text file in XML format through an URLLoader:

private function completeHandler(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
trace("completeHandler: " + loader.data);[code]...

Why do I have to use a constructor here? Why can't I say var x:XML = loader.data as XML; and save some memory?

View 1 Replies

Actionscript 3.0 :: URLLoader Not Loading Php In Firefox Or Opera, Ok W IE/Chrom?

Jul 14, 2011

I have reviewed my code several times and maybe I am missing something.Basically,I have a separate loader class that I want to communicate to a php file located in the same directory.That php file forms an xml markup within and returns the location of a background image from the database. As you can see from the code, I have event listeners for progress, loaded, and IOerror.This works fine in IE and Chrome. However in FF and Opera, my custom progress bar shows 100%, but the info bar shows "IO Error" (which is kind of a visible trace statement on the swf for informational purposes) and it does not go anywhere. Stuck.

This is the swf's location: [url]....
PHPGetBackground class:
Code: Select allpackage com.hexonite.loader {[code].........

View 1 Replies

ActionScript 3.0 :: Flash Wait Until URLLoader Finishes Loading?

Apr 13, 2011

I am trying to load the output of a php-file into some flash variables and then fill some textfields with those variables. But it seems like even though I have a completehandler it tries to fill the textfields before I get all the data.

Code:
function loadQuestion(){
var request:URLRequest = new URLRequest("the url to my php script");
request.method = URLRequestMethod.GET;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;

Is it wrong of me to have the completeHandler inside the loadQuestion function? And is it wrong of me to assume that because I put the data in the textfields in the completeHandler it should w8 until its finished loading?

View 6 Replies

Actionscript 3 :: Flash Player Breaks When Loading .csv File With URLLoader

Mar 25, 2011

I've made a little flash, with AS3, to view the data generated by some program I wrote... The data is in a .csv file and are loaded to the memory with a URLLoader object.

The flash loads well .csv files which can come to almost 50 MB in size... But when I try to load a file with 160 MB, the player just stop working... I run the last flash player version, outside of the browser...

I've heard that the Flash has limitations on the amount of memory it can store... But in another question, they say it has not.

What may be causing the crash? - I don't think it is the code, since it runs smooth for small files...

View 2 Replies

ActionScript 3.0 :: URLLoader() Not Loading Php File In Firefox Or Opera, Fine With IE And Chrome

Jul 14, 2011

I have run into a problem with the URLLoader that I havent encountered before. I have reviewed my code several times and maybe I am missing something.

Basically, I have a separate loader class that I want to communicate to a php file located in the same directory. That php file forms an xml markup within and returns the location of a background image from the database. As you can see from the code, I have event listeners for progress, loaded, and IOerror.

This works fine in IE and Chrome. However in FF and Opera, my custom progress bar shows 100%, but the info bar shows "IO Error" (which is kind of a visible trace statement on the swf for informational purposes) and it does not go anywhere.

This is the swf's location: [URL]

PHPGetBackground class:
package com.hexonite.loader {
import flash.display.Sprite;
import flash.events.Event;

[Code]....

View 4 Replies

ActionScript 3.0 :: Captivate TOC On Top Of SWF?

Jun 17, 2011

In a Captivate 5 file, I imported a Flash AS3 file. I added the Flash file to the first Captivate slide and set the swf properties to display for the entire project. Essentially the Flash file is a skin/interface for the Captivate file. Everything is working fine, but the TOC is on top of the skin.

The scenario worked fine with Cativate 4 and AS2. The Flash skin has a TOC button. When the button is clicked, the TOC opens beneath the skin.

How can I position the TOC in the display list?

View 0 Replies

ActionScript 3.0 :: Pass Captivate Variable?

Aug 18, 2010

I used the following code on a frame within an swf that was imported  to a CP4 slide. This worked fine in as2. I'm wondering how to write the  same code in as3.
 
_parent._parent._parent.rdcmndNextSlide = 1;

View 2 Replies

ActionScript 3.0 :: Referencing Objects In Captivate?

Jul 6, 2009

I need to be able to dynamically position a component generated in Captivate 4 via ActionScript that in child SWF that is imported into the Captivate project. The problem is that I don't know how to reference the objects in the parent movie. I can set a label on the object and reference the parent itself with:

MovieClip(this.parent)

but this doesn't seem to work:

MovieClip(this.parent).label.y

And I suspect that it is because some how Captivate subclasses the objects but I'm having trouble finding out how the hierarchy is structured.

View 2 Replies

ActionScript 2.0 :: Captivate Accessible In Flash

Jul 24, 2009

I've got Captivate movies dynamically loading into a Flash movie. The problem is, the tab index which works so well when the Captivate movies are in stand-alone mode falls apart when loading the Captivate movie into a Flash shell. I've tried tabEnabled=false and tabChildren=true for the movie clip that contains the Captivate movie, but with no results. Does anyone know how to get the focus manager to tab to objects in a Captviate movie when that movie is running in a Flash shell?

View 1 Replies

ActionScript 2.0 :: SWF Not Working When Imported Into Captivate 4?

Sep 30, 2009

i have produced a simple drag and drop slide for use in my captivate project, works fine standalone, but when i import into Captivate it doesnt work correctly, the drag and drop element works ok but it doesnt seem to be targeting the drop target i then use to then goto the next frame etc.

on (press) {
startDrag(this, true);
}
on (release) {

[Code]......

is there another way to reference "/want_box" that will work in Captivate?

View 1 Replies

ActionScript 1/2 :: Controlling Embedded Captivate SWFs

May 25, 2006

I have a SWF (SWF A) that I'm loading into a movieclip (Movieclip C)which is part of another SWF (SWF B). Basically, SWF B functions as a player, with play and pause controls. These controls control Movieclip C where the external SWF A is loaded into.Normally, I have had no problem with this and it always works. At run time, when you click the pause button on SWF B, a stop() command is issued to Movieclip C, which stops the play of
the external movieclip (SWF A) loaded into it.However, I did a screen capture with Captivate and published it as a SWF. I loaded this SWF (SWF A) into Movieclip C in SWF B at run time. However, clicking the controls on SWF I created has NO EFFECT on the SWF I created in Captivate. It just keeps playing.I guess all SWFs are NOT created equal. How can I make this work?

View 4 Replies

ActionScript 1/2 :: Control Captivate 5 Swf Files With As3 In Flash Cs5?

Jun 15, 2011

I have a custom build swf player, which has basic functions of play, pause, quit etc. It plays swf created with flash. I created a demo using captivate cs5, then exported it to flash. The captivate swf does not works with my swf player, it loads and starts playing but play and pause button does not work at all with it.[code]...

View 7 Replies

Professional :: Play Pause Widget Captivate?

Jun 16, 2011

I have read a lot of threads on this, and I am trying to create a widget that will allow the button to toggle between Play/Pause pictures and play and pause the captivate as necessary.Right now my script reads as below: The button will toggle bwteen play and pause pictures. But will not pick up the .rdcmndPause=1; .rdcmndResume=1.

this.Pause.visible = true;
this.play1.visible = false;
this.play1.addEventListener(MouseEvent.CLICK,hidePlay);

[code]......

View 2 Replies

ActionScript 3.0 :: Unable To UnloadAndStop Captivate 5 Swfs?

Jul 8, 2011

have a flash 'menu' swf that on the click of a button loads into a loader a flash 'controller' swf. This swf in turn loads into a loader a 'captivate 5' swf. All published to fp10.exit the captivate movie the user can click on the menu button (which resides on an area of the 'menu' swf below it), and I have coded to UnloadAndStop and StopAllSounds of the 'controller' swf loader.his works, everything goes, the loader 'unloads' and it does stop the  sound of the current captivate slide, but then audio from the captivate movie will fire up again from the next slide and continue to play over the menu

View 24 Replies

Flash :: Captivate 5: Call A Nested Swf Inside A Swf?

Jun 30, 2011

i'm using captivate 5 to create an elearning project, due to captivates limited animation abilities i created a menu bar in flash and imported it into captivate as an swf. The menu bar has a glossary listing that whne clicked calls upon another swf which is a glossary.

The problem is that the glossary swf doesnt pop up when the glossary listing is clicked inside of captivate. The menu bar works perfectly outside of captivate. the glossary is already made in AS3. So my question is can you call a nested swf within captivate?

View 1 Replies

ActionScript 3.0 :: Possible To Fetch Captivate 4 Score Into Flash?

Jan 5, 2010

I wonder whether anyone knows of a solution to this: I want to embed a Captivate 4 quiz in a flash CS4 file and retrieve the score from the Captivate SWF so that I can use it in my flash file (AS3)- does anyone know a way of doing this (?eg. shared objects?). Communication between Flash and CP seems to be a lot more problematic than I anticipated.

View 0 Replies

ActionScript 2.0 :: Captivate 4 Widget To Mute Sounds?

Jun 24, 2010

We do not use the playbar for our projects.. we use independent buttons.I struggled making a widget /button for Captivate 4 that would Mute/Unmute all sounds... In case you are struggling too... here is the code that worked for me:(you will need to know how to make a widget)

var soundOn:Boolean = true;
var globalSound = new Sound(_level0);
muteOffOn_btn.onRelease = function(){[code]....

View 0 Replies

ActionScript 3.0 :: Passing Variable Value From Captivate 5 To Flash CS5

Jan 9, 2012

I don't get it Why is it so difficult to pass a variable from Captivate 5 to AS3/Flash CS5. I have a variable (gpDone = 1) in Captivate 5 (it's a guided practice) on the last frame which will indicate that the learner has completed the guided practice file. Now I want to pass that variable back to Flash/AS3 so I can evaluate whether I should show the Continue button so they can continue. They have to complete the guided practice before they can continue. If it is equal to 1, the Continue button will display. If it is not equal to 1, the Continue button will not display, but a message will display telling them they have to complete the guided practice in order to continue in the course.

View 0 Replies

ActionScript 3.0 :: Flash - Captivate Swf To Close When Its Done Playing?

Mar 9, 2011

I've developed a menu in AS3 with about 10 buttons. Each buttong will load an swf or a swf created in Captivate. I want the swf to load ontop of the menu, then close when it's done playing. I can get this to work fine with swfs created in Flash, but not captivate 5. The captivate file will open and play, but it won't close.I tried adding the script at the bottom to an swf and importing that into the last slide of captivate with no luck.This doesn't seem like it should be so tricky.Here is some of the AS3. I didn't bring the code in for all the buttons.

var swfLoader:Loader = new Loader;
introduction_to_gcssj_btn.addEventListener(MouseEv ent.CLICK, introductionClicked);
portal_features_btn.addEventListener(MouseEvent.CL ICK, portalFeaturesClicked);

[code].....

View 1 Replies

ActionScript 3.0 :: Pausing A Captivate Movie That Has Been Imported Into Flash?

Jan 10, 2010

Basically I need to pause a Captivate movie (CP3) that is playing within a flash movie (CS4, AS3).
 
I have made a full motion recording with Captivate which I have imported into a flash movie. The flash movie is organised as a series of movieclips that play from the main timeline. My CP demo forms part of one of these movieclips (there are flash objects playing "on top" of it in different layers). I have a play/pause button on the main timeline that works to pause all of my movieclips EXCEPT for my captivate demo. This continues playing, while the movie clip is forms part of pauses, throwing everything out of sync.
 
how I can pause CP portion? My actionscript skills are minimal and I'm not even sure what object(s) to target.

View 2 Replies

ActionScript 3.0 :: SoundMixer.stopAll Not Working With Captivate Content?

Aug 10, 2010

am building eLearning courses using a Flash-based AS 3.0 course playerI use SoundMixer.stopAll to stop sounds when progressing through the course, pressing buttons etc also call SWFs made in Captivate into my courses. These SWFs have audio in them. But when I progress through these slides (by clicking a next button), the sound from the captivate made slides overlaps (keeps playing). SoundMixer.stopAll does not seem to work for captivate SWFs

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved