Problem in embedding 2 swfs in a single html

hi,
i am currently embedding 2 different swfs in a single html file,but i'm having problems.
i am trying to embed the other swf programatically using js, but i'm getting a script error..
i am also having problems in running it in other browsers because it's only working good in ie and firefox..
i know that we need to embed it, using object,embed tags and embed it in the active content area.
how do i embed it properly?
here is my code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title>DWP Test Page</title>
        <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
            <script language="JavaScript" type="text/javascript">
    //Declare all global variables
            var mediaDivId="m1";
            var imageDivId = "m2";
            var imageNode;
            var mediaNode;
            var propertyStyle;
            //Function to access the Flash movie
            function getFlashMovie(FlashMovie)
                        var isIE = navigator.appName.indexOf("Microsoft") != -1;
                        return (isIE) ? window[FlashMovie] : document[FlashMovie];
            //function to play media in Main Page
            function OpenMedia(type,url)
                    //Declare local variable and pass the div ID of Image and Media node
                    //and set a value for property style
                    var content;
                    var activeContent;
                    imageNode = document.getElementById(imageDivId);
                    mediaNode = document.getElementById(mediaDivId);
                    propertyStyle = "hidden";
                    //Set Image property to hidden and Clear media
                    imageNode.style.visibility = propertyStyle;
                    mediaNode.innerHTML = "";
                    //Embed Media Skin in Main Page
                    content='<noscript><object id="FlashMovie"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="500" height="500" id="dwpPlayer" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="dwpPlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed name= "FlashMovie" src="dwpPlayer.swf" quality="high" bgcolor="#ffffff" width="500" height="500" name="dwpPlayer" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object>';
                    activeContent = '<script language= "JavaScript" type="text/javascript">' + "AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0','wid th', '500','height', '500','src', 'dwpPlayer','quality', 'high','pluginspage', 'http://www.adobe.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', 'window','devicefont', 'false','id', 'dwpPlayer','bgcolor', '#ffffff','name','dwpPlayer','menu','true','allowFullScreen','false','allowScriptAccess', 'always','movie', 'dwpPlayer','salign', '');" + "</script>";
                    mediaNode.innerHTML = activeContent + content;
                    //Calls action Script and Pass Media type and URL
                    switch(type)
                        case (type == 'video'):
                        getFlashMovie("dwpPlayer").sendVideoURLToFlash(url);
            //function InsertActiveContent()
            //    var active = '<script language= "JavaScript" type="text/javascript">' + "AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0','wid th', '500','height', '500','src', 'dwpPlayer','quality', 'high','pluginspage', 'http://www.adobe.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', 'window','devicefont', 'false','id', 'dwpPlayer','bgcolor', '#ffffff','name','dwpPlayer','menu','true','allowFullScreen','false','allowScriptAccess', 'always','movie', 'dwpPlayer','salign', '');", "</script>");
            //Function to close the Media and show image
            function RemoveMedia()
                    alert("Hoy!");
                    //Set value for local variable
                    mediaNode = document.getElementById(mediaDivId);
                    imageNode = document.getElementById(imageDivId)
                    propertyStyle = "visible";
                    //Clear InnerHTML of division for media
                    mediaNode.innerHTML="";   
                    //Set Image property to visible
                    imageNode.style.visibility = propertyStyle;
                        // -->
            </script>
    </head>
    <body>
        <object id="FlashMovie1"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="600" height="600" id="dwp_CarouselBackUp" align="middle">
        <param name="allowScriptAccess" value="always" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="Carousel.swf" />
           <param name="quality" value="high" />
           <param name="bgcolor" value="#ffffff" />
        <param name="flashvars" value="xmlFile=Carousel.xml" />   
        <embed name= "FlashMovie1" src="Carousel.swf" flashvars="xmlFile=Carousel.xml" quality="high" bgcolor="#ffffff" width="500" height="500" name="dwp_CarouselBackUp" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
        </object>
        <input type=button value="Send" onClick="javaScript:OpenMedia('video', 'Call_to_action.flv')"/>
        <table style="TABLE-LAYOUT: fixed; OVERFLOW-X: hidden; WIDTH: 808px; HEIGHT: 706px">
            <tr>
                <td>       
                </td>
                <td>
                <div id ="m1"></div>
                <div id = "m2"></div>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </table>
    </body>
