Embedding Flash swf in Google Site displays NaN output but works in Debug mode

Hello,
I am loading a text file with three variables into a flash file (CS5). The flash file then calculates and prints the three values based on some calculations. I am storing the text file as an attachment on the google page in which I am embedding the swf file. What's weird is that the flash file plays correctly in debugging mode (i.e., prints the 3 variables correctly), but as soon as I upload the swf to the Google site page (as an attachment in the same location as the text file), the flash file outputs NaN. I am stuck as to why the file works in debug mode in Flash, but not when it's uploaded to the google site page. I have tried storing the text file on SharePoint and referencing it from there, but I get the same results when viewing the swf on the Google site page.
Is it because the google site page is using SSL?
I am fairly new to flash, so any help would be appreciated.
Thanks!
Lori
Variables.txt stores this: "current=6950&goal=7175&low=6950"
Here is the code in my flash file:
_global.getPercent = "";
myvars = new LoadVars();
myvars.load("variables.txt");
myvars.onLoad = function(success){
          l = Number(myvars.low);
          c = Number(myvars.current);
          g = Number(myvars.goal);
          getPercent = (c-l)/(g-l);
          if (getPercent > 0) {
                    colorshow._height = (getPercent*colorshow._height);
          } else {
                    colorshow._height = 0;

I have this in front of the trace:
myvars.onLoad = function(success){
When I put in the full URL to the attachment on the Google page (i.e., something similar to "myvars.load("https://sites.google.com/a/..../home/department-sites/sales/variables.txt,");" - instead of just "myvars.load("variables.txt");", it doesn't work. So right now its set to just "variables.txt" and the swf file is in the same root location as the variables.txt file on the Google page. I also have a copy of the variables.txt file in the same local directly in which I am running the flash file for testing. So I think when I run it in debug mode, its referencing the variables.txt file in the local directory, rather than the one stored as an attachment on the Google page.
That's what seems so weird...it runs locally in debug mode...but not when I embed it on the Google page. I can also get it to work if I explicity define the variables in the flash file, rather than rely on the external text file. That's the only time I can get it to work on the Google page.
Thank you for your help!

Similar Messages

  • I try to log in to password protected sites and nothing happens but works fine on Internet Explorer. Can't get past login page. I even had to use Internet Explorer to login to ask this question!

    I try to log in to password protected sites and nothing happens but works fine on Internet Explorer. Can't get past log in page. I even had to use Internet Explorer to login to ask this question!
    On the page where you enter username and password after entering and pressing "Log in" the page just stays in place. If you look at the error log you see
    "Warning: Unknown property 'border-radius'. Declaration dropped.
    Source File: https://support.mozilla.com/media/css/common-min.css?build=3fabbc0
    Line: 1"

    Make sure that you do not block the referrer.
    * http://kb.mozillazine.org/network.http.sendRefererHeader
    Also make sure that you do not block cookies in Firefox or the firewall.
    * [[Cookies]]
    * [[Enabling and disabling cookies]]

  • Embedding Flash SWF Skin in External Site

    I posted this under the Flash forum as well. My Flash video
    displays correctly on my server, however, if I try embedding my
    Flash SWF file on an external site – just as you would with
    YouTube – the skin does not transfer. The video is the only
    thing that displays.
    I understand when using components that 2 SWF files are
    created when published – SO with that said, is there an HTML
    embedding technique to display both the video w/ the skin? If not,
    is this something that needs to be corrected within the Flash file.
    Any thoughts?

    I have this in front of the trace:
    myvars.onLoad = function(success){
    When I put in the full URL to the attachment on the Google page (i.e., something similar to "myvars.load("https://sites.google.com/a/..../home/department-sites/sales/variables.txt,");" - instead of just "myvars.load("variables.txt");", it doesn't work. So right now its set to just "variables.txt" and the swf file is in the same root location as the variables.txt file on the Google page. I also have a copy of the variables.txt file in the same local directly in which I am running the flash file for testing. So I think when I run it in debug mode, its referencing the variables.txt file in the local directory, rather than the one stored as an attachment on the Google page.
    That's what seems so weird...it runs locally in debug mode...but not when I embed it on the Google page. I can also get it to work if I explicity define the variables in the flash file, rather than rely on the external text file. That's the only time I can get it to work on the Google page.
    Thank you for your help!

  • Embeding Flash swf to existing Flash site

    I'm reletively new to Flash CS4 and I have created a Flash site that I need to add another swf file to. Can someone explain how I can insert this other swf file into my existing website which is also a swf file? Can it be done? I've been tinkering with adding another layer and the timelines but can't seem to get it to work. The site is using AS2 but this newer swf file which I created from SlideShow Pro is using AS3. Could that be a problem?

    you have a problem.
    no matter actionscript versions, if you "import" a swf file, in the authoring environment, to another fla, all actionscript in the imported swf will fail.
    if you "load" an as3 swf into an as2 swf, the as3 actionscript will fail.
    you could create a new "loader" as3 swf that will load your as2 swf.  your as2 swf will work as expected.  you can then load your slideshow as3 swf into your loader swf and the slideshow as3 swf will work as expected.

  • Firefox Embedded Flash swf not shown in asynchronous desktop

    Hi all,
    in a jsp I embed a binary property of a content node that includes a flash .swf file. All that in an asynchronous desktop, using Firefox.
    I use the follwing code:
    "<embed scale="exactfit" quality="high" menu="false" width="600" height="400" hswLiveConnect="false" src="<%=myPropertyUrl%>">
    When the page is loaded by "normal" browser request, the flash animation inside the jsp renders as expected. After click on an url (<a> ....</a>) inside the same JSP the portlet content refreshes (via Ajax request), only the flash disappears. After F5 it's back agian.
    The problem does not exist with IE!
    How do i need to handle this for Firefox?
    Thanks for help.

    Firefox uses the object if there isn't a classid to specify an ActiveX control for IE.<br />
    You didn't specify such a classid (classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"), so there is actually no need for the embed in this case.<br />
    As jscher2000 posted above, an object tag only works in Firefox if there is a data attribute present (copy of the movie param) to specify the Flash file and a possible MIME type.
    <pre><nowiki><object style="width:420px;height:272px" data="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" >
    <param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" />
    <param name="flashvars" value="mode=mini&amp;backgroundColor=%23222222&amp;documentId=121102153057-a8027186d32d406698ae9cd6ce0305ed" />
    <param name="allowfullscreen" value="true"/>
    <param name="menu" value="false"/>
    <param name="wmode" value="transparent"/>
    </object></nowiki></pre>

  • Swf File doesn't display in chrome but displays in firefox

    Hi there, I made a swf file and embed it in my website.
    URL: http://worldwidefilipinoalliance.com
    It displays properly in the mozilla firefox but not in my google chrome.
    Is this problem related to the browser or the way that I embeded my swf file.
    Can you give me a tip on how to solve this.
    Thank you and regards!

    Your embedding code appears to be minimal, as well as the old version, which could be the problem.  The more modern embedding code will use either swfobject or other javascript-based coding.  If you can get a hold of a newer version of Flash you should let Flash generate an html page and then copy and paste the embedding code from that into your html page.

  • Flash objects not displaying in Firefox (but works fine in Chrome and IE)

    Well, I'm trying to embed a Shockwave Flash object into a website I'm building. It displays in Chrome and IE, but it doesn't show up at all in Firefox. It's just white space. Ive tried it on two machines, so it's presumably the code. Both the machines have Adobe Flash enabled... I'm not sure what the problem is. I've not worked with embedding Flash objects in HTML before, so, it's probably something really obvious. I just used the insert command on dreamweaver and it wrote the code that I'm using. If anyone can help me, it would be much appreciated. Here's my code:
    <pre><nowiki><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="99%" height="600" id="FlashID">
    <param name="movie" value="The file path" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="10.1.0.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="../Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="the file path" width="99%" height="76.5%">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="10.1.0.0" />
    <param name="expressinstall" value="../Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]--></nowiki></pre>

    If you can't post an address for a page demonstrating the problem, could you check the Web Console (Ctrl+Shift+k) and Browser Console (Ctrl+Shift+j) for any messages related to the Flash media? For example, does either console show that Firefox is requesting the SWF file? Does either show an error in content type or any kind of security message?

  • Help! My DW site displays in FireFox, but does not work in IE

    Help! My DW site displays fine in FireFox, but only the background loads in Internet Explorer and I get an error message that the site cannot open. The site is www.bransonareagolfcouncil.com

    You've got lots of validation errors:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.bransonareagolfcouncil.com%2F
    Also, this forum is for DW application development. In the future try posting to the Dreamweaver forum.

  • How come i can edit in google sites on my iphone but not my mac?

    I was given access to update a specific page on our local high school google site, but the page is only open to "edit" when I access it from my Iphone.  If I go to the same site on my IMAC it does not open the "edit" feature of the page.  Anybody??

    Two different operating systems. iPhone runs on the iOS, your iMac the OS X.
    Features used on your iPhone may not be available on your iMac and vice versa.

  • Embedding Flash Player on Secure Site

    Hello,
    I am uploading Flash movies for sales presentations to our
    secure intranet server, which is accessed from laptops that all
    have Flash Player installed.
    The IE security alert that pops up when movies are launched
    breaks the flow of the presentation ("This page contains secure and
    non-secure items"...). Is it possible to output my flash movie
    without the non-secure links to Macromedia's site? I have manually
    removed the links for current projects, but this is a pain.
    Better yet, is is possible (and legal!) to just embed the
    player securely from our own intranet?
    Thanks,
    Dan

    I cannot comment on the legality of publishing the player on
    your own site... What I have done is to replace the "http" with
    "https" to all links to the codebase that are produced. The links
    still work and it gets rid of the message.

  • Problems embedding Flash slideshow from external site

    I currently have a photography website with SmugMug where I host most pictures that I want to share online; they have an option that lets you create a Slideshow and allows you to copy the HTML embed code.  So I stuck that into the page HTML, but every time I try previewing it on the web, nothing shows up.  When I use the Validate function, it says the tag "embed" is not used in HTML 4.0, but I don't know if that's the problem or not.  Here's the code provided:
    Any clues as to why it won't work?

    Why can't I get my code to show up?  I'm using the "Insert Raw HTML" icon and get the box, into which I paste it.  Guess I need to look up that FAQ.
    Here it is just plain:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="400" id="ssidx">
    <param name="movie" value="http://www.cdpayetphotography.com/ria/ShizamSlides-2009073001.swf?AlbumID=9536524&AlbumKey =DLfKT&transparent=true&bgColor=&borderThickness=&borderColor=&useInside=&endPoint=&mainHo st=www.cdpayetphotography.com&VersionNos=2009073001&showLogo=false&width=400&height=400&cl ickToImage=true&captions=true&showThumbs=true&autoStart=true&showSpeed=true&pageStyle=whit e&showButtons=false&randomStart=false&randomize=false&splash=&splashDelay=1000&crossFadeSp eed=350">
    <param name="wmode" value="transparent">
    <param name="allowNetworking" value="all">
    <param name="allowScriptAccess" value="always">
    <embed src="http://www.cdpayetphotography.com/ria/ShizamSlides-2009073001.swf?AlbumID=9536524&AlbumKey =DLfKT&transparent=true&bgColor=&borderThickness=&borderColor=&useInside=&endPoint=&mainHo st=www.cdpayetphotography.com&VersionNos=2009073001&showLogo=false&width=400&height=400&cl ickToImage=true&captions=true&showThumbs=true&autoStart=true&showSpeed=true&pageStyle=whit e&showButtons=false&randomStart=false&randomize=false&splash=&splashDelay=1000&crossFadeSp eed=350" width="400" height="400" wmode="transparent" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"  >
    </embed>
    </object>
    Like I mentioned in the first post, Dreamweaver's validation tool said that the "embed" tag is not valid in HTML 4.0.  The page is written in DTD HTML 4.01 Transitional.

  • Can an embedded Flash SWF save and get a variable with Reader?

    My SWF content contains text in different languages.  The user selects a language and it appears.
    Is there a way to store this setting locally so that the correct language appears when the pdf is reopened?
    I only need a two-letter string, like "EN," "FR," "ZH," etc. and the SWF does the rest.
    I've tried calling multimedia_saveSettingsString from the SWF Actionscript, and I've tried setting an Acrobat global variable and setPersistent using Actionscript and local .js files. It works in Acrobat, but not Reader on a users system.
    I also tried using a separate pdf form to store a global variable, and then attempted to get that variable using the SWF Actionscript.
    Could the be an issue with security settings or Acrobat properties?
    I'm not a virtuoso at this, so script examples would help.
    (Windows 7; Actionscript 3; Acrobat 9 and XI are available; Adobe Reader 9 is in the installed base, but I may be able to switch to a higher version of Reader)
    I asked a similar question in the Acrobat Javascript community, but got no responses. I reworded it here with additional detail
    Thanks.

    Here's the section from my example that's linked to the Save and Load buttons. evalText, infoText and replyText are the three TextArea fields.
    Note that it's important to send a string, but return an object and cast it back into a string. EI.call() has no clue what's being sent back from JavaScript.
    // button handlers
    butSave.addEventListener(MouseEvent.CLICK, doSave);
    function doSave(e:MouseEvent):void {
        var rtn:Object = ExternalInterface.call("multimedia_saveSettingsString",evalText.text);
        if (rtn == null) {
            infoText.appendText("Save: REPLY = null");
        } else if (rtn.toString() == "") {
            infoText.appendText("Save: REPLY = empty string");
        } else replyText.appendText("Save: reply = " + rtn.toString());
    butLoad.addEventListener(MouseEvent.CLICK, doLoad);
    function doLoad(e:MouseEvent):void {
        var rtn:Object = ExternalInterface.call("multimedia_loadSettingsString");
        if (rtn == null) {
            infoText.appendText("Load: REPLY = null");
        } else if (rtn.toString() == "") {
            aT(infoText,"Load: REPLY = empty string");
        } else replyText.appendText("Load: reply = " + rtn.toString());

  • External display - maximum resolution only works in safe mode on MBP

    I'm having an issue with an external display connected to a 2012 non-retina MacbookPro 15" i7 running 10.9.  Monitor is Dell U2713HM, which has a maximum resolution of 2560x1440, and is connected via a Mini-Dipslayport to Displayport cord.
    My setup has been working great for over a year, where while at my office I use the macbook closed in "clamshell mode" with the Dell monitor being the only display in use, running at 2560x1440.  However today when I came into my office and connected to the dispay as usual, the resolution on the Dell was noticably scaled.  System preferences is showing it running Scaled at 1080p, and when I select Best for Display it stretches to a very wide and distorted resolution.  I can hold alt and click the Scaled button to display additional resolutions, however the maximum resolution listed is 1600x1200.  Same problem regardless of clamshell, mirror, or extended desktop modes.
    I've been trying to track down the problem, and have run though the usual procedures: restart, shutdown, reset PRAM, reset SMC, check cord connections, verify disk, repair disk permissions - all to no avail.  However when I boot in safe mode the display runs as it should at 2560x1440 without issue, which lets me know its not a problem with the cord or connectioin, but rather something on the OS / GPU side.
    I can't for the life of me figure out what is causing the issue.  Considering its been working fine for quite some time, and I've made no unusual changes to the MBP in the past 48 hours when the display was working properly, I'm not really sure where to go from here.   Hoping to not have to migrate to a new user or repartion my HDD.
    Any suggestions on possible solutions?
    Thanks.

    I stumbled upon a fix.  Still not sure what caused the issue in the first place, but for anyone having the same issue, the display override script contained on the site below seems to have fixed the issue.
    http://embdev.net/topic/284710

  • Microsoft web site (safety scanner) problem but works in Safari

    When I go to the site "https://www.microsoft.com/security/scanner/en-us/default.aspx" with Either Firefox 18.0.8 ESR Or TOR version of Firefox it gos into a loop where I continually see the rotating icon. It never displays anything on the screen and always continues to show the rotating circle. But on the same workstation it works with Safari.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • My Flash Disk can't access in my Notebook , but working well in other Notebook

    I have a problem with My Flash Disk
    The Flash Disk is Toshiba TransMemory 32 GB USB 2.0 ( UHYBS-032GH)
    My Notebook is Asus K45VD
    My Operating System is : Windows 7
    The main Problem :
    1. My Flash Disk can't detected/accessed in My Notebook
    2. My Flash Disk is working normally in other PC/Notebook
    3. If you see Device Management , TransMemory appear but with Warning sign
    4. If you see Disk Management, The Flash Disk disappear/invisible
    5. My Notebook's USB Ports are working normally ( i already try to connect other Flash Disk to my laptop and can accessed normally)
    I already contact several support :
    1. Microsoft Help Desk : They said they can't find Flash Disk Driver for my Notebook. So they suggest to conctact Asus
    2. Asus Support : They suggest me to install this device driver (Intel INF Update Driver) :
    http://support.asus.com/Download.aspx?SLanguage=en​&p=3&s=398&m=K45VD&os=30&ft=23&f_name=Chipset_Inte​...
    But that driver can't solve the problem .
    Asus said to me , that maybe the Flash Disk's driver already corrupted. so i'm searching in google , Driver for My Toshiba Flash Disk, but unfortunately i can't find it.
    I will attach you with several screenshot which explain the error condition .
    I hope i can get a good solution .
    Thanks before All
    Attachments:
    Error1.jpg ‏52 KB
    Error2_2.png ‏200 KB
    Error3_3.png ‏135 KB

    Code 28: The drivers for this device are not installed
    The drivers are native to Windows 7.
    Try Update Driver as above.
    If that doesn't work, uninstall the driver in Device Manager and then click Scan for hardware changes in the Action menu.
    -Jerry

Maybe you are looking for