Embeded Flash movies in Flex app

Hi,
Flex noob with no real Flash experience. I have successfully
loaded a Flash analogue clock swf file into an app I'm
experimenting with in Flex. I used the image tag and is works well.
I would like to also embed a Flash movie which is a news scroller.
This movie calls in an external XML file as it's text source (who's
content I change dynamically with php) and the original movie was
wrapped in some html which passed in some 'param' parameters. Can
anyone explain how Flex handles Flash movies like this?,
many thanks,
Mike

I found a solution to my problem so I thought I'd answer my
own question here for the good of others who may experience the
same issue. When using Flex on your local machine (localhost),
security precautions inherent in Flash prevent the movies from
showing up in Flex. Once I tested on the production server the
movies showed up fine. The problem was nothing to do with the
param's being passed in and Flex did not need any of the info from
the html wrapper as far as I can make out,
Hope that saves another newbie from some hair pulling,
cheers,
Mike

Similar Messages

  • Embedded Flash movie locks up Browser

    It doesn't seem to matter which of the top three
    browsers I use, but most often when you go to
    a website page that automatically (or not?)
    launches an embedded Flash movie, a little
    window pops up inside that embedded movie
    asking me to click Allow or Deny.
    But NIETHER is clickable, the browser is locked,
    nothing can be clicked and ALL other tabs are locked
    and cannot be clicked either.
    I have to hit CTRL+ALT+DELTE to kills the
    browser in Task Manager. .A HUGE annoyance,
    that comes unexpectedly because you don't know
    when an embedded movie will be on the next page
    you click.
    How do I stop that Allow/Deny message popping up??
    -Drew

    CCWTechUtah wrote:
    I'm running the latest ATI driver
    The latest driver from Microsoft Update, or from the AMD download site?  See http://forums.adobe.com/thread/945765
    Green screen is usually an indication for some incompatibility with the graphics driver, although turning Hardware Acceleration off should prevent that from happening.

  • Dailymotion embedded flash movie not working anymore

    I cannot seem to get Dailymotion embedded flash movies working. The movie is just a black screen. The same embedded movie on the same webpage works in windows. (Non-embedded) movies on the official Dailymotion site still works though.
    This happened only recently. I thought maybe it was a flash 10 issue, but after rolling back to flashplugin 9, the problem still remains.
    Does anyone has the same problem?

    Usually when a browser has an issue playing a Flash file it is due to the embedding code that is used in the html page.  Can you compare your code to another page's code to see what differences there are?  You should let Flash generate the embedding code rather than using some other software to do it if that is what you did.  Just have Flash publkish and html page, test that page in your various browsers, and if it works, copy/paste that code in place of what you have now.

  • Loading purchased swf into Flash Builder 4 Flex app

    I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
    thermometer.swf
    thermometer01.fla
    thermometer01.html (A sample that works.)
    xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
    caurina/transitions (Mostly .as files.)
    Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
    I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
    <mx:SWFLoader 
    id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
     private function initThermometer():void { 
         Alert.show('Thermometer loaded');
    The Design view looks fine. I can see the thermometer default image (see below).
    When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
    I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
    Any help figuring out how to get this to work in a flex app would be appreciated.

    You should probably add more event handlers to see what's going on.  Especially "ioError". The complete list is below.  For coverage, add a handler for each event. You can also use in MXML
         complete="initThermometer(event)
    and add an argument to your Actionscript method, to find out details about the event.
    private function initThermometer(event:Event):void { 
         Alert.show('Thermometer loaded ' + event.type);}
    Events
        complete="No default"
        httpStatus="No default"
        init="No default"
        ioError="No default"
        open="No default"
        progress="No default"
        securityError="No default"
        unload="No default
    General info here:
         http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
    I did not test my code suggestions, but it's probably close.

  • Embedding flash movie in a web page

    I have created a flash movie using actionscript 3 and an xml file with a list of images for a slideshow. After clicking publish, I can view the slideshow by previewing the html file it creates for you. However, I want to embed this flash movie in a different web page. When I try to add it in Dreamweaver, by dragging and dropping the swf file into the page, a flash placeholder is generated, but the movie does not play when previewed. It is just blank white space.
    Now I watched the Tom Green tutorials on "flash the easy way" and my flash (CS4 professional) did NOT generate the AC_RunActiveContent.js files. I did find and download the file and manually added it to my Scripts folder. Still no joy.
    I will note that the html file that embeds the flash video is in a different directory than the movie itself. Surely this cannot be the issue, otherwise people's websites would be incredibly messy with multiple flash videos. I am trying to put all the flash movies in their own child directories of a /flash directory to keep them neat and organized.
    I am not sure what to do next. How do you make the dang thing play on a web page that is in another directory?

    If you are loading content ala using an xml file, that may be the source of the problem.  When you load a Flash file into a web page, that web page becomes the frame of reference for any files that the swf loads.  So if you tested this where the html file was in the same folder, but then moved things into different folders, then you need to adjust the Flash to load things as if it is in the html file's folder

  • Opening maximized window from embedded flash movie

    Hi!
    I need your help!
    I have a html file with a flash movie-menu embedded into it. I'd like one of the buttons to open an external html page strictly in a new maximized window. It does not matter if the new window has toolbar or not. I want it to open a new maximized window (not the full screen thing) onclick.
    How can I achieve this?
    thank you!

    use the javascript window.open method to open your popup and set the page dimensions.
    you can use getURL or navigateToURL() to execute a javascript function or better use the externalinterface class to call a javascript function in your embedding html file.

  • Develop Flash Movies in Flex ?

    Hi there,
    is it possible to develop 'classic' Flash movies just with
    Flex?

    It is
    possible but I wouldn't want to do it. Here's an example.
    Suppose you want to make a butterfly move around and flap its
    wings.
    In Flash, you've create a symbol for each wing and one for
    the butterfly body. Then you'd create a Butterfly MovieClip in
    which you animate the wings flapping using the timeline and
    keyframes.
    To move about the screen you place the Butterfly on one layer
    and create a guide layer for it. On the guide layer you'd use the
    Pencil tool to make an eratic line. The Butterfly will follow this
    line, flapping its wings as it goes.
    To do that in Flex would be quite an undertaking. You'd have
    to work with the ActionScript drawing commands (moveTo, drawTo) to
    make wings and the body. Then you'd have to figure out how to use
    the TweenEffect to get the wings to move correctly. Then you'd have
    to figure out some algorithm for moving it around the screen.
    I'd say the Flash version could be done in an afternoon or
    less. The Flex way - who knows?

  • Dreamweaver embedded flash movie - Safari problem

    I have 3 flash movies embedded on a page using dreamweaver. Firefox plays either of the 3 no problem, Safari Only plays the first one.
    I am using the Clear Skin 2 Controller. The ID tags I'm using are FLVPlayer1,2,3... JS script folder is uploaded and contains the AC_Active scripts.
    Obviously I'd like to get this to work in Safari. Any thoughts???
    Thanks

    From the reading I've been doing since posting this, I am beginning to think this is either a QuickTime plugin or flash plugin problem with Safari. I am running osx 10.5.6 and Safari 3.2.1 - I was hoping for an easy page code fix.

  • Embedding swf/parts of flex app in pdf

    Hi,
    We want to be able to export to pdf in our flex app.  I know alivePDF among others do this.  However, we want to take the extra step to be able to embed flex into the pdf itself - making the pdf interactive and not just a report.  Is there a third party library that someone can recommend that can do this?  I believe lifecycle services does this, but we don't have a license.
    Thanks in advance.

    You must use the 3.4.1 SDK that is provided on LiveCycle DVD or from an installation of Workbench (See the Customizing LiveCycle Workspace ES2 at at  http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf or the Creating Flex applications enabled for LiveCycle Workspace ES2 guide http://help.adobe.com/en_US/livecycle/9.0/createflexapps.pdf guide).
    There are functions in the SwfConnector component that allows you to communicate with the IFrame but as far as I know, there are no APIs that are exposed.
    I'll defer to others if they know about it.
    Hope that helps!

  • Embedding Flash Movies in an HTML page without browser warning...

    Hi guys...I have been using Flash for some time now....My
    problem is how to embbed a flash swf movie file in an HTML or XHTML
    page without the browser warning the user that this web site is
    trying to install ActiveX content on her or his computer....Almost
    all professional sites does not display a warning message in the
    browser...So how can I do this???

    I tried to embed it in Dreamweaver CS3.......Here is the code
    which Dreamweaver generates...
    <!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=utf-8" />
    <title>Untitled Document</title>
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','550','height','400','src','../My
    Documents/My Pictures/Samla E-Cards/Best Cards/13 July
    2006','quality','high','pluginspage','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','../My
    Documents/My Pictures/Samla E-Cards/Best Cards/13 July 2006' );
    //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=9,0,28,0"
    width="550" height="400">
    <param name="movie" value="../My Documents/My
    Pictures/Samla E-Cards/Best Cards/13 July 2006.swf" />
    <param name="quality" value="high" />
    <embed src="../My Documents/My Pictures/Samla
    E-Cards/Best Cards/13 July 2006.swf" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="550"
    height="400"></embed>
    </object></noscript>
    </body>
    </html>
    Can you look at the code and tell me which I have to
    change....Internet Explorer still displays the warning message
    saying: " To help your security, Internet Explorer has restricted
    this webpage from running scripts or ActiveX controls that could
    access your computer.Click here for options"......I am sorry to
    disturb you all....But I really need help!!!
    Text

  • Embedding Flash movie in Acrobat 3D

    When I try to embed a flash file (.swf) into an Adobe document, I get the message:
    "Cannot create the movie annotation ...."
    Any ideas why, and how to do it properly?

    If you are loading content ala using an xml file, that may be the source of the problem.  When you load a Flash file into a web page, that web page becomes the frame of reference for any files that the swf loads.  So if you tested this where the html file was in the same folder, but then moved things into different folders, then you need to adjust the Flash to load things as if it is in the html file's folder

  • Is there a way to open another pdf via a button in my (pdf embedded) flash movie?

    My Acrobat 9 pro pdf, contains an ActionScript 2.0 swf, added via the Flash tool, on the multimedia toolbar.
    The Flash file contains an animation introducing a collection of linked pdf files.
    At the end of the intro a button appears, which when clicked, should replace the current pdf with one of the linked ones.
    Is it possible to do this inside actobat?
    Regards Maxwell

    Thank you.  That’s all I need to know.

  • Embedded ActiveX in a Flex app

    We have a requirement to embed a signed ActiveX control in
    both a Flex and an AIR application. Flex does not support HTML
    content, but AIR does, but it still filters out the Object tags. We
    are looking for some help to see how we can achieve this, either
    via a custom component or a hook available to make this possible.
    We've explored the iFrame approach, but have run into more issues
    than solutions with that approach.
    Thanks!

    Hi Cnunciato,
    Can you please expalin a bit more the whole process with which i willl be able to use activex in flex and which will also help in hoating activex in IE.
    If you could provide some link to some example or some sample code , i would be highy grateful.
    Thanks
    Vasu Gulati.

  • Embedding flash movie

    I have designed a slideshow in dreamweaver using the
    Insert/Media/Image Viewer. I resized all the jpeg images to
    400x325; it looks beautiful when viewed in the preview browser but
    when I upload it to my site, it does not appear.
    Is there a special code that Dreamweaver doesn't
    automatically load that I would have to do to embed the file? I
    appreciate any help I can get.
    Thanks,

    Post a link to the uploaded page, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "centralmaine" <[email protected]> wrote in
    message
    news:ftauie$ah9$[email protected]..
    >I have designed a slideshow in dreamweaver using the
    Insert/Media/Image
    >Viewer.
    > I resized all the jpeg images to 400x325; it looks
    beautiful when viewed
    > in
    > the preview browser but when I upload it to my site, it
    does not appear.
    >
    > Is there a special code that Dreamweaver doesn't
    automatically load that I
    > would have to do to embed the file? I appreciate any
    help I can get.
    >
    > Thanks,
    >
    >

  • Flex and a flash movie clip

    Hi All,
    I'm looking for some information on how to take an embedded
    flash movie clip and control it through Flex. I want to be able to
    manually move through the movie clip, select frames to display etc.
    Any information pointing me in the right direction would be
    greatly appreciated.
    Thanks in advance

    For Flash SWF's:
    Inside your componet/app def:
    private var movie_clip:MovieClip;
    private var myLoader:SWFLoader = new SWFLoader();
    onInit() {
    myLoader.addEventListener(Event.INIT,loadHandler);
    myLoader.trustContent = true;
    myLoader.load("../assets/my.swf");
    this.addChildAt(myLoader,0);
    private function loadHandler(e:Event):void{
    movie_clip= e.target.content;
    movie_clip.gotoAndPlay(2);
    movie_clip.some_custom_as3_method();
    For Flex SWF's here is an example:
    import mx.events.FlexEvent;
    import mx.managers.SystemManager;
    import mx.core.Application;
    // * gets rid of type checking so we can leave strict enabled
    [Bindable]public var _appLoaded:*;
    private function
    onCurrentApplicationComplete(oEvent:Event):void
    _appLoaded = Application(oEvent.target.application);
    private function onCompleteAppLoader(oEvent:Event):void
    var smAppLoaded:SystemManager =
    SystemManager(oEvent.target.content); //get a ref to the loaded app
    //listen for the application.complete event
    smAppLoaded.addEventListener(FlexEvent.APPLICATION_COMPLETE,
    onCurrentApplicationComplete);
    // call a custom public method in your application mxml file:
    public function setPlaylist(id:int):void {
    if(_appLoaded) {
    _appLoaded.change_playlist(id);
    ]]>
    </mx:Script>
    <!-- <mx:SWFLoader id="player" x="0" y="0" source="
    http://...Player.swf"
    complete="onCompleteAppLoader(event);" trustContent="true"/>
    --> <mx:SWFLoader id="player" x="0" y="0"
    source="@Embed('../assets/Player.swf')"
    complete="onCompleteAppLoader(event);" trustContent="true"/>

Maybe you are looking for