</html>

the thing thats now working is the part where the js embedded the dwpPlayer.swf.
     //Embed Media Skin in Main Page
                    content='<noscript><object id="FlashMovie"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0 ,0,0" width="500" height="500" id="dwpPlayer" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="dwpPlayer.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed name= "FlashMovie" src="dwpPlayer.swf" quality="high" bgcolor="#ffffff" width="500" height="500" name="dwpPlayer" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object>';
                    activeContent = '<script language= "JavaScript" type="text/javascript">' + "AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0 ,0,0','width', '500','height', '500','src', 'dwpPlayer','quality', 'high','pluginspage', 'http://www.adobe.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', 'window','devicefont', 'false','id', 'dwpPlayer','bgcolor', '#ffffff','name','dwpPlayer','menu','true','allowFullScreen','false','allowScri ptAccess','always','movie', 'dwpPlayer','salign', '');" + "</script>";
the player is showing but it doesnt retrieve any values. unlike when it was embedded normally.
If i may ask,
normally how will we embed 2 swfs? coz, i normally embed them by creating separate instances of the 2 swfs.
Like this:
Note: this embedding works manually if js doesnt need to create the embed itself.but when we translate it by embedding it programmatically. the player shows upon click but theres a script error that an object needs to be embedded.
<script language="JavaScript" type="text/javascript">
    AC_FL_RunContent(
        'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
        'width', '800',
        'height', '600',
        'src', 'dwp_Player',
        'quality', 'high',
        'pluginspage', 'http://www.adobe.com/go/getflashplayer',
        'align', 'middle',
        'play', 'true',
        'loop', 'true',
        'scale', 'showall',
        'wmode', 'window',
        'devicefont', 'false',
        'id', 'dwp_Player',
        'bgcolor', '#ffffff',
        'name', 'dwp_Player',
        'menu', 'true',
        'allowFullScreen', 'false',
        'allowScriptAccess','always',
        'movie', 'dwp_Player',
            'flashvars','xmlFile=3DCarouselSettings.xml',
        'salign', ''
        ); //end AC code
</script>
and like this..
<noscript>
    <object id="FlashMovie"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="800" height="600" id="dwp_Player" align="middle">
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="dwp_Player.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="flashvars" value="xmlFile=3DCarouselSettings.xml" />   
    <embed name= "FlashMovie" flashvars="xmlFile=3DCarouselSettings.xml"  src="dwp_Player.swf" quality="high" bgcolor="#ffffff" width="800" height="600" name="dwp_Player" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    </object>
</noscript>
    <object id="FlashMovie1"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="800" height="600" id="Carousel" align="middle">
    <param name="allowScriptAccess" value="always" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="Carousel.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="flashvars" value="xmlFile=3DCarouselSettings.xml" />   
    <embed name= "FlashMovie1" src="Carousel.swf" flashvars="xmlFile=3DCarouselSettings.xml" quality="high" bgcolor="#ffffff" width="800" height="600" name="Carousel" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    </object>

