Test touch events in SWF file?

I'm sure this is one of those "Oh, press this button in Preferences" type of questions, but I have googled to no avail which makes me think I'm either missing something so simple no one has even bothered saying it or I'm asking the wrong question.
I am trying to write a simple program, just to practice, that will use touch events for an iPad. I don't have a developer account and so am testing the app on my computer. However, it does nothing. Clicking the mouse on the movie clip does nothing. I even copy and pasted someone else's code so that I was sure it wasn't because I got my syntax wrong. Nothing. Is there a way to test touch events on a computer, or do I have to compile the app and send it to an iPad everytime I want to test the app? Is there no AIR simulator that will simulate touch events using a mouse, as there is with XCode?
Thanks
Amber

http://www.republicofcode.com/
Check for the latest tutorials on the right hand side for touch events

Similar Messages

  • OnClick event in swf file stops a WMP movie that is being play

    Hi
    When placed in the same page - onclick event in a swf file
    stops a WMP movie that is being play.
    I've tryied to add another div with ontop positioning. but it
    didn't work.
    I've added a dlear image and it worked but the SWF mouseover
    and mouseclick events disappeared.
    Can someone help me?
    PS - it happens only on IE.
    Thanks.

    Hi Alden,
    I fear your problem might be the file size (system resources,
    actually) of your project. And if that is the case, it will
    adversely affect your end users as well, so best find our
    definitively right away. But let's assume for a minute that the
    file size is
    not causing the problem ...
    Are there any interactive object(s) on the 33rd slide (or
    thereabouts) that might be causing the project to stop - like a
    button, click-box, or text-entry box???
    A 48 slide movie is not (in and of itself) overly large, so
    hopefully you can find some overlooked object that is causing the
    problem...
    .

  • How to disable F1 to F12 keys in Web Browser when SWF file is in focus

    Hi all,
    Im running / loading a swf file in IE. I want to disable the
    function keys ( F1- F12 keys) in IE as I have defined special
    functions for these keys in my swf / flash file.Im using a
    javascript code to do this and the javascript code is working
    correctly.But the problem starts when the swf file is in focus,
    when swf file is in focus and if I press the F3 key the search of
    IE opens, but I have defined a special function in my swf file for
    this key, here the IE is overriding and it's taking the precedence
    in the event handling this is what I want to disable.So that I can
    catch the event in SWF file or get the Key code and run the my
    function defined for the key.
    Thanks.

    apollothethird wrote:
    When testing my applets on a Linux Web site I’m finding that I have to totally exit the browser, then open up a new browser session to see the updates on my applets. Yes. Applets can be horrible for caching. I am surprised that exiting and restarting the browser works. I usually clear the cache in the Java Console.
    ..The refresh button on the browser won’t show the new version of the jar file program. I find this consistent with Firefox, MS Internet Explorer, and Google Chrome.
    Is there some type of browser option that will allow the next jar version to be run without having to exit out of the browser to see it?
    No, but if the Java Console is open, it is pretty easy to force a refresh of the classes.
    As an aside, for a more general solution for your end users, look to launch the app. using [Java Web Start|http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp] . Updates are reliable and automatic.
    Thanks in advance for any comments on this.No worries (in advance).
    Note that my reply would have been sooner, except that I felt compelled to get that matter of the link in your post dealt with, before commenting.

  • Flash CS5.5, SWF file doesn't load TLF text.

    Hiya,
    I just downloaded the trial version of Flash 5.5. I was trying to a tutorial from  Adobe Classroom in a Book: Flash Professional CS5. I was trying to do lesson 7 which is all about TLF text.
    In the tutorial, you insert text that is TLF text. Most of the text doesn't do anything (it's Read-Only). But there is one area that is supposed to be a Mortgage Calcualtor and functions with ActionScript.
    I inserted the ActionScript that makes the Mortgage Calculator text do the proper math. My problem happens when I try to test the movie: the SWF file doesn't display any of the TLF text, and the Output panel gives me the following:
    ReferenceError: Error #1065: Variable TLFTextField is not defined.
    ReferenceError: Error #1065: Variable TCMText is not defined.
    I am confused because there aren't any variables with those names in any of the files of the tutorial, or in the ActionScript I entered. Where is Flash getting those variable names from? O_o
    I even turned the text back into Classic text to see if that helped, but I still get the error. Could this be a glitch with Flash 5.5?
    Thanks for your time.
    Tara

    That file has all the menu items in it.
    A crossdomain file is use as a security measure. Perhaps I see it because I use a webpage on my own server to display your SWF file. Check to see if that's the case with you.
    But I gave it another try.
    I downloaded the menu.swf and the xml file and stored them in a folder. I use a custom webpage and stored that in the same folder.
    Instead of the full URL is simply use the filename.
    <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/ flash/swflash.cab#version=6,0,40,0" border="0"
    width="870" height="800">
    <param name="movie" value="menu.swf">
    <param name="quality" value="High">
    <embed src="menu.swf"
    pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1"
    width="870" height="150"></object>
    That works.
    When I paste the <object> code in the HTML Snippet and use relative URLs to the menu in the folder mentioned above, I noticed that the XMLHorizontalMenu.xml is expected to be in the Pagename_files folder. That folder belongs to the iWeb pages it is embedded in. When I put the xml file there, the menu works.
    You have to check the design of the menu.swf file.
    Otherwise, store all files in a separate folder and use a <iframe> to embed it.

  • Establishing a socket connection between a .swf file and a socket-test program (TCP/IP builder - Windows), in AS3.

    I have an issue with a college project I'm working on.
    Using Actionscript 3, I made a simple .swf program, an animated, interactive smiley, that 'reacts' to number inputs in a input-box.
    For the sake of the project, I now need to make the framework for establishing a socket connection with the smiley .swf, and another program.
    This is where I encounter issues. I have very little knowledge of AS3 programming, so I'm not certain how to establish the connection - what's required code-wise for it, that is.
    To test the connection, I'm attempting to use the "TCP/IP builder" program from windows, which lets me set up a server socket. I need to program the .swf file into a client - to recognize it, connect to it, then be able to receive data (so that the data can then be used to have the smiley 'react' to it - like how it does now with the input-box, only 'automatically' as it gets the data rather than by manual input).
    My attempts at coding it are as follows, using a tutorial (linked HERE):
    //SOCKET STUFF GOES HERE
        var socket:XMLSocket;        
        stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // This one connects to local, port 9001, and applies event listeners
        function doConnect(evt:MouseEvent):void 
        stage.removeEventListener(MouseEvent.CLICK, doConnect); 
        socket = new XMLSocket("127.0.0.1", 9001);   
        socket.addEventListener(Event.CONNECT, onConnect); 
        socket.addEventListener(IOErrorEvent.IO_ERROR, onError); 
    // This traces the connection (lets us see it happened, or failed)
        function onConnect(evt:Event):void 
            trace("Connected"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            socket.addEventListener(DataEvent.DATA, onDataReceived); 
            socket.addEventListener(Event.CLOSE, onSocketClose);             
            stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); 
        function onError(evt:IOErrorEvent):void 
            trace("Connect failed"); 
            socket.removeEventListener(Event.CONNECT, onConnect); 
            socket.removeEventListener(IOErrorEvent.IO_ERROR, onError); 
            stage.addEventListener(MouseEvent.CLICK, doConnect); 
    // Here, the flash tracks what keyboard button is pressed.
    // If 'q' is pressed, the connection ends.
            function keyUp(evt:KeyboardEvent):void 
            if (evt.keyCode == 81) // the key code for q is 81 
                socket.send("exit"); 
            else 
                socket.send(evt.keyCode); 
    // This one should handle the data we get from the server.
            function onDataReceived(evt:DataEvent):void 
            try { 
                trace("From Server:",  evt.data ); 
            catch (e:Error) { 
                trace('error'); 
        function onSocketClose(evt:Event):void 
            trace("Connection Closed"); 
            stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); 
            socket.removeEventListener(Event.CLOSE, onSocketClose); 
            socket.removeEventListener(DataEvent.DATA, onDataReceived);
    Trying to connect to the socket gives me either no result (other than a 'connection failed' message when I click the .swf), or the following error:
    Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///C|/Users/Marko/Desktop/Završni/Flash%20documents/Smiley%5FTCP%5FIP%5Fv4.swf cannot load data from 127.0.0.1:9001.
        at Smiley_TCP_IP_v4_fla::MainTimeline/doConnect()[Smiley_TCP_IP_v4_fla.MainTimeline::frame1:12] 

    Tried adding that particular integer code, ended up with either errors ("use of unspecified variable" and "implicit coercion") , or no effect whatsoever (despite tracing it).
    Noticed as well that the earlier socket code had the following for byte reading:
    "sock.bytesAvailable > 0" (reads any positive number)
    ...rather than your new:
    "sock.bytesAvailable != 0" (reads any negative/positive number)
    Any difference as far as stability/avoiding bugs goes?
    So then, I tried something different: Have the program turn the "msg" string variable, into a "sentnumber" number variable. This seemed to work nicely, tracing a NaN for text (expected), or tracing the number of an actual number.
    I also did a few alterations to the input box - it now no longer needs the 'enter' key to do the calculation, it updates the animation after any key release.
    With all this considered and the requirements of the project, I now have a few goals I want to achieve for the client, in the following order of priority:
    1) Have the "sentnumber" number variable be recognized by the inputbox layer, so that it puts it into the input box. So in effect, it goes: Connect -> Send data that is number (NaN's ignored) -> number put into input box -> key press on client makes animation react. I optionally might need a way to limit the number of digits that the animation reacts to (right now it uses 1-3 digit numbers, so if I get sent a huge number, it might cause issues).
    - If the NaN can't be ignored (breaks the math/calculus code or some other crash), I need some way of 'restricting' the data it reads to not include NaN's that might be sent.
    - Or for simplicity, should I just detect the traced "NaN" output, reacting by setting the number variable to be "0" in such cases?
    2) After achieving 1), I'll need to have the process be automatic - not requiring a keyboard presses from the client, but happening instantly once the data is sent during a working connection.
    - Can this be done by copying the huge amounts of math/calculus code from the inputbox layer, into the socket layer, right under where I create the "sentnumber" variable, and modifying it delicately?
    3) The connection still has some usability and user issues - since the connection happens only once, on frame 1, it only connects if I already have a listening server when I run the client, and client can't re-connect if the server socket doesn't restart itself.
    I believe to do this, I need to make the connection happen on demand, rather than once at the start.
    For the project's requirement, I also need to allow client users to define the IP / port it's going to connect to (since the only alternative so far is editing the client in flash pro).
    In other words, I need to make a "Connect" button and two textboxes (for IP and port, respectively), which do the following:
    - On pressing "Connect", the button sets whatever is in the text boxes as the address of the IP and port the socket will connect to, then connects to that address without issues (or with a error message if it can't due to wrong IP/port).
    - The connection needs to work for non-local addresses. Not sure if it can yet.
    - On re-pressing connect, the previous socket is closed, then creates a new socket (with new IP/port, if that was altered)
    It seems like making the button should be as simple as putting the existing socket code under the function of a button, but it also seems like it's going to cause issues similar to the 'looping frames' error.
    4) Optional addition: Have a scrolling textbox like the AIR server has, to track what the connection is doing on-the-fly.
    The end result would be a client that allows user to input IP/Port, connects on button press (optionally tracking/display what the socket is doing via scrollbox), automatically alters the smiley based on what numbers are sent whilst the connection lasts, and on subsequent button presses, makes a new connection after closing off the previous one.
    Dropbox link to new client version:
    https://www.dropbox.com/s/ybaa8zi4i6d7u6a/Smiley_TCP_IP_v7.fla?dl=0
    So, starting from 1), can I, and how can I, get the number variable recognized by "inputbox" layer's code? It keeps giving me 'unrecognized variable' errors.

  • Help swf file different from internal movie testing

    ok i made a simple website and when i test it while the file
    is open it works fine but when i drag the swf file into a web
    browser random movie clips are missing, my buttons are gone and the
    code dosent work right, Im totally clueless as to how to fix this
    since it works fine and with no errors in my flash file so if
    anyone has any idea what i should do that would really help cuz im
    outta ideas

    "Laur56" <[email protected]> wrote in
    message news:e4g5hf$btf$[email protected]..
    > ok i made a simple website and when i test it while the
    file is open it works
    > fine but when i drag the swf file into a web browser
    random movie clips are
    > missing, my buttons are gone and the code dosent work
    right, Im totally
    > clueless as to how to fix this since it works fine and
    with no errors in my
    > flash file so if anyone has any idea what i should do
    that would really help
    > cuz im outta ideas
    Check for publish version not matching the player. If
    publishing for player 8, make sure your browser has that version of
    the
    player.
    tralfaz

  • SWF file different from internal movie testing

    ok i made a basic website in flash when i test the movie
    while my file is open everything works fine, no errors pop up or
    anything, but when i go to drag the swf file into a web browser,
    random movie clips as well as all of my buttons are missing and the
    code dosent work like it should, I have absolutely no idea why my
    file works in one place and not another so if anyone can give me
    any feed back at all id appreciate it

    I would recommend trying different browsers if you haven't
    already. I am working through a similar issue with a dynamic Flash
    menu and it is veryyyyy different in IE then in Firefox. Also, if
    you have a test site we could look at that might get you more help
    too.

  • Accessing events from externally loaded swf file

    hello,
    I have an swf file developed in flash 8. After loading that
    file into SWF Loader control in flex builder 3, how can we access
    the controls and events present in that particular file ?

    "surya_dhul" <[email protected]> wrote in
    message
    news:gg84e2$slm$[email protected]..
    > hello,
    > I have an swf file developed in flash 8. After loading
    > that
    > file into SWF Loader control in flex builder 3, how can
    we access the
    > controls
    > and events present in that particular file ?
    I think you'll need to use localConnection.

  • Touch events don't work on an actual device?

    I'm posting here because I'm not sure where else to put it.
    I have a (semi) functioning prototype of an app and am trying to test it on an iPad.
    But when I export and install the ipa on my iPad through iTunes and Launch, most of the functionality is gone. In fact, all that happens is my buttons light up. Nothing does anything else.
    I'm (hoping) I'm just missing something simple like a publish setting wrong.
    Player: AIR for iOS
    Script: Actionscript 3.0
    Included .swf, .xml, and all relevant .as class files
    Published using quick publish for device testing
    And that's it. I opened the .ipa in iTunes and synced. And nothing works.
    What am I doing wrong?

    I am going to copy and paste this answer into all of the forums I've asked this question in case some noob like me comes along and needs the answer.
    I found the problem! After 3 months I finally figured out what was wrong and why my app was working in Device Central when exported as Flash 10.1 and not on my iPad when exported as AIR for iOS.
    The problem is that in the Flash runtime, if a line of code returns a bug, the flash runtime says "Error, shmerror, try again next time." So I had one if, else statement that was executing when it wasn't supposed to be - only once, at the very beginning of the program. It was throwing an error. When I exported as Flash, flash didn't care, and still executed the code later when it was supposed to. But Apple won't let their programs crash. So instead of just trying that code again, Apple decided, after the first error was thrown, that it would then COMPLETELY IGNORE that line of code. So the error was in the line where the states would unhighlight themselves. Apple just shut down that line of code, that's why it wouldn't execute properly.
    I ended up changing this line of code
    if (lastObjOver != null && lastObjOver.isLocked == true)
    which threw an error when the piece was FIRST dragged over the puzzle, to to this
    if (lastObjOver.parent != null && lastObjOver.isLocked == true)
    which wouldn't throw the error.
    Problem solved!
    If anyone else is having this problem, I suggest you do what I did. Change all your touch events to mouse events so you can run the program in the adc debugger. That's when I discovered the error being thrown.

  • Swf files appearing in preview (D8) but not n browser after uploading - frustrated!

    Hello,
    I have worked with Flash and Dreamweaver on the side for a
    number of years. We all know that after the recent changes, the way
    it handles object and embed tags has changed to favor Java
    actionscripts instead.
    This code I am about to paste was created using Dreamweaver
    8.02, with transitional (x) html. Now mind you, this is not the
    prettiest piece of code you've ever seen. I now am learning to use
    CSS layouts instead of layers/tables, with php and flash
    integrated. This one example is not the only time I have had this
    problem however.
    I made a silly flash banner (its actually a placeholder for a
    better one I have to develop) for testing purposes and sizing. It
    appears fine in Firefox, and IE6 in the preview mode via
    Dreamweaver. When I upload it all to the site, the flash banner
    does not appear.
    I have tried copying the FLA and SWF files to the root folder
    (the fla, swf, and html files generated are all present), and tried
    a number of variations in the code and parameters to no avail. The
    darn thing just won't appear now. Similarly older pages I have
    created that Dreamweaver now prompts you to "fix the object tag
    that may not work in IE7...etc" have the same issue. If I select
    "go ahead and fix them for me", they are visible in production, but
    gone after uploading.
    Now to remove the possibility that this was a layering or
    parent tag issue of visibility, I created a blank HTML page and
    "insert/media/flash" and stuck the banner in there, then uploaded
    it to my server. It doesn't appear.
    I need help. I have been scouring the web for a few days now
    to no avail and have become quite frustrated with what used to be a
    really easy integration of Flash and html.
    Here is the top chunk of code from the page in question: (the
    page is live with the missing banner here:
    http://www.aeonsolutions.net/shirtworks/Shrtwrks_Homepage.html)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Shirtworks custom T shirts, silk screening,
    inkjet printing, embroidery, event, club, sport, organization,
    holiday, humor, clothing</title>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    <style type="text/css">
    <!--
    #Layer1 {
    position:absolute;
    width:999px;
    height:690px;
    z-index:1;
    left: 4px;
    top: 3px;
    margin: 0 auto;
    overflow: hidden;
    background-image: url(Shrtwrks_bkgrnd5.jpg);
    visibility: visible;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
    i<a.length; i++)
    if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    d.MM_p[j++].src=a
    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers
    .document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="CSS/shirtworks.css" rel="stylesheet"
    type="text/css" media="all" />
    <style type="text/css">
    <!--
    #Layer2 {
    position:absolute;
    width:128px;
    height:309px;
    z-index:2;
    left: 8px;
    top: 197px;
    visibility: visible;
    #Layer3 {
    position:absolute;
    width:804px;
    height:457px;
    z-index:3;
    left: 179px;
    top: 215px;
    visibility: visible;
    #Layer4 {
    position:absolute;
    width:1000px;
    height:27px;
    z-index:4;
    left: 4px;
    top: 697px;
    visibility: visible;
    #Layer5 {
    position:absolute;
    width:528px;
    height:150px;
    z-index:5;
    left: 214px;
    top: 11px;
    visibility: visible;
    -->
    </style>
    </head>
    <body
    onload="MM_preloadImages('MenuText/HomePage_over.jpg','MenuText/Artwork_over.jpg','MenuTe xt/Apparel_over.jpg','MenuText/Embroidery_over.jpg','MenuText/Custom_over.jpg','MenuText/D irections_over.jpg','MenuText/AboutUs_over.jpg','MenuText/Contact_over.jpg')">
    <div id="Layer5">
    <table width="533" height="141" border="0">
    <tr>
    <td><script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','dat a','Banner1.html','width','525','height','143','hspace','0','vspace','0','align','middle', 'border','0','title','Banner1','src','Banner1','pluginspage','http://www.macromedia.com/go /getflashplayer','scale','noborder','movie','Banner1'
    ); //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=7,0,19,0"
    data="Banner1.html" width="525" height="143" hspace="0" vspace="0"
    align="middle" border="0" title="Banner1">
    <param name="movie" value="Banner1.swf" />
    <param name="SCALE" value="noborder" />
    <embed src="Banner1.swf" width="525" height="143"
    hspace="0" vspace="0" align="middle" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"
    scale="noborder"></embed>
    </object></noscript></td>
    </tr>
    </table>
    Understanding this change is fundamental in my developing
    process as a designer, and will save my sanity. I appreciate any
    help.
    Mike

    Did you upload this folder?
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    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
    ==================
    "MalikyeMoon" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello,
    >
    > I have worked with Flash and Dreamweaver on the side for
    a number of
    > years.
    > We all know that after the recent changes, the way it
    handles object and
    > embed
    > tags has changed to favor Java actionscripts instead.
    >
    > This code I am about to paste was created using
    Dreamweaver 8.02, with
    > transitional (x) html. Now mind you, this is not the
    prettiest piece of
    > code
    > you've ever seen. I now am learning to use CSS layouts
    instead of
    > layers/tables, with php and flash integrated. This one
    example is not the
    > only
    > time I have had this problem however.
    >
    > I made a silly flash banner (its actually a placeholder
    for a better one I
    > have to develop) for testing purposes and sizing. It
    appears fine in
    > Firefox,
    > and IE6 in the preview mode via Dreamweaver. When I
    upload it all to the
    > site,
    > the flash banner does not appear.
    >
    > I have tried copying the FLA and SWF files to the root
    folder (the fla,
    > swf,
    > and html files generated are all present), and tried a
    number of
    > variations in
    > the code and parameters to no avail. The darn thing just
    won't appear
    > now.
    > Similarly older pages I have created that Dreamweaver
    now prompts you to
    > "fix
    > the object tag that may not work in IE7...etc" have the
    same issue. If I
    > select "go ahead and fix them for me", they are visible
    in production, but
    > gone
    > after uploading.
    >
    > Now to remove the possibility that this was a layering
    or parent tag issue
    > of
    > visibility, I created a blank HTML page and
    "insert/media/flash" and stuck
    > the
    > banner in there, then uploaded it to my server. It
    doesn't appear.
    >
    > I need help. I have been scouring the web for a few days
    now to no avail
    > and
    > have become quite frustrated with what used to be a
    really easy
    > integration of
    > Flash and html.
    >
    > Here is the top chunk of code from the page in question:
    (the page is
    > live
    > with the missing banner here:
    >
    http://www.aeonsolutions.net/shirtworks/Shrtwrks_Homepage.html)
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <title>Shirtworks custom T shirts, silk screening,
    inkjet printing,
    > embroidery, event, club, sport, organization, holiday,
    humor,
    > clothing</title>
    > <script src="Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > <style type="text/css">
    > <!--
    > #Layer1 {
    > position:absolute;
    > width:999px;
    > height:690px;
    > z-index:1;
    > left: 4px;
    > top: 3px;
    > margin: 0 auto;
    > overflow: hidden;
    > background-image: url(Shrtwrks_bkgrnd5.jpg);
    > visibility: visible;
    > }
    > -->
    > </style>
    > <script type="text/javascript">
    > <!--
    > function MM_reloadPage(init) { //reloads the window if
    Nav4 resized
    > if (init==true) with (navigator) {if
    >
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    > document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    > onresize=MM_reloadPage; }}
    > else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH)
    > location.reload();
    > }
    > MM_reloadPage(true);
    >
    > function MM_swapImgRestore() { //v3.0
    > var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a
    )&&x.oSrc;i++)
    > x.src=x.oSrc;
    > }
    >
    > function MM_preloadImages() { //v3.0
    > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
    Array();
    > var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
    for(i=0;
    > i<a.length;
    > i++)
    > if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
    > d.MM_p[j++].src=a
    > }
    >
    > function MM_findObj(n, d) { //v4.01
    > var p,i,x; if(!d) d=document;
    >
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
    > d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);}
    > if(!(x=d[n])&&d.all) x=d.all[n]; for
    (i=0;!x&&i<d.forms.length;i++)
    > x=d.forms[n];
    >
    for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    > x=MM_findObj(n,d.layers
    .document);
    > if(!x && d.getElementById)
    x=d.getElementById(n); return x;
    > }
    >
    > function MM_swapImage() { //v3.0
    > var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
    Array;
    > for(i=0;i<(a.length-2);i+=3)
    > if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
    if(!x.oSrc)
    > x.oSrc=x.src; x.src=a[i+2];}
    > }
    > //-->
    > </script>
    > <link href="CSS/shirtworks.css" rel="stylesheet"
    type="text/css"
    > media="all" />
    > <style type="text/css">
    > <!--
    > #Layer2 {
    > position:absolute;
    > width:128px;
    > height:309px;
    > z-index:2;
    > left: 8px;
    > top: 197px;
    > visibility: visible;
    > }
    > #Layer3 {
    > position:absolute;
    > width:804px;
    > height:457px;
    > z-index:3;
    > left: 179px;
    > top: 215px;
    > visibility: visible;
    > }
    > #Layer4 {
    > position:absolute;
    > width:1000px;
    > height:27px;
    > z-index:4;
    > left: 4px;
    > top: 697px;
    > visibility: visible;
    > }
    > #Layer5 {
    > position:absolute;
    > width:528px;
    > height:150px;
    > z-index:5;
    > left: 214px;
    > top: 11px;
    > visibility: visible;
    > }
    > -->
    > </style>
    >
    > </head>
    >
    > <body
    >
    onload="MM_preloadImages('MenuText/HomePage_over.jpg','MenuText/Artwork_over.jpg
    >
    ','MenuText/Apparel_over.jpg','MenuText/Embroidery_over.jpg','MenuText/Custom_ov
    >
    er.jpg','MenuText/Directions_over.jpg','MenuText/AboutUs_over.jpg','MenuText/Con
    > tact_over.jpg')">
    > <div id="Layer5">
    > <table width="533" height="141" border="0">
    > <tr>
    > <td><script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=7,0,19,0','data','Banner1.html','width','525','height','143','hspace','0
    >
    ','vspace','0','align','middle','border','0','title','Banner1','src','Banner1','
    > pluginspage','
    http://www.macromedia.com/go/getflashplayer','scale','noborder','m
    > ovie','Banner1' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" data="Banner1.html" width="525"
    height="143" hspace="0"
    > vspace="0" align="middle" border="0" title="Banner1">
    > <param name="movie" value="Banner1.swf" />
    > <param name="SCALE" value="noborder" />
    > <embed src="Banner1.swf" width="525" height="143"
    hspace="0"
    > vspace="0" align="middle"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash"
    scale="noborder"></embed>
    > </object></noscript></td>
    > </tr>
    > </table>
    >
    > Understanding this change is fundamental in my
    developing process as a
    > designer, and will save my sanity. I appreciate any
    help.
    >
    > Mike
    >

  • BitmapData draw method doesn't work when the project is published as the .swf file of the web applic

    Hi,
            I am totally confused by this strange error. When I tried using the draw method of BitmapData to draw a movieclip symbol of my project, it seems to work fine locally. However, as I uploaded the published .swf file to my web server and launched it as the plugin of my web application, it failed. The source codes as follows,
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    message3 didn't show at all. Instead, the browser console shows "Uncaught Error: Error calling method on NPObject.". My understanding of this error message is that the .swf is calling something crashing, and I believe that bd.draw(stage)is the crashng method call.
    Also, here is my html embed tag:
        <embed src="/tests/videoplayer.swf" id="flash" quality="high" height="510" width="990" scale="exactfit" name="squambido" align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="margin: 0px auto;clear:both;position:relative;"/>
    Can someone help me?

    Thank you for your reply.
    I tried stageWidth and stageHeight, but it still doesn't work.
    The draw() methid is triggered when I clicked a screenshot button in my application as follows,
    ExternalInterface.addCallback("printscreenClicked", printscreenClicked);
    function printscreenClicked():void
         //ExternalInterface.call calls a javascript function to print message1
        var bd:BitmapData = new BitmapData(stage.width,stage.height);
        //ExternalInterface.call calls a javascript function to print message2
      bd.draw(stage);
        //ExternalInterface.call calls a javascript function to print message3
    Would you please give me an example of "waiting for Event.RESIZE is good, or just at least Event.ENTER_FRAME"?
    My real purpose in this application is to capture a snapshot of a streaming video. The video is contained in a movieclip object. I tried stage first since BirmapData.draw() doesn't work when drawing the movieclip on the web site. Do you have any suggestion for this situation? Also, is there any good method to find out what happened if the browser have "Uncaught Error: Error calling method on NPObject."?

  • Problem with music in swf file when loading site to server

    Hello,
    I am a newbie to Flash and have an swf file I created for a
    website,
    http://www.kanzamancleveland.com.
    I have a button there that turns the music on/off when the site
    loads. I also put some music into the swf file, but instead of
    putting it directly in the swf file, I am calling it from the
    actionscript code in the swf file. I want it to stream when the
    site loads and start loading/playing after the site loads. The code
    is embedded in the on/off button. Now this code works when the swf
    file is on my local hard-drive, but when I put it on the server
    with the rest of the website, it doesn't work. Any ideas?
    Here is the code:
    import fl.motion.Keyframe;
    import flash.display.MovieClip;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.events.MouseEvent;
    var _sound:Sound;
    var _channel:SoundChannel;
    var _playing:Boolean = false;
    var _position:int;
    var request:URLRequest = new URLRequest("lowsaaloony.mp3");
    var buffer:SoundLoaderContext = new SoundLoaderContext(5000);
    _sound = new Sound( );
    _sound.load(request, buffer);
    _channel = _sound.play( );
    _playing = true;
    offbtn.addEventListener(MouseEvent.MOUSE_UP, onPlayPause);
    function onPlayPause(event:MouseEvent):void {
    if (_playing) {
    _position = _channel.position;
    _channel.stop( );
    } else {
    _channel = _sound.play(_position);
    _playing = !_playing;
    gotoAndPlay(2);
    stop();
    I put the code together going from various Flash help
    websites, and it works when everything is on my local hd, but again
    as I mentioned before, when I put it up on the server, the music
    doesn't play. I contacted the hosting company and they said that
    they do allow streaming music on a website using Flash. Any help on
    what I am doing wrong, or what else I need to do would be highly
    appreciated. Thank you.
    Jay

    Hi. It looks like your code is not finding the mp3. At least,
    I can reproduce your error code by removing the mp3 from the
    directory, or renaming it.
    Btw, if you test with FF instead of IE, you'd see the error:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
    Stream Error.
    at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
    Hope that helps.

  • How to attach a Callto Link to a swf-file?

    Hi,
    I'm currently working on an animated skype button (swf-file) which I included into my website and I'd like to attach the following command to it:
    Callto://myskypeid
    It would be perfect, if - when hovering on it - it shows that it contains an active link (showing the "hand") and when clicking on it, it calls the user's skype app. to phone me on skype
    So, in the adobe tutorials I found the following code for inserting a "hyperlink" to a button.
    import flash.events.MouseEvent;
    function gotoAdobeSite(event:MouseEvent):void
       var adobeURL:URLRequest = new URLRequest("http://www.adobe.com/");
       navigateToURL(adobeURL);
    linkButton.addEventListener(MouseEvent.CLICK, gotoAdobeSite);
    I customised the code:
    import flash.events.MouseEvent;
    function openskype(event:MouseEvent):void
       var Skype:URLRequest = new URLRequest("Callto://myskypeId");
       navigateToURL(Skype);
    linkButton.addEventListener(MouseEvent.CLICK, openskype);
    But the problem is that there occur "linkbutton not defined property or method" errors when running the code.
    My swf or rsp. my fla file contains 10 movieclips which run one after another on the timescale, all in different layouts so that the colour changes during the "run".
    I tried it with the first movieclip - layer1 - and named its instance "linkButton".
    Didnt work.
    Then I tried to insert another layer and attached another picture with alpha=0, converted it into a button and gave its Instance the name "LinkButton", but also didnt work.
    Can someone please help me here? I suppose its just a "small" mistake and I couldn't be "so far away" from succeeding...
    That would be great! Thanks for the help in advance!!

    Hi Ned and all the others,
    ok ...the problem isn't really fixed so far.
    But the first step is done! :-) with the following code:
    import flash.events.MouseEvent;
    function openskype(event:MouseEvent):void
       var Skype:URLRequest = new URLRequest("Callto://myskypeId");
       navigateToURL(Skype);
    linkButton.addEventListener(MouseEvent.CLICK, openskype);
    I replaced the "Callto://myskypeId" with "skype:myskypeId?call" as the first syntax shows a wrong Skypname resp. the name will be shown with a "/" in the end.
    But now i'm faced with the problem, that
    1st: there's no "hand" shown, when hovering the button on the website.
    2nd: I have to doubleclick on it to open the skype application.
    3rd: after i doubleclicked on the button there opens up always an additional blank page shown in the browser. And now I try to fix that - I tried it with navigateToURL(Skype, "_self"); or "_parent" and so on...but didnt work.
    Meanwhile I think the because of not all of the pictures - MCs - are attached to the instance of "linkButton" that there's the missing "hand" when hovering with the mouse the button. On testing i found out that some of the pics are still bitmaps although i converted them all in the beginning to MCs (??dont know what i did there...).
    Think the "missing hand" problem will be fixed more easily.
    The bigger problem is, how to avoid the additional blank page in the browser when clicking on the swf on the website?
    It seems to me, that on the one hand, I'd like to have an "active" link on that swf (or button) that shows the "hand" in the mousepointer - but on the other hand, it's not really a website which I'd like to open up then but just an application. So maybe here's the main problem.
    Alternatively I thought about replacing the sequence with the URL request in the code by something rather appropriate for lauching applications e.g. FS Command or something like that. (read that somewhere).
    If someone knows/had similar problems/could help me again - or at least to the next step that would be perfect!
    Thanks again, Ned for your helping advice (I learned something!!!) - maybe you could help me with the above probs?
    Best regards
    steff

  • Links don't work on Menu Bar: swf file location error too.

    Hi folks, I'm using CS5 and Menu Bar 2.0 and am getting this error when attempting to save files using a particular template: http://imm.io/3chF
    When I upload my site, some of the links are faulty, presumably to do with this error. I've tried using Menu Bar 1 and get the same error message.
    The files it asks for are already in my root directory as well as in the Scripts directory. Where should they be?
    FYI my test site is at http://www.arrowmark.co.nz/web4/portfolio.html.  Links work from this page, but they do not work within other pages  based on that template. Eg you can get from there to tatler.html but  that's where the linkage fails.
    Thanks in advance for advice on this problem.
    Jo

    Hi,
    looking to your source code from "portfolio.html" you can't have a working link, 'cause there always these "#"-placeholders are "waiting" for their job:
    <li> <a href="tatler.html">Prime, Tatler, 12Bar</a>
              <ul>
            <li> <a href="#">Marketing</a></li>
            <li> <a href="#">Sales</a>
                </li><li> <a href="#">Web</a>
                            </li><li> <a href="#">Image Editing</a>
                            </li><li> <a href="#">Photography</a>
                            </li><li> <a href="#">Publications</a>
                            </li><li> <a href="#">Collateral</a>
                            </li><li> <a href="#">Editorial</a>
                            </li><li> <a href="#">Event Management</a>
                                  </li></ul>
    for example: </li><li> <a href="imageEditing.html#">Image Editing</a> aso.
    What concerns your swf-file: In my IE8 it's working, so it seems it's on the right place, or did I misunderstood your question?
    Hans-G.

  • Embed Animated Flash Objects (*.swf file) in Oracle Forms.

    Hello All,
    To Embed Animated Flash Object (Shockwave *.swf File) in Oracle Forms, Please Follow the Steps Below.
    1. Draw "ActiveX Control" Item on Canvas with the Name "OCXITM".
    2. Select "ActiveX Control" Item & Go to its Properties (By Pressing F4).
    3. Select "ShockwaveFlash.ShockwaveFlash" in "OLE Class" Property of "ActiveX Control" Item.
    4. Come again to the Canvas.
    5. Right Click on "ActiveX Control" Item, Select "Insert Object...".
    6. In Control Type List, Select "Sockwave Flash Object" and Press "OK".
    7. On Canvas, Select "ActiveX Control" Item, Go to "Program" Menu, Select "Import OLE Library Interfaces...".
    8. Select All "Method Package(s)" & "Event Package(s)" for "ShockwaveFlash.ShockwaveFlash.X" & Press "OK".
    9. Go to "Object Nevigator" (By Pressing F3) & Expand "Program Unit" to verify that the Packages are Successfully Imported.
    10. Compile All the Objects (By Pressing "Ctrl+Shift+K").
    11. In "WHEN-NEW-FORM-INSTANCE" Trigger Write the Below Code.
    ** Author   : Muhammad Waseem Haroon                        *
    ** Dated    : 07-Apr-2005                                   *
    ** Purpose  : To Call Macromedia Flash Object (*.swf File)  *
    ** Module   : Logo                                          *
    DECLARE
         oleitm OLEOBJ;
    BEGIN
         oleitm := :item('OCXITM').INTERFACE;
         ShockwaveFlash_IShockwa_0.Movie(oleitm,'d:\movie.swf');--it can be dynamic.
    END;12. Compile, Save & Run Your Form.... and... See the Beauty.
    Thanks & Regards
    Muhammad Waseem Haroon
    [email protected]
    [email protected]
    [email protected]

    Mark Striekwold did an effort to put flash into forms
    http://mark-oradev.blogspot.com/2010/02/flash-inside-oracle-forms.html
    http://mark-oradev.blogspot.com/2010/02/flash-test-inside-oracle-forms-part-2.html
    http://mark-oradev.blogspot.com/2010/04/flash-test-inside-oracle-forms.html

Maybe you are looking for

  • Gift of ibooks to ipad won't work

    I sent two gifts of books through the Itunes store to my daughter on her ipad and she can't open them.  What do we do?

  • 2504 Port config

    Dear all, Today I see a strange behavior of the 2504. Does the 2504 working similar to the 5508? I configured on the 2504 a two new interfaces additional to the management which is also tagged I used only port-1 on the wlc and was not able to use the

  • Direct Connect OSPF and BGP AWS failover setup

    Hi, We recently installed AWS Direct Connect which was successful but now we are looking at the best way to  automatically fail over if our Direct Connect fails to route via our back VPN. The setup Cisco 6500 distributes routes via OSPF internally to

  • Accelerator Key

    I would like to create a shortcut key, such as Ctrl+space or Ctrl+z, that users can press when they get to a field which has a drop down list to display the list without having to use their mouse and click on the down arrow. The lists are either disp

  • Any Programs That Help Design Artwork For Album Covers?

    I am making an album and i need an app preferibly from the AppStore that helps me create my Cover for my Music Album. What i need is an app that edits a picture that i will take and make the background all red except for the person standing infront o