ActionScript 2.0 :: Script Executes In Flash But Not As Projector?

Feb 28, 2010

I'm using the script 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.

Code:

import mx.utils.Delegate;
var nCheckPoint:Number = 0;
var aCheckPoints:Array = new Array();
aCheckPoints.push( { sScene:"Scene 1", nFrame:10 } );

[Code]....

View 10 Replies


Similar Posts:


Professional :: Script Executes In Flash But Not As Projector?

Feb 28, 2010

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]..........

View 1 Replies

Frame One Of Linked SWF Executes Sometimes

Jun 10, 2009

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?

View 9 Replies

ActionScript 3.0 :: Create An If Statement That Executes Two Different Loops?

Oct 5, 2011

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?

View 3 Replies

ActionScript 2.0 :: Event Handler That Executes On Load?

Feb 16, 2006

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};

View 1 Replies

ActionScript 2.0 :: Function Executes Premature With EaseX?

Jul 26, 2007

Code:
////////////
//proto.as//
////////////
MovieClip.prototype.easeX = function( to:Number , speed:Number , endF:Function ,

[Code]....

otherFunction() runs as soon as the mouse over happens and not after the ease finishes as I would like it to.

View 4 Replies

ActionScript 2.0 :: One Projector Control Another Projector Timeline?

Dec 8, 2009

Is it possible to have a flash Projector control the timeline of another flash Projector.

example: Projector1: has a button to start/play Projector1 and trigger to start/play frame 7 in Projector2 at the same time.

So both external projectors are in sync.

View 0 Replies

ActionScript 3.0 :: Delay Play Only Once - Code Executes Each Loop

May 5, 2010

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.

[Code]...

View 6 Replies

ActionScript 3.0 :: Function Executes When An Instance In The Movieclip Is Clicked?

Aug 16, 2010

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++) {

[Code]...

View 1 Replies

IDE :: Create A Timer That Executes The Following Piece Of Code After 10 Seconds?

May 3, 2010

How to i create a timer that executes the following peice of code after 10 seconds:

Code:
_visible = false;

View 3 Replies

ActionScript 2.0 :: Changing An On(press) Command - Automatically Executes Every 10 Seconds

Mar 20, 2008

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:

[Code]....

View 1 Replies

ActionScript 3.0 :: Executes In Another Class That's Called From A Dispatched Event Elsewhere Still Run Procedurally?

May 29, 2009

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?

View 2 Replies

Control Different Flash Projector On Same LAN?

May 25, 2010

Does anyone know how to control a projector on a pc, from another projector on another pc, in the same LAN?

View 1 Replies

Flash :: Projector For Creating Exe From It?

Sep 24, 2010

Which tool would you recommend for creating standalone .exe files (Windows) from Flash?

View 2 Replies

Flash - Spellchecker For 2 Projector?

Jan 10, 2012

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.

View 1 Replies

ActionScript 2.0 :: Closing A Flash Projector?

Jan 15, 2009

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

[code]....

View 3 Replies

Embedding A Flash Projector In A Webpage

Jul 1, 2009

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.

View 3 Replies

PDF In The Fullscreen Flash Projector (.exe) To Show

Aug 3, 2009

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.

View 2 Replies

Professional :: Flash Cs4 Windows Projector?

Jan 26, 2010

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.

View 3 Replies

Professional :: TransitionManager In FLASH Projector

Jan 30, 2010

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.

View 1 Replies

Professional :: View A PDF Within A Flash Projector?

Sep 4, 2010

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.

View 2 Replies

Possible To Execute External Flash Projector(.exe)?

Oct 7, 2010

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:

on(release){
fscommand("exec", "myprojector.exe")
}

[code].....

View 1 Replies

ActionScript 2.0 :: Linking To A Url Via A Flash Projector?

Nov 7, 2006

I have created a CD presentation that runs a Flash Projector file.

Within the file I have links that need to open particular pages of a live website.

How do I create those links to work within the projector? Get URL doesn't seem to work??

View 1 Replies

IDE :: How To Open Pdf File In Flash 8 Projector

Jun 7, 2007

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....

View 2 Replies

IDE :: How To Open PDF File Within Flash Projector

Mar 22, 2002

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?

View 5 Replies

ActionScript 2.0 :: FS Commands For A Flash 5 Projector?

May 31, 2002

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?

View 1 Replies

ActionScript 2.0 :: Determine If Mac Or PC Within A Flash Projector (for Use With FSCommand)?

Mar 11, 2009

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.

[Code]....

View 4 Replies

ActionScript 2.0 :: Flash Projector Wont Open PDF's On Mac From CD?

Oct 15, 2009

I have made a ton of cd's in the past that have a presentation and using the following kind of code:

Code:
on (release) {
getURL("YonderMediaBusPlan.pdf","blank");

[code]......

View 1 Replies

ActionScript 2.0 :: Possible To Execute External Flash Projector?

Oct 7, 2010

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.

View 1 Replies

CS4 Flash Projector File And AuthentiCode (Signature)

Aug 26, 2009

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.

View 8 Replies







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