Create Flash in Batches

I'm running Flashpaper2 in a Windows XP environment, I would
like to flash documents in batch process. I have 40 - 50 PDF files
I'd like to convert to swf these files can keep the same filenames
as the PDF files with a new SWF extention.
I also frequently flash word documents one at a time. With
these, the file names will be different than the Word documents. In
either case the batch process would be nice.

My company makes software to batch convert PDF files to other
file formats, such as XML-standard SVG, Windows Metafiles etc. We
have SWF output under development, but completing it is currently
not making it to the top of our priority list. Would this be an
interesting solution for you and others? It would become available
as a command line driven batch executable and as a DLL/API.
Jeroen Dekker
[email protected]

Similar Messages

  • Error when create a Payment Batch

    When I create a payment batch, I fill batch name as LIPPO_X123. then I entry bank account name "LIPPO Branch JKT1". But when I want to choose "Document" by clicking the list combo appear message "FRM40502:Oracle error : unable to read list of value"
    When I click "Details..." this message appears :
    FRM-40502: ORACLE error: unable to read list of values.
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "APPS.AP_AUTO_PAYMENT_PKG", line 679
    "

    Check Note: 234846.1 - APXPAWKB Errors With ORA-01422 ORA-06512 FRM-40502 When Creating A New Batch After Navigating To The Document Field
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=234846.1

  • How to create check in batch automatically after automatic payment program

    Hello
    SAP Experts i am getting a  issue
    how to create check in batch automatically after automatic payment program ( t code is f110)
    Thanks & Regards
    Narendra.G

    Hi Narendra,
    Please note the process below for cheque Printing:-
    1. The pre requisite for Cheque printing is you have used program RFFOUS_c/or the Z version of this program in FBZP and that you have maintained the form name in the field Form name for Payment medium in FBZP.
    2. You have a pre printed stationary on which you want to print and the Program & the form has been modified to print as per this.
    3. In F110, you must have assigned the Variant name, which would specify the cheque lot no. and this should exactly match with the current cheque no. in the pre printed stationary.
    4. Now, after all this setting, when you run Payment run in F110, then also only the Payment documents are posted but the cheque no.s are not updated in the Payment document no. nor the PAYR table is updated. It is only when you run the Print out tab, that a spool is created in SP01 for cheque printing as per the Payment documents.
    5. Then in SP01, you can print the spool on your pre printed stationary.
    This is the complete process of printing cheques from F110. Hope this helps..
    Regards,
    SAPFICO

  • Any tutorials on how to use the daily build of the Flex SDK to create Flash Player 10 content?

    Is there a tutorial on Adobe on how to use the daily build of
    the Flex SDK to create Flash Player 10 content?

    The approach you take might depend on a few things, but it boils down to using mouse interactive coding to trigger whatever effect you eventually realize.  The code you use will depend on the version of Actionscript you plan to use.
    You could make this as a movieclip that is normally stopped at its first frame and when you mouseover or click the movieclip, it animates along its own timeline to its enlarged state.  If the thumbnail is very small and the larger version is substantially larger, and both need to be clear images, this might be the better approach.
    If this only involves enlarging something, you could also probably realize it just using Actionscript Tween coding rather than timeline animation.

  • Creating flash cs3 component

    Hi,
    There is great and easy way to create flash based component
    in flash cs3 using action script 3.0.
    I am going to make a simple My button component which will
    behave likely same as flash native button component.
    You can modify this according your requirement this is just
    you give an idea about how we can go for creating a component in
    flash cs3.
    Follow these steps…
    1. Create a fla file and save this file with any name
    2. Create a movieClip and draw a rectangle shape on first
    frame.
    3. Right click on movieclip in library, select linkage
    4. Provide class name in text field area [MyButton] (you can
    use any name here which should matched with your class)
    5. Click Ok button
    6. Write class [MyButton]
    (you can copy and use this)
    * author @ sanjeev rajput
    * [email protected]
    * A flash action script 3.0 based component without extending
    UIComponent class
    package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.motion.Color;
    public class MyButton extends Sprite{
    private var _tf:TextField;
    private var _Label:String="My Button";
    private var _bgColor:uint=0xCCCCCC;
    private var _rollOverColor:uint=0xFFCCCC;
    private var _borderColor:uint=0x000000;
    private var _borderThickness:int=1;
    private var _width:Number = 100;
    private var _height:Number =100;
    private var _background:Sprite;
    public function MyButton() {
    init();
    createChildren();
    initEventListeners();
    draw();
    //-------------property section [Start]
    [Inspectable]
    public function set Label(lbl:String){
    _Label=lbl;
    draw();
    public function get Label(){
    return _Label
    [Inspectable]
    public function set bgColor(color:uint):void{
    _bgColor=color;
    draw();
    [Inspectable]
    public function set borderColor(color:uint):void{
    _borderColor=color;
    draw();
    [Inspectable]
    public function set borderThickness(thickness:int):void{
    _borderThickness=thickness;
    [Inspectable]
    public function set rollOverColor(color:uint):void{
    _rollOverColor=color;
    //-------------property section [End]
    private function init():void {
    trace('welcome');
    _width = width;
    _height = height;
    scaleX = 1;
    scaleY = 1;
    removeChildAt(0);
    private function initEventListeners():void{
    addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
    addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
    private function eventHandler(event:Event):void{
    if(event.type == MouseEvent.MOUSE_OVER){
    toggleColor(_rollOverColor);
    if(event.type == MouseEvent.MOUSE_OUT){
    toggleColor(_bgColor)
    private function createChildren():void {
    _background = new Sprite();
    _tf = new TextField();
    _tf.autoSize = "center";
    _tf.selectable=false;
    addChild(_background);
    addChild(_tf);
    protected function draw():void {
    toggleColor(_bgColor);
    _tf.text = _Label;
    _tf.x = Math.floor((_width - _tf.width)/2);
    _tf.y = Math.floor((_height - _tf.height)/2);
    //width = _tf.width;
    private function toggleColor(color:uint):void{
    _background.graphics.clear();
    _background.graphics.beginFill(color, 1);
    _background.graphics.lineStyle(_borderThickness,
    _borderColor, 1);
    _background.graphics.drawRoundRect(0, 0, _width, _height,
    10, 10);
    _background.graphics.endFill();
    public function setSize(w:Number, h:Number):void {
    _width = w;
    _height = h;
    draw();
    7. Now right click again on your movieclip in library and
    select component definition.
    8. In class name text field provide same class name
    [MyButton]
    9. Click on ok button
    10. Right click again on movieClip in library and select
    Export SWC file.
    11. Same your exported SWC file in (For window only)
    [c:\Documents and Settings\$user\Local Settings\Application
    Data\Adobe\Flash CS3\en\Configuration\Commands\
    12. Now just open another new flash file open component
    panel/window reload component you will your component in component
    panel with MyButton name.
    13. Drag your custom component on stage provide inputs form
    property window and text it.
    Enjoy!

    Lt.CYX[UGA] wrote:
    > if anyone is using Flash CS3, try creating a flash
    movie, using the FLVPlayer
    > component to play an flv video and make it an executable
    projector. Run it
    > fullscreen and watch how the screen just stays black
    when the video should
    > appear. If you stay windowed, it works fine.
    >
    >
    steps to reproduce:
    > 1. create flash movie
    > 2. put an FLVPlayer component on a frame that's not the
    first (for testing
    > purposes)
    > 3. before the projector reaches the frame with the
    FLVPlayer component, change
    > it to fullscreen (by script or CTRL+F)
    >
    >
    observed behaviour:
    > not only the video doesn't play, but the whole screen is
    black until the
    > player goes back to windowed mode
    >
    >
    expected behaviour:
    > video should play
    >
    >
    remarks:
    > if you skip step 3, video plays correctly
    >
    Works just fine.
    Made new movie, on frame 2 places Full screen action, on
    frame 5 placed video component
    and stop(); action attached to frame. Projector pops large
    following by video playing
    just fine.
    I tried variety, first frame, many frames, all on one. Not
    able to reproduce your problem.
    Works on first go.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Creating a simple batch job to run every month and perform a deletion

    dear all;
    This is just for learning purposes
    I have created a simple table below
    create table t1
      vid varchar2(30),
      quantity number(6,2),
      primary key (vid)
    insert into t1
        (vid, quantity)
    values
        ('G1', 2);
    insert into t1
        (vid, quantity)
    values
        ('G2', 3);
    insert into t1
        (vid, quantity)
    values
        ('G3', 0);Now, I would like to create a simple batch job, that runs every month which is used to delete all vid that has a quantity of 0...How do i go about doing that. I have searched the web but can't seems to find any useful info so far..
    Edited by: user13328581 on Sep 8, 2010 8:32 AM

    you are missing a semi-colon in your package procedure call inside your begin ... end.
    begin
      dbms_scheduler.create_job
        job_name => 'jobdeletezeroquantity'
        , program_name => 'PLSQL_BLOCK'
        , job_action => 'BEGIN mfg.testpkg.deletezeroquantity END;'             <-- missing semi-colon on mfg.testpkg.deletezeroquantity
        , start_date => systimestamp
        , repeat_interval => 'freq=monthly; byday = 1'
        , end_date => null
        , enabled => True
        , comments => 'used to run a delete procedure every month'
    end;should be:
    begin
      dbms_scheduler.create_job
        job_name => 'jobdeletezeroquantity'
        , program_name => 'PLSQL_BLOCK'
        , job_action => 'BEGIN mfg.testpkg.deletezeroquantity; END;'
        , start_date => systimestamp
        , repeat_interval => 'freq=monthly; byday = 1'
        , end_date => null
        , enabled => TRUE
        , comments => 'used to run a delete procedure every month'
    end;

  • How to understand Note1305698 creating new material batch masters data

    Hi, Expert:
    In note 1305698 have below description:
    When creating new material masters for materials subject to batch management and using
    classified batches, it is not possible to create the first batch record in the EWM system. This
    means that, for a material, the first batch is always created in the EWM system and must be
    transferred to the EWM system because this creates the connection between material and class.
    I confused by this statement.
    The first batch record should be created in which system, ERP or EWM?
    The first batch is always created in which system, ERP or EWM?
    BR.

    Hi,
    sorry, that is a typo in the english translation of the note. The original german says: "Dies bedeutet, dass zu einem Material die erste Charge jeweils immer auf ERP-Seite angelegt und an das EWM-System übertragen werden muss, da hierdurch die Verbindung zwischen Material und Klasse angelegt wird."
    (now translated from me): This means that, for a material, the first batch is always created in the ERP system and must be transferred to the EWM system because this creates the connection between material and class.
    I will ask for a correction.
    Best regards
    Juergen

  • How to create po through batch run

    Hi,
    how to create po through batch run (through background job)
    Prashanth

    Hi Prashanth ,
    Run the below program as a background job.
    Make sure that inforecord exists for all and automatic PO are ticked in Vendor and Material Master.
    Program : RM06BB30
    Create a suitable variant.
    Job Creation : Tcode : SM36
    Regards
    Ramesh Ch

  • Create FI payment batch error

    we are using BCM, we run F110, run id HET , date: 25.03.2014. payment list and payment order is generated, cross payment run
    we then run fbpm1, input run id HET and run date  25.03.2014 under "payment run" tab, it says:
    Program SAPFPAYM_MERGE: No records selected
    Message no. F0073
    Diagnosis
    The system did not find any data to be processed in the payment dataset.
    Procedure
    Check the selection criteria with which you started the payment medium program SAPFPAYM_MERGE and compare it with the payment list.
    why no batch created? thanks

    Check Note: 234846.1 - APXPAWKB Errors With ORA-01422 ORA-06512 FRM-40502 When Creating A New Batch After Navigating To The Document Field
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=234846.1

  • Creating Flash Video

    Hello Everyone and thanks for your help in advance.  I am extremely new to Flash (using CS4) and want to create flash videos for display in web pages.  I have used a few of the wizards and have gotten some rough, very amateurish looking results, but at least they work.  I owuld now like to create a more professional looking product that has a nice looking player skin, a thumbnail preview that is typically included, and some sort of "Click to Play" button.  Would someone be able to point me to a tutorial of this or walk me through the basic steps?  Any help would be greatly appreciated.

    Here are a few links that might help you
    Creating skins:
    http://www.adobe.com/devnet/flash/articles/flv_tutorial_pt2.html
    http://www.adobe.com/devnet/flex/videotraining/ - check the skinning section
    Creating thumbnails:
    http://animation.about.com/od/flashanimationtutorials/ss/flashlesson24.htm - dont miss out on the page numbers. Take the complete tutorial
    Hope it helps

  • Flash CS3 says"Error creating Flash movie...not enough memory available."have 100GB of virtual mem

    With large .fla files I often can't get Flash to output .swf files.  Usually I get the message "Error creating Flash movie.  There was not enough memory available."  Sometimes though Flash looks as if it has finished publishing (although slightly too quickly to have really done it), and then there has not been a .swf file created.
                Sometimes it's simply a matter of restarting Flash and trying again a few times until Flash decides to cooperate.  But now I have a file that just seems like it will never output.   My computer has 3 GB of RAM and 100 GB of virtual memory.  The .fla file is 152 MG and the .swf would probably be about 20-25 MB.
    If there is a workaround in CS3, that would be great.  If not, I would upgrade to CS5, if I knew that it would not have the same problem.
    I was told by at least two people at Adobe support that the problem has gone away with CS5, but I downloaded the CS5 trial version, and it will not output a .swf of my project.  In this case it doesn't give the error message, but just fails silently.

    Has this memory limitation been fixed in CS4 or CS5?  I have to say, I'm geting really fed up with having to
    spend hours coaxing Flash to output .swfs.  Is there a reason that it can't use the
    3MB of Ram available to it?

  • Suggested method for creating flash video?

    I've searched through the forums and see that Apple seems to want to make things difficult for creating flash video for some reason. Regardless of why, does anyone have a suggestion for a simple solution to take a QuickTime movie file and convert/export it to flash video? I don't need a lot of bells and whistles, just the ability to end up with a flash file of my video. Thanks.

    Thanks, but I'm really trying to find something for use on my Mac. Or perhaps I'm trying to do something that isn't even necessary... What's the recommended method for creating good-quality video from my Mac to be used on the web? Flash stuff seems to have a great quality for smaller file sizes. Is there a comparable format I could use on my Mac to get similar results which most web users could open without installing some additional software to read it?

  • Create and approve batch record first. message: EBR015

    HI All,
                         when i am doing UD for Early inspection lot (04 inspection type) i getting the error message "create and approve batch record first. message: EBR015"
    PLEASE HELP ME,
    Regards,
    sbabu

    PLease refer:
    Short Text
    Create and approve batch record first
    Diagnosis
    You can only carry out the following functions for the batch you have selected when an approved batch record exists (see material master record, Work scheduling view):
    Making a usage decision for an inspection lot of origin Goods receipt from production
    Changing the batch status from Restricted to Unrestricted
    However, no batch record has been created for the batch you have selected. Therefore, the system does not carry out the function.
    Procedure
    Create and approve the batch record.
    For more information, see the SAP Library, section Basis Services / Communication Interfaces -> SAP ArchiveLink -> SAP ArchiveLink - Scenarios in Applications -> Storage Scenarios PP -> Optical Archiving of Batch Records (PP-PI).

  • EBP PO Created by WF-BATCH

    Hi,
      We are using SRM 5.5, ECC 6.0, ECS. The PO's created from SRM in ECC say that "EBP PO ##### Created by WF-BATCH", and probably for this reason, if I go in to create an invoice and search for the PO's I created I am unable to find them, whereas if I use Central Invoice entry, I can find them under created by (WF-BATCH).
    So I saw these two OSS notes 988490 & 990767, and applied them but still my PO's are posted under WF-BATCH's name. Can someone tell me how to pass the requester's name in the PO to ECC?
    Thanks in adavnce.
    Sreedhar

    Hi
    Please refer to following SAP OSS notes.
    Note 1023449 - Shop on behalf: PO creator set as requestor of shopping cart
    Note 690147 - SRM-EBP-PD: Background user as creator of local order
    Note 921531 - Background step in SRM workflow not executed under WF-BATCH
    Incase these does not help, we can use any of the following BADIs to change theCreator name.
    BBP_CREATE_BE_PO_NEW                                          Exit while creating a purchase order in the backend system  
    BBP_CREATE_PO_BACK                                            OLD Exit while creating a PO in the backend system          
    BBP_ECS_PO_OUT_BADI                                           ECS: PO Transfer to Logistics Backend                       
    BBP_EXTLOCALPO_BADI                                           Control Extended Classic Scenario                           
    BBP_GROUP_LOC_PO                                              Exit Grouping of Items for Local Purchase Orders           
    Regards
    - Atul

  • Help needed with creating Flash game

    Hello,
    I need to create Flash educational/quiz game for one of my clients. It would be based on concept like these ones for example:
    Example 1
    http://go.ucsusa.org/game/
    Example 2
    http://www.zdravlje.hr/igre/stop-aids/
    Note: when you open this link you will see two text boxs which you first must fill. On the left side text box "Upišite ime" means "Type your name" and right one "Upišite godinu svog rođenja" means "Year of birth"
    What is interesting about this type of games is that they are classic games (for example game Labirint where you have to find way out), but during play pop-up questions starts to appear to test end user knowledge abot certain topic (in example 2 topic is about AIDS/HIV). In case of my client, topic is about Eco environment.
    Here is where my trouble starts;) : I found many useful free tutorials how to create simple flash game (most interesting example I found is this one http://www.strille.net/tutorials/snake/index.php)  BUT I dont know how make that system of popup questions appear during game similar to Example 1 and Example 2?
    Any help is appreciated and thanks in advance for promt reply.
    Greetings,
    Adnan

    Update: I have just read all instructions in Snake tutorial which helped be better realize how Snake game works.
    a) This is what I plan to realize for my client:
    1. Snake game which end users will play and during play pop-up/quiz quesions will appear on topic Eco environment;
    2. For example when end user earns 50 points he must answer some of the random questions like "Q:How many ton of waste are produced by US livestock each year" with three answers A1: "1 milion" A2: "1 bilion" A3: "2 bilion" and after user scores 100 points then another question pops up and so on. This is all true if all answers are correct but in case he answer some question wrong than game can start from begining or another solution could be he looses -50 or -100 points.
    3. At the end, user which gains most points wins.
    b) This is what I have done till now:
    I have this file http://www.strille.net/tutorials/snake/snakeGameWithHighscore.zip which I partly understand how it works with my Flash knowladge.
    All functions and main game engine is in layer code:
    "// Snake Game by Strille, 2004, www.strille.net
    blockSize = 8;   // the block width/height in number of pixels
    gameHeight = 30; // the game height in number of blocks
    gameWidth  = 45; // the game width in number of blocks
    replaySpeed = 1;
    SNAKE_BLOCK = 1; // holds the number used to mark snake blocks in the map
    xVelocity = [-1, 0, 1, 0]; // x velocity when moving left, up, right, down
    yVelocity = [0, -1, 0, 1]; // y velocity when moving left, up, right, down
    keyListener = new Object(); // key listener
    keyListener.onKeyDown = function() {
        var keyCode = Key.getCode(); // get key code
        if (keyCode > 36 && keyCode < 41) { // arrow keys pressed (37 = left, 38 = up, 39 = right, 40 = down)...
            if (playRec) {
                if (keyCode == 37 && replaySpeed > 1) {
                    replaySpeed--;
                } else if (keyCode == 39 && replaySpeed < 10) {
                    replaySpeed++;
            } else if (game.onEnterFrame != undefined) { // only allow moves if the game is running, and is not paused
                if (keyCode-37 != turnQueue[0]) { // ...and it's different from the last key pressed
                    turnQueue.unshift(keyCode-37); // save the key (or rather direction) in the turnQueue
        } else if (keyCode == 32) { // start the game if it's not started (32 = SPACE)
            if (!gameRunning || playRec) {
                startGame(false);
        } else if (keyCode == 80) { // pause/unpause (80 = 'P')
            if (gameRunning && !playRec) {
                if (game.onEnterFrame) { // pause
                    delete game.onEnterFrame; // remove main loop
                    textMC.gotoAndStop("paused");
                } else { // exit pause mode
                    game.onEnterFrame = main; // start main loop
                    textMC.gotoAndStop("hide");
    Key.addListener(keyListener);
    function startGame(pRec) {
        x = int(gameWidth/2); // x start position in the middle
        y = gameHeight-2;     // y start position near the bottom
        map = new Array(); // create an array to store food and snake
        for (var n=0;n<gameWidth;n++) { // make map a 2 dimensional array
            map[n] = new Array();
        turnQueue = new Array(); // a queue to store key presses (so that x number of key presses during one frame are spread over x number of frames)
        game.createEmptyMovieClip("food", 1); // create MC to store the food
        game.createEmptyMovieClip("s", 2); // create MC to store the snake
        scoreTextField.text = "Score: 0"; // type out score info
        foodCounter = 0; // keeps track of the number of food movie clips
        snakeBlockCounter = 0; // keeps track of the snake blocks, increased on every frame
        currentDirection = 1; // holds the direction of movement (0 = left, 1 = up, 2 = right, 3 = down)
        snakeEraseCounter = -1; // increased on every frame, erases the snake tail (setting this to -3 will result in a 3 block long snake at the beginning)
        score = 0; // keeps track of the score
        ticks = lastRec = 0;
        recPos = recFoodPos = 0;
        playRec = pRec;
        if (!playRec) {
            textMC.gotoAndStop("hide"); // make sure no text is visible (like "game over ")
            highscores.enterHighscoreMC._visible = false;
            statusTextField.text = "";
            recTurn = "";
            recFrame = "";
            recFood = "";
            game.onEnterFrame = main; // start the main loop
        } else {
            if (loadedRecordingNumber != -1) {
                var n = getLoadedRecordingNumberHighscorePos(loadedRecordingNumber);
                statusTextField.text = "Viewing " + highscores[n].name.text + "'s game (score " + highscores[n].score.text + ")";
            } else {
                statusTextField.text = "Viewing your game";
            game.onEnterFrame = replayMain; // start the main loop
        placeFood("new"); // place a new food block
        gameRunning = true; // flag telling if the game is running. If true it does not necessarily mean that main is called (the game could be paused)
    function main() { // called on every frame if the game is running and it's not paused
        if (playRec) {
            if (ticks == lastRec+parseInt(recFrame.charAt(recPos*2)+recFrame.charAt(recPos*2+1), 36)) {
                currentDirection = parseInt(recTurn.charAt(recPos));
                lastRec = ticks;
                recPos++;
        } else if (turnQueue.length) { // if we have a turn to perform...
            var dir = turnQueue.pop(); // ...pick the next turn in the queue...
            if (dir % 2 != currentDirection % 2) { // not a 180 degree turn (annoying to be able to turn into the snake with one key press)
                currentDirection = dir; // change current direction to the new value
                recTurn += dir;
                var fn = ticks-lastRec;
                if (fn < 36) {
                    recFrame += " "+new Number(fn).toString(36);
                } else {
                    recFrame += new Number(fn).toString(36);
                lastRec = ticks;
        x += xVelocity[currentDirection]; // move the snake position in x
        y += yVelocity[currentDirection]; // move the snake position in y
        if (map[x][y] != SNAKE_BLOCK && x > -1 && x < gameWidth && y > -1 && y < gameHeight) { // make sure we are not hitting the snake or leaving the game area
            game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x: x*blockSize, _y: y*blockSize}); // attach a snake block movie clip
            snakeBlockCounter++; // increase the snake counter
            if (map[x][y]) { // if it's a not a vacant block then there is a food block on the position
                score += 10; // add points to score
                scoreTextField.text = "Score: " + score; // type out score info
                snakeEraseCounter -= 5; // make the snake not remove the tail for five loops
                placeFood(map[x][y]); // place the food movie clip which is referenced in the map map[x][y]
            map[x][y] = SNAKE_BLOCK; // set current position to occupied
            var tailMC = game.s[snakeEraseCounter]; // get "last" MC according to snakeEraseCounter (may not exist)
            if (tailMC) { // if the snake block exists
                delete map[tailMC._x/blockSize][tailMC._y/blockSize]; // delete the value in the array m
                tailMC.removeMovieClip(); // delete the MC
            snakeEraseCounter++; // increase erase snake counter   
        } else { // GAME OVER if it is on a snake block or outside of the map
            if (playRec) {
                startGame(true);
            } else {
                gameOver();
            return;
        ticks++;
    function replayMain() {
        for (var n=0;n<replaySpeed;n++) {
            main();
    function gameOver() {
        textMC.gotoAndStop("gameOver"); // show "game over" text
        delete game.onEnterFrame; // quit looping main function
        gameRunning = false; // the game is no longer running
        enterHighscore();
    function placeFood(foodMC) {
        if (playRec) {
            var xFood = parseInt(recFood.charAt(recFoodPos*3)+recFood.charAt(recFoodPos*3+1), 36);
            var yFood = parseInt(recFood.charAt(recFoodPos*3+2), 36);
            recFoodPos++;
        } else {
            do {
                var xFood = random(gameWidth);
                var yFood = random(gameHeight);
            } while (map[xFood][yFood]); // keep picking a spot until it's a vacant spot (we don't want to place the food on a position occupied by the snake)
            if (xFood < 36) {
                recFood += " "+new Number(xFood).toString(36);
            } else {
                recFood += new Number(xFood).toString(36);
            recFood += new Number(yFood).toString(36);
        if (foodMC == "new") { // create a new food movie clip
            foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
            foodCounter++;
        foodMC._x = xFood*blockSize; // place the food
        foodMC._y = yFood*blockSize; // place the food
        map[xFood][yFood] = foodMC; // save a reference to this food movie clip in the map
    //- Highscore functions
    loadHighscores();
    enterHighscoreKeyListener = new Object();
    enterHighscoreKeyListener.onKeyDown = function() {
        if (Key.getCode() == Key.ENTER) {
            playerName = highscores.enterHighscoreMC.nameTextField.text;
            if (playerName == undefined || playerName == "") {
                playerName = "no name";
            saveHighscore();
            Key.removeListener(enterHighscoreKeyListener);
            Key.addListener(keyListener);
            highscores.enterHighscoreMC._visible = false;
            loadedRecordingNumber = -1;
            startGame(true);
    function enterHighscore() {
        if (score >= lowestHighscore) {
            highscores.enterHighscoreMC._visible = true;
            highscores.enterHighscoreMC.focus();
            Key.removeListener(keyListener);
            Key.addListener(enterHighscoreKeyListener);
        } else {
            loadedRecordingNumber = -1;
            startGame(true);
    function getLoadedRecordingNumberHighscorePos(num) {
        for (var n=0;n<10;n++) {
            if (num == highscores[n].recFile) {
                return n;
    function loadHighscores() {
        vars = new LoadVars();
        vars.onLoad = function(success) {
            for (var n=0;n<10;n++) {
                var mc = highscores.attachMovie("highscoreLine", n, n);
                mc._x = 5;
                mc._y = 5+n*12;
                mc.place.text = (n+1) + ".";
                mc.name.text = this["name"+n];
                mc.score.text = this["score"+n];
                mc.recFile = parseInt(this["recFile"+n]);
            lowestHighscore = parseInt(this.score9);
            if (!gameRunning) {
                loadRecording(random(10));
            delete this;
        if (this._url.indexOf("http") != -1) {
            vars.load("highscores.txt?" + new Date().getTime());
        } else {
            vars.load("highscores.txt");
    function loadRecording(num) {
        vars = new LoadVars();
        vars.onLoad = function(success) {
            if (success && this.recTurn.length) {
                recTurn = this.recTurn;
                recFrame = this.recFrame;
                recFood = this.recFood;
                startGame(true);
            } else {
                loadRecording((num+1)%10);
                return;
            delete this;
        loadedRecordingNumber = num;
        if (this._url.indexOf("http") != -1) {
            vars.load("rec"+loadedRecordingNumber+".txt?" + new Date().getTime());
        } else {
            vars.load("rec"+loadedRecordingNumber+".txt");
    function saveHighscore() {
        sendVars = new LoadVars();
        for (var n in _root) {
            if (_root[n] != sendVars) {
                sendVars[n] = _root[n];
        returnVars = new LoadVars();
        returnVars.onLoad = function() {
            if (this.status == "ok") {
                loadHighscoresInterval = setInterval(function() {
                    loadHighscores();
                    clearInterval(loadHighscoresInterval);
                }, 1000);
            delete sendVars;
            delete this;
        sendVars.sendAndLoad("enterHighscore.php", returnVars, "POST");
    function startClicked() {
        if (!gameRunning || playRec) {
            if (highscores.enterHighscoreMC._visible) {
                Key.removeListener(enterHighscoreKeyListener);
                Key.addListener(keyListener);
                highscores.enterHighscoreMC._visible = false;
            startGame(false);
    function viewGame(lineMC) {
        loadRecording(lineMC.recFile);
        statusTextField.text = "Loading " + lineMC.name.text + "'s game...";
    Now what is left to do is somehow to iclude educational quiz in this game/code. First idea that came to me is same thing Ned suggested: to create some unique movie clip which would contain all data/questions lined up but main problem for me is how to "trigger" that movie clip to play only AFTER end user clicks on "Start game" or SPACE to restart? Not sure how to solve this issue?

Maybe you are looking for

  • [Solved]How can I create a bootable backup of my arch linux partition?

    I'm trying to get my arch linux installation to have a gui, specifically KDE. I downloaded Xorg and the nvidia proprietary driver 340.24. After installing the nvidia driver and rebooting, my screen stays black and I can't see my console. I can still

  • What is the different between payment methods Wire and EFT

    Hi All can anybody tell me What is the different between payment methods Wire and EFT ? Regards ;

  • Hot Macbook Pro

    I have a 7 month old Macbook Pro 2.66 GHZ 4 Mg RAM 360 GB HD. I have SMC fan control and Istat widget that shows the same CPU temp and until about 3 weeks ago it ran at about 115-120F until one day it went to 180F. I took it to an authorized Apple re

  • Getting error when copy the SWRB Transaction.

    Hi experts, This is very urgent requirement. There is a one transaction in CRM  5.0 that is SWRB(Web Request w/o Item) in service process. This transaction doesn't have any item details,but when I copy that transaction it is showing item details also

  • How to sync Firefox bookmarks?

    When I sync my iPhone for syncing bookmarks the drop down menu only shows Internet Explorer. Nothing about Firefox. Is there anyway to sync my bookmarks?