script action problem

I want control over the hours, the minutes and the seconds of the next clock... so I can control how many hours, minutes, and seconds are first on the timer.
I have tried everything I can think, but mathematics and scripts are beyond me... will someone please help.

Add some number of milliseconds elapsedTime and startTime when! _root.timing and _root.paused. for example:

Tags: Adobe Animate

Similar Questions

  • How to package and distribute Scripts + Actions?

    I'm already enjoying some successes to distribute a set of interoperability of actions and scripts. BUT there are several obstacles that I'm sure others have thought to solve, and I want to get an idea of what would be possible (and best) solutions.

    Let's start with the following assumptions, based on my sales so far:

    • The target audience has Photoshop CS2 up to Photoshop CC.  (For me, so far, MOST of the people are CS5, CS6 or CC). An ideal solution would allow me to continue to target all these people.
    • The target audience are ' aware' of Photoshop but not Photoshop "warned."  They want tools to accomplish a specific task and don't know all the ins and outs of Photoshop.
    • In addition to supporting a variety of versions of Photoshop, we also support users Mac and PC, and the variety of the operating systems that are present in the wild.

    Currently the 'State of the art' as I understand it are the following:

    1. Sell stock or scripts with a set of instructions on the place where to copy elements, taking care to describe the differences for different machines and operating systems and Versions of Photoshop.
      PROBLEM:
      A. it is difficult to handle and requires the consumer to be more "savvy" on their BONES and their Photoshop a lot of people are.
      (B) several versions of windows do not allow copy in certain directories without special privileges, Ditto for the Mac.

    2. Package of actions or scripts for Mac separately from those for the PC and the bundle each with a sort of Setup program.
      Problems:
      A > multiple packages are more difficult to maintain
      B > 'canonical locations' for PC are different on Mac
      C > there is problem of security to create and distribute an installer. Although it is easier to send a whole package, it moves the load to the user who must know what that "this application is not approved" means and how to get around.
      D > some users, particularly the CC users who have more than one platform may wish the Mac and PC versions.

    3. Understand how slog through the process of getting something in «Adobe Exchange»
      PROBLEMS:
      A. the process seems impenetrable to me.
      (B) 'Exchange' is another product that someone needs to install (not included with Photoshop)
      C. is not supported in earlier versions of Photoshop (before CS5, I think)
      D. apparently requires a different package for EACH supported version of Photoshop? True?
      E. because Exchange is not delivered with Photoshop, the market is against a person who adopts this road.
      F. Exchange itself is sometimes a pain. For example just now he told me that I had to update * and * restart Photoshop.  It is difficult to imagine a potential client that runs through a lot of pain to try to find a package here. From elsewhere after what I clicked on 'My Stuff' and the Saturday tool spinning infinitely.
      G. the user must KNOW Exchange and me, the seller must describe how they can navigate this landscape, which is once in Exchange the user must somehow FIND your content.
      H. There seems to be no clarity on what percentage Adobe takes in this model, or how the payment is going to work.
      I. users should be prepared to use an Adobe ID to make a purchase.
      J. According to what is currently in Exchange, it seems a bad vehicle to get the eyes, because there is a very limited capacity to put the text and descriptions
      K. There is of course a very low incidence of people looking in Exchange... NONE of the products I saw there was even a review!

    4. Create something that uses Adobe Configurator (might be in addition or replacement of the foregoing)
      PROBLEMS:

    A. Configurator is without no DOUBT Photoshop specific version. Many overhead costs of construction and tests for every supported PS
    B. as near as I can tell, Configurator is a dead project that has no team and no supported.
    C. does not support earlier versions of Photoshop.  (CS4? unlikely)
    D. always requires that a user chock a 'required administrator' Adobe Extension Manager tool.

  • Join the Apple Developer program in order to build, to sign and distribute a package for the Mac, including, possibly, through the Mac store.
    PROBLEMS:
    A. might work for the Mac, but does not help much for the PC which is 60% of the market.
    B. more than $ and pain. But perhaps worth the GET Mac store (like the App store) eyes MUCH more than what Adobe has put together so far.
    C. Seems like a lot of work and hassle to distribute the specific content of Photoshop.
  • As far as I can tell there is no solution for the "improvements" (distribution of newer versions) or "upsells" for one of the above options.

    Is there an option 6?  I've hidden something? Adobe has indeed a "manufacturer of bundle Photoshop script/action ' which is the platform independent, robust and EASY for anyone to use?

    Hi NightSkyGuy,

    Welcome to the club of the most perplexed ;-)

    I wish I had a definitive answer, but I fear not. I can tell you my experience, some of your impressions confirm or refute. I was the sale of scripts/Extensions since 2009 (low volume, but extra income in any case), this is what I've learned so far:

    1 forget the configurator.

    2. If you are in need of target CS2, forget everything changes also: it is CS6/CC only.

    Yet some of your assumptions on Exchange are not correct:

    • You can group different versions of the extension/script/imaginable in the same installer
    • If memory doesn't fail me, the CC users * must * have installed by default
    • According to my experience the share of revenue is split 25% to Adobe and 75% for the producer, after Fastspring (payment service) took a package plus a small percentage. For a $20 $ 14 go in your pocket.
    • the concern that users must be prepared to use their AdobeID is just--and yet the majority of those who refuse are because they will pirate PS; the remains, for the most part, the PS via CC licenses so it shouldn't be too big of a problem, given that Exchange links your purchases to your account and you are free to download/install the. It's the price they pay.
    • fake there is no notice. I admit, users are pretty thrifty with them :-) but they wrote a few (or at least rate of products).
    • If you are interested to learn more, apply for the beta of Exchange (to put things in perspective, Adobe doesn't seem very interested by third-party developers part to all; however Exchange is expected to grow in the future - if pencil pushers there won't kill as they did with a lot of promising technologies in the past)

    2. There is Adobe Packager who built and connect to a fairly simple ZXP packages, but:

    3 adobe Extension Manager (which deals. Installers ZXP) is a pain in the neck. Adobe engineers are well aware that developers need a better way to deploy their stuff.

    My current path is:

    1. I Pack/Extensions Script through the command-line (writing custom MXI files)-> ZXP and distribute installers as well by the Exchange and another retailer. I've set up a Web site just to overcome the limitations of Exchange in advertising products - my pages certainly cooler looking ;-)

    2. I provide a version zipped to installation manual (i.e. moving autour records) and lots of documentation.

    3. I keep fingers crossed and I am ready to answer e-mails from customer support.

    Many things can go wrong (and they do), but I couldn't come up with something better.

    Well, in your case, it could be a solution (as I have not approached--yet). If you install the XTools by the greatly missed XBytor, you see that he wrote an installation script - as you know has ExtendScript of files management powers (can copy, move, write, etc.). It's quite complicated, but for files of actions or extensions, it should be easier. Moreover, ARE a path tokens that can facilitate the process (i.e. knows where Scripts PS file is any OS the user is running, etc.).

    In this way, you could provide a ZIP with an installer.jsx (#target photoshop, so when the user double-clicks on PS fires and does everything) with a 'source' of sidecar file that contains real substance. CS2 should manage this too.

    I'm afraid that I don't know anything about windows, permissions problems, etc. - so that you could meet stones stumbling block I don't know. Yet if XBytor opted for this solution... I am inclined to think that it is the best and the most backward compatible. Let us know! ;-)

    Kind regards

    Davide Barranca

    ---

    www.davidebarranca.com

    www.cs-extensions.com

  • Script action for audio player problem

    I did an introduction with an audio and a controller. I am facing a problem. I want to play as soon as someone enter the page, but it does not work.

    My action script is pasted below and want to advise me for any changes that may be made

    var soundReq:URLRequest = new URLRequest ("Sonu Nigam_Alka Yasser - Suraj Hua M.mp3");
    var sound: Sound = new Sound();
    var soundControl:SoundChannel = new SoundChannel();
    var volumeControl:SoundTransform = new SoundTransform();
    var resumeTime:Number = 0;
    Sound.load() (soundReq); sound.addEventListener (Event.COMPLETE, onComplete);
    up_btn.addEventListener (MouseEvent.CLICK, increaseVolume);
    down_btn.addEventListener (MouseEvent.CLICK, decreaseVolume);
    function onComplete(event:Event):void
    {
    play_btn.addEventListener (MouseEvent.CLICK, playSound);
    stop_btn.addEventListener (MouseEvent.CLICK, stopSound);
    }
    function playSound(event:MouseEvent):void
    {soundControl = sound.play (resumeTime);}
    pause_btn. Visible = true;
    pause_btn.addEventListener (MouseEvent.CLICK, pauseSound);
    play_btn. Visible = false; play_btn. RemoveEventListener (MouseEvent.CLICK, playSound);
    }
    function pauseSound(event:MouseEvent):void {}
    resumeTime = soundControl.position;
    soundControl.stop ();
    play_btn. Visible = true;
    play_btn.addEventListener (MouseEvent.CLICK, playSound);
    pause_btn. Visible = false;
    pause_btn. RemoveEventListener (MouseEvent.CLICK, pauseSound);
    }
    function stopSound(event:MouseEvent):void {}
    soundControl.stop ();
    play_btn. Visible = true;
    play_btn.addEventListener (MouseEvent.CLICK, playSound);
    pause_btn. Visible = false; pause_btn. RemoveEventListener (MouseEvent.CLICK, pauseSound);
    }
    function increaseVolume(event:MouseEvent):void {}
    volumeControl.volume +=. 5;
    soundControl.soundTransform = volumeControl;
    }
    function decreaseVolume(event:MouseEvent):void {}
    volumeControl.volume-=. 5;
    soundControl.soundTransform = volumeControl;
    }
    pause_btn. Visible = false;

    :

    var soundReq:URLRequest = new URLRequest ("Sonu Nigam_Alka Yasser - Suraj Hua M.mp3");
    var sound: Sound = new Sound();
    var soundControl:SoundChannel = new SoundChannel();
    var volumeControl:SoundTransform = new SoundTransform();
    var resumeTime:Number = 0;
    Sound.load() (soundReq); sound.addEventListener (Event.COMPLETE, onComplete);

    playSound (null);

    up_btn.addEventListener (MouseEvent.CLICK, increaseVolume);
    down_btn.addEventListener (MouseEvent.CLICK, decreaseVolume);
    function onComplete(event:Event):void
    {
    play_btn.addEventListener (MouseEvent.CLICK, playSound);
    stop_btn.addEventListener (MouseEvent.CLICK, stopSound);
    }
    function playSound(event:MouseEvent):void
    {soundControl = sound.play (resumeTime);}
    pause_btn. Visible = true;
    pause_btn.addEventListener (MouseEvent.CLICK, pauseSound);
    play_btn. Visible = false; play_btn. RemoveEventListener (MouseEvent.CLICK, playSound);
    }
    function pauseSound(event:MouseEvent):void {}
    resumeTime = soundControl.position;
    soundControl.stop ();
    play_btn. Visible = true;
    play_btn.addEventListener (MouseEvent.CLICK, playSound);
    pause_btn. Visible = false;
    pause_btn. RemoveEventListener (MouseEvent.CLICK, pauseSound);
    }
    function stopSound(event:MouseEvent):void {}
    soundControl.stop ();
    play_btn. Visible = true;
    play_btn.addEventListener (MouseEvent.CLICK, playSound);
    pause_btn. Visible = false; pause_btn. RemoveEventListener (MouseEvent.CLICK, pauseSound);
    }
    function increaseVolume(event:MouseEvent):void {}
    volumeControl.volume +=. 5;
    soundControl.soundTransform = volumeControl;
    }
    function decreaseVolume(event:MouseEvent):void {}
    volumeControl.volume-=. 5;
    soundControl.soundTransform = volumeControl;
    }
    pause_btn. Visible = false;

  • [Scripts, Actions] Issue import

    Hello

    First of all, I apologize for my English, I'm french

    I'll try to be as understandable as possible.

    I am currently using scripts in Photoshop CS5.

    But there is not one who have some problems...

    When the script is recording, I import a png on my image file and this file is automatically in the center of the image (it's what I want).

    But when I use this script with the batch, script importing, the file but it is not in the center of the image while when I check the details of the import command, it says Center: Center and translation: pixels pixels 0 0.

    I just took a few screens to explain:

    demo.jpg

    On the first picture on the left, black is the png file I import. As you can see, it is in the center of the image.

    On the second, it's what the script... Black is higher and out of the image.

    I do not understand why... I tried to save the black as jpg or psd before importing, but it's the same thing...

    I also try with my trial version of Photoshop CC (so the latest version), it is also the same.

    Here are the details of the import command:

    Capture d’écran 2015-07-11 à 02.28.33.png

    Can you help me please?

    Thank you very much.

    I'm trying to reproduce it, but it works for me. I don't have CS5, but try this in CS6. Are the size of the files that you import pictures into the same size? Can you try to add a line to your actions once the file imported/place?

  • script event problems

    I try to get the following script as a startup script.

    the goal is that when the user chooses to save the document, they are presented with a dialog box asking for a brief summary of the changes that have been made. Then this info is written to the XMP fields.

    The basic functionality actually works, the dialog box and the data is saved in the XMP.

    The problem is that when the record action is undertaken an error dialog announcing "the requested operation was not successful because the object does exist more." and then the script proceeds and working properly, then it calls for entry and saves the data again.

    I get an error, then the script runs twice.

    I'm confused.

    #targetengine session

    myEventListener var = app.addEventListener ("beforeSave", myPromptForInput);

    function myPromptForInput (myEvent) {}

    var myTimeStamp = myEvent.timeStamp

    myDialog = app.dialogs.add var ({name: "enter a simple description of changes", canCancel:true}); "})

    {with (MyDialog)}

    Add a column of the dialog box.

    {with (dialogColumns.Add ())}

    Create a text edit field.

    var myTextEditField = textEditboxes.add ({editContents: "Changes in the Description of the document", minWidth:300});})

    Display the dialog box.

    Ditto var = myDialog.show ();

    if(myResult == true) {}

    Get the values of the dialog box controls.

    var myNotes = myTextEditField.editContents;

    Remove the memory dialog box.

    myDialog.destroy ();

    myAddXMPData (myNotes + "-" + myTimeStamp);

    Alert (MyEvent);

    }

    }

    }

    }

    function myAddXMPData (myNotes) {}

    myDocument var = app.documents.item (0);

    myDocument var = app.activeDocument;

    {with (myDocument.metadataPreferences)}

    author = 'James Haney';

    Description = myNotes;

    var myNewContainer = createContainerItem ("http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes");

    setProperty ("'http://ns.adobe.com/xap/1.0/", "LCCRevisionNotes / * [1]", myNotes "" ");

    }

    }

    Hello

    I don't know if #targetengine and dialog UI work together.

    Try to use the Following window may be...

    I run it on my side. Looks like it works.

    #targetengine 'session'
    //just to remove if exists
    var old1 = app.eventListeners.itemByName("mXMP");
    if (old1.isValid) old1.remove();
    //
    var myEventListener = app.addEventListener("beforeSave", function (myEvent) {
      var myTimeStamp = myEvent.timeStamp;
      var myDialog = new Window("dialog", "Enter a simple description of edits made", undefined, {closeButton: false});
      var myStatText = myDialog.add("statictext", undefined, "Description of document changes: ");
      var myEditText = myDialog.add("edittext", undefined, "");
      var myButtons = myDialog.add("group");
      myButtons.add("button", undefined, "OK", {name:"OK"});
      myButtons.add("button", undefined, "Cancel", {name:"Cancel"});
    
      myEditText.characters = 45;
      myStatText.alignment = "left";
    
      //Display the dialog box.
      var myResult = myDialog.show();
      if(myResult == true){
      //Get the values from the dialog box controls.
      var myNotes = myEditText.text;
      myAddXMPData(myNotes + " - " + myTimeStamp);
      //~ //alert(myEvent);
      }
    }).name = "mXMP";
    

    Including your myAddXMPData() function of course.

    Jarek

  • Disable lock by property node action problems?

    Hey guys,.

    I recently learned how to use the structures of the event to handle the two-step linear control. It was cool. Before, I was running a state machine, and it was a bit heavy.

    I am developing a user interface to control these steps, and there are two types of movement I want the user to choose. The first might be called "motion of joystick; you press the left button (and hold it), and the scene shifts to the left until you release the button, or exit button (I have an event for each case, and they do the same thing, namely to stop movement). The second type of movement is "additional query. Here, the user should set the left button and the stage would move 1 mm to the left and stop.

    Here's my problem. When I first programmed the "joystick motion", it works fine. Perfectly. Then, I wanted to make the differential movement. Also, that works perfectly. Ok. So I wanted the user to select the type of query by using a Boolean value; that is, they support "the joystick movement" and then these controls become enabled. So I thought that I'd get fancy and property nodes allows you to disable/gray keys that should not be used and select the buttons that should be used. It seems to work GREAT with my "additional query", because at the moment, these Boolean buttons are latch - when pressed and buttons on the block schema reside in the case of the event [which handles the change of value]. However, my 'motion controller' buttons reside outside the structure of the event (but inside the while loop that surrounds it) and it seems that even if the property node "correctly" their gray out when you press the selector button of movement, you can always click on them and the scene shifts. This does not happen with the extra buttons "motion".

    My hunch is that

    (a) I'm not smart enough

    (b) that the location on the block diagram of my buttons that control the motion "joystick" is wrong (i.e. they should be inside the structure of the event somewhere)

    (c) that I have to use another type of mechanical action on the buttons

    I read / saw somewhere that the latch - when pressed must reside in the case case that handles the change of value, but I don't really know what to do with Boolean values buttons that have cases of event like "down/up/leave mouse". Any help would be great. Thanks in advance!

    The problem is that you use the "Mouse Down" and "Mouse Up" of events for the buttons of the gamepad and that these events still occur when a button is disabled, even if the value of the button does not change. For the buttons of the gamepad, try to use the value Change event. In the case where the structure, use the NewVal (or the appropriate button terminal) to determine whether to start or stop the movement, based on whether the value is true or false. Or, if you wish to continue using the mouse down event, then you must use the value Active Joystick stored in the shift register to determine whether or not to act on these events (wrap functions VISA in the case structures so they run only when Active Joystick is true).

  • Shared action problem - settings

    I have a tip action that assigns a number of values to variables created in Captivate. As shown in the figure below.

    Screen Shot 2016-01-20 at 9.20.43 AM.png

    He navigationLock is set to false. When the shared action is created, as noted below, there is no registration for the setting of the parameter false to the navigationLock variable. Everyone knows this? Is there a work around?

    Screen Shot 2016-01-20 at 9.21.21 AM.png

    Thanks for any help anyone can offer.

    Post edited by: Lieve Weymeis: it is not a mistake, everything in the list of parameters is correct.

    Have you read this blog? I see the 'false' as the second element in the parameter list. But if you use 'fake' several times in the tip action, it will appear only once in the list. That's why I tried to explain that it is a bad idea to set such a Boolean value as a parameter. Even when you have the variable appears several times in the tip action, it appears only once as a candidate parameter and be careful. Not every advanced action is able to be converted into a shared action, reason why I wrote several blog posts, and I am writing a book at the moment.

    As a new feature, you must learn how it works, what its possibilities and its limitations are. I explored much shared actions because they appeared with CP7 and acquired an idea, to help judge whether an action is apt to become an action shared or not.

    BTW, this isn't a shared action error, I will change the title. You have a problem with the understanding of common action, it is not a bug or a mistake.

  • I am trying to reinstall Flash CS4 professional as the script action does not work, but now I get an error: 2 message when I use the original CD to reinstall

    I can't get the original disc work on resettlement.  I get the message

    AdobeColorCommonSetRGB

    Error:

    Error 2.

    I'm teaching a class using this program on Macintoshes running 10.9.5 and action script does not work.  It will work on any program designed by using the 10.8, but if you create an animation on 10.9.5 the action script will not work for buttons

    You must manually remove the color in question profiles... Run the cleanup tool and see if it's to help you get started.

    http://www.Adobe.com/support/contact/cscleanertool.html

    Mylenium

  • Script mapping problem

    Hello experts,

    I am quite new to FDM and Iv'e tried to write a script of simple conditional mapping without success. for my dimension entity, in most cases, the source is ths same as target, although there are some cases where this doesn't apply and have to go to a NA_Entity. For example:

    SOURCE TARGET

    PE00_0001 PE00_0001

    PE00_0002 PE00_0002

    PE00_0003 PE00_0003

    AL00_0001 NA_Entity

    PE00_0004 PE00_0004

    CO_HWE NA_Entity

    PE00_0005 PE00_0005

    ......

    As you can see, all the source entities that start with "PE" are equal to the entity target and any other entity not starting not not by PE must be mapped to 'NA_Entity '. I think it's quite inefficient to keep an explicit plan, so we decided to create a conditional mapping script (does not work yet) which reads as follows:

    If left (varValues (15), 2) = "PE".

    Result = varValues (15)

    Another result = "NA_Entity."

    Whenever I try to import a file I get away:

    Error: An error occurred importing the file.

    Details: Invalid as Clause: for card size (ENTITY) and rule (Peps)

    ERROR:

    Code............................................. 4026

    Description... Not valid as Clause: for card size (ENTITY) and rule (Peps)

    Process... clsImpProcessMgr.fLoadAndProcessFile

    The component... upsWObjectsDM

    Version.......................................... 1112

    Thread........................................... 5416

    IDENTIFICATION:

    User............................................. admin

    Name of the computer... CTARESULDESA2

    App Name......................................... INT_IECI

    Client App....................................... WebClient

    CONNECTION:

    Provider......................................... SQLOLEDB

    Database server... 10.228.128.168

    Name of the database... FDM_INTIECI

    Trust connect... Fake

    Connect status... Open connection

    GLOBALS:

    Location......................................... Argentina-EP

    Location ID... 758

    Location Seg... 3

    Category......................................... Reales

    ID of the category... 13

    Period........................................... Nov - 2013

    Period ID........................................ 2013 11-30

    POV Local........................................ Fake

    Language......................................... 1033

    User Level....................................... 1

    All Partitions... True

    Is Auditor....................................... Fake

    I followed the guide to script and Iv'e I tried several scripts, all without success. The only solution I found is now an explicit plan where 99% of the elements map to themselves and the other card by 1% in "NA_Entity", not very friendly.

    Thank you very much for your help

    Santiago Ruiz.

    You don't mention what version of FDM, you work with, but there should be no need for the script.

    Explicit mappings are the most efficient from a performance point of view, but account given what you want to achieve, then, all you need are two 'Like' mapping entries.

    the first will be mapping EP * EP * and the mapping of the second entry * to "NA_Entity" to pick up all the other codes.

    Otherwise if you treat millions of records and have a performance problem, an alternative may be to change the type of no "PE" recorded with a script on the import format, but I think that both records should be the easiest.

  • Dynamic action problem

    Hello

    I am creating a dynamic action that should fire when a certain value is selected in a Select list. If the value selected is equal to a value from the database, then should display a checkbox. If it is not equal to a value from the database then the box should not show.

    I have the list select (PItem) which is filled by the LOV:

    Select the tableA orderby id id;

    Then I have a checkbox (PCbox) I created.

    I created a standard dynamic action on PItem with a condition that the element must be equal to the output of a select query:

    Select the id from tableA where id =: PItem and other = "Y";

    I applied this to the PCbox.

    If the check box to display only when an id is obtained from the database via the select query. However, this does not work. When I put a value such as 8 in the box of 'value' for the condition "equal to", it works fine. If the box never displays.

    Any ideas on how to solve this problem?

    Thank you

    Hello

    You can accomplish this by creating an item of assistance PItem2.

    Fill it with dynamic action "set" using the query
    Select the id from tableA where id =: PItem and others = 'Y '.
    to change your selection PItem list event.

    Then create a Show/Hide dynamic action on the change event of the item of assistance PItem2 to a condition of 'not null' that will allow to show or hide the PCbox checkbox.

    Kind regards
    Erik-jan

  • pop up window script action 2.0 using a text link

    Hello adobe cummunity.

    I have a website (www.freshwaterbeats.com) that is created in the action script 2.0 and I can't turn my links in windows pop up.

    I have a game for the miniature links code that works with the text tool and not the button control.

    Actions:

    var Lnk = Link_URL.text;

    Actions of the buttons:

    on {(overview)

    Background.gotoAndPlay ("Over");

    }

    on {(deployment)

    Background.gotoAndPlay ("Out");

    }

    (release, releaseOutside) {}

    getURL (Lnk);

    }

    This code works very well to set up the links to open new pages, but it sails away from my index page. I would like to create a window pop up when editing the code above.

    If you add a second argument to the command getURL, you can have the linked pages / opens in a separate browser window...

    getURL (Lnk, "_blank");

  • Load several unique script action

    Hello

    I want to load a selective action to stop with radio buttons

    Untitled-1.jpg

    Click here when it will run actions

    I want this script

    You might want to look in Configurator because it might be much easier to do with a Configurator Panel as a Script.

    http://labs.Adobe.com/downloads/Configurator.html

  • Question about the script action and creation of menus

    I use flash for a while now and never formally trained in the design of web sites, so I always wonder if I use best practices. Here is the code I wrote for a menu. I try to use the script to control everything, I think that there is a more effective way to achieve this. Any help would be appreciated. Menu design and the current site work can be viewed here: http://www.studiojarch.com

    Advice on how to optimize the code would be appreciated.

    on {(press)
    If (project._currentframe == 25) {}
    }
    else {}
    getURL ("http://www.studiojarch.com/contact/", "studio_james_cornetet");
    project.gotoAndStop (25);
    }}

    on {(overview)
    If (_parent. Contact.goalPos == 290) {}
    _parent. Highlighter.goalPosy = 299;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    Project.Reverse = false;
    Project.Play ();
    }
    ElseIf (_parent. Contact.goalPos == 330) {}
    _parent. Highlighter.goalPosy = 339;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    Project.Reverse = false;
    Project.Play ();
    }
    ElseIf (project._currentframe == 25) {}
    _parent. Highlighter.goalPosy = 259;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    }
    else {}
    _parent. Highlighter.goalPosy = 259;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    Project.Reverse = false;
    Project.Play ();
    }}

    on {(deployment)
    If (project._currentframe == 25) {}
    Project.Reverse = false;
    }
    else {}
    _parent. Highlighter.Reverse = true;
    _parent. Highlighter.goalPosx = - 10;
    Project.Reverse = true;
    }}

    on (release) {}
    If (animation_hl_contact._currentframe == 24) {}
    }
    else {}
    _parent. James_Cornetet.project.gotoAndStop (1);
    _parent. Architecture.project.gotoAndStop (1);
    _parent. Awards.project.gotoAndStop (1);
    _parent. Blog.project.gotoAndStop (1);
    _parent. News.project.gotoAndStop (1);
    _parent. Publications.project.gotoAndStop (1);

    _parent. James_Cornetet.reverse = true;
    _parent. Architecture.Reverse = true;

    _parent. Architecture.goalPos = 100;
    _parent. Awards.goalPos = 130;
    _parent. Blog.goalPos = 160;
    _parent. News.goalPos = 190;
    _parent. Publications.goalPos = 220;
    _parent. Contact.goalPos = 250;

    _parent. James_Cornetet.about.gotoAndStop (1);
    _parent. James_Cornetet.CV.gotoAndStop (1);
    _parent. Architecture.category.gotoAndStop (1);
    _parent. Architecture.date.gotoAndStop (1);
    _parent. Archtiecture.bylocation.gotoAndStop (1);
    _parent. Architecture.typology.gotoAndStop (1);

    animation_hl_contact. Reverse = false;
    animation_hl_contact. Play();
    _parent. James_Cornetet.animation_hl_james_cornetet. Reverse = true;
    _parent. Architecture.animation_hl_architecture. Reverse = true;
    _parent. Awards.animation_hl_awards. Reverse = true;
    _parent. Blog.animation_hl_blog. Reverse = true;
    _parent. News.animation_hl_news. Reverse = true;
    _parent. Publications.animation_hl_publications. Reverse = true;

    }}

    One thing that stands out as being undesirable that recommended going is that you place on the items (using the on() approach) code.  The right approach is to assign instance names to your interactive objects and use them to place all code on the timeline where it is easily visible.  In doing so, you will find just that a lot of code that show you can be modularized in functions that can be shared by different objects rather than having each carrying a load full on his back. You will find that you can pass arguments to shared functions that do the same functions capable of supporting interactions with different objects

    Your call you (press) performs a conditional test useless.  If you change the status to be if (project._currentframe! = 25) you can avoid this.

    In all of your executed appeal of conditional statements, you have a few lines that are repeated in each condition, so they can be moved to the end off the conditional statements.

    Your call to it (release) has the same problem as your call you (press).  Use the _parent target overflow is also an indication that most of the code in this appeal would probably serve you better sitting in the _parent timeline and your button could just call this function

  • The output of a script redirection problem

    Hi guys,.

    I used the script get.vievent of vsphere powercli console example "modified for the last 24 hours registered users"

    Original screenplay:

    C:\PS > Connect-VIServer-Server 10.23.113.41

    $events = get-VIEvent - MaxSamples 100

    foreach ($event in $events) {if ($event.fullFormattedMessage - match "user)}

    (connected.*)@\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b') {Write-Host ("User

    "+ $matches [1] +" connected to: "(+ $event.createdTime)}}"

    When I ran the output to the console is:

    Vcops of the user connected to the: 21/03/2016 04:50:41

    Vcops of the user connected to the: 21/03/2016 04:20:21

    Backupsvahcs of the user connected to the: 21/03/2016 04:01:37

    Backupsvahcs of the user connected to the: 21/03/2016 04:01:36

    Backupsvahcs of the user connected to the: 21/03/2016 04:01:36

    Backupsvahcs of the user connected to the: 21/03/2016 04:01:31

    Vcloudum of the user connected to the: 21/03/2016 04:00:22

    Vcops of the user connected to the: 21/03/2016-03:50

    Vcops of the user connected to the: 21/03/2016-03:19:39

    Vcloudum of the user connected to the: 21/03/2016-03:00:25

    Vcops of the user connected to the: 21/03/2016 02:49:18

    Vcops of the user connected to the: 21/03/2016 02:18:58

    So far, everything is beautiful!

    Updated the script:

    $fecha = get-date-Format D

    $todayMidnight = (get-Date-time Minute 0 - 0 - 0 second). AddMinutes(-1)

    $events = get-VIEvent-start $todayMidnight.AddDays(-1)-finish $todayMidnight.AddDays(-0)

    $events | foreach ($event in $events) {if ($event.fullFormattedMessage - corresponds to ' User(.*) @\b\d {1,3} \.\d {1,3} \.\d {1,3} \.\d {1,3} \b connected ') {Write-Host ('User' + $matches [1] + "" connected to: "+ $event.createdTime")}} |  out-file c:\ReportesvCENTER\test.txt

    When I run the script, I get:

    PowerCLI C:\PS-Scripts >.\loggedin1.ps1

    Unexpected token 'in' in expression or statement.

    C:\PS-Scripts\loggedin1.ps1:9 char: 29

    + $events | foreach ($event in < < < < $events) {if ($event.fullFormattedMessage)}

    (- match to ' User(.*) @\b\d {1,3} \.\d {1,3} \.\d {1,3} \.\d {1,3} \b connected ') {Write-Hos

    {{t ('User' + $matches [1] + "" connected to: "+ $event.createdTime")}} |  > c:\Repo

    rtesvCENTER\test.txt

    + CategoryInfo: ParserError: (in: String) [], ParseException exception

    + FullyQualifiedErrorId: UnexpectedToken

    PowerCLI C:\PS-Scripts >

    But if I do not include the hose before foreach:

    PowerCLI C:\PS-Scripts >.\loggedin1.ps1

    An empty pipe element is not allowed.

    C:\PS-Scripts\loggedin1.ps1:9 tank: 209

    + foreach ($event in $events) {if ($event.fullFormattedMessage - match "User(.*))}

    ") @\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b connected ') {Write-Host ('User' + $mat

    (ches [1] + "connecté à:" + $event.createdTime)}} | < < < > < c:\ReportesvCENTE

    R\test.txt

    + CategoryInfo: ParserError: (:)) [], ParseException Exception)

    + FullyQualifiedErrorId: EmptyPipeElement

    And if I modified the script again:

    $fecha = get-date-Format D

    $alluser = @)

    $todayMidnight = (get-Date-time Minute 0 - 0 - 0 second). AddMinutes(-1)

    $events = get-VIEvent-start $todayMidnight.AddDays(-1)-finish $todayMidnight.AddDays(-0)

    foreach ($event in $events) {if ($event.fullFormattedMessage - corresponds to ' User(.*) @\b\d {1,3} \.\d {1,3} \.\d {1,3} \.\d {1,3} \b connected ') {Write-Host ('User' + $matches [1] + "" connected to: "+ $event.createdTime")}}

    $alluser += $events

    $alluser | Select the username, IP address, Createduserid, FullFormattedMessage |  out-file c:\ReportesvCENTER\Usuarios-conectadosPav-$(Get-Date-f yyyyMMdd-hhmm)-$fecha.txt

    I send the output to a file, but I do not send the result equal the console.

    Can someone helpe please?

    Thank you

    Carlos

    You must use Write-Host sparingly. instead of trying to Write-host using Write-Output. You can also build the string without Write-Host IE "User $($matches [1]) connected to: $($event.createdTime).

    Don't forget that write-host may not be redirected to a different output, just like the Format cmdlets.

    I could write this using an object as output and put it into a function.

    $events = get-VIEvent - MaxSamples 100

    Function Get-UserLogins

    {

    [CmdletBinding()]

    Param

    (

    [Parameter (Mandatory = $true, Position = 0)]

    $Events

    )

    foreach ($event in $events)

    {

    If ($event.fullFormattedMessage - corresponds to ' User(.*) @\b\d {1,3} \.\d {1,3} \.\d {1,3} \.\d {1,3} \b connected ")

    {

    New-Object - TypeName PSObject-property @{' user ' = $Matches [1]; "} {LogginTime'= $Event.CreatedTime}

    }

    }

    }

  • Photoshop cs6 action problem

    When you apply a certain action to my desired photo, once he goes through the process at the end once it turns into a picture completely different (always the same photo) HELP!

    I am looking for a step at the end where you have placed a file in this action, or saves a selection which can be of you're the original image and not one you are trying to treat. Check carefully the steps. Develop and see what they are really doing.

Maybe you are looking for