The Basics of scripting - Click image to run Frame no. X

Hi,
I am a new starter to Flash & Actionscript so please
forgive my ignorance in anything silly that i ask or do. Firstly,
i'm not even sure whether this thread should be under this
category, as i am assuming that the actionscript in my version of
Flash is version 3 (and that my question is flash related.
Anyway, i have tried a few tutorials to improve my flash
skills. I have grasped the basics of frames, timelines, animation
& tweening.
However, i have been trying to get a command button or an
image to run a bit of code to start a animation clip in a different
frame.
EG. i run the flash file which should run from frame 1 to 50
& then stop. I then want to click on an image which runs frames
50-100 as the next bit.
I've tried a bit of actionscript code but have failed
miserably.
Can anyone help me in working with flash to achieve what i'm
trying to do?
Regards,
Shuja

welcome to Flash - and don't worry, everyone has to start
somewhere :)
first of all, on frame 50 you will need to add a - stop(); -
method to stop the playhead on that frame. if you haven't already
done so, you should create a new layer called actions, and place
all of your codes on that layer (unless you are ready to get into
writing class files, which i think may be a ways off for you atm ;)
so, the method that you need to use to then 'play' the movie from
that point forward is... you guessed it - play();
now, under CS3 (which I'm assuming you are referring to) and
"using" ActionScript 3.0 (check to make sure that you have started
an AS3 file - if not change the AS setting in the Publish settings
'Flash' panel - you will need to use an event handler in order to
respond to an event - like a mouse click. using AS3 it would be
something like this:

Similar Messages

  • 320PPI  5cm x 5cm ,  and the mobile app that this image appear runs on a mobile phone of 200ppi disp

    IF I DO AN IMAGE in FW or PS of 320PPI  5cm x 5cm ,  and the mobile app that this image appear runs on a mobile phone of 200ppi display resolution, then resolution seem of image should be 200ppi ... in other words should adapt automatically????

    Only if you were to measure the physical dimentions. (Using physical dimentions and changing the ppi would add or remove pixels)
    inches X ppi = pixels
    A 1200 x 1600 pixel image will be the same on all devices that share that ratio, the ppi difference comes into play when the phyical size of the screen is changed.
    Technically the quality never changed only the zoom changed.
    When designing a screen at 1200x1600 (example) That image will fit on any screen that has that spec.
    The ratio plays a role when only 1 of the 2 pixel dimentions changes (width or the height).
    On larger screens, the ppi is lower to equal the same number of pixels. So when a device can support a higher resolution, the ppi is increased on the same size screen.
    Knowing that, having the specs of the device will tell you the maximum number of pixels that screen can display.
    Therefore, when designing a screen, always start with the largest resolution (pixel dimmentions) first, then downsample to the next size screen and so on.
    The reason is simple, it is easier to remove pixels, then it is to add them later, as photoshop or any other software does not know what should be there.
    BTW, this is also the reason why you can change the pixel dimentions in the save for web dialog box and not the physical size or ppi. To make it easy to reduce the pixel dimentions.

  • How to use amount control for multiple sliders in the basic adjustments window

    In a webinar an instructor (Chris Orwig) demonstrated how to make multiple adjustments in the basic panel in the develop module.  He then showed how to close the basic module by clicking on the small triangle at the top of the module.  When this was done a single control bar and slider appeared in place of the closed basic module. Moving this slider allowed the instructor to adjust all previously set basic module settings at the one time.  I tried to do this.  But when I close the basic module no control bar and slider appear.  Any suggestions why this is the case?
    I use Lightroom 5.4 and OS 10.9.2.

    He evidently wasn't in the Basic panel, but in the Adjustment Brush:
    Clicking on the triangle at the end of the red arrow yields this:
    And there is your Effect slider.
    Hal

  • Viewer won't launch - error in the pathing / crystal scripts?

    Hi,
    I've developed a parameterized report (CR 2011). I created a Command that utilizes SQL selects. I upload the .rpt to my web application successfully. When I run the report, in my app, the dynamic parameters come up first and work as expected. Once I've selected the parameters and then click OK to run the report the following error comes up:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Report file /var/www/vhosts/jobutrax.com/symfony/releases/staging/shared/reports/null not found---- Error code:-2147215356 Error code name:fileNotOpened
    We are using a Java Servlet to capture the information and send it to the Java Report Viewer Web Application. Itu2019s all running on Tomcat on CentOS Linux.
    Any idea what could be causing this and how to remedy?
    thx!
    Mark

    Hello Mark.
    Have you confirmed that your report is lcoated in the folder "/var/www/vhosts/jobutrax.com/symfony/releases/staging/shared/reports/"?
    Additionally, has the report name been set.  It sounds like it is looking for a report named "null".
    Regards.
    - Robert

  • Scripting Fit Image Command

    Does anyone know if there is a way to add the "Fit Image" command to a script?
    This is what I currently am working with below. I just want to be able to make it so that images are no longer than 1000 pixels on either side, and not have to call an action.
    Thanks!
    Janice
    //PLACE WATERMARK NOTICE IN FILE
    var idPlc = charIDToTypeID( "Plc " );
        var desc973 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc973.putPath( idnull, new File( "C:/watermark.gif\/" ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc973.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc974 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc974.putUnitDouble( idHrzn, idPxl, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc974.putUnitDouble( idVrtc, idPxl, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc973.putObject( idOfst, idOfst, desc974 );
    executeAction( idPlc, desc973, DialogModes.NO );
    //FLATTEN IMAGE
    app.activeDocument.mergeVisibleLayers()

    You can also look at the Image Processor script to see how it actually uses the Plug-in script "Fit Image.jsx"..   It woul look somethimg like this
    FitImage( 1000, 1000 );
    //Code below from "Image Processor.jsx"
    // use the fit image automation plug-in to do this work for me
    function FitImage( inWidth, inHeight ) {
              if ( inWidth == undefined || inHeight == undefined ) {
                        alert( strWidthAndHeight );   //This statement woul need to changed
                        return;
              var desc = new ActionDescriptor();
              var unitPixels = charIDToTypeID( '#Pxl' );
              desc.putUnitDouble( charIDToTypeID( 'Wdth' ), unitPixels, inWidth );
              desc.putUnitDouble( charIDToTypeID( 'Hght' ), unitPixels, inHeight );
              var runtimeEventID = stringIDToTypeID( "3caa3434-cb67-11d1-bc43-0060b0a13dc4" );
              executeAction( runtimeEventID, desc, DialogModes.NO );
    The image process set vars for localization
              // the string that need localized
              strWidthAndHeight = localize( "$$$/JavaScripts/ImageProcessor/WidthAndHeight=Width and Height must be defined to use FitImage function!" );1

  • Firefox does not load the first time I click on it -- a script appears which ischrome://webvideodownloader/content/utils.js:131 -- when I stop this script running I can then load firefox -- how can I keep this script from running

    I can still load it with the script running or attempting to run in the background but it makes firefox tremendously slow. After I click on stop running the script then everything seems to be ok.
    how do I get the script not to run in the first place.

    In Firefox the use of the term chrome refers to the user interface and other elements that are not part of the web pages.
    See https://developer.mozilla.org/en/Chrome
    Your problems seems to be caused by the GreaseMonkey extension.<br />
    See [[Troubleshooting extensions and themes]]

  • I am trying to create a button in flash that will display 4 separate images at the same time when clicked.  I can't get the images to stay on when I take the mouse of the button.  I need the actions script code to make this happen.

    I am trying to create a button in flash that will allow the user to click on the button and 4 separate images show up at the same time.  I can get the images to appear when I click the button but they will not stay on the screen.  I need to know what code I use to make the images stay once the button is clicked, then I need to know exactly where I place that code.  It does not appear to be possible to add the action code to the buttons layer since each time I add a new layer I just get another "up" "over" "down" and "hit" line.
    Thank you in advance
    AP

    It is not clear how you are trying to realize this from your description.  If you are trying to create this within a button symbol it will not work.  Explain your approach and if there is code involved, show what you have so far.

  • Running validation before the 'save as' script

    Hi
    I'm looking for a steer on how to run form validation before implementing the 'Save as' script - is this even possible??
    Basically I want the save as script to run in the click event of my newly formed save button only if the validation script returns a positive value i.e. all mandatory fields are completed, I've used the script below:
    if 
    (form1.execValidate()== "false"){
    app.execMenuItem("SaveAs");
    Any chance someone could point me in the right direction or am I barking up the wrong tree?
    Thanks

    got it to work: my script was wrong, it now looks like this:
    if 
    (form1.execValidate()== true){
    app.execMenuItem("SaveAs");

  • TWO CRITICAL BUGS: 1) File, "Save Page As" and 2) right-click the picture and select "Save Image As", both do not work at all in Firefox 27, 28, and 29!

    Note: capitals are used only to highlight important words.
    PLEASE, TAKE THESE COMMENTS ON TWO CRITICAL BUGS VERY SERIOUSLY BECAUSE THE BUGS DESCRIBED BELOW ARE SO CRITICAL THAT I CANNOT USE THE LATEST VERSION OF FIREFOX UNLESS THEY DO NOT APPEAR IN THE LATEST VERSION AND THEREFORE I AM FORCED TO REVERT BACK TO FIREFOX 26.
    I have Windows 7 64-bit and Firefox 26. I could not install Firefox 27, 28, and 29 due to the persistent presence of the two critical bugs described below. I have 8 GB of RAM and an Intel quad-core processor and a lot of hard disk space available.
    I installed Firefox 27 and then Firefox 28 a while back and these two bugs described below were still present and now I have just checked again with Firefox 29 by installing it and yet again, these two bugs described below are present!! UNBELIEVABLE THAT THESE TWO CRITICAL BUGS ARE STILL PRESENT IN FIREFOX 29 WHEN I CLEARLY INFORMED YOU ABOUT THEM IN THE HELP, SUBMIT LINK OF FIREFOX!!
    I am forced to revert to Firefox 26!
    First, I use Windows 7 64-bit and I always use Firefox with at least 120 tabs opened. BUT I have 8 GB of RAM, an Intel core i7 quad-core processor and more than 1 TB of hard disk space. Consequently, I do not understand why I would have these two critical bugs.
    With Firefox 26, I also have at least 120 tabs opened when I start Firefox and I do not have the two critical bugs described below, therefore I do not believe that the number of tabs is the reason of the two critical bugs that are present in Firefox 27, 28, and 29.
    ---FIRST CRITICAL BUG:
    When I open ANY web page and do File, "Save Page As", the window that is supposed to open to locate the folder where I want to save this web page does NOT open at all, even if I wait a long time to see if it opens.
    Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
    ---SECOND CRITICAL BUG:
    When I use Google Images, for instance entering model in the search field of Google Images and then pressing enter.
    Then I select any picture, open to a new tab this selected picture, then open a new tab by selecting the option View for this picture. Then right-click the picture and select "Save Image As".
    Again, the window that is supposed to open to locate the folder where I want to save this picture does NOT open at all, even if I wait a long time to see if it opens.
    Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
    ---THESE TWO CRITICAL BUGS DO NOT APPEAR WHEN I USE INTERNET EXPLORER 11.
    I have no idea if you will be able to reproduce these two critical BUGS but I can assure you that they are not present when I use Firefox 26 and they are present when I use Firefox 27, 28, and 29. More, be aware that I have at least 100 tabs opened but I also have this same number of tabs opened in Firefox 26 and yet I do not experience these two critical bugs when I have Firefox 26!
    Once again, these two bugs touch at two vital, critical very basic functions of Firefox and therefore I will NOT be able to use any version above 26 if these two bugs are still present, as they are present in Firefox 27, 28, and now 29!!!
    Please, make it a priority to solve these two critical bugs. Thanks.
    I did read a post related to the same issues “Firefox stops responding when trying to "save page" or "save image" | Firefox Support Forum | Mozilla Support” at https://support.mozilla.org/en-US/questions/991630?esab=a&as=aaq
    I am still reading it again to try to figure out exactly what the person did to make his problems be solved, as the post is not clear at all on what solved the problems!
    In any case, all the suggestions proposed in this post do not work and I surely cannot do a system restore when it is obvious that the two bugs do not appear in Internet Explorer.

    First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
    Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
    As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
    Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
    So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
    Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
    If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
    I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset.

  • I have connected my macbook pro to my tv via MDP to HDMI port cable, all that is showing up is the basic desktop image without any icons, what do i do to correct this

    i have connected my macbook pro to my tv via MDP to HDMI port cable, all that is showing up is the basic desktop image without any icons, what do i do to correct this

    Your MBP is running in "extended desktop" mode, where the two screens together make one larger area to display windows. You can drag one or more windows from the primary (internal) screen to the secondary (TV) screen. By default, the secondary screen is off to the right of the primary screen.
    If you would prefer the two screens show the same image, you want to switch to "mirroring" mode. You will have to pick a single resolution for both screens, which may look poor on one or the other.
    Both the relative positions of the two screens in extended desktop mode and the switch to mirroring mode can be set in System Preferences > Displays > Arrangement.

  • How do you configure a VM image to run a custom script ONCE on startup?

    Hello,
    I am creating a Windows image that will be deployed to the VM depot:
    https://vmdepot.msopentech.com/List/Index
    When the image is run for the first time, I'd like to run a custom script.  However, I only want this script to run the first time the VM is run (and never again).
    How would I do this?
    Thanks!
    Matt

    Hi,
    Please see SetupComplete.cmd at
    http://technet.microsoft.com/en-us/library/dd744268(v=ws.10).aspx
    Anders Bengtsson | Microsoft PFE | blog at http://www.contoso.se

  • What is the best way to click on a thumbnail image

    What is the best way to click on a thumbnail image and have a
    large version of the image appear above it?
    Frames?

    divaPOPgold, a Dreamweaver Extension, is another option:
    http://divahtml.com/products/divaPOPgold/open_popup_windows.php
    quick examples:
    http://209.200.94.134/divaPOPgold_demo.html
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Error: X "does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help."

    I have received to following error from at least three different applications when they have attempted to auto-update recently: X "does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help." 
    I am not running off a disk image and I have admin privileges... Not sure what the problem is, but it just started happening (a week or two ago) and I have never previously had a problem with these applications auto-updating.  I have repaired permissions and attempted other "fixes" found on the interweb, but nothing works.  Also, this is only happening on my iMac (27" Intel i5) and not my MacBook Pro (17" Intel i5) -- both are running Lion.  Please help!

    If you updated using the default install (merge) from before Tiger, you may be seeing an issue that we saw when Leopard first came out last year.
    Not sure of the fix - it was not simple - but if you search back in these forums you might find something that will help. I believe it deals with the numbers assigned to accounts (501, etc).
    If you open your Accounts Preferences and unlock the padlock, right-click Advanced Options and read your User ID and Group ID. Let us know what they are.
    Now, in the other user admin account, do the same thing.
    One of the real experts who knows much more about this than I may be able to then help.
    And be sure to check out this article
    http://pinkmutant.com/articles/Leopard/leobugs.html

  • Error while running the root.sh script during Grid installation on a pre-installed 11g database .

    Hi Oracle Experts,
    I am trying to setup a new GRID Standalone Infrastructure on a previously installed Oracle 11g database.
    It runs all fine but when prompts to run the root.sh script it does not allow to proceed as it prompts to overwrite the existing path for /usr/bin/local
    well, I google'd and tried with overwrite : Y . It prompted to run the script but it failed ...
    Could you please help me on this ..
    [root@asm ~]# /u01/app/11.2.0/grid/root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
        ORACLE_OWNER= oracle
        ORACLE_HOME=  /u01/app/11.2.0/grid
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: y
       Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: y
       Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: y
       Copying coraenv to /usr/local/bin ...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
    /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
    [root@asm ~]# /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/                              crs/install/roothas.pl
    2015-03-18 01:42:25: Checking for super user privileges
    2015-03-18 01:42:25: User has super user privileges
    2015-03-18 01:42:25: Parsing the host name
    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
    Creating trace directory
    LOCAL ADD MODE
    Creating OCR keys for user 'oracle', privgrp 'oinstall'..
    Operation successful.
    CRS-4664: Node asm successfully pinned.
    Adding daemon to inittab
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting
    acfsroot: ACFS-9320: Missing advmutil.
    acfsroot: ACFS-9320: Missing advmutil.bin.
    acfsroot: ACFS-9320: Missing fsck.acfs.
    acfsroot: ACFS-9320: Missing fsck.acfs.bin.
    acfsroot: ACFS-9320: Missing mkfs.acfs.
    acfsroot: ACFS-9320: Missing mkfs.acfs.bin.
    acfsroot: ACFS-9320: Missing mount.acfs.
    acfsroot: ACFS-9320: Missing mount.acfs.bin.
    acfsroot: ACFS-9320: Missing acfsdbg.
    acfsroot: ACFS-9320: Missing acfsdbg.bin.
    acfsroot: ACFS-9320: Missing acfsutil.
    acfsroot: ACFS-9320: Missing acfsutil.bin.
    acfsroot: ACFS-9301: ADVM/ACFS installation can not proceed:
    acfsroot: ACFS-9302: No installation files found at /u01/app/11.2.0/grid/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5xen-x86_64/bin.
    asm     2015/03/18 01:43:06     /u01/app/11.2.0/grid/cdata/asm/backup_20150318_014306.olr
    Successfully configured Oracle Grid Infrastructure for a Standalone Server
    when I checked for ASM instance its not running ... but just ohasd service and nothing else ..
    [root@asm grid]# ps -ef | grep pmon
    oracle    5831     1  0 01:15 ?        00:00:01 ora_pmon_db11g1
    root     12625  8794  0 02:30 pts/2    00:00:00 grep pmon
    [root@asm grid]#
    [root@asm grid]#
    [root@asm grid]# ps -ef | grep d.bin
    oracle   12643     1  5 02:30 ?        00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
    root     12715  8794  0 02:30 pts/2    00:00:00 grep d.bin
    [root@asm grid]#
    Could you please help .

    hi,
    The issue not with /usr/bin/local.  When you excute root.sh, it will try configure the ASM with New GRID HOME. Issue started, whent tried to start
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting <<=================================================================
    acfsroot: ACFS-9320: Missing advmutil.
    Please let us know the below details
    ==> Acfs is configured the servers??
         ==>acfsutil registry
                   acfsutil info fs output.
    ==> With out ASM instance , How the database, CRS STarted ???
    ==> Please try stop and start the crs.
    ==> crsctl query crs activeversion output
    Regards
    Krishnan

  • Firefox is taking a long time to open the first time I click on it and also a dialouge box comes up stating firefox is already running, but is not responding, you must close existing firefox process? What is going on?

    After I start my computer in the morning, I go to my email, then I click on firefox, with google as my homepage, it takes a long time for firefox to show up on the computer. It says it is connecting, then when I close firefox, and go to reopen it again, a dialog box opens up that says firefox is already running and I must close existing firefox process first. I have not run into this problem before.

    * The first time you start up any application after turning on your computer is called a cold start, which is why Firefox takes a while to load right away. (I've noticed that future versions of Firefox start up faster on a cold start then Firefox 5.0.1.) Also, a lower amount of RAM could be slowing its start-up down since Firefox is kind of memory hungry.
    * As for the second part of your question, press ctrl,Alt, and the delete keys on your keyboard. The Windows Task Manager should start. Go to the processes tab and look for 'firefox.exe'. Right click on the firefox.exe and click 'End Process'. Hit Yes and wait for a minute.
    * Then opening Firefox again.
    Hopefully this helped somewhat!

Maybe you are looking for