[as2]How to make function to save screenshot and save moment

im using Adobe flash and action script 2 to make my final project application (my project is game).
on last step i have a problem.
i make 2 button..
first button : i want to use first button to save screenshot in certain parts  , like (x, y, w ,h)
second button : i want to use second button as button to save game moment.. how to make this..

1. google:  as2 jpegencoder
2. google: sharedobject as2

Similar Messages

  • How to make function: line amount total and final colum total at the bottom (Acrobat pro 9)?

    The form is like this:
    col 1
    col 2
    col 3
    col 4
    col 5
    Row 1
    amount
    amount
    amount
    line total
    Row 2
    amount
    amount
    amount
    line total
    Row 3
    amount
    amount
    amount
    line total
    Row 4
    amount
    amount
    amount
    line total
    Row 5
    colum total
    colum total
    colum total
    colum total
    The problem is that even though the calculation seems to be right, the final total, colum totals and some of the line totals don't update. The sum remains zero.
    Could there be a wrong tab order? Could somebody tell me the right order? I've tried several variations, but I just can't get it work . Could somebody help me please?
    Thanks in advance!

    It's most likely an incorrect field calculation order, which is not at all related to the tab order. In case you don't know how to set it, select "Forms > Add or Edit Fields" to go into form editing mode, and then select "Forms > Edit > Set Field Calculation Order".
    Arrange the order so it makes sense, which looks like it should be:
    col 2 total
    col 3 total
    col 4 total
    Row 1 total
    Row 2 total
    Row 3 total
    Row 4 total
    Row 5 total
    Other arrangements might be just a correct, but it's important that the row totals are in that order. You should also check it again when you have the form ready to distribute to make sure it hasn't changed as you've done further editing.

  • Take screenshot and saves the image to a PNG file

    Hello,
    How can I take screenshot and save the image to a PNG file?
    thanks,
    Avivit.
    Solved!
    Go to Solution.

    this is a quite reproducible problem. Some more clarification on my part might help:
    I have a loop that contains, among other this, (1) a sub-VI that prints-screen and saves as a png and (2) a sub-VI that emails me the png file as an attachment. The 1st sub-VI simply uses the user32.dll to simulate a print-screen key stroke, calls clipbpard get image, and then formats and saves the image to a png file using the built-in VI write-to-png. This loop should update this same png file, because the path does not change. However, I've noticed that while the loop is running the png file does not update. It simply keeps sending the 1st image it took. The image updates if the VI stops and is run again. I assumed the problem was either with the clipboard not updating or the file not writing.
    I think the png file remains open while the main VI (i.e. this loop) runs because I cannot delete the file while the VI is running, only once it stops or is quit. Windows gives me an error that the file is currently in use by labview. Therefore, I think the file is not updated because it remains open.
    I've attached the print screen VI. Feel free to stick it in a loop and give it a try if you don't spot something obviously wrong. I did not include the main-VI that I actually use since it contains a lot of instrument I/O, which would prevent someone testing the VI.
    Attachments:
    PrintScreen.vi ‏18 KB

  • How to make a button to stop and run a for loop?

    How to make a button to stop and run a for loop?  and if it is stopped it shall start from where i t stopped.

    Your VI has some very fundamental flaws.
    The start/stop button is outside the FOR loop, thus it will NOT get read during execution of the FOR loop, but only before the FOR loop starts. Think dataflow!
    Thus the terminal of the start/stop button belongs inside the FOR loop.
    Your FOR loop iterates 20x, which probably takes about a nanosecond. You will NOT be fast enough to reliably press the start/stop button during a specific iteration of the FOR loop.
    Your code does not "stop and run" a FOR loop (sic). The loop always spins, but executes an empty case when "Stopped". I guess that's what you actually want?
    Once you solve (2), the x indicator will contain a random value whenever you "stop".
    As soon as the 20 iterations complete, the outer while loop spin an things start over, another nanosecond later.
    Place e.g. a 500ms wait inside the FOR loop to solve this.
    Don't place terminals of indicators on top of formula nodes.
    Your formula does not produce any output, so really has no purpose.
    Use a real "stop" button to terminate the while loop (mechanical action: latch when released). Right now you are using a plain switch, which does not reset to false before the next run. This means that you need to manually reset it before running the program again.
    It is oftern useful to operate the VI in execution highlighting mode. You will immediately see that your button does not get read during execution of the FOR loop. Try it!
    LabVIEW Champion . Do more with less code and in less time .

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How toggle among "Don't Save", "Cancel", and "Save" buttons with keyboard?

    When a dialog box comes up, how do I toggle between, like, "Don't Save", "Cancel", and "Save" via my keyboard? I.e. I don't want to have to click with the mouse if different than the highlighted choice.
    Thanks.

    HI,
    Try here: http://forums.macworld.com/message/392463
    Carolyn

  • How to make Functional area to be mandotory in KS01

    Hi all,
    My requirement is to make the Functional area field in Transaction KS01,KS02, KS03 to be mandotory.
    are there any SPRO settings for that...?
    Or Is there any Exit ?
    Thanks in advance.
    Regards,
    Amruta

    Hi,
    There is no SPRO setting to make functional area mandatory.
    But you can use validation functionality to validate the master data before you save.
    This may Help
    Regards
    Shantanu

  • How do i take an iphoto slideshow and save it to my downloads?

    How do i take a slideshow with music i have created and Make it download or save in a file to be used for other purposes?  Such as You tube, Facebook, or make it to a dvd.  I made it for my Mothers funeral and had it played instead of haveing someone speak.  I would like to be able to copy it and make dvds for my five sisters, and family members, and close friends, who would like a copy. for when they miss her.   Since its only on my computer i cannot share it with them   Any Info would be greatly appreciated !!!  :-)  Thanks for all the help.

    Click on the Exort button at the bottom of the slideshow window,
    select the size you want in the Export window,
    and save it to the Desktop or wherever you need it.
    OT

  • How to add My Documents to Open and Save as

    Hi,
    How can I add My Documents to the list of places under File ->"Open" and "Save as" in Office 2013 applications?
    Users in my organization are truly frustrated by having to click on "Computer" and then choosing the "My Documents" folder every time they need to access their My Documents.  Any suggestions?
    Thanks!
    -sul.

    Can you make a screen capture, or diagram showing exactly what you want to do?  I just can't picture it.
    If what you want to do is place it directly under the Open command in the File menu it would not be easy.  The only slight possibility I can think of would be to create custom ribbon XML code to modify the "Backstage Pane".  I
    How do I change Backstage(File) view in Excel 2010
    Customize the Office User Interface in Office 2010
    http://technet.microsoft.com/en-us/library/ff468686.aspx
    Updated: September 9, 2010
    This article lists resources that will help you customize the Microsoft Office Fluent user interface (UI) in Microsoft Office 2010 applications.
    Microsoft introduced the ribbon extensibility model in the 2007 Microsoft Office system as part of the Office Fluent UI. This was a new way to customize the user interface and create custom tabs and groups that
    were specific to users’ needs. Office 2010 extends the span of the UI extensibility platform by providing support for customization of the new Microsoft Office Backstage view.
    Customize the Backstage view
    In Office 2010, the Microsoft Office button is replaced by the
    File tab. The File tab brings you to the Backstage view. The Backstage view is customizable and lets organizations customize the UI to suit their needs.
    For information about how to use and customize the Backstage view, see the following resources:
    Introduction to the Office 2010 Backstage View for Developers (http://go.microsoft.com/fwlink/?LinkId=182189
     http://msdn.microsoft.com/en-us/library/ee691833%28v=office.14%29.aspx
    Customizing the Office 2010 Backstage View for Developers (http://go.microsoft.com/fwlink/?LinkId=184245
    Change the Ribbon in Excel 2007 or Excel 2010
    http://www.rondebruin.nl/ribbon.htm
    Ron de Bruin (last updated 6-Oct-2010
    <snip >
    More RibbonX examples
    You can download 8 Excel files here with basic RibbonX examples for Excel 2007 and Excel 2010.
    Download Example Excel files Last Updated : 27-June-2010
    Add custom group in built-in tab.xlsm
    Add menu and buttons to Backstage or Office Button.xlsm
    </snip>
    I haven't seen any documentation about customizing the 2013 backstage.

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

  • How can you create a voice recording and save it as an mp3?

    I want to create a voice recording and save it as an mp3.  How can I do that on the MAC?  Right now I can only think of recording the voice in iMovie, but it does not have a choice to save as an mp3.

    Rather that iMovie, you may want to check our Audacity.
    It's a free, open-source audio editor and recorder.
    You can easily save a recording as an MP3.
    http://audacity.sourceforge.net/
    Matt

  • How to search files, get cells, loop, and save

    Howdy Folks, I'm another Applescript newbie in over my head. I'm working on a script to copy xl files into a master xl file. the files is a roster with student and class information. the number of students will vary. WIth help from a friend I have it about 80% where I want it. Need help with the rest. I hope its okay to ask multiple question about the script if not i do apoligize.
    when the script runs it asks for the location of the file. the files are titled Houston_Sam_DWI_Jan.xlsx. I have several files in a master folder that i am trying to get data from, but the script goes through one at a time.
    I know i need to loop it somehow to go through all of the files containing "DWI" in the title, I just don't know how to do it.
    the script is set up to get a range of cells, but there are other individual cells i need to copy like dates(C7), Instructor(H7), and location(C11). How do i get these individual cells and paste them to the master doc: Location(E7), Dates (F7), Instructor(G7) and have them repeat down the column as the number of students from each of the classes populates the list.
    finally, i have the master file name as annual report, the script does update the anual report file, but when it goes to save it creates a file named "sheet 1". i just want it to update the annual report file and save all changes.
    here is the script i am currently working with:
    set master_path to alias "Users:bs:Desktop:master:Annual Report.xlsx"
    get_all_files(master_path)
    on get_all_files(master_path)
              set example_path to choose file with prompt "Find an example file to work with"
    transfer_data(example_path, master_path)
    end get_all_files
    on transfer_data(child_path, master_path)
              tell application "Microsoft Excel"
                        set child_book to (open workbook workbook file name (child_path as string))
                        set child_doc to worksheet 1 of child_book
                        set master to worksheet 1 of (open workbook workbook file name (master_path as string))
                        set num to 15 --All lists start at index 12 or later, I'm putting 10 to be safe
                        set students to {}
                        tell child_doc --grab values from child document
                                  repeat until (value of cell (("A" & num) as string)) is 1
                                            set num to num + 1
                                  end repeat
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set end of students to {name:(value of cell (("B" & num) as string)), driver_id:(value of cell (("C" & num) as string)), DOB:(value of cell (("D" & num) as string)), pre_test:(value of cell (("J" & num) as string)), post_test:(value of cell (("K" & num) as string)), cert_id:(value of cell (("L" & num) as string))}
                                            set num to num + 1
                                  end repeat
                        end tell
                        tell master
                                  set num to 7
                                  log (value of cell (("B" & num) as string))
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set num to num + 1
                                  end repeat
                                  repeat with student in students
                                            set value of cell (("B" & num) as string) to name of student
                                            set value of cell (("C" & num) as string) to driver_id of student
                                            set value of cell (("D" & num) as string) to DOB of student
                                            set value of cell (("H" & num) as string) to pre_test of student
                                            set value of cell (("I" & num) as string) to post_test of student
                                            set value of cell (("J" & num) as string) to cert_id of student
                                            set num to num + 1
                                  end repeat
      save master
                        end tell
      save child_book
      close child_book
      save active workbook in master_path
      close active workbook
              end tell
    end transfer_data
    Any help would be greatly appreciated.

    That did it. had to tinker with it but it's doing what i want. Thanks for all of the help. here is the final code
    tell application "Finder"
              set master_path to alias "Users:bs:Desktop:master:Annual Report.xlsx"
              set filesWithDWI to get every file of folder ((path to desktop folder) & "master" as string) whose name contains "DWI"
              repeat with f in filesWithDWI
                        my transfer_data(f, master_path)
              end repeat
    end tell
    on processfile(f)
    display dialog f as string
    end processfile
    on transfer_data(child_path, master_path)
              tell application "Microsoft Excel"
                        set child_book to (open workbook workbook file name (child_path as string))
                        set child_doc to worksheet 1 of child_book
                        set master to worksheet "sheet 1" of (open workbook workbook file name (master_path as string))
                        set num to 15 --All lists start at index 12 or later, I'm putting 10 to be safe
                        set students to {}
                        tell child_doc --grab values from child document
                                  repeat until (value of cell (("A" & num) as string)) is 1
                                            set num to num + 1
                                  end repeat
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set end of students to {namevalue of cell (("B" & num) as string)), driver_idvalue of cell (("C" & num) as string)), DOBvalue of cell (("D" & num) as string)), pre_testvalue of cell (("J" & num) as string)), post_testvalue of cell (("K" & num) as string)), cert_idvalue of cell (("L" & num) as string))}
                                            set num to num + 1
                                  end repeat
                                  set startdate to range "C7"
                                  set classlocation to range "C11"
                                  set instructor to range "H7"
                        end tell
                        tell master
                                  set num to 7
                                  log (value of cell (("B" & num) as string))
                                  repeat until (value of cell (("B" & num) as string)) is ""
                                            set num to num + 1
                                  end repeat
                                  repeat with student in students
                                            set value of cell (("B" & num) as string) to name of student
                                            set value of cell (("C" & num) as string) to driver_id of student
                                            set value of cell (("D" & num) as string) to DOB of student
                                            set value of cell (("H" & num) as string) to pre_test of student
                                            set value of cell (("I" & num) as string) to post_test of student
                                            set value of cell (("J" & num) as string) to cert_id of student
                                            set value of cell (("f" & num) as string) to startdate
                                            set value of cell (("E" & num) as string) to classlocation
                                            set value of cell (("G" & num) as string) to instructor
                                            set num to num + 1
                                  end repeat
                        end tell
      save child_book
      close child_book
      save active workbook in master_path
      close active workbook
              end tell
    end transfer_data

  • HT3775 How can I open AVI video formats and save them in a more user friendly version?

    I am trying to open and save videos which are apparently saved in AVI format. I can't seem to be able to do either. Anyone has any idea how? Thanks!

    http://perian.org
    Still works though no longer supported.
    http://support.apple.com/kb/dl923
    The "other" version of QuickTime Player.

  • Program to take a screenshot and save it in a file

    Hi Experts,
    I have been asked to write a program that should be executed via an option on the sap-gui menu and that should take a screen shot of the current screen (whatever that is at the time of execution) and save it to a local folder with a default name.
    Any idea of how I could do this?  How do I take a screen shot of the current screen? 
    Many thanks,
    Brodo

    Hi Gustavo,
    Could you be more specific?  Which utility should I use?  I am not aware of any...
    Many thanks,
    Brodo

  • How to make powermac G4 400GHz faster and run smoother.

    I really want to make my Power Mac G4 much faster and run smoother, can someone help me do this.
    P.S. I'm running mac OS X 10.4.11 and I'm trying to install mac OS X 10.6 snow leopard will upgrading my OS help improve performance.

    dragon,
    First thing to do, and the cheapest, is more RAM. It's not cool to recommend retailers, etc....but you really want to get the right stuff. Macs can be finicky about RAM. You can get the right stuff in many places...IF you know what you're doing. That being said, most 'pros' here in Discussions recommend macsales.com (OWC) and crucial.com because you'll get the right stuff at decent prices. Both have memory 'advisors', where you type in your machine type and get recommendations for the correct memory. Do that yourself, even if you're not ready to buy today.
    macsales.com has 512mb for about $30. Crucial wants $60; dunno why; they used to be comparable. One plan, on your limited budge, would be to get one 512mb stick; then save up and buy THE SAME product when you've saved up $30 more. I wouldn't mix. It can be done but you'll save yourself some grief just buying the same sticks from the same place. You'll see a pretty good improvement if you go to 1GB+.
    You'll also see pretty good performance if you limit the number of apps you install, particularly "third party plugins". Keep your Mac lean and mean and it'll perform well for years. Be sure to run Permissions Repair EVERY TIME you install an app. I say this because that 60GB HD will fill up pretty fast. Maybe it'd be better just to get the one 512MB stick, giving you 1.5GB RAM. Then, save up for a bigger HDD. You'll need those two upgrades before even thinking of a CPU upgrade.
    Get the free utility Macaroni and let it run daily, weekly, monthly tasks. Read thru other posts here in the 'Using ur PMac G4' and "Exanding ur PMac G4".
    Please come back if you have any more questions. HTH

Maybe you are looking for