ScriptUI Palette with button to perform the function

Hey Hey. Ho ho. I have a question for you guys. Hey Hey. Ho ho.

So I'm writing a script to automatically replace art existing in a file with the art of my network (specifically, necklaces. we work that says "made in usa" but we moved production overseas, then update the country of origin.) I have fixed all our model files, new orders are set up correctly, but we have tens of thousands of old orders with bad collars in the files. so far we have been manually accessing the network, opens a file that contains the correct collars and paste in the required file. A PITA serious, especially when you do 20 - 30 times per day.

So, naturally, I started to think about how to automate it. For most files, this process is really simple and straightforward because the files that we use has set up a system of good address. However, orders more alumni dating back to before the address system, so the script in some cases, to do a break in order to let the artist select USA collars so that the script can move to a new layer and hide.

To remedy this, I decided to use a scriptUI as an alert box pallet (if the artist still has access to the user interface, so they can select the necessary art, then click a button to perform a function and complete the task. The button in the palette works to perform the desired function, but then I get an error in ESTK that "there is no document. What I'm doing wrong here? Everything works until the promptToSelectCollars() function; The error occurs at line 291 trying to use docRef.layers.add (); I added the line 290 after the first time I got the error to see if docRef just need to be redefined, but that did not help.

I guess I can just force the artist to select any work necessary before running the script, but I like it to be as smooth as possible and requires a minimum of steps pre...

Here's the current code (must still be completed, I know)... Any thoughts?

//Add DR Collars


function container()
{


    /////////////////////
    ///Logic Container///
    /////////////////////


    function whatStyleDialog()
    {
        // var docRef = app.activeDocument;


        var sports = ["SLOW_SS", "SLOWW_SS", "SLOWY_SS", "FAST_SL", "FAST_RB", "FAST_FB_SL", "FAST_FB_SS", //
        "FAST_2B_SS", "BASE_FB_SL", "BASE_FB_Y_SL", "BASE_FB_SS","BASE_FB_Y_SS", "BASE_2B_SS", "BASE_2B_Y_SS"];


        


        var wS = new Window("dialog", "What Collars Do You Need?");


        var inputGroup = wS.add("group");
            inputGroup.orientation = "column";
            var sportsGroup = inputGroup.add("group");
                sportsGroup.add("statictext", undefined, "Choose Sport");


                //populate sports dropdown list
                var sportsList = sportsGroup.add("dropdownlist", undefined, sports);
                sportsList.selection = 0;


            var styleGroup = inputGroup.add("group");


                styleGroup.add("statictext", undefined, "Enter Style Number:");


                //input text box for style number
                var styleInput = styleGroup.add("edittext", undefined, "000");


        var buttonGroup = wS.add("group");
            var okButton = buttonGroup.add("button", undefined, "OK");
            var cancelButton = buttonGroup.add("button", undefined, "Cancel");




        if(wS.show() == 1)
        {
            var results = "";
            results = "FD_" + sportsList.selection.text + "_";
            results = results + styleInput.text + ".ait";
            return results;
        }
        else
        {
            return null;
        }
    }


    function getStyle(styles)
    {
        if(styles.length>1)
        {
            var result;
            var gS = new Window("dialog","Which Garment?");
                var titleText = gS.add("statictext", undefined, "Which Garment Do You Need Collars For?");
                var buttons = styles;
                var buttonGroup = gS.add("group");
                buttonGroup.orientation = "column";
                    for(var s=0;s<styles.length;s++)
                    {
                        addButton(s, styles[s]);
                    }


                function addButton(num, style)
                {
                    buttons[num] = buttonGroup.add("button", undefined, style);
                    buttons[num].onClick = function()
                    {
                        result = style + ".ait";
                        gS.close();
                    }
                }
            gS.show();
            // alert(result)
            return result;


        }
        else
        {
            result = styles[0] + ".ait";
            return result;
        }
    }
    function whatGarment()
    {
        var result;
        var jerseyList = [];


        for(a=0;a<layers.length;a++)
        {
            if(layers[a].name.indexOf("FD")>-1)
            {
                jerseyList.push(layers[a].name);
            }
        }


        //This prepress is not on a template
        if(jerseyList.length==0)
        {
            result = whatStyleDialog();
            return result;
        }


        else
        {
            result = getStyle(jerseyList);
        }


        return result;
    }


    function findCAD(path, garment)
    {
        var loc = new Folder(path);
        var theFile = new File(loc + "/" +  garment);
        return theFile;
    }


    function copyCollars(theCAD,coords)
    {
        var collars = [];
        var collarSource = open(theCAD);
        var sourceLayer = collarSource.layers[0].layers["Prepress"];
        var curLay;
        var curGroup;


        sourceLayer.visible = true;


        collarSource.selection = null;


        for (var a=0; a< sourceLayer.layers.length;a++)
        {
            curLay = sourceLayer.layers[a];
            for(var b=0;b<curLay.groupItems.length;b++)
            {
                curGroup = curLay.groupItems[b];
                if(curGroup.name.indexOf("Collar")>-1)
                {
                    curGroup.selected = true;
                }   
            }
            
        }


        app.executeMenuCommand("copy");
        docRef.activate();
        app.executeMenuCommand("paste");


        for(var a=0;a<docRef.selection.length;a++)
        {
            var curGroup = docRef.selection[a];
            var curName = curGroup.name.substring(0,curGroup.name.indexOf(" "));
            curGroup.left = coords[curName][0];
            curGroup.top = coords[curName][1];
        }


        


        // collarSource.close(SaveOptions.DONOTSAVECHANGES);
        
    }


    function addCollarsToCorrectLayer(garment,coords)
    {
        try
        {
            var theLayer = docRef.layers[garment.substring(0,garment.indexOf(".ait"))].layers["Prepress"];
            theLayer.visible = true;
            // alert("theLayer = " + theLayer);
            // alert(docRef.selection.length);
            for(var a=docRef.selection.length-1;a>-1;a--)
            {
                var thisCollar = docRef.selection[a];
                var targetLayer = theLayer.layers[thisCollar.name.substring(0, thisCollar.name.indexOf(" "))];
                thisCollar.moveToBeginning(targetLayer);
            }




        }
        catch(e)
        {
            try
            {
                if(docRef.selection[0].layer != "[Layer Artwork]")
                {
                    var theLayer = docRef.layers["Artwork"];
                    theLayer.locked = false;
                    theLayer.visible = true;
                    for(var a=docRef.selection.length-1;a>-1;a--)
                    {
                        docRef.selection[a].moveToBeginning(theLayer);
                    }
                }
            }
            catch(e)
            {
                alert("something went wrong")
            }
        }
        if(theLayer.name == "Prepress")
        {
            var drCollarLabel = docRef.layers[0].layers["Mockup"].textFrames.add()
        }
        else
        {
            var drCollarLabel = theLayer.textFrames.add();
        }
        drCollarLabel.contents = "DR Collars";
        drCollarLabel.left = coords["Label"][0];
        drCollarLabel.top = coords["Label"][1];
        drCollarLabel.textRange.characterAttributes.size = 36;
    }


    function promptToSelectCollars()
    {
        alert("running prompt to select");
        var selCol = new Window("palette");
            var text = selCol.add("statictext",undefined, "Select the USA Collars and click OK");
            var button = selCol.add("button", undefined, "OK");
            button.onClick = function()
            {
                selCol.close();
                moveCollarsToUSALayer(false);
            }
        selCol.show();
    }


    function moveCollarsToUSALayer(template,garmentLayer)
    {
        if(template)
        {
            var usaLayer = garmentLayer.layers.add();
            usaLayer.name = "USA Collars";
            var theLayer = garmentLayer.layers["Prepress"];


            for(var a=0;a<theLayer.layers.length;a++)
            {
                var curSize = theLayer.layers[a].name;
                var curLay = theLayer.layers[a];
                curLay.groupItems[curSize + " Collar"].moveToBeginning(usaLayer);
            }


            continueScript();
        }
        else
        {
            // docRef = app.activeDocument;
            var usaLayer = docRef.layers.add();
            usaLayer.name = "USA Collars";


            for(var a=0;a<docRef.selection.length;a++)
            {
                var curCollar = docRef.selection[a];
                curCollar.moveToBeginning(usaLayer);
            }
            continueScript();
        }
        




    }


    function continueScript()
    {
        var theCAD = findCAD(garmentInfo[garmentCode]["path"], garment);


        copyCollars(theCAD, garmentInfo[garmentCode]["coords"]);


        addCollarsToCorrectLayer(garment,garmentInfo[garmentCode]["coords"]);
    }


    /////////////////////
    ///Logic Container///
    /////////////////////


    var docRef = app.activeDocument;
    var layers = docRef.layers;
    


    var garmentInfo = 
    {
        "FD_SLOW_SS" : 
        {
            "path": "/Volumes/Customization/Library/cads/prepress/FD_SLOW_SS/ConvertedTemplates/FD_SLOW_SS",
            "coords" : 
            {
                "XS" : [-946.67,622.35],
                "S" : [-948.92,362.97],
                "M" : [-951.17,96.54],
                "L" : [-953.42,-177.48],
                "XL" : [-955.22,-458.71],
                "2XL" : [-957.92,-747.11],
                "3XL" : [-960.17,-1042.73],
                "4XL" : [-962.42,-1345.42],
                "5XL" : [-964.67,-1654.82],
                "Label" : [-949.1,708.39]
            }
        },      
        "FD_SLOWW_SS" : "/Volumes/Customization/Library/cads/prepress/FD_SLOW_SS/ConvertedTemplates/FD_SLOWW_SS",


        "FD_SLOWY_SS" : "/Volumes/Customization/Library/cads/prepress/FD_SLOW_SS/ConvertedTemplates/FD_SLOWY_SS",
        "FD_FAST_RB" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_RB/Converted_Templates/",
        "FD_FAST_SL" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_SL/Converted_Templates/",
        "FD_FAST_FB_SL" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_FB_SL/Converted_Templates/",
        "FD_FAST_FB_SS" : "/Volumes/Customization/Library/cads/prepress/FD_FAST_FB_SS/Converted_Templates/",
        "FD_FAST_2B_SS" : {
            "path": "/Volumes/Customization/Library/cads/prepress/FD_FAST_2B_W_SS/Converted_Templates/",
            "coords" : 
            {
                "XXS" : [-1011.89,455.31],
                "XS" : [-1015.33,206.79],
                "S" : [-1018.88,-60.25],
                "M" : [-1022.12,-323.7],
                "L" : [-1025.7,-595.67],
                "XL" : [-1028.83,-879.72],
                "2XL" : [-1032.38,-1168.08],
                "3XL" : [-1035.83,-1457.79],
                "Label" : [-949.1,708.39]
            }
        },
        "FD_BASE_FB_SL" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_SL/Converted_Templates/",
        "FD_BASE_FB_Y_SL" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_Y_SL/Converted_Templates/",
        "FD_BASE_FB_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_SS/Converted_Templates/",
        "FD_BASE_FB_Y_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_FB_Y_SS/Converted_Templates/",
        "FD_BASE_2B_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_2B_SS/Converted_Templates/",
        "FD_BASE_2B_Y_SS" : "/Volumes/Customization/Library/cads/prepress/FD_BASE_2B_Y_SS/Converted_Templates/",
    }


    var garment = whatGarment(); 


    var garmentCode = garment.substring(0, garment.indexOf("_0"));


    var styleNum = garment.substring(garment.indexOf("_0"), garment.length);


    try
    {
        docRef.layers[garment.substring(0,garment.indexOf(".ait"))].layers["Prepress"].visible = true;
        moveCollarsToUSALayer(true,docRef.layers[garment.substring(0,garment.indexOf(".ait"))]);


    }
    catch(e)
    {
        //no discernable layer structure
        alert("using catch");
        promptToSelectCollars();
    }


    


    


    


    // alert("Results:\n" + "Sport: " + garment[0] + "\nCut: " + garment[1] + "\nStyle Number: " + garment[2]);
    // alert("Results:\n" + garment);




    
}
container();

You do not have something wrong, sort of, pallets do not 'normally' work as do dialog windows, you must use BridgeTalk to bind your palette to Illustrator, do a quick search, a topical subject, there are many samples.

Tags: Illustrator

Similar Questions

  • How can I block my keyboard so when my cat button, the keys perform the functions? I have a lock on my computer so I need a password to sign, but I can't find any info on how to lock keyboard features in.

    How can I block my keyboard so when my cat button, the keys perform the functions? I have a lock on my computer so I need a password to sign, but I can't find any info on how to lock keyboard features in.

    A quick Google for "lock keyboard" raised a certain links that seem promising. Here's one of eHow that answers your questions to kitty:

    http://www.ehow.com/how_4925264_lock-keyboard.html MS - MVP - Elephant Boy computers - don't panic!

  • How to detect a user action in the graphic palette with a node of the event?

    Hello

    is it possible to detect a user action in XY-Graph "graphic palette" with a node of the event?

    Thank you very much and best regards,

    Michael

    Hi Michael,

    you only need a toolset for all 6 graphs? Make your own with a few buttons (custom) and you're fine...

  • ORA-28112: failed to perform the function of guidance - error in the Application Builder

    Hey all,.

    I added a political function to one of my paintings, and now I get this error when I try to update a report region that refers to this table.

    "The query cannot be parsed into the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. "ORA-28112: failed to perform the function of guidance."

    If I remove the policy then everything works fine. My application works well with the policy in place. I just get these errors in the application builder when refreshing a report or a LOV that references the secured table.

    The analysis schema is APPL_USER.

    Here's the political function:

    FUNCTION DOCUMENT_TABLE_POLICY (object_schema IN VARCHAR2 DEFAULT NULL
    object_name IN VARCHAR2 DEFAULT NULL)
    RETURN VARCHAR2 IS
    v_nt_seq NUMBER;
    BEGIN
    IF use = "APPL_USER" or INSTR(user, 'ITFC_') = 1 THEN
    RETURNS A NULL VALUE.
    END IF;

    IF V ('APP_USER') IS NOT NULL THEN
    IF V ('F_NT_SEQ') IS NOT NULL THEN
    v_nt_seq: = V ('F_NT_SEQ');
    ON THE OTHER
    SELECT NT_SEQ
    IN v_nt_seq
    OF APPL_USERS
    WHERE UPPER (NT_ID) = UPPER (V ('APP_USER'));
    END IF;

    RETURN ' (DOCUMENT_TYPE, MANAGED_BY_ELEMENT, PROGRAM_CODE, CONTRACT_NUMBER) IN (SELECT DISTINCT R.DOCUMENT_TYPE, USL. ELEMENT, USL. PROGRAM_CODE, USL. CONTRACT_NUMBER OF USL, R IPRACA_SECURITY_ROLES IPRACA_USERS_SECURITY_LINK WHERE R.SECURITY_ROLE_SEQ = USL. SECURITY_ROLE_SEQ AND USL. NT_SEQ = ' | To_char (v_nt_seq) | ')';
    END IF;

    -UNAUTHORIZED USERS CANNOT SEE ANY DATA
    RETURN '1 = 0';
    END;

    This is how to set up the policy:

    BEGIN

    DBMS_RLS. () ADD_POLICY
    object_schema = > 'APPL_USER '.
    , object_name = > 'APPL_DOCUMENT '.
    , policy_name = > 'APPL_DOCUMENT_POLICY '.
    , function_schema = > 'APPL_USER '.
    , policy_function = > ' APPL_SECURITY. DOCUMENT_TABLE_POLICY'
    );

    END;


    Any help would be greatly appreciated!

    Thank you

    Jonathan Hart
    APEX 3.1.1

    It is possible that this raises an exception:

    SELECT NT_SEQ
    IN v_nt_seq
    OF APPL_USERS
    WHERE UPPER (NT_ID) = UPPER (V ('APP_USER'));

    Is there a line in APPL_USERS where NT_ID = ?

    Scott

  • When I opened my account it gives that error message = this file does not have a program associated with it to perform the action, please install a program

    When I double click on any folder error message comes ==this file has not a program associated with it for performing the action, please install a program, or if alreadycreate an association program in default Panel.


    and when I right click it once options such as search, cmd, opening...



    Please help me I would be very grateful to you...

    Hi Siddharth,

    Were there any changes made on the computer before the show?

    Method 1:

    Restart your computer in safe mode and check if the problem persists.

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Method 2:

    I suggest you to refer to the items and set default values:

    Change the programs that Windows uses by default

    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

    Change default programs using Set Program Access and computer defaults

    http://Windows.Microsoft.com/en-us/Windows7/change-default-programs-using-set-program-access-and-computer-defaults

    Method 3:

    I suggest to create a new user account and check if it helps:

    Create a user profile

    If the new user profile resolves the problem, you can fix the corrupted profile.

    Reference:

    Difficulty of a corrupted user profile

    Let us know the results.

  • Library swf with does not perform the actions

    I have an actionScript animation film simple (using Greensock TweenMax) after export works fine when I open the .swf file obtained on its own (double click on my Mac finder).  My film has 2 frames, frame 1 sets up the interpolation on the object function in my film, frame 2 performs the function and stops.  As I said, if I open the exported .swf file or preview in a html browser, I see the desired animation effect.

    However, when I include the swf exported in another project file (using import to library) and drop it in my main script - I don't get the animation that I see in my standalone swf file.  I tried to call the file directly to play and notheing happens.  When I opened this symbol of swf (double clicking) after putting on the main timeline, I see 2 managers, but only in the original file symbiols graphics are in these frameworks (no action).

    I test the same goal using an exported swf of a film by the animation timeline (classic Tween), and it worked fine).

    What Miss me?  Is it possible to take advantage of a file to swf actionscript animation in other films?  I want to do so that I can create a bunch of stand alone animations I load in dynamically and play without chronology animate each one.  Any help GREATLY appreciated, thank you very much!

    Yes, if it's an AS3 file you can use the Loader class.

    If you want the movie to be physically in the other alternative file would be to copy the script of the film to a movieclip in the other file.

  • Is parent to perform the function in child

    I have a function in children that I need to be executed by the parent, but I can't make it work.  Anyone know how to call the function in a child of a parent?

    What I do is to have the parent load a few buttons, and I would like to re - use the swf, but have the parent to provide the text for the button.

    Here's how I built it:

    main.swf - main container for everything

    -button_page.swf - this is the page that has the buttons on it

    field - button.swf - the image of the button with dynamic text

    So the button_page.swf try to perform a function on button.swf, called "populate_button".  He is also passing the text inside, so the function should be performed as "populate_function("Back")".  I can't call to function properly.  I tried several different things, including:

    btn_back.populate_button ("Back");

    the instance of the button.swf is called 'btn_back '.

    Any help would be greatly appreciated.  Thank you!

    Aaron

    If I'm not mistaken...

    in AS3... the only 'good' inter comm swf is w / connection local... parent has been deprecated, except for XML nodes...

    You're wrong

    2 SWFs can communicate with eachother very well. Make sure they are actually loaded before trying to communicate.

    You only need a communication cross-avm netconnection: AVM0 (AS1/AS2) to AVM3 (AS3) and vice versa.

    VIVIsecVI, show us the code that loads the swf button actually.

  • Satellite P875 - need to press the FN button to use the function keys?

    Hello

    I have a W7 Satellite P875 running and something weird just started to happen.

    My F1 - F12 keys and reverse obtained special functions.
    I used to need only press the buttons for special functions and now I need to press "Fn" otherwise I get the regular F1 - F12 options.

    I checked the system at startup and then setting it always says the special functions are those by default, but this isn't the case. I tried switching between the keys F1 to F12 and special functions as value by default, but little matter I do only the keys F1 to F12 are the default ones.

    Any solution or any driver I have to re - install to make it back to normal?

    I must say at the same time, I started having problems with my iTunes library with conflicts, I think with my AVG Antivirus. Suffice to say where there is a known conflict between AVG and the system that could influence that. I was also messing around aound with msconfig to try to sort that conflict but I returned to the way it was then it should not be the cause.

    Hello

    This is controlled in the BIOS as well as it can be changed in the settings of ToshibaHW.

    Also, go into the BIOS press F2 at the beginning.
    Now choose Advaced and here you will see the point of the System Configuration.
    Go ahead and finally you will see the option called:

    * Function Mode button (without pressing the FN key) *.

  • Function on frame 1, to perform the function on frame 3?

    Hello
    I have a button on frame 1, which performs a function that goes to frame 3. I want to run a function, called FILL () on frame 3, entering text in a dynamic text field. The FILL () function works when it is run on frame 3.
    The code on frame 1 is:
    myButt.onRelease = function () {}
    gotoAndStop (3);
    FILL ();
    }
    It will be goto frame 3, but how do I get to run the FILL () function on frame 3?

    Thank you
    Paul

    Put on the function of setting 1 - and don't forget no keyframe your script layer.
    It will be available on frame 3, or any image indeed.

    --
    Dave-
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

  • change the vista sleep button to stop the function

    I use win vista and I want to change the button to stop the sleep function

    Please help me in this matter.

    Thanks to you all

    I use win vista and I want to change the button to stop the sleep function

    Please help me in this matter.

    Thanks to you all

    They are 2 different applications. You do not change them. Just add what you don't have.
    Here is the tutorial to show you how to add the option stop. Use method 2. It is easier.
    http://www.Vistax64.com/tutorials/105003-shutdown-options-start-menu.html

    t-4-2

  • Redirect button AND perform the dynamic action

    Hello

    I use Oracle 11 g and Apex 4.2.2

    It could be a matter of beginners (but that's what I'm ;-)) but I'll ask anyway.

    I created a button and can "redirect to the Page in this application" in the section "Action when the button clicked" or select "defined by the dynamic Action."

    Is there a way to select "Redirect."... "AND run the SQL Code?

    This is exactly the situation that I was considering. You start at the apex (which means don't not offensively or anything like that) and so the concept of session state can still be fresh for you. Telling me where you're just complicates things for yourself.

    Why do you, or makes you think, that you need to run plsql in dynamic action first and then redirect the page?

    Running code plsql already involves tracking session state and would require the value of the required items on the server. Running WHAT PLSQL is on the side server, if a call should be made. Given that you want to redirect afterwards, the call should happen synchronously, IE make the browser wait the result in order to continue to the next step. A redirect will just tell the server to send the new page to you.

    So why would not just use a send page? A page sent will submit all values of item on the server and thus session state. You can use the values of calculation and validation processes and never worry about having properly put it. You can filter out inappropriate process etc. According to the values of query (for example submit) so no problem there. Finally, a branch should redirect you to the target page. Remember, a branch is a part too and is essentially a redirect server-side. Find yourself on your new page without problem really and just send 1 page (send page, get another back essentially).

    That said, I simply don't consider a dynamic action. It is useless to laregely here and creates more problems than is useful to review more.

    What you have now is to redirect the client to another page, but in the process, you have lost everything from the original page. No values are stored in the session to all State: no save manual to submit State or session page. Add the element to the redirect link doesn't work either, as the link is built during rendering and is not dynamic (so no ' regenerated' link when you click it).

    Again, I advise you to:

    -put the button to send the page

    -create a process after you submit and run your plsql code

    -create a branch to a point after the process and set it to redirect to the target page

    or

    -put the button to send the page

    -create a branch set up to redirect to the target page

    -create a process on the target page and run your plsql code (but be aware that it may have to be executed conditionally)

    There are several traps on session state, so when you feel better grasp it. Page submits are not all that bad.

  • How to treat you with button interrupts on the 537 ez - lite

    Sorry for the newbee question, but I'm just familiar with the jury of 537 ex - lite.  I want to use the buttons to cause an interruption and then this interruption with a service code.  What I have to write a separate VI to handle the interrupt, or I can put it in a structure of the event in the vi that I write...?  Finally, I would like to be able to write an event-driven state machine in the fins... In the attachment, I can button scan and as he lights a led, but I would use the interrupt enable and get the number of the button as an event / box pair to do the same thing... How?

    Thanks for your suggestions.

    Hummer1

    Hummer1,

    The call library function Node (COLD LAKE) that is configured to run with the dll works with features that sees what button was pushed on the BF537. You can double-click that and see what dll it points to and what function it interacts with. Since the deployment of resources target shipped you will have to compile the code LV, in C and machine code using a 3rd part of the compiler is just to do the work of generating C for you. You could probably accumulate the feature yourself using just the screw provided but endearing tape in these support libraries is better because you do not have to reinvent the wheel and lots of screws that you would end up with are actually just wrappers for other DLLs.

  • Help with buttons to access the loaded layers

    Hi all... Using Flash CS3 and AS3 to build a learning module that loads different layers of SWFs of the buttons on the main screen.  Got this work without problems.  What I want to do is to add buttons to provide learners of features, specifically a next button, the "back" button and a check box that will keep progress automatically.  I did some massive research and so far nothing seems to work.  Seems like I am going so far is the main layer, not the new layers as they are loaded.  Here is what I tried with the back button; the next button uses nextFrame and Handler2.  It does not work.  Not even sure how to start with the check box for advance auto.  Any help would be GREATLY appreciated.

    Mark

    back_btn.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler1);

    function mouseDownHandler1(event:MouseEvent):void

    {

    MovieClip (root) .prevFrame ();

    }

    If you try to get the swf loaded in advance and not the main timeline, you need to target the loader.content, not the root, as in:

    MovieClip (loader.content) .nextFrame ();

  • Problem with button to open the .exe in a subfolder

    Hi all

    I have a problem:

    I need to create a flash presentation where there are two buttons which, when clicked, each will install a different program.

    The problem is the following: these files. Exe files are in a subfolder like this:

    Certisign

    -> Certisign

    -> AICCertisign.exe

    AICOAB

    -> Certisign

    -> AICOAB.exe

    I created the fscommand folder these files inside it and Action Script in flash, made as follows:

    programa1.onRelease = function() {}
    fscommand ("exec", "Certisign/AICCertisign.exe");
    }

    programa2.onRelease = function() {}
    fscommand ("exec", "AICOAB/AICOAB.exe");
    }

    But when you generate the executable presentation, write on a CD and try to run the facilities by clicking on the buttons that don't work;

    Please could someone help me?

    that I could not tell you.

    I would say only he was created by dino rogers and was attached to this forum about 5 or 6 years ago.  due to a revision of forum major adobe several years ago, his message link and the file may no longer exist.

  • "Cannot perform the function of user code. This file may be damaged. »

    I get the error above when performing authorization of web-packed 7 course on one of the machines (IE 7.0, Win XP). The same content is working on an another Win XP, IE7.0 m/c and also Vista IE 7.0.

    The a7wisi.u32 is downloaded to c:\document and settings\username\... webplr08 location correctly by the player but does not find when the application starts. It only happens with classes that use u32 files.

    I tried unistalling and reinstalling the web player without any help. This machine was also previously a former authorware shockwave installed control. Could that be causing it?

    I also ran the web player with the file shktrace.on. When I compare 2 ptrace.txt (a computer properly), the only unusual thing, I've observed is the instructions: PluginMgr::SearchContent: fileName = "a7wisi.u32" appear 3 times in the ptrace.txt on the computer where his work so that the same statements appear much more often on the m/c where his failure. Cannot make any sense of the txt as its says file does not any error or something there.  He tries to find the file in another location?

    Can shed you some light on what could go wrong here? I enclose the two ptrace.txt here.

    Thank you

    I was able to download and extract the file without any problems this time. Looks like that fixed problem. Thank you!

    Mike

Maybe you are looking for