I'm using the syntax below for a Flash (CS3 and AS2) presentation so the client can play/stop and rewind/forward the movie with the keyboard.It works perfectly when I go "Control >>> Test Movie" but when I publish the movie as a Projector file nothing happens when I hit the relevant keys.Also, the same thing happens if I open the SWF outside of Flash from it's local folder.
import mx.utils.Delegate; var nCheckPoint:Number = 0; var aCheckPoints:Array = new Array();[code]..........
I am using the loader class to load an external swf and attach it to an empty movieclip, the final step follows: // function loadComplete(e:Event):void { mc_launch.addChild(gLoader); MovieClip(gLoader.content).gotoAndPlay("start");}
When navigating away from the movie clip, it's dumped as follows: MovieClip(gLoader.content).closeAllStreams();gLoader.unload();
The linked swf has two important frames in the beginning. The first frame is labeled "hold" and has the following: var gSC:SoundChannel = new SoundChannel(); var gSCBusy:Boolean = false;var gSlideIndex:Number = 0; var gAudioPosition:Number = 0; var gPlayList:Array = ["start","slide01","slide02"] var gAudioList:Array = ["intro.mp3","",""] var gRunMode:String = Capabilities.playerType;stop();
The fifth frame is labled "start" and the singing and dancing begins from there. The stop(); function in the first frame is used to prevent the loading swf from executing before its 100% downloaded (I had some early trouble where the music would start before the screen assets were in place). My problem: This works perfectly the first time the linked swf is downloaded and attached, however, if you navigate away and then back I get the error "gSlideIndex NAN" which indicates to me that the first frame in the linked swf is not executed on subsequent attachments, the playhead jumps straight to "start" and my globals are never declared. Why would a linked swf execute frame 1 the first time it's attached to mc_launch but not the second?
Is there a way to create an if statement that executes two different loops?
For example, If I was trying to make game with a button that when clicked creates random objects falling down and when the objects are destroyed, creates random objects floating up. I haven't seen anything online, but I'm wondering if anyone know. Is it possible or should I just create two different listeners?
I need an event handler that executes only once when the root movie has loaded. If I later on return to the first frame that holds the script it should not execute again.
something like "when_root_has_loaded = function(){ some code};
I am new to flash. I can't seem to decifer the script examples in the help files. After a lot of trial and error the following codes works great. It delays playback on the video for the proper amount of time. The only problem is when the playback loops (like it should) the codes executes again. I only want to execute the code the first time thru.
I'm so getting confused with this,So i'm making a card game, and i'm just on the beginning of it. I've already added the objects on the stage and stored them on an array.now i made a function that when it executes the .x and .y properties of these cards would change. this is what i did, but nothing seems to happen.the array MyCards contain movieclip objects not strings and also, the function executes when an instance in the movieclip is clicked
ActionScript Code: distCards(MyCards); function distCards(cards:Array):void { for (var i:int=0;i<cards.length ;i++) {
I have an on(press) command that refreshes advertisements on an HTML page that my .swf is embedded in. When a user clicks on buttons that have the script, the advertisements refresh. I have a page that features a Slideshow Pro slideshow. Because this is a component, I am unable to put this script on the buttons in the slideshow. I am hoping instead, to have the script automatically run every 10-20 seconds. I am using actionscript 2.0 in a Flash CS3 file. Here is the code on the button:
If I change the value of a variable that two different classes can see (in a custom global class, for instance), and then immediately dispatch an event that the other class is listening for, will tracing that variable in the listening class reflect the variable's new value? In other words, does code that executes in another class that's called from a dispatched event elsewhere still run procedurally, or is there some sort of asynchronous thing going on, where the class that dispatched continues on to the next line of code in its own class without regard for what may or may not happen in the other class?
I have a AS2 based projector compiled into EXE using mprojector. I need to add spellchecking to the textboxes, is there any spellchecker available for AS2??? I have only found valid solutions for AS3.
I need to run a script if a user "x" out of the flash projector. This script is a LoadVars() script that sends info to php it does not need to receive anything, just send._root.onUnload does not seem trigger or the LoadVars script does not have enough time to run. I am not sure. Does anyone know how to get code to run if the user "x" out of the program?
Code: //this script does not run //even if I select a specific movie to check for the unload, it doesn't run
I have a flash swf file that displays some training information that must go out to about ten thousand people in our organisation. Maybe only 70% of people have the flash player installed on their work PC's and IT have the systems locked down so tight this remaining 30% can not install flash player themselves. Flash is only rolled out with new PC's.
Made with Flash and MDM Zinc 2.0. Exe is making a fullscreen projector presentation CD have examples at hand.
On the left side of the page there are related topics. On the right side of the pressing topics, and link directly to the pdf file which is pressing on the issue comes with interface page pdf acrobat.
How to combine Flash and Acrobat PDF like this sample?
Note: This job has nothing to do with respect in FlashPaper was investigating it. Adobe does not import PDF Director'ı also tried.
Ever since I`ve changed to flash cs4, every windows projector publish I make takes a really long time to open and play an animation.I`ts just very slow. When I created stuff on flash cs3, I had no problems running published projects.
Can anyone help me here? It`s just that I searched for a lot of forum questions just like mine on other web sites and none could . Since your the developers os this product I would like to see what you`ve got to say about this.
I seem to be having a problem with the TransitionManager effects in Flash Projector flash.[code]Where mediaViewer (a movieclip on the timeline) is a TileList component that I extended and...when visible = true Will do a Zoom in transition. The problem is that while the above code works fine in a SWF file it doesn't in the EXE file. The component is not shown nor is there any transition taking place. If I remove the Transition effect it works as expected.
I would like to know if it is possible to view a PDF document WITHIN an offline Flash Projector.exe? Just like when you have the ability to access the Acrobat toolbar within a web browser.
I have 45 PDF booklets that I can already open from a Flash Projector into Acrobat Reader for printing, but I would prefer not to leave the Flash Projector at all.
I have a question that:Is it possible to execute external flash projector(.exe) file on clicking a button in my movieclip. I tried the following code but no work:
how to open pdf, swf file in flash 8 projector? i am using exec command which was used earlier in flash 8 but its only working for exe files after keeping the files in folder named fscommand....
I am creating a Flash projector to work on a CD for a client to distribute. There has to be a listing of their PDF's in the flash program, that when clicked, will open the actual PDF in a separate window. I found one comment in this site to use "GetURL", but found out it is ONLY for HTML. There was mention of setting up the FSCommand to open another application, such as a PDF file, but how? I have the files in the same directory and tried putting the file name in the "GetURL" (the PDF file), but just freezes when trying to open. Also, is there a way they can drag and drop the PDF files to the desktop, that has the listings of the PDF's and save to the hard drive?
I'm making a CD flash projector that exectues on the autorun script of a musician's CD..Anyways, I've gone around and figured out how to disable menus when the movie is running but still the user had full control to resize the window. Does anyone know of a ocmmand that will restrict the user access to window resizing?
Determine if Mac or PC within a flash projector? (for use with FSCommand) How do I determine if a computer is Mac or PC within a flash projector? I need this because I've got several FSCommands I need to use within a projector (such as launching an application or file) and need to have different commands for Mac and PC.
Is it possible to execute external flash projector(.exe) file on clicking a button in my movieclip. I tried the following code but no work:[code]exe and swf files are on the same location on hard disk.
I have a flash projector file (.exe) that I need to add Code Signing to it so it does not say 'Unknown Publisher' in Vista. I read that for CS3 there is no authenticode signing. Was this added in CS4? I just want to check before I go ahead and purchase a 3rd party app like Juggler. Any software to add authenticode signature to a CS4 flash projector file? Jugglor is pretty old (2007) and I would like to know if there are more recent apps to package and sign projector files.