Two flash swf playing

Hello All
I have a strange problem when I publish my flash file I get the HTML code when I put this in my document, it plays the flash swf file in two places one above the other. One centered where it belongs and the other above it and to the left. It happens when I put this code in. Any Ideas? thanks I put this code in between the <head> and </head>
thanks
<script language="JavaScript" type="text/javascript">
<!--
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2008 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
    var version;
    var axo;
    var e;
    // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
    try {
        // version will be set for 7.X or greater players
        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
        version = axo.GetVariable("$version");
    } catch (e) {
    if (!version)
        try {
            // version will be set for 6.X players only
            axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
            // installed player is some revision of 6.0
            // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
            // so we have to be careful.
            // default to the first public version
            version = "WIN 6,0,21,0";
            // throws if AllowScripAccess does not exist (introduced in 6.0r47)       
            axo.AllowScriptAccess = "always";
            // safe to call for 6.0r47 or greater
            version = axo.GetVariable("$version");
        } catch (e) {
    if (!version)
        try {
            // version will be set for 4.X or 5.X player
            axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
            version = axo.GetVariable("$version");
        } catch (e) {
    if (!version)
        try {
            // version will be set for 3.X player
            axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
            version = "WIN 3,0,18,0";
        } catch (e) {
    if (!version)
        try {
            // version will be set for 2.X player
            axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
            version = "WIN 2,0,0,11";
        } catch (e) {
            version = -1;
    return version;
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
    // NS/Opera version >= 3 check for Flash plugin in plugin array
    var flashVer = -1;
    if (navigator.plugins != null && navigator.plugins.length > 0) {
        if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
            var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
            var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
            var descArray = flashDescription.split(" ");
            var tempArrayMajor = descArray[2].split(".");           
            var versionMajor = tempArrayMajor[0];
            var versionMinor = tempArrayMajor[1];
            var versionRevision = descArray[3];
            if (versionRevision == "") {
                versionRevision = descArray[4];
            if (versionRevision[0] == "d") {
                versionRevision = versionRevision.substring(1);
            } else if (versionRevision[0] == "r") {
                versionRevision = versionRevision.substring(1);
                if (versionRevision.indexOf("d") > 0) {
                    versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
            var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
    // MSN/WebTV 2.6 supports Flash 4
    else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
    // WebTV 2.5 supports Flash 3
    else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
    // older WebTV supports Flash 2
    else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
    else if ( isIE && isWin && !isOpera ) {
        flashVer = ControlVersion();
    return flashVer;
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
    versionStr = GetSwfVer();
    if (versionStr == -1 ) {
        return false;
    } else if (versionStr != 0) {
        if(isIE && isWin && !isOpera) {
            // Given "WIN 2,0,0,11"
            tempArray         = versionStr.split(" ");     // ["WIN", "2,0,0,11"]
            tempString        = tempArray[1];            // "2,0,0,11"
            versionArray      = tempString.split(",");    // ['2', '0', '0', '11']
        } else {
            versionArray      = versionStr.split(".");
        var versionMajor      = versionArray[0];
        var versionMinor      = versionArray[1];
        var versionRevision   = versionArray[2];
            // is the major.revision >= requested major.revision AND the minor version >= requested minor
        if (versionMajor > parseFloat(reqMajorVer)) {
            return true;
        } else if (versionMajor == parseFloat(reqMajorVer)) {
            if (versionMinor > parseFloat(reqMinorVer))
                return true;
            else if (versionMinor == parseFloat(reqMinorVer)) {
                if (versionRevision >= parseFloat(reqRevision))
                    return true;
        return false;
function AC_AddExtension(src, ext)
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?');
  else
    return src + ext;
function AC_Generateobj(objAttrs, params, embedAttrs)
  var str = '';
  if (isIE && isWin && !isOpera)
    str += '<object ';
    for (var i in objAttrs)
      str += i + '="' + objAttrs[i] + '" ';
    str += '>';
    for (var i in params)
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    str += '</object>';
  else
    str += '<embed ';
    for (var i in embedAttrs)
      str += i + '="' + embedAttrs[i] + '" ';
    str += '> </embed>';
  document.write(str);
function AC_FL_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_SW_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();   
    switch (currArg){   
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":   
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblclick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace":
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
// -->
</script>
thanks

Here is the code that goes to the first table. If you put both sets of code together it will be from the start to the second table. I can add this code to the html file with no problem I only have a problem when the other code is added. I also have a problem sometimes using <noscript> </noscript>
So in all this code I do not see where the flash swf file is being call twice. any Ideas.
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
99
-->
<!-- saved from url=(0013)about:internet -->
<script language="JavaScript" type="text/javascript">
    AC_FL_RunContent(
        'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0',
        'width', '766',
        'height', '350',
        'src', '3868-1',
        'quality', 'high',
        'pluginspage', 'http://www.adobe.com/go/getflashplayer',
        'align', 'middle',
        'play', 'true',
        'loop', 'true',
        'scale', 'showall',
        'wmode', 'window',
        'devicefont', 'false',
        'id', '3868-1',
        'bgcolor', '#ffffff',
        'name', '3868-1',
        'menu', 'true',
        'allowFullScreen', 'false',
        'allowScriptAccess','sameDomain',
        'movie', '3868-1',
        'salign', ''
        ); //end AC code
</script>
<table width="766" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="766" height="350" id="3868-1" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="3868-1.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />   
    <embed src="3868-1.swf" quality="high" bgcolor="#ffffff" width="766" height="350" name="3868-1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    </object>
</noscript>
    </td>
  </tr>
</table

Similar Messages

  • Flash .swf plays fine in Dreamweaver Not online

    Hi there.
    I have placed a .swf file in a table and it plays fine in Dreamweaver. When I upload it to the ftp it doesn't play online! Any ideas??
    Thank you in advance!
    V

    I double checked everything! I actually have other videos playing on the site. I am having problem with two of them.
    Here is a link of one that IS working:
    http://malenabergmann1.com/about_movie.html
    Here are the two links that ARE NOT working:
    http://malenabergmann1.com/adrift_movie.html
    and
    http://malenabergmann1.com/hour_movie.html
    Do you have any other ideas?? Thank you so much for helping me:)
    v

  • Playing Flash SWF in Director 11

    I created a simple navigation slide type show in Flash CS3
    and tried to use it in a portfolio that I'm creating in Director
    11. I imported the Flash SWF into Director and when I go to the
    file it plays automatically and keeps looping; my navigation
    buttons and actionscript 3.0 that I applied in Flash do not work
    (they do work in the SWF file played with Flash Player 9). I assume
    that I need a sprite script for my SWF cast member in Director, but
    I haven't got a clue as to what to script. I learned Director about
    12 yrs. ago, but haven't used it much since then . . . and I've
    just learned Flash CS3.
    PLEASE HELP . . .
    Thanks
    weet335

    Thanks for the tip, Dan! Now, I've got to ask . . . how
    different is AS2 from AS3? I don't know AS3 good enough to convert
    it to AS2. Where might I find some help for my AS3 script?
    Thanks
    weet335

  • My Flash SWF file inside of my Flash Catalyst SWF won't play when previewed in Dreamweaver?

    However, when I preview the flash catalyst swf file, the flash swf thats inside, plays just fine. any suggestions or solutions?

    Does the one swf load the other swf?  If so, is the one swf in the same folder as the html file that embeds it?

  • How to Prevent Flash Animation Playing?

    I have a flash animation that plays automatically when the user lands on the homepage of my site. It's part of the header, so it's present on every subsequent page of the site as well. However, I would like it to NOT play on the other pages. It should be visible, but only display the first frame or so of the animation, rather than playing automatically on every page.
    How do I stipulate that in the code? Is there a line I can add somewhere?
    Thanks for any help.

    the easiest thing to do, is to create two different swfs.  one for the home page (that you've already made) and one for the other pages which will be the same as the one you have now except you want to add a stop() to the swf's first frame.

  • Flash not playing correctly in Captivate

    I have Captivate 4 and Flash CS4.  I have created a Flash .swf in Actionscript 3.0 that has several interactions.  I have placed stop(); in Frame one, Frame 5, and Frame 10 and then depending on the interaction I have gotoAndPlay (5) or gotoAndPlay(10).
    The resulting .swf works properly in Flash Player, but when I place the .swf into Captivate it ignores the stops in the actionscript on Frames 1 and 5 and goes directly to Frame 10.
    I don't have any idea how to make it play correctly.  Any suggestions would be appreciated.
    Frank

    Hi Frank
    Have you configured Captivate for AS3?
    Edt > Peferences > Project > Publish Settings
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Flash not playing correctly in Chrome or Firefox

    I did a Flash SWF file on CS5.5, and then published the output. It has 5 imported videos (FLV), all placed within the same directory as the FLA, SWF and HTML files. When I go ahead and open the HTML file on Chrome, the SWF file plays, but when I get to the frame where the placed FLV files were supposed to play, the videos don't appear at all. Same goes for Firefox. However, it plays correctly in Internet Explorer.
    I'm a total Flash beginner, so I have no idea what I'm doing wrong here.
    I've uploaded screenshots of the HTML code and of the SWF file in Chrome.
    http://dl.dropbox.com/u/89001193/screenshot1.jpg
    http://dl.dropbox.com/u/89001193/screenshot2.jpg
    http://dl.dropbox.com/u/89001193/screenshot3.jpg
    Also, I tried creating a Win Projector EXE file, and I get an error dialog saying "Destination Directory Does Not Exist. Change Your Publish Settings", whe in fact I used the default publish settings.
    I'd really appreciate expert advice on this, especially if you can "dumb down" your answers to total beginner level.

    Are you using relative links to the paths of the media, e.g.: assets/videos/movie1.flv ?
    What are you using for FLV playback, the FLVPlayback component itself or are you handling NetStream/Video yourself, or StageVideo?
    Default publish settings are never to be trusted in Flash, ever. Paths are RARELY ever saved correctly unless they're relative and even then it's not safe to assume it's correct. I've, long ago, made it a habit of going into publish settings, clicking the browse icon next to SWF/HTML/EXE/etc and manually set the location to publish every single time. If you do that the error should go away about publish destination (and yes, it's really irritating).
    What FLV codec did you use?

  • Importing Flash (.swf) to Keynote

    Hi all,
    I am working in Keynote '08 (4.0.2) and have Quicktime 7.4.1 (14) installed. I need to import a Flash (.swf) file and play it in Keynote. Even though the online help says this: "You can also add video or Flash movies that play within a slide. For Flash to work with QuickTime 7.1.3 and later, choose Apple menu > System Preferences, click QuickTime, click Advanced, and select Enable Flash." Keynote 4.0.2 does not accept .swf files (they are grayed out) and Quicktime 7.4.1 cannot play an .swf (This is not a movie file). Should I unistall QT 7.4.1 and install a previous QT version? Can Apple fix this problem? Any other suggestions? Thanks

    Thanks for your quick response. Perian helps with Flash video but as far as I can tell it does not help with swf format. I have an actionscript loaded flash file that cannot be converted to MPEG-4. If you are indeed correct and Apple no longer supports swf with QT then I want my money back for iWork. It clearly states in their manual/help that users can import swf files and play them in Keynote. What a rip-off.
    Is there a way to unistall QT 7.4.5?
    Thanks.

  • How to set up one-button embed-hotlinking for Flash SWF?

    Hello,
    I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
    Thanks,
    Tom

    you can use the following.  the bolded lines require you to use appropriate values:
        <div id="flashContent">
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
                    <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                   <object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
                        <param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>
            </div>

  • Progressive Flash Not playing properly from remote server

    I have Flash CS3.
    PROBLEM: I've encoded a video using Flash's CS3 "Progressive
    Download" option and then uploaded the resulting video (along with
    it's associated files created by Flash ie: .fla, .swf, script
    folder with action script, etc.) to my server (webpage and video
    was created through Dreamweaver CS3).
    RESULT: A flash video that plays on the web, but has pink
    colored digital boxes that breakup the picture... poor quality.
    Please follow this link for an example:
    http://rivhawk.tripod.com/index.html
    I've watched multiple step-by-step tutorials by Adobe for
    creating and uploading Flash video, both with Flash CS3 and even
    Dreamweaver CS3. I've tested by creating the flash content in Flash
    CS3 and directly through Dreamweaver. The same digital noise, pink
    blocks occured.
    NOTE: Before uploading the flash content and associated
    files, I tested the flash video in my browser through Dreamweaver
    (from my local directory, not remote server)...and it
    plays/operates perfectly. It's only once it's uploaded that the
    problem occurs.
    I've encoded the video with Flash 8 and Flash 9 at low,
    medium and high qualities...same results (even by different
    computers accessing the content on the internet). It happens in
    Firefox and Internet Explorer.
    After 3 days of tests and research (and viewing samples of
    other beautiful progressive download videos on the internet) I'm
    wondering if I am missing something very simple, if there is a bug,
    is this a known issue etc.
    Please help, and please understand that I've been through all
    the tutorials on creating/using Flash Video...and specifically
    using the Progressive Download option for use on remote servers
    that don't have the Flash Media Server.
    Please assist.

    > Hi, I am very new to the video thing. I created a Flash
    swf that plays an
    > flv
    > file and everything works fine when I upload the swf and
    the flv file to
    > the
    > same directory on our web server. We'd like other web
    sites to be able to
    > place
    > this video on their site, but we do not want to give
    them the actual
    > files,
    > rather have the video files pull from our server.
    You can play video from any server by using a full URL ie
    http://www.anotherdomain.com/flashvideo.flv
    <param name="movie" value="videos/rep.swf" />
    Looks like you're building an FLV player in Flash to play
    your video rather
    than embedding it using DW. If so you need to open the source
    FLA you used
    to generate 'rep.swf' and insert a full URL to your flv file,
    then publish
    the swf and upload again.
    > I've tried changing the value and embed source tags to
    be complete urls
    > referencing the actual video location, but I still get
    an error saying the
    > flv
    > file cannot be found. Is there a way to do what I'm
    requesting?
    As above, or you can just embed the video on a web page in
    DW, using a full
    URL to your flv. If your flvs are on a server and you are
    connected to the
    internet, you should be able to play the flv using preview in
    browser before
    uploading the page.

  • What HTML code do I need to get Adobe Flash to play an embedded MP4 video file (8 MB)?

    What HTML code do I need to get Adobe Flash to play an embedded MP4 video file (8 MB)?
    Thanks
    Mark

    Here are a couple of ways, one using the Netstream class and the other using the FLVPlayback component.
    For the NetStream approach, the following in the timeline code will play/loop the intended mp4 file...
         var video:Video;
         var connect_nc:NetConnection = new NetConnection();
         connect_nc.connect(null);
         var stream_ns:NetStream = new NetStream(connect_nc);
         stream_ns.client = this;
         function netStatusHandler(p_evt:NetStatusEvent):void {  
             if (p_evt.info.code == "NetStream.Play.Stop") {
                 stream_ns.seek(0); // to loop the video
         stream_ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
         video = new Video();
         addChild(video);
         video.attachNetStream(stream_ns);
         stream_ns.play("path_to/your.mp4");
    For the FLVPlayback component, add it to the stage, give it an instance name ("fp" used below), assign your mp4 file ("path_to/your.mp4") as the source property in the Properties panel, and select the option to autoplay as well.  Place the following code in the timeline...
         fp.addEventListener(Event.COMPLETE, playAgain);
         function playAgain(evt:Event):void {
             fp.play();
    To put the Flash swf file in an html page, in the Publish Settings set it to publish an swf and an html page.  Publish the file an the html page will be created for you.

  • 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!

  • Flash SWF (with as3 code) integrate in Flex probelm

    Hello everyone,
    I'm having a problem to make my Flash SWF working in Flex. I
    created an animation movieclip, made a button and wrote a script to
    play this movieclip in Flash. Everything works fine but when I use
    SWFLoader in Flex to integrate this SWF in my application. This
    "play" button is working anymore in Flex.
    Should I remove the button and script in Flash and put them
    in Flex? How could I write the script in Flex to call a function to
    play this SWF?
    Is there any other way to solve this problem?
    Thank you in advance.

    "Smile2JP" <[email protected]> wrote in
    message
    news:gmqtde$fbi$[email protected]..
    > Hello everyone,
    >
    > I'm having a problem to make my Flash SWF working in
    Flex. I created an
    > animation movieclip, made a button and wrote a script to
    play this
    > movieclip in
    > Flash. Everything works fine but when I use SWFLoader in
    Flex to integrate
    > this
    > SWF in my application. This "play" button is working
    anymore in Flex.
    >
    > Should I remove the button and script in Flash and put
    them in Flex? How
    > could
    > I write the script in Flex to call a function to play
    this SWF?
    > Is there any other way to solve this problem?
    I have an example on my blog that demonstrates controlling a
    Flash movie
    from Flex:
    http://flexdiary.blogspot.com/2009/01/example-of-casting-contets-of-swfloader.html
    I included links to more basic examples in the code, so you
    might find one
    of them helpful even if this isn't.

  • My Flash Swf file dont load

    Ok do i made a Flash Swf, when i view in on adobe flash it works fine, but i need to upload it so i can use it on my site problem is when i do nothing loads, images, text. Its just a black box where the content should be but it just says Loading.

    Was there an answer to this issue ever? I have this problem in Captivate after importing an swf. The swf shows up fine in editing mode on the slide... but when I preview or publish (even locally), it stops playing prematurely and jumps to the next slide.
    No content management system is involved in my case, and this is local, not online.
    Please help!!!

  • Is there a way to have one flash player play all moives on a web page ?

    Hi,
      Is there a way to have one flash player play all movies on a web page ?   For example, you have a list of FLV movies on a page and you click on any them and it will play on the same player on the web page. Or does each movie needs it's own ?
    Thanks in advance..
    Peter

    Yes, for the design I made, the movies are loaded from the server.  Here is the code for the design.  It is done using AS2, and the stage includes two buttons (s1, s2) for playing the individual videos, one button to play them both (playall), one after the other, and the video object (video1_video) that was added via small menu you find at the top of the library panel's frame.
    I cannot say this would work directly for your implementation, but it gives you some things you can look into so that you can figure out how.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    // ignore whatever code is above this... the forum added it, not me  
    stop();
    ncount = -1;
    var connection_nc:NetConnection = new NetConnection();
    connection_nc.connect(null);
    var stream_ns:NetStream = new NetStream(connection_nc);
    stream_ns.setBufferTime(3);
    stream_ns.onStatus = function(infoObject:Object) {
            for (var prop in infoObject) {
                   if(infoObject[prop] == "NetStream.Play.Stop" && ncount == 0){
                       video1_video.attachVideo(stream_ns);
                       stream_ns.play("20051210-w50s.flv");
                       ncount += 1;
    playall.onRelease = function(){
          ncount = 0;
          video1_video.attachVideo(stream_ns);
          stream_ns.play("barsandtone.flv");
    s1.onRelease = function(){
          video1_video.attachVideo(stream_ns);
          stream_ns.play("barsandtone.flv");
    s2.onRelease = function(){
          ncount = -1;
          video1_video.attachVideo(stream_ns);
          stream_ns.play("20051210-w50s.flv");
    I don't deal with video very often, so I have not created an AS3 version of this.

Maybe you are looking for