Making a button to reset a flash file

Is it possible to make some kind of clickable object that resets a flash file? Say you're in a game and your character gets killed. By clicking on a button you you're taken back to the start of the flash file and all the variable reset to their starting positions. Basically I just want to make a button that reloads the flash file the same as hitting the reload button on your browser (except that it just reloads the flash file and not the entire web page).

you can use:
yourbutton.onRelease=function(){
loadMovieNum("thisswf.swf",0);

Similar Messages

  • I have 5 different flash files that i am trying to insert all in one file and access them through 5 buttons. please shoot any advice or just the name of the actionscript 2.0. thank you.

    i am doing an assignment for my class and i need to insert all of my 5 different flash files into one and create 5 buttons apply related actionscript 2 in order to play a particular animation. please help me out. thank you.

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or Lighroom or Muse or ???

  • How can I make a flash user interface with buttons to open up and navigate other flash files?

    Hello I would like to make a user interface that will serve as a tool to load and unload other flash materials like a slideshow. I would like to make a kind of slideshow with Flash that opens up other flash files which could be around 10-15 slides (frames) long each. I would want to ask if there is any way to make a link between navigation and other slides easily. And if there are ways, what action codes should I use for this. Thank you very much.

    All you need to do is load a swf into the main swf and target it with whatever controls you intend.  If you are using AS3 then you could use the Loader class to load the swf and then target the Loader.content with your control buttons.

  • Multiple flash files change when a button click using javascript function

    hi.. am new in flsh...
    i want to multiple flash files change when a button click using a javascript

    <script>
    var count=0;
    function mafunct(newSrc){
        alert("hi");
    var path="a"+count+".swf"; 
    flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';         
        flash+='<PARAM NAME=movie VALUE="'+path+'">';         
        flash+='<PARAM NAME="PLAY" VALUE="false">'; 
        flash+='<PARAM NAME="LOOP" VALUE="false">';
        flash+='<PARAM NAME="QUALITY" VALUE="high">';
        flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
        flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
        flash+='</EMBED>';
        flash+='</OBJECT>';    
    count++;
    alert(path+"aa");
    </script>
    <button onclick="mafunct()">next</button>

  • How to control adobe flash files with sliders and buttons

    Hi,
    I am trying to make a front panel for a vehicle completely designed in flash, and control it through labview.  I can load a flash file into an activex container successfully.  I have followed this thread here http://forums.ni.com/ni/board/message?board.id=170​&message.id=351719  and gotten everything working. 
    But my question is, how can I send data to the flash file from labview?  Some examples of things I need to do:  Interpret a CAN signal and have some text appear on the screen, Make buttons flash, etc.
    I understand how to load the swf, Im just not sure how to communicate with it.  One thing to mention is that the front panel for the vehicle will be fully custom coded.  However in the meantime, I am trying to figure out how to control it from labview.  Like if there is a clock.swf out on the net, how can I change the time from labview?  Is there a way to see what parameters are available for changing?
    Thanks in advance

    Hello,
    What specific Active X framework are you using to embed the container? The thread you referenced mentions Shockwave's Active X API, does this set of Active X functions expose methods for object control? 
    Could you elaborate as to the driver behind a fully Flash based front panel embedded within LabVIEW? Is this application inevitably going to be deployed as thin client software? 
    For interaction with custom flash applications aside from Active X, LabVIEW has an integrated Web Services feature to allow data transfer from custom thin client applications to the LabVIEW environment for processing and instrument control. A detailed discussion of the Web Services feature may be found via the links below:
    LabVIEW Web Services FAQ (Detailed)
    http://zone.ni.com/devzone/cda/tut/p/id/7747
    Web Services in LabVIEW (Overview)
    http://zone.ni.com/devzone/cda/tut/p/id/7350
    Please post back any further questions, or information on the system design.
    Cheers!
    Patrick Corcoran
    Application Engineering Specialist | Control
    National Instruments

  • Flash file zooms but buttons don't stay where they should

    I've attached the example files I'm working with.  I have a zooming component that zooms in my flash file by loading it with an .xml file, but the buttons don't stay over the buttons once it gets loaded into the component.  The buttons move off into space.
    Do you see what the issue is?

    I think what is happening is that the whole file is scaling which is somehow messing up the positioning of the buttons.
    Here's what I've done so far:
    - create a movie clip of .swf file toolip and center it.
    - the zoom_test.swf loads in the 2008_19.swf file to be zoomed and panned via the data.xml file
    Since I created a movieclip of the .swf file tooltip, when you open up 2008_19.swf, the tooltip does not rollover the button anymore,
    it is a little further away from the button.
    I'm not sure what you mean by scaling the parent, because with this functionality, the whole file, 2008_19 is being scaled.

  • My iPad screen has gone black.  I have tried resetting it with the sleep and home buttons and it only flashes the apple on the screen for a nano second and then it goes black again.  I can even hear notifications arriving, but I cannot see anything...

    My iPad screen has gone black.  I have tried resetting it with the sleep and home buttons and it only flashes the apple on the screen for a nano second and then it goes black again.  I can even hear notifications arriving, but I cannot see anything...I'd rather not reset it to the factory settings as I have a lot of things I worry about using.  Either way seems to me that the system itself is working since I can hear it working, but its the screen that isn't.  It has not been dropped and has been in a case for years!  Please help!

    When the power is on and I press the home button, I can slide my finger where the slider bar "would be" and it makes the noise as if its "opening" flashes a blue screen then returns black...

  • Linking button from one flash file to a different flash file

    Hi All,
    Wondering if anyone knows how to link buttons in one flash
    file to open a specific scene of an entirely different flash file?
    If it isn't possible to choose a specific scene, is there a way to
    just open a flash file...in the same browser window, but not within
    the flash file...if that makes sense?
    I'm putting this on a website, so additionally, I will need
    to know which file to link it to, the swf, html, or fla.
    Thanks!!

    I would advise against using scenes for your website. You
    would need to create a separate html which would load the second
    swf file within the same browser window.
    This is how you call for it:
    on(release){
    getURL("
    http://www.sitelocation.com/secondswf.html");

  • Making a DVD out of Flash file

    Okay, I have my movie ready to go.  Now, I want to export it to a DVD to play on a computer and/or a DVD player connected to a TV.  How on earth do I do that?  I have a Flash book, have searched google for hours, and I still do not know how to make my Flash file DVD-compatible.  I have the iLife Suite, which includes iDVD and iMovie.  I don't know if I need those at all.
    I know I could export the movie as a Quicktime file, but when I do that, the vector images that I've put animation to look grainy and there are random lines drawn in during the animation.  So I don't want to use Quicktime if I can avoid it.  I want to be able to make my Flash file DVD-friendly and keep the same quality.
    Can someone PLEASE offer some assitance?  I've asked questions on here before and haven't always gotten an answer.  I think that's because I've asked some pretty complicated questions.  This one seems pretty simple, though.  I'm hoping someone can help me.  Thank you in advance!

    AVI files can used many different CODECs to format the image information. Some 'flavors' of AVI files will work in iDVD with no problems - some won't.
    I use VisualHub from http://www.techspansion.com/ to convert MY problem AVI files to DV files for use in iMovie and iDVD.
    Your AVI files may be heavily compressed so be aware that DV files run about 13 GB per hour of content.

  • Can I embed fonts of all Dynamic Text objects in a Flash file?

    Hi there!
    I'm fairly new to Flash, so please bear with me.
    I have created a Flash file which will act as our company's standard presentation / portfolio of all previous projects.  I've pretty much got it running the way I want, but I've just tried it on a few different computers and realised that the fonts aren't embedded.  I've used our corporate font so it needs to look right.  Having read the following documentation (http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000893.html) I now understand how to embed fonts for one dynamic text object at a time.  However, I have a lot of different dynamic text objects in the file and I would dearly love to embed them all in one step!  The same embedding options can be applied to just about all objects, as they're all the same size and font.
    I hope someone can help me.  If you are able to help please spell things out in simple steps!!  I am aware that I probably haven't yet grasped a number of the basics of Flash.
    Thanks in advance,
    Stuart

    Static text doesn't need to be embeded. So I'm not sure what the problem you are having is. The page you linked to is for making an embedded font in your library that can then be exported for actionscript and used by code and style sheets. If you are following the instructions on the page you liked to you only need to do that once. Which shouldn't be too hard.
    That is usually a different problem that having a bunch of different authortime created textfields that need to have characters embedded.
    As far as I know your only hope to change a bunch of authortime/library items is using JSFL. So even if the thing I pointed to isn't exactly what you need you could keep googling a bit or use that as a template.
    JSFL files are just text files so open it in note pad. Look for the line:
    if(it[i].itemType == "movie clip")
    and change it to this:
    if(it[i].itemType == "movie clip" || it[i].itemType=="button")
    Now it does buttons. You give up too easy.

  • Cannot get into mac. I get a white screen and flashing file folder with question mark inside. What can I do?

    2012/13 MacBook Pro froze up, so I did a hard shut down. Now, when I try to start up, it makes 3 unusual beeps, then I get a white screen. After a couple minutes, a flashing file folder with a question mark appears and remains. What is wrong and what can I do to fix it.

    Three beeps usually means a RAM or RAM slots problem. The Question Mark means there is no bootable system found.
    A flashing question mark or globe appears when you start your Mac
    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark or globe appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    a. Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    b. Boot drive's directory has been corrupted - Repair with Disk Utility.
    c. Critical system files are damaged or deleted - Reinstall OS X.
    d. The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Flashing file and question mark symbol

    My Mac is alternating between displaying a flashing file with a question mark and the prohibitory symbol. I tried holding down the option key after restarting but nothing is working. I updated my OSX Lion last night, but I don't know what update  it was. I need this computer working in the next 3 hours. Please help!

    Are you able to boot into Single User Mode?
    Mac OS X: How to start up in single-user or verbose mode
    If so, perform a disk check via the command line:
    Start up your computer in single-user mode to reach the command line.
    Note: If necessary, perform a forced restart as described in the Emergency Troubleshooting Handbook that came with your computer. On desktop computers, you can do this by pressing the reset/interrupt button (if there is one) or holding down the power button for several seconds. On portable computers, simultaneously press the Command-Control-power keys. If your portable computer doesn't restart with this method, you may need to reset the Power Manager.
    At the command-line prompt type:
    /sbin/fsck -fy
    Press Return. fsck will go through five "phases" and then return information about your disk's use and fragmentation. Once it finishes, it'll display this message if no issue is found:
    ** The volume (name_of_volume) appears to be OKIf fsck found issues and has altered, repaired, or fixed anything, it will display this message:
    ***** FILE SYSTEM WAS MODIFIED *****
    Important: If this message appears, repeat the fsck command you typed in step 2 until fsck tells you that your volume appears to be OK (first-pass repairs may uncover additional issues, so this is a normal thing to do).
    When fsck reports that your volume is OK, type reboot at the prompt and then press Return.

  • Safari won't draw my flash files - Firefox will

    I am a graphic designer who purchased software that automatically creates Flipbooks out of my PDFs.
    The end result are files (including Flash files) that are uploaded to my website area and I distibute the flipbook as a weblink.
    I created the flipbook and it works fine on Firefox, but it does not work on Safari. I tried another computer in the office and it does not load on their machine either. I emailed it to a friend and it DID load in his Safari.
    Here is an interesting note: I created a new GUEST account on my computer and it DID load in Safari fine as GUEST. Therefore there is something going on with my Admin account (the only account I use). For this to work, I do not want to go around to the other computers in the office and create GUEST accounts. I am of course, concerned that other end-users will not be able to see this - but for now, I just want to fix my machine so that Safari will load these files.
    Any thoughts?
    I am on 10.7.4 on a MacBookPro 2.66 GHz Intel Core 2 Duo

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Links on Flash Files

    Is there anyway to add links to flash files in Dreamweaver.
    For example - I created a flash file that tranistions through a few
    different images. I placed it on my home page in Dreamweaver and I
    want people to be able to click the flash animation and go to
    another page within my site. Is there anyway to do this within
    Dreamweaver or do I have to place a url link in my Flash
    file?

    Yeah. I see now.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "*mista*" <[email protected]> wrote in
    message
    news:emcht7$6gk$[email protected]..
    >>>It's a big button file the size of the page? With
    a link on it?
    > >>Why not send them back to the parent FLA file
    and have them add the link
    > >>there?
    > Thats what I said too ... or meant to say ...
    > open the parent .fla file, put in a button spanning the
    entire width and
    > height, button having only a "Hit Area" so its
    transparent .... and so
    > on..
    > I guess when I said make a button in flash, it was
    construed as making a
    > flash
    > button ...
    >

  • Linking other movie clips within one flash file

    hey,
    i'm making a flash tutorial for my company. I'm making each
    section into a movie clip. so i'm wondering how to link from one
    movie clip to another.
    ok thanks

    It's not confusing, there's just not enough information about
    what you have designed already to be able to tell you what you can
    do.
    How will the movies be arranged in the Flash timeline?
    If the movies are all going to be within the same Flash file,
    then you will need to have buttons as the links you mention. You
    can create your own so that they appear as text if that's what you
    want.

Maybe you are looking for