Similar Messages

  • Problems with embedding swfs into Director 11.5

    Hello everyone,
    I am hoping someone can help me and please bear with me - I don't know a lot about director - I can do some Lingo and get around in the program to make things work.
    Right now I am working on an interactive presentation where the user can click a button to view an animation. I am using Director 11.5 for my presentation and have made my animations in After Effects CS3 -- from there I converted my .mov files to .flv files using the Adobe Media Encoder CS4... then I took my .flv file into Flash and published it as a swf file.
    The problem that I am having is that when I play the presentation (within Director and after publishing the .app/projector file) the swf files are playing - but there is all this glitchy-artifact stuff all over them. Does anyone know why this would be happening? When I play the swf files in the flash player they look great. Before, when I was using Flash MX and Director MX, I never had any problems with embedding my swf animation files - and they played great - without any artifact. Any and all help would be much appreciated as this project is due in the next few days and I would prefer to figure out a solution rather than uninstalling Flash CS4 and Director 11.5 - and going back to MX.
    I toyed with the thought that my video card isn't good enough but I tested the .app file on another machine and the glitchy-artifacts were still there. I have attached a jpg showing the artifact that appears.
    I am running Mac OS X 10.5.7
    Dual 2 GHz G5 PowerPC
    ATI Radeon X800 XT
    Thank you!

    Sorry... here is the image again and I think the problem might be my machine -- it is very old (~4+ years) and when I tested my .app on a newer intel mac here it worked fine... but maybe I am missing something -- it seems odd that I can see the swf fine in flash player but it is glitchy when played through director or the .app projector file

  • Printing an embedded .swf file in a .html page

    not sure which forum to ask this....so this question may
    appear in other forums as well.
    I have a web page that I built in DreamWeaver using CSS. On
    this webpage I have a .swf file embedded in one of my <div>
    tags. When the user hits File>Print, I want only the .swf file
    to print and not the other areas (i.e. header, footer, nav bar
    etc.) of the webpage. The following website does exactly what I
    want.
    http://www.chevrolet.com/avalanche/colors/
    Can anyone point me in the right direction to solve how to do
    this?
    thanks!
    D

    You need to specify in the CSS which items you want to
    print... Check out this...
    http://www.adobe.com/devnet/dreamweaver/articles/designing_css_pt6_04.html

  • Embedded swfs

    I want to open an html file into the same browser window from an already embedded swf file in an html file.  I have tried
    navigateToURL(new URLRequest("myhtml.html"),"_parent");
    navigateToURL(new URLRequest("myhtml.html"),"_root");
    navigateToURL(new URLRequest("myhtml.html"));
    I still get the html file loaded into a blank window and so I have umpteen windows open after a short amount of time.

    use:
    navigateToURL(new URLRequest("myhtml.html"),"_self");

  • Embedded swf "jumping" when scrolling an html page

    Hello!
    I have created a banner file in Flash and when embedding an swf file on the html page the swf banner appears to be "jumping" up and down when the page is longer and needs to be scrolled. This only happens when scrolling the page.
    I put up an example here:
    www.selkografiikka.com/test/coaching4.html
    You can see the black swf box jumping towards the red dots when scrolling.
    This turns out to be a problem on a website I'm working with since it's creating a rather nervous vibe to the whole feel of the site - example here:
    http://www.selkografiikka.com/tindra/index.htm
    Any ideas what's causing this?
    I am using Dreamweaver and Flash cs3.
    It seems to be a problem in all the browsers.

    Thank you Jon and Nancy for your replies.
    Sorry it took me a little while to figure out how to reply here.
    I’m happy this is not a problem on each computer according to your replies.
    I believe Java Script would be more up to date way of doing this, but the original idea was more complicated – with animated text and such so that’s why flash. I thought just to make a static picture that will show in ipads and such when flash is not supported.
    I can still see that jumping thing although I updated my flash player and otherwise have just the same browser versions as Jon.
    I might consider switching the animation part to javascript animation.
    Thank you guys!
    Liisa

  • Embedding swf into HTML+JS AIR app

    Hi
    I'm trying to embed swf into HTML+JS AIR app with no luck.
    First, I created flash library with this class in default package.
    package
         import mx.controls.Alert;
         public class Utilities
              public function Utilities()
                             //asdfasdf              
                   Alert.show("asdasd","");
    Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
    After this is added required code into my html:
    <html>
    <head>
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js"></script>
        <script src="library.swf" type="application/x-shockwave-flash"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                alert('loaded');
                air.Introspector.logError("aaa");
                var v = new runtime.Utilities();
        </script>
    </head>
    <body>
    </body>
    </html>
    Then after I run application, I get error that result of expression is not constructor, function etc.
    Could you help me please?  Thanks in advance.
    Here is sample code:
    http://depositfiles.com/files/jztpnlb3a

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • Cannot see embedded swf's in html

    When creating my flash file, i load swf files into loaders on my stage. When testing it, it works fine, but when publishing it to the web, it dosn't show the embedded swf's?

    I'm assuming you intend that the embedded swf is the one that loads the other swfs... the one that is coded into the html page, not the ones that are loaded into loaders.  Did you upload the AC_RunActiveContent.js file that Flash creates?

  • Re: embedding SWF into HTML

    I don't seem to be able to add to the discussion! Hans wanted the url of the file that works: http://claudinegrandjean.com/Me.- html this is the one that doesn't please forget the placement of the SWF I could fix it if it worked; Cheers, Claudine

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • WAD: Problems when exporting to PDF with embedded .swf

    I'm using Web Application Designer (WAD) 7 and have created a template with an "Export to PDF" button and an embedded .swf flash file which is an Xcelsius dashboard.
    What i'm trying to do is show the information I want on my dashboard and then export that to a PDF to email out to multiple users who would be interested in the data each month.  If exporting to PDF isn't the best route to get a snapshot of this dashboard out to other users and there's an easier way please let me know, but here are the issues i'm having:
    1) When I have the dashboard showing the information I want and click the "Export to PDF" button, the dashboard reloads as the PDF settings window pops up and gets reset back to it's initial state.
    2)  If I ignore problem #1 and click on 'OK' in the Export dialog anyway after selecting PDF settings, my Adobe Reader pops up but then shows a message saying "The file cannot be opened because it has no pages".  Basically it doesn't see the .swf as being a component to take a snapshot of and print on a PDF. I did try adding a text component just so there was something on the template and I then get a PDF with that text component showing and no .swf snapshot.
    Has anyone come up with a workaround for this?  I've tried using the BEx Broadcaster with the 'Send' option but get the same results in regards to the blank page.
    Thanks as always for the help!

    Thanks for the reply.
    The dashboard is connected to a query in NetWeaver BI to get its data.  So the request of the user is to be able to adjust the dashboard to show the information they need (well say of a certain region) and then take a snapshot of that and email it out to co-workers in Group A.  Then the user will adjust the dashboard to show other data (for a different region we'll say) and take a snapshot to email out to co-workers in Group B. etc and etc.
    I have looked into installing a PDFCreator print driver but that wouldn't be feasible to get it on all machines in the business.  I've also looked into getting it as a .jpeg which would suffice, but am unsure if there is a way to do it with script and connect that to the dashboard when a button is pushed (will look into this).  This seems like a topic for over in the Xcelsius forum now.
    I used the following code within the <body></body> tags of the WAD's xhtml to embed the .swf:
    <object id="dashboard" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="600" width="800" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
    <param name="Movie" value="bwmimerep:///sap/bw/mime/Customer/JavaScript/dashboard.swf" />
    <embed src="bwmimerep:///sap/bw/mime/Customer/JavaScript/dashboard.swf" name="dashboard" type="application/x-shockwave-flash" />
    </object>

  • Embedded swf not playing in Captivate 4

    Hi - I have embedded a flash authored swf into CP4, it is published from flash as a ver 9 swf.  I am using Flash Player 10 on the PC. It's a single frame swf and contains AS3 code to make a simple rollover image popup (further development is planned but just testing for now).  It works when viewed standalone in a browser or with the flash player
    In CP4 when played by either previewing it or by publishing and viewing in a browser, the screen with that swf on it is a 'white screen of death'.  I have tried the following:
    1. clicking and unclicking synchronise with project
    2. click and unclick externalize animations check box in prefs - the swf file was also manually copied over to the publish directory
    3. set display for "duration of animation"..also tried 'rest of slide' and 'specific time'
    4. click and unclick - 'synchronise with project'
    5. Set Actionscript Version in prefs to "AS3"
    6. I placed another different swf (flash ver9) onto the following slide in CP4 - this one with no Actionscript content at all - just a simple timeline based motion tween.  It works!
    Does anyone know if CP4 cannot accept embedded swf's with Actionscript 3 code in them?

    Hi there
    Oftentimes the warning about referencing Root is simply a nuisance and may be totally ignored.
    I find that the animation works here on my own PC if I click Edit > Preferences... > Project node > Publish Settings node and configure for AS3.
    Perhaps try that?
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Embedding SWF in a text field

    Hi, New user to Flash here with a problem embedding .SWF
    files. I have already existing SWF files that I have called
    historically from HTML using <object> to embed the object and
    <param name= value=> also to pass it information. The SWF
    movie I need to embed basically builds a graph and takes its data
    from the location you supply it in <param name= value=>
    field. This code is not mine and I can't alter it.
    What I want to do is construct a flash version of my site and
    embed these graphs within a flash textfield. I have been able to
    successfully embed a test SWF file using <img> tags on a text
    field ---> but here is my question. How do I support the
    <param name= value=> functionality I got when I called these
    graphs from HTML using <object>?
    I hope that's clear? Any help at all is greatly appreciated.
    Tom

    Tom,
    > What I want to do is construct a flash version of my
    site
    > and embed these graphs within a flash textfield.
    That's a really interesting approach. At first, I didn't
    understand
    what you were aiming for, but it sounds to me like you're
    tying to use HTML
    inside a Flash text field -- which is doable, to some extent
    -- and embed an
    external SWF in that HTML ... all within Flash.
    > I have been able to successfully embed a test SWF file
    > using <img> tags on a text field --->
    That does work, but it's about the closest you'll get, I'm
    afraid. It's
    only happenstance that Flash's very narrow (and somewhat
    unique) version of
    HTML accepts SWFs in an <img> tag.
    > but here is my question. How do I support the <param
    name=
    > value=> functionality I got when I called these
    graphs from
    > HTML using <object>?
    Flash only supports a very limited subset of the HTML
    language. You can
    see the full list of supported tags by searching the phrase
    "supported tags"
    in the documentation (specifically, the Learning ActionScript
    2.0 in Flash
    book). For better or worse, <object>, <param>,
    and <embed> are simply not
    in that list.
    > Any help at all is greatly appreciated.
    Your only choice is to use one of the more traditional
    methods of
    loading external SWFs, such as loadMovie(),
    MovieClip.loadMovie(), or the
    MovieClipLoader class. Once your external SWF is loaded, you
    may "feed" it
    variables that should be detectable by the ActionScript
    inside the loaded
    SWF.
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to embed a swf video into an html page?

    I am haing trouble embedding my swf video into my html page. Here is my code:
    <embed height="340" width="549" src="flashvideos/test.swf" allowscriptaccess="always" allowfullscreen="true" flashvars="&amp;MM_ComponentVersion=1&amp;skinName=C:/Users/RogerPa1/Documents/Visual Studio 2008/WebSites/WebSite1/Products/Create/flashvideos&amp;streamName=C:\Users\RogerPa1\Docum ents\Visual Studio 2008\WebSites\WebSite1\Products\Create\flashvideos\Robotics&amp;autoPlay=true&amp;autoRew ind=false"></embed> 
    When I run the page the place where the flash player should be is blank. But if I right click I can select settings so the flash player is there. I'm using absolute urls for the flashvars because I read in a forum that that's what you're supposed to do. Anyway I am a little frustrated that the video won't play. I tried creating a video with no skin and the same problem occurs.
    Thank You
    idesofdecember

    Answered

  • How to make a Loadvars sendAndLoad request from embedded swf in flex

    I've developed a simple flex app with embedded swf. Basically swf use Loadvars to get data from particular database table. Ok, when I tested the flex app on localhost it is works fine and embedded swf make its sendAndLoad calls correctly.
    But! When it is located on the web server swf not work correctly. I meant there is not returned values by sendAndLoad method.
    Well, to make some points: questionContentLoadVars.img1 holds(return) the string from php call. This "img1" is an empty returned string only in Flex app placed in the web server otherwise it returns correct value from php call?
    When gameplay22.swf is standallone works!
    When gameplay22.swf is in HTML page works!
    When gameplay22.swf is embedded in FLex and executed in LOCALHOST works!
    But in the web server this embedded gameplay22.swf doesn`t works!
    What is the problem with it?
    //* here is flash(swf) part of gameplay22.swf file which is embedded in the Flex by SWFLOader(gameplay22.swf)
        questionContentLoadVars = new LoadVars();
        questionContentLoadVars.onLoad = function(success){
        if (success){
        slidingSvityk_mc.descripTA_mc.description_ta.text = questionContentLoadVars.theContent;
        else 
        slidingSvityk_mc.description_ta.text = "err!";
        function loadQuestionData(sectionID){
        var tablename ='questionsgeo';  // database tablename
        //sending variables to the PHP script
        questionContentLoadVars.row = sectionID;
        questionContentLoadVars.tablename = tablename;
        questionContentLoadVars.id_ = "";
        questionContentLoadVars.img1 = "";
        questionContentLoadVars.sendAndLoad("getQuestionRec.php",questionContentLoadVars,"_POST") ;
        function showLoadedGalleryImages():Void{
        infphp.text = questionContentLoadVars.img1;
        var img1Bulk:MovieClip = new MovieClip();
        img1Bulk = imgGalleryContainer_mc.img1Bulck_mc.createEmptyMovieClip(img1Bulk, _root.getNextHighestDepth());
        img1Bulk._x = 0;
        img1Bulk._y = 0;
        image_mcl.loadClip(questionContentLoadVars.img1, img1Bulk);
        //* And here is Flex part of embedded SWFLOader(gameplay22.swf) component
        <s:SWFLoader includeIn="user" width="1024" height="768" horizontalCenter="0" source="gameplay22.swf" verticalCenter="0"/>

    Thanks kglag, for trying to help,
    As i posted in another forum the problem was in the free flex example which i used to add another state and by using SWFLoader to  embed my swf file.
    Now i was created my own flex app and add SWFLoader to embed my swf and voila - it works!
    There is no cross-domain loads  the loaded content is in the same domain.
    So, again thanks!

  • Embedded SWF very slow to load in browser

    I have placed a swf slide show in Flash catalyst about 500k the problem is when I playback in the browser the embedded swf file displays long after the rest of the website has loaded and built. It works fine after I refresh and the file is loaded in the Cache.. but makes for a poor user experience when viewing for the first time, First impressions count.
    If I place the 500k swf in Dreamweaver it loads almost instantly from the remote server.
    For some reason Flash catalyst has a difficult time decoding and playing.
    The flash file was built in CS5 default settings.
    Any help on having the swf load first or process faster would be great.
    I know that file size is a issue but 500k is not that much.
    Heres the url.
    http://www.moonlightdigital.me/Test/home/home.html
    Thanks Curtis

    Hi Tanya,
    http://forums.adobe.com/message/2816273#2816273 like in this thread i used "On application start interaction" and i slected my swf files to load in application start.But i think nothing has changed.this the web site which i upload after that changes...http://www.fndim.com/altis2/main.html
    I think the problem is, in the preloader my embedded swf files doesnt installing to the browser...i want that everything is intalling with the preloader in the begining.If you want i can send you my fxg file..but i dont know how can i send it to you ?

  • Problems with embedding .flv files in DW CS4....

    I inserted an .flv file into my DW CS4 html page. I previewed it in my browser, and it worked for a little bit, but now it's not working in any browser, I'm not sure what happened. I included a screen shot in the attachments of what was happening in all the browsers.
    Thanks for any help,
    Thank you,
    Aza

    Not sure if that was meant for me
    You can tell who was the intended recipient by looking at the header of the message -
    6. Sep 10, 2010 6:50 AM in response to: FordGuy48 <<----
    Re: Problems with embedding .flv files in DW CS4....
    A link to the page would help us diagnose your problem.
    Safari tells me that this file -
    FLVPlayer_Progressive.swf
    is not where you have told the page to expect it.  Did you upload it?

Maybe you are looking for