Ending Flash Files with Actionscript

Hi there folks,
Unfortunately I'm new to flash so you'll have to forgive this
question,
Q) What is the correct script to end a flash file once it
reaches a specific frame (e.g If you want to end a Flash
presentation when it reaches a certain point!?).
If anyone can help with this, it would be much appreciated!!
:)

Captain Elgy,
> Unfortunately I'm new to flash so you'll have to forgive
> this question,
No worries. :) Every one of us was new at some point.
> Q) What is the correct script to end a flash file once
it
> reaches a specific frame (e.g If you want to end a Flash
> presentation when it reaches a certain point!?).
What do you mean by "end a flash file"? Do you mean stop? If
so, a
stop() action may be all you need -- that will stop the
timeline. Do you
mean quit and close the browser window? If so, you'll be
stepping outside
the realm of Flash, so you'd have to trigger JavaScript to
close the window.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • How to insert a shoutbox and a counter in a flash file with html code?

    How to insert a shoutbox and a counter in a flash file with
    html code?
    Code shout box
    <!-- BEGIN MYSHOUTBOX.COM CODE -->
    <iframe src="
    http://489676.myshoutbox.com/"
    width="152" height="300" frameborder="0"
    allowTransparency="true"></iframe>
    <!-- END MYSHOUTBOX.COM CODE-->
    Code compteur
    <script type="text/javascript" src="
    http://www.123compteur.com/counterskinable01.php?votre_id=268303"></script><noscript><a
    href="
    http://www.123compteur.com"
    target="_blank">compteur</a></noscript>

    thx =D

  • Flash files with right click imported in dreamweaver files

    Flash files created with Captivate which contain rightclick
    functionality are imported to html files created in Dreamweaver. In
    other words, I don't use the html created by Captivate but another
    html file to build up a whole course. But now a couple of those
    flash files contain a right click and obviously I have to adjust
    the dreamweaver file with some of the script that William Heinz has
    created. I am not an HTML expert and I am not 100% confident that I
    can do with just endless try&error. Could anyone give me some
    hints?
    I suppose I need to use the second bit of William's article
    "the more complex requirement".
    When I insert the flash file this is what I get: (This is
    where I am suppose to make the changes????)
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','746','height','591','title','Schedule
    Let
    Me','vspace','5','src','Resources/Sched_LM_skin','quality','high','pluginspage','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','Resources/Sched_LM_skin'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    width="746" height="591" vspace="5" title="Schedule Let Me">
    <param name="movie" value="Resources/Sched_LM_skin.swf"
    />
    <param name="quality" value="high" />
    <embed src="Resources/Sched_LM_skin.swf" width="746"
    height="591" vspace="5" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash"></embed>
    </object></noscript>
    I am not sure what to do with the "<Body
    onload='javascript:init()..... "etc as suggested by William.
    Thanks for any advice on this!!!

    I hope there is one person out there who can help me with
    this issue.
    I have started from scratch and created a blank html with
    dreamweaver and inserted the flash file (with right click
    animation) created with Captivate.
    Then I made the adjustments as per Heinz and also included a
    ID=Captivate1 as the RightClick.js refers to that.
    The main difference between this html file and the html file
    created with Captivate, is that the Captivate one also has
    writedocument bit.
    Anyway, is there anybody in the world who can give me
    atip/hint/suggestion?????

  • How do I get rid of the flashing file with a question mark in it?

    I wanted to start clean on my MacBook Pro osx 10.9.4. So I did the command r and erased what I thought was the right one. I restarted my computer and did the command r again and what came up was internet recovery. It can't find my internet because it's WEP and I don't know to change it to wpa. So I restarted my computer again and I didn't do the command r but just let it load itself to see what would happen and all I get is a flashing file with a question mark. I don't know what to do. Someone please help me.

    Do you get this display?
    If so, you have to select an Internet connection.  Do not expect quick response time in this mode.  All activities in this mode will be lengthy.
    Ciao.

  • Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. Does any one know how I can get it to recover?

    Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. I can hold the option key at start up and choose my network, then Internet recovery shows up with an arrow pointing up. When I click on the arrow Internet recovery fails and all I get is a globe with a triangle on it with an exclamation mark on it, and under that it says
    apple.com/support
          -6002F
    Does any one know how I can fix this without a recovery disc? Thanks

    I just want to add to this, in case someone else searches for this error on Apple Support (google doesnt cover apple support.. how clever is that?)
    I had the same error. And i had a Computer that had worked, with a SSD drive and 16GB upgrade done by the owner himself.
    I tried swapping with a Mechinal Harddrive, no luck.
    Kept the Mechanical drive in, and tried with some other Ram, it worked..
    So for me this error and after reading the other responses can be boiled down to a Harddrive problem or Ram issue.
    It was Ram for me..

  • Importing flash files (with sound!) can it be done?

    Hi!
    I sucessfully importing a flash file but im not sure if the sound has imported with it, does anyone know if I can import a flash file with sounds or do I have to import the sound seperatly?
    Helen

    Helen,
    After Effects can import .SWF files but unfortunately it does not recognize the audio in a .SWF file.
    If it helps, AE can import .FLV files and it WILL recognize the audio in them.
    Relevant Help page:
    "Supported import formats"
    -Troy

  • I've got a 15" white macbook which I bought about 2 years ago. It froze the other day and wouldn't respond so I shut it down. When I turn it on now it comes up with a flashing file with a question mark on it. How can I fix it?

    I've got a 15" white macbook which I bought about 2 years ago. It froze the other day and wouldn't respond so I shut it down. When I turn it on now it comes up with a flashing file with a question mark on it. How can I fix it? I've tried a few things i've seen online but the futhest ive got is to put the start up disk in when you makes it go to a grey screen with an apple logo and the spinning wheel which then stops spinning. Can anybody help?

    That folder with the question mark icon means that the MacBook can't find the boot directory. That can either mean it can't find the hard drive or the Operating System data on the hard drive is somehow corrupted.
    Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Just press the Return key on your keyboard once.It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. When it comes up is your Hard Drive in the list on the left?
    If it is then click on the Mac OS partition of your hard drive in the left handlist. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've clicked on the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions.
    If your hard drive isn’t recognized in Disk Utility then your hard drive is probably dead.

  • How do I save stock footage as flash file with transparent background?

    Hi
    I have some stock footage of smoke on a black background (.mov format) that I would like to convert to a flash file with a transparent background, which I will be overlaying over a PNG image on a webpage.
    I have managed to remove the black background in After Effects using a plugin called UnMult, but when I try to render as a FLV file in AE, even though I check the option to preserve the alpha channel and encode using the On2 VP6 codec, I still get a black background.
    So I am wondering what else to try, whether it be with AE or Flash CS4.  Is there a way of achieving this effect by directly importing the MOV file into Flash CS4 and removing the black background there, or do I have to use AE, and if so, how to achieve the effect I am looking for?
    I would be grateful for any help in getting this together
    Thanks
    Nick

    You can put the video file in a movie clip and change it's
    blending in the properties panel to multiply or screen.
    Emil Georgiev - Flash and Web Design

  • Flash files with audio sound garbled or high pitched

    I have finally clarified the sound problem I reported in this
    forum.
    See below.
    TechSmith
    Camtasia Studio Support
    Flash files with audio sound garbled or high pitched
    Question
    Flash files played in the the newest version of the Flash
    Player sound garbled or have a high-pitched "chipmunk" sound to
    them.
    Answer
    http://techsmith.custhelp.com/cgi-bin/techsmith.cfg/php/enduser/std_adp.php?p_faqid=1250&p _created=1197056770&p_sid=BZo7CNSi&p_accessibility=0&p_redirect=&p_lva=&p_sp=cF9zcmNoPTEmc F9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9MTImcF9wcm9kcz0wJnBfY2F0cz0mcF9wdj0mcF9jdj0mcF9 zZWFyY2hfdHlwZT1hbnN3ZXJzLnNlYXJjaF9ubCZwX3BhZ2U9MSZwX3NlYXJjaF90ZXh0PUZsYXNoIFBsYXllcg**& p_li=&p_topview=1
    Flash files with audio sound garbled or high pitched
    Question
    Flash files played in the the newest version of the Flash
    Player sound garbled or have a high-pitched "chipmunk" sound to
    them.
    Answer
    The latest release of the Flash Player (v9.0.115.0 released
    on 12/03/07)) causes audio to sound garbled and/or high pitched
    like a chipmunk. Our development team is looking into this issue
    and working to find a fix.
    To avoid this problem, you can roll back your Flash Player to
    a previous release. If you have problems installing an older
    release of the Flash Player please review this article and contact
    Adobe for further support.
    At this time, the problem is limited only to SWF files
    produced with the MP3 audio codec. As a workaround, you can produce
    your SWF files with the PCM audio codec or use the FLV format
    instead of SWF.
    Adobe Flash Player Support
    Reinstalling an earlier version of Adobe Flash Player
    Contact Adobe:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402435&sliceId=1
    Safe versions security restrictions when installing Flash
    Player
    Issue
    If you previously installed a later version of Flash Player
    for Internet Explorer, you may be prevented from installing an
    earlier version. For example, if you installed Flash Player
    9.0.47.0 and attempted to install version 9.0.45.0 the installation
    would fail.
    Reason
    This issue is due to registry key settings applied by the
    Flash Player security model. The restriction is to prevent users
    from downgrading Flash Player minor versions. The minor version of
    Flash Player is the third set of numbers in the version name. For
    example, the minor version for Flash Player 9.0.47.0 would be 47.
    If Flash Player 9.0.47.0 was installed and you attempted to install
    9.0.45.0 (minor version 45), the installation would fail.
    Solution
    To resolve this, download the uninstaller for Flash Player
    from "How to uninstall the Adobe Flash Player plug-in and ActiveX
    control" (TechNote tn_14157).
    Select Start.
    Select Run.
    Type cmd
    In the command window, type the following:
    uninstall_flash_player.exe /clean
    This will remove all entries in the system registry and
    resolve this issue.
    Note: The uninstall_flash_player.exe file must be saved to
    the same directory that the command window is in, for example C:\.
    Additional Information
    If you are still having trouble installing Flash Player,
    please see "Troubleshooting Adobe Flash Player installation for
    Windows" (TechNote tn_19166).
    TechNote Details
    Last Update: 08-16-2007
    ID: kb402435
    OS: Windows Vista
    Windows XP
    Browser: Internet Explorer
    Permanent Link:
    http://www.adobe.com/go/kb402435
    Products Affected: Flash Player

    Hi,
    I doubt it's Safari that's changing the settings:
    Why does this happen?
    Some third-party audio applications may change your computer's audio output setting. In fact, if you use the third-party application again after applying the above solution, the issue might occur again.
    No sound from some applications, but system alert sounds play (Mac OS X 10.3, 10.4)
    iMac G5 20" 2GB RAM, Soundsticks, Netgear 814 --->   Mac OS X (10.4.3)  

  • Urgent: Flash CMS with Actionscript 3.0/PHP/MySQL

    Hello everybody. I'm new to this community and I'm actually relatively new to flash and actionscript but I could say I have fair knowledge about them. So anyway, I usually build flash websites the traditional way using timeline animation and scripting. Today I had a job interview and they said they're looking for someone who can develop any web design into a Flash CMS with a back-end office for the client to edit the content without having to edit the FLA file or any code.
    Accordingly, I'd like to know where and how to start. What are the main concepts I should follow/adapt? Are there any good detailed tutorials out there that I could read/watch?
    Any help would be so much appreciated

    The method i showed above does have a front end and a back end. The code i posted above would be part of the image module in the back end for deleting images.
    1. You don't put images and files in the database, you create an uploader that uploads the files (pictures, whatever) onto the server and then writes an entry into the database telling it where the picture is stored, what the name of the file is, what type it is, whatever you need. Then when your website connects to the database and downloads the info and stuffs it into arrays, it iterates through the photo array and downloads the photos as needed using the URL you stored.
    2. Loading into the database is covered with the above tutorial but i'll post my database retrieval code anyway.
    This connects to a database and stuffs each column of a database into an Array. Then if i wanted to actually download the photos i mentioned by the urls just retrieved i'd use:
    3. Some people put them in seperate swfs at password protected URLs because its more secure but you don't necessarily have to.
    flash CMS isn't well covered, i spent a long time looking for tutorials and i definitely didnt find any that worked well. If you're still working through the basics like AS3 tweens, loaders, and loops, then you're going to want to figure those out first. Those are supported well online, though.
    Finally, here's a good example of some flash CMS: http://group94.com/#/flash94/
    Good luck.
    EDIT: Sorry for retracting my code, the client i did it for wasn't happy.

  • Netconnection Debugger not tracing when exporting from Flash 8 with Actionscript 2.0

    Ok, Sorry for the long post, but given my research , I wanted
    to be clear on the problem and what I have done to address it.---
    anyone who has gotten the NetConnection Debugger to work with Flash
    8 and actionscript 2.0 on a PC, your help will be greatly
    appreciated
    When I compile a Flash 8 swf with AS 2.0 the it does not seem
    to import the class properly to utilize the net connection
    debugger.
    I spent a considerable amount of time getting it to work on
    My Mac, but on the PC , none of my calls to the debugger are
    working.
    I have a very simple file that has the following code:
    import mx.remoting.NetServices;
    import mx.remoting.debug.NetDebug;
    NetDebug.initialize();
    NetDebug.trace("I am here")
    I do not get any errors for the imports, and the files are
    where they need to be. ( see the end of the message to see the
    directory structure for both the mac and the pc versions of this)
    When I first installed the remoting components on my
    macintosh, the Net Connection Debugger would not work. I eventually
    took my 2004 Classes and overwrote the mx.remoting.debug folder in
    the
    usr/Library/Application Support/Macromedia/Flash
    8/en/Configuration/Classes/mx/
    then after restarting flash and the debugger.swf.. it worked
    on the mac.
    I have tried the same thing on the PC on three separate
    machines.
    The latest PC is a brand new clean machine.
    These are the steps I have followed:
    I installed Flash 8 professional
    I installed the remoting components
    I created a test file with the code from above
    I opened the debugger
    I exported the file, ............... nothing traced
    I then copied the as Class files from my mac and overwrote
    the files in the classes directory for mx.remoting.debug
    in both these directories.
    c:\Documents and Settings\user\Local Settings\Application
    Data\Macromedia\Flash 8\en\Configuration\Classes\mx\
    and in c:\Program Files\Macromedia\Flash 8\en\First
    Run\Classes\mx\remoting.
    After a restart of flash and the debugger I am still not
    getting a trace out... I am at a loss. I need this to work, and
    someone has to have run into this before.
    Here is a list of the files in mx\remoting directories on the
    Mac and the PC.
    Mac
    Connection.as
    DataGlue.as
    debug //this is the folder
    ----- commands//this is a folder
    ----- events //this is a folder
    ----- connectionMixin.as
    -----GlobalLocalConnection.as
    ----- NetDebug.as
    ----- NetDebugConfig.as
    ----- NetDebugResponseProxy.as
    NetServiceProxy.as
    NetServiceProxyResponder.as
    NetService.as
    Operation.as
    PendingCall.as
    RecordSet.as
    RecordSetIterator.as
    RemotingComponentVersion.as
    RsDataFetcher.as
    RsDataRange.as
    RTMPClientResponse.as
    Service.as
    PC in the Documents and
    Settings...............\classes\mx\remoting
    Connection.as
    DataGlue.as
    debug //this is the folder
    ----- commands//this is a folder
    ----- events //this is a folder
    ----- connectionMixin.as
    -----GlobalLocalConnection.as
    ----- NetDebug.as
    ----- NetDebugConfig.as
    ----- NetDebugResponseProxy.as
    NetServiceProxy.as
    NetServiceProxyResponder.as
    NetService.as
    Operation.as
    PendingCall.as
    RecordSet.as
    RecordSetIterator.as
    RemotingComponentVersion.as
    RsDataFetcher.as
    RsDataRange.as
    RTMPClientResponse.as
    Service.as
    thanks for the help
    allen hujsak

    Thank you for the advice. This is still the error I get even
    with those two components on stage. Do I have to connect them to
    something? I am still trying the same tutorial from
    adobe...www.adobe.com/devnet/flash/articles/delta_packet.html
    Here's the error...
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Error
    opening include file NetServices.as: File not found.
    #include "NetServices.as"
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Error
    opening include file NetDebug.as: File not found.
    #include "NetDebug.as"
    Total ActionScript Errors: 2 Reported Errors: 2
    Please help!!!!!!

  • Is there a way to open a local file not a web file with actionscript 3.0?

    Reason for asking is because I am making a media player in Adobe Flash CS6, and was wondering if there was anyway to make a button to open a local .fla file in a directory with ActionScript 3.0 or if there are any other ways I can achieve this?
    Thanks Casey

    with an air app, check the file class.  otherwise, check the filereference class.

  • Using SWL files with ActionScript 2

    Hi,
    Hopfully this wont get too drown out..I have a cisco DMP-4310g that can use flash files localy on the device i'm tring to find out what type of SWF files can be used. Here is a link to help... refer to the shockwave part  http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmd/user/guide/playlis ts.pdf
    In the document it says the device dont support ActionScript 3 only ActionScript 2. So that bring me to my next question what do I need to create the SWF files this device can play. I'm not too savy with creating the files and thought I would ask couse I'm not too sure I know what I need to create them. 
    Thanks in advance

    The info you cited answers your wondering... you can only use swf's that use Actionscript 2.  You can use any version of Flash greater than Flash MX to do that.  Prior to that version (inclusive) there was no AS2.

  • Flash file with trancparency as dashboard widget

    trancparency only works for pictures on lower layers but not for the
    desktop background
    the picture "Default.png" behind the flash file is partial visible
    but the widget has a 200 x 200 pixel black background,
    areas without pictures on lower layers are black
    <embed src="a.swf" quality="high" width="200" height="200"
    align="right" wmode="transparent"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer" />
    #image { position:absolute; top:0px; left:0px; width:200px;
    height:200px; z-index:1; }
    #flash { position:absolute; top:0px; left:0px; width:200px;
    height:200px; z-index:2; }

    I would guess that Flash is not respecting the alpha layer in your background. Flash does its own rendering, so it's the likely culprit.
    However, you may want to double check with other Dashboard developers. The best places to ask are Apple's own Dashboard listserv (dashboard-dev at lists.apple.com) and the forums at dashboardwidgets.com.
    Good luck!

  • 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

Maybe you are looking for

  • Device Could not be Read or Written to

    So, I have an iPhone 3GS, Windows Vista + iTunes. All, possess the latest updates. After converting some *.avis to a format that can be played by the iPhone I started getting an error in iTunes. At first I transferred 1 file and it worked properly, i

  • What's wrong with my card reader?

    My Macbook pro OSX gave me an "SD card unexpectedly removed" message even though the card didn't come out of the slot. Now, when I put the card in, my computer won't read it. It has always read it in the past. Help??

  • Help, I've got a small CD stuck in my MacBook Pro. How do I get it out?

    My tax guy sent me a tiny CD and, full of doubt, I stuck it in my MacBook Pro, where it remains. How do I get it out without taking apart my machine?

  • Exact String match when calling a recordset

    I have a CategoryID column, and a Cats column. The main catefory for that products is on CategortID, but the in the Cats column is a string of other categories that the item is listed in. The problem is that if the search is for category id 94, and t

  • ML reinstall question

    if i reinstall ML , will i have to download ML again from apple in the form of a big file?