How do you update an .SWF file with Javascript

Hello - I have this Flash map that I've created. It uses
javascript calls from within Flash to swap out hidden DIVS when a
user clicks on a county. When the user clicks on the zip code
region of that map, a javascript triggers the check box.
What I need to do now is to have a way that when a user
unclicks the check box, the zip code region in the map will be
unhighlighted. Essentially, I need to have javascript tell a movie
clip within the .SWF file to goto a certain frame and stop.
I've never done this before, so I'm seeking someone's wisdom
on how to proceed with this.
For a visual on what I'm describing, the file can be viewed
here:
http://pixegen.com/sandbox/map.html

use the flash'es externalinterface class for two way
communication between js and actionscript.

Similar Messages

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • How to place a Flash swf file with a movie FLV file embedded in DW

         My hair is getting shorter by the hour or maybe missing.  I have created a SWF file with Flash 8 that has an embedded FLV file that was created from a MP4 file.   The SWF file works perfectly in FLASH including my Flash nav buttons, and the movie with soundtrack and the buttons for control of volume and start stop.  Now I am ready to place it on the web using DW to make the html page.  What happens when I test the page on FireFox or IE is the background loads, the buttons load but do not work properly anymore but worse than that:  The slide show and the control buttons do not even show up. 
         I am also having trouble defining my site locally.  I select new site and tell it where every thing is but no luck. All in the same directory, right now I have a image directory but I have not used them on the page as the only image is a jpg and flv file and they are embedded in the swf file.
         I know this is 2 different programs but the Flash files need to be placed in a HTML file to be uploaded, and I have to text them first.
    HELP
    Randy

    from the Premiere Pro Help section about importing SWF files:
    " Interactive content and scripted animation are not retained. Animation defined by keyframes in the main, top-level movie is retained."

  • How do you update your Ipod touch with out losing all my apps, music, movies, and pics?

    How do I update my ipod touch with out losing all my apps,music,pics ect?

    Just do the update on your syncing computer. All the items should be in your iTunes library or, for synced photos, on the computer.  The items will be synced back to the iPod during a latter stage of the update.

  • Does anyone know how to load a skin . swf file with video to dreamweaver

    I have input the video into flash cs3 and then used the
    properties section for adding the video in the source section. I
    then put the skin with the first drop down. I saved and just put it
    in dreamweaver however does not work.. I was told the skin may not
    have be sent automatically. How do we do this. Get the skin . swf
    file to go with the video or get them both into dreamweaver. I does
    not show up on my site.
    Site. www.tesoromp3.com
    thank phol

    I haven't seen too many questions like this on this forum.  Did you also try the photoshop forums?

  • Help!! How do you build the SWF files?

    Hi, I since I am new to Flex & Flex Builder2, I have
    tried to recreate an empty swf file, similar to the sample file
    "EmptySwf.swf"
    However, when I replace the default EmptySwf.swf with mine, I
    keep getting: TypeError: Error #1034: Type Coercion failed: cannot
    convert flash.display::Sprite@fda2a81 to mx.core.IUIComponent.
    Steps to reproduce:
    i) I am using Flex Builder 2.0.143459
    ii) in the mxml file created when choosing 'Flex Project', I
    add the FAbridge information as instructed
    <fab:FABridge xmlns:fab="bridge.*" />
    (I have also tried using <bridge:FABridge
    xmlns:bridge="bridge.*" id="bridgeInst" /> )
    iii) Select BuildAll and then copy to the samples folder
    (overwriting the original).
    iv) The error occurs in the browser.
    What gives?
    The FA Bridge is supposed to be an easy 'learning curve' to
    get into Flex.
    This is quickly pushing me away!!!!!

    Thanks for the prompt reply. Obviously you guys are watching
    this forum keenly.
    For those others that are new to Flex, I found that creating
    an
    ActionScript Project in Flex builder to be the way to create
    a 'blank' swf file that works.
    Note:
    - you'll also need to add a library reference:
    ${FRAMEWORKS}\libs\framework.swc
    - you'll still need to add the FABridge reference:
    x:\somepath\\FABridge\src
    Then, make your main actionscript file look like EmptySwf.as
    as shipped with the samples.

  • How do you protect the .swf files ?

    Do you protect your flex files from being decompiled?
    Is there any flex techiques for more security? What about HP SWFScan?
    All opinions wellcome....

    There are several different options... each with varying degrees of security, technical complexity, and cost. Entry level protection usually involves some kind of obfuscation which makes your code difficult to read / re-use - but not impossible. If this isn't enough you'll want to look into swf encryption... which raises the bar significantly. The last item worth mentioning is loading a swf from a protected source. You could also improve this last approach by loading your swf from _inside_ another swf. Here are some links to get your started.
    Amayeta SWF Encrypt 6.0
    http://www.amayeta.com/
    irrFuscator ActionScript 3 Obfuscator
    http://www.ambiera.com/irrfuscator/index.html
    Security Through Obscurity: can you hide swf files on your website?
    http://www.quilix.com/node/31
    Cheers,
    Rick Winscot
    www.quilix.com

  • How could you open, download  .swf file on ipad?

    I 'd like to open a swf. file on ipad? How can I do?
    Do I download an app? Which ones?
    My file is a interactive magazine!!
    Thanks
    PS: I'm french, so please could you explain me in cool english!

    If you can convert a .swf file to PDF, you would be able to open it in iBooks.
    Apparently those converters do exist.
    Google or similar are your friends.
    Was that English cool enough for you? 

  • How can you make Automator see files with no extensions

    I'm trying to create a workflow where Automator would have the Finder find Photoshop or TIFF files even if they don't have file extensions. If I choose Kind>Image, it gives me everything under the sun including every image from web sites I've visited during the period specified. If I use a file extension criteria, it misses any files of that type that don't have file extensions. I thought since file extensions aren't required in OS X that Automator would be able to tell even if the file extension is hidden.
    Any suggestions other than go back and add extensions to all the files?
    Thanks.

    taylor.henderson wrote:
    You kind of contradict yourself in your question.
    If a file does not have a file extension in its name then in general your computer (including automator) has no idea what type of file it is or what you want to open it with.
    I guess I didn't make myself clear. What I meant was that the file extensions are not visible. I'm not sure you can even create a file that doesn't have some associated extension. They're always either hidden or visible as far as I know. So I'm talking about visible file extension suffixes. And when they're hidden, the computer DOES know what kind of file it is. Since that is the case, I'm wondering if there's a way for Automator to also know even if a file extension isn't visible.
    If however "the file extension is hidden" as you say at the end of your post then I take this to mean your files are named with .extension suffixes and you merely have finder set to not display extensions in which case you can still treat the files as belonging to a certain format.
    That's exactly it.
    I've been using Macs since 1984, and never got into the habit of using file extensions (suffixes) to the names when I switched to OS X. Now I find, though, that in Automator, it doesn't find files when the extensions are hidden. The Finder still recognizes file types even though the method it does so has changed. What I wanted to know is if there is any Automator action that would be able to find files of a certain type even if the extensions were hidden.
    I'm not looking for a way to create file extensions from scratch or get into resource code. I'm just trying to find a way to work with the files I already have, that already have associations with programs and have associated file type extensions even though the suffixes are hidden.
    So basically is there a way to do it or not without renaming all my files to make extensions visible? If there is, I'll use it. If not, I'll have to find a method of batch changing all the files.
    Thanks.

  • How do you play a swf file from the desktop

    I have created a swf file using flash. It can be downloaded
    onto the desktop. It is zipped. When unzipped it is called
    yadayada.swf. It does not get associated to the flash player or the
    shockwave flash player which are both installed. So if i double
    click on it it won't play.
    What do I have to do to make it play from the desktop in its
    plain swf file format. I want people to be able to download it onto
    their desktop for both Mac and PC users. I published it as a
    projector .exe file but mac users cant run it.
    What should be my next step?
    I have installed Flash on my development box so this isnt an
    issue but it is for my test computer that doesnt have flash
    installed.

    HI
    mm 2 things you can do.
    1. Create a html page that loads this SWF file, This will
    work on both OS's.
    2. Create a Projector file for PC and HQX for the Mac. You
    cannot have one
    file todo both.
    Hope this helps.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    "This has been one of the most impressive and thoroughly
    pleasant
    experiences of customer support I have ever come across -
    astounding!"
    Director - hedgeapple

  • How do you create a jar file with txt and classes?

    Hey, I'm trying to create code to create a jar file with a text file, but I can't figure out how to add the text file. Here is what I have so far:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
            }It creates the .jar file with the correct manifest but I can't get it to write the test.txt or anything else into the jar file.
    -Gandolf
    Edited by: GanMatt on Jun 18, 2009 8:18 AM
    Edited by: GanMatt on Jun 18, 2009 8:19 AM

    Alright, my question has changed. Here's the code:
    try {
                // Name of jar file to write
                String archiveFile = "test.jar";
                Manifest jman = new Manifest();
                try {
                    // Create a manifest from a file
                    //InputStream fis = new FileInputStream("manifestfile");
                    //Manifest manifest = new Manifest(fis);
                    // Construct a string version of a manifest
                    StringBuffer sbuf = new StringBuffer();
                    sbuf.append("Manifest-Version: 1.0\n");
                    sbuf.append("Ant-Version: Apache Ant 1.7.1\n");
                    sbuf.append("Created-By: 1.5.0_19-137 (Apple Inc.)\n");
                    sbuf.append("Main-Class: Main\n");
                    sbuf.append("Class-Path: lib/swing-layout-1.0.3.jar\n");
                    sbuf.append("X-COMMENT: Main-Class will be added automatically by build\n");
                    // Convert the string to a input stream
                    InputStream is = new ByteArrayInputStream(sbuf.toString().getBytes("UTF-8"));
                    // Create the manifest
                    jman = new Manifest(is);
                } catch (IOException e) {
                FileOutputStream stream = new FileOutputStream(archiveFile, true);// archive file is jar file name
                JarOutputStream out = new JarOutputStream(stream, jman);
                out.putNextEntry(new JarEntry("test.txt"));
                out.write("Hi".getBytes());
                out.flush();
                out.closeEntry();
                out.close();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this,ex.toString(),"BUG!",JOptionPane.INFORMATION_MESSAGE);
            }It creates the jar file with the txt file inside it, but I can't write "Hi" inside of the text file. Any ideas?
    -Gandolf

  • How do you find a deleted file with doing a recovery? Windows 8.1

    I have a new 8.1 Windows laptop and inadvertantly deleted a document, how can I retrieve it?

    Have you checked in the Recycle Bin?
    You can also try File History:
    http://windows.microsoft.com/en-us/windows-8/how-use-file-history
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • TS3694 how do you update the firmware file on the iphone 4? says it wont update because firmware is not compatible

    iphone update is saying firmware is not compatible, anybody know how to update firmware

    Pretty sure I just downloaded the .exe files to the SD card (I have a directory called "drivers" there & ran from Windows, no need to boot from anything else. Didn't even need to use Safe Boot. The files do need an .exe extension IE someimes downloads as _exe. No idea why but would just need to rename if download has the underscore and not the period. The you can run them.
    Was so easy I really did not think about it. One of the Intel Platform drives does say "requires 1.60 update" so that is the one you need. Do the 1.60, reboot, and then the Intel update.
    Key point is the release note on the Intel Platform Installer
    "Release Notes
    1.Please install the  Windows BIOS version 1.60 or higher for Encore WT8-A (PDW09x) before installing this Intel Platform Installer update." note this says "BIOS" and not "USB BIOS" which is a smaller file.

  • How do you update Mackie Logic control with logic pro 7?

    I moved my setup to a new location and now when I boot up my logic control its just a blue screen. Ive found its firmware has been blanked. I did some research and it seems emagic used to send users an old .mid file to fix it, but that was long ago. Now all i have is a 1.02 from Mackie, but every time i go to play the song it says error code 1. Does anyone know how to fix this? I think I turned off MTC and the midi clock, but still no go. Does anyone know how I can correct this within Logic pro 7? Any help would be appreciated! Ive never had to do anything with logic control before this, but turn it on!

    I figured it out! I had to reset midi drivers in Logic, then a unitor tab came up that was NOT previously there (?) under midi settings and from there i was able to turn off VTC/LTC which was causing the error code.

  • How to use elements in .css file with javascript in the jsp

    I have a jsp in which i need to show some links with the background colour.The links depends on certain conditions which is known.But the requirement is that the background color should be grey and white alternatively. I could have hardcoded the background color with the link. But the problem is that all the links are not visible to all users. The background color is defined in the .css file. I need to check the background color for the previous link. I am declaring a boolean within a jsp and then verifying the value of that boolean( in the javascript within the same jsp) so that i could know the bckground color for previous link.but i am not able to use the element in the .css element in that javascript which is having if-else loop.It's showing an error when i tried doing this. So can some one help me out how can this be done.

    Hi Shweta,
    Refer this [wiki|https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-TableDisplayinSAPScript]
    Regards,
    Sravanthi

Maybe you are looking for

  • Pring VALUE field as blank, if it's worth is 0.00

    Hello, I have value field (DATA: V_Net_Value TYPE KONV-NETWR) in my ALV grid display report. When i dont have any value, am getting 0.00 as output in my ALV report, but, user would like to see it as blank/nothing. Because of some reasons, i can not u

  • Lion 10.7.4 on 27" mid 2011 iMac.

    Problems with Shut Down, won't turn computer off, just goes to a white screen. Have to hold power button to shut off.

  • REG:ALV Variants

    Hi all, I am working on an ALV List display.in the output If you select the magnifying glass and display item detail, or change the display variant, the header information on the report (User Name and Report Name) repeat themselves. How can i get the

  • Question about saving calendar and contatcs

    Good Morning to all , I have a question about how to transfer the calendar and contatcs files to the new outlook profile after a imap migration. So what is the best way to transfer this kind of data before the imap migration for example to prep 70 ma

  • Updated QT, now Player doesn't work

    Hi everybody, I just updated a lot of things (QT included) via software update. Now, all of my movie files play insanely slowly / very choppy in the player. Completely unwatchable!!! Any advice? Here are my specifics: Quicktime Player version 7.5 (14