Runtime embeding in SWF

Hi,
I m in process of developing a website which required to save the customized video, I want to know if there is any possibe way to embedd the audio and image in the swf in runtime so that it can be rendered to a video format via some 3rd party swf to video convertion tools.

Theoretically it is possible but it would be an extremely advanced task in Flash for you would have to create a binary data that confirms to some video codec standard and file format. I doubt anyone successfully accomplished it in AS3 for video encoding is a complex thing to do.

Similar Messages

  • Error publishing "Application with runtime embedded" file

    I am trying to publish an "Application with runtime embedded" file out of Flash Pro CC. I am getting an error that I think indicates that certain necessary files that get packaged with the SWF to create the App are not able to be copied. The error message occurs at the end of the process after the SWF file has been published and after it has tried to gather the AIR files.
    iMac 27" 3.4 GHz Intel Core i7, 8 processor cores,  32gb ram,  OS X 10.8.4
    Flash Pro CC Ver. 13.0.0.759 (up to date)
    Error Message
    Unknown error.
    unexpected failure: Copy failed
    java.io.IOException: Copy failed
    at
    com.adobe.air.nai.MacPackager.copyWithPermissions
    (MacPackager.java:54)
    at
    com.adobe.air.nai.AppBundlePackager.assembleInternalFiles(AppBundlePackager.java:52)
    at
    com.adobe.air.nai.Native Packager.createPackage(NativePackager.java:132}
    at
    com.adobe.air.ADT.parseArgsAndGo(ADT.java:572)
    at com.adobe.air.ADT.run(ADT.java:419)
    at com.adobe.air.ADT.main(ADT.java:469)
    I can publish the exact same file as an AIR package and have it work.
    I have repaired my permissions in the off chance that Flash could not access the files due to bad permissions. 
    I don't what my next steps should be. My chat with support netted nothing but the suggestion I post to this forum. Anyone have any ideas?
    Thanks in advance

    Hi,
    Please let us know, which Player Target you are trying to publish to : AIR for Desktop/AIR for Android.
    Are you trying to use AIR3.6 or any other SDK using Manage AIR SDK?
    If possible, provide the scenario file so that we can repro the issue.
    Regards,
    Meenakshi

  • CS6: AIR(runtime embedded) creates a lot of files instead of one exe file

    I want to package all necessary sources for my application in one exe file (windows 7 system).
    In Flash Professional CS6 I choosed: File->Public Settings
    Target: AIR 3.4 for Desktop
    AIR Settings: Output as: Application with runtime embedded
    Window style: Syste Chrome
    Render mode: Auto
    Profiles Desktop / Extended Desktop
    Then I pressed publish. I got the message "Application with runtime embedded has been created".
    What I want: One exe file without dependence to other files/directories
    What I got is a directory structure like this:
    Untitled-1.app
      Adobe AIR
      META-INF
      mimetype
      Untitled-1.exe
      Untitled-1.swf
    In that directory my Untitled-1.exe starts without problems.
    But if I copy the exe (and ONLY the exe) to another directory
    and try to start it I get the message that AIR wasn't found.
    So my assumption was right that not all necassary files were packaged.
    How can I package all necassary files/directories in one exe?

    Hi,
    This is a windows -OS limitation. The embedded application .app package created on Win will appear as Folder directory. 
    Untitled-1.app
      Adobe AIR
      META-INF
      mimetype
      Untitled-1.exe
      Untitled-1.swf
    If you look, Adobe AIR contains the AIR runtime needed to run the .exe application. Hence, you would need to copy the entire content of the Untitled.app folder on Win.
    Thanks,
    Meenakshi
    FlashPro Engg Team

  • Unable to apply embedded font swf to text in text layout framework

    Hello,
    We have created a swf for a given font (for e.g., Calibri.swf) which contains all the styles (Regular, Italic, Bold, BoldItalic).
    We have created a xml which lists the name of the font and the corresponding swf file path. The names from the xml are loaded into a combo box in the application.
    When we try to apply the selected font to a text in the text layout framework, it does not apply the same. It sets the font to default "Times" font.
    Following is a snippet of code to apply the font to the text:
    private function selectFont(fontXML:XML):void {               
                    var path:String = fontXML.@source;
                    var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations(FlexGlobals.topLevelApplication.url.substring(0,FlexGl obals.topLevelApplication.url.lastIndexOf("/"))+"/"+path);
                    myEvent.addEventListener(StyleEvent.COMPLETE, function(event:StyleEvent):void{
                        var editManager:EditManager = textFlow.interactionManager as EditManager;
                        var itextLayout:TextLayoutFormat = new TextLayoutFormat();
                        itextLayout.fontSize = 20;
                        var fontName:String = fontXML.@name;
                        Alert.show(fontName);
                        itextLayout.fontFamily = fontName;   
                        Alert.show( "itext = " + itextLayout.fontFamily);
                        editManager.applyFormat(itextLayout,itextLayout,itextLayout);
                        var flowLeafElement:FlowElement = textFlow.findLeaf(editManager.anchorPosition) as FlowElement;
                        editManager.changeStyleName(fontName,flowLeafElement);
    Can anyone please let us know what is missing in the implementation?
    Thanks in advance.
    Vikram

    My recommendation: unless you really care about ISWFContext implementations and the application domain issues, ignore Alex's post about embedded fonts.
    It is a nice discussion about the inner workings of the domain and security of how this works but it is imho broken and is an insane concept to require an ISWFContext to just use an embedded font. It also breaks runtime CSS loading that has fonts embedded in it because the Flex compiler (last I checked) was also busted – it doesn't include the function necessary to create within context the font embed so that it may be applied. You can't create an ISWFContext with a compiled CSS file.
    These issues were introduced in the last Flex SDK beta before FB4 was released in final form. There are multiple bugs logged against the issue of applying loaded font files to TLF text (in short, SWFContext is broken and you have to override GlobalSettings.resolveFontLookupFunction to return embedded or null, all the time).
    Here's some more details to get you started - with links to at least one of the SDK bugs that were filed:
    http://forums.adobe.com/message/2656152
    For example:
    import flashx.textLayout.elements.GlobalSettings;
    import flash.text.engine.FontLookup;
    GlobalSettings.resolveFontLookupFunction = function makeValid():String { return FontLookup.EMBEDDED_CFF };
    And you may need to do this after your font is loaded:
    yourTextBlock.textFlow.invalidateAllFormats();
    Disclaimer: I haven't seen the latest Flex SDK release to see if this was fixed. I have an AIR application with native process that builds embedded font SWF files for use and stub code for FB4 usage but haven't updated to the latest SDK yet to see if it's working properly.
    Anyhow, your best bet is to look at the Flash Builder forums. I think this is/was a Flex team issue, not TLF.

  • Embedding a SWF file with an iFrame

    I wanted to embed an assessment in to one of my PDFs. I know I can't do it directly so I tried to create a small little Flex app that shows an iFrame (see here for the example). I then tried to insert this (as a SWF) in to my PDF file. I have a problem where when selected in the PDF it displays the SWF file, but not the linked URLs for the iFrames. Any ideas? how I might be able to get around this. Here is an example of what I was working on.
    Any help would be much appreciated.
    Noel

    hat do you mean with embedding a SWF file into another?
    you can embedd a SWF file in a HTML file. you can load a SWF
    file in another SWF file.
    but to embedd a SWF into another is not possible.

  • Embeding a swf in another swf

    Hello, heres what I'm looking to do:
    I am trying to create a project completely in flash player,
    however its very large (its basically a tutorial for a coding
    language called "magic")
    I want to seperate it out a bit, basically one main flash
    file that acts as a menu system with buttons to send you to
    different sections of the tutorial, and then I want to make a bunch
    of individual flash files for each page of those sections.
    How would I go about calling a swf from within a swf file, or
    preferably embedding multiple swf files into the main swf file.
    This would allow me to make a bunch of complicated timeline
    animations without having a completely unmanageable single
    timeline.
    Or if you have another possible suggestion on how to more
    easily seperate functions/animations I'm certainly open to other
    idea's. Thank you in advance!

    This is pretty simple once you get the hang of it. Create an
    empty movieclip and place it on your stage. You can do this with
    either code or by actually creating it in your library. Call it
    holder_mc. position it where you would like your other movies to
    load. Again you can do this by code or by physically moving it.
    //This is how to do it with code:
    //STEP 1 create your empty movie clip and give it your name/
    place it in the next available level
    _root.createEmptyMovieClip ( "holder_mc" ,
    _root.getNextHighestDepth() )
    //position the holder mc
    _root.holder_mc._x = 50
    _root.holder_mc._y = 50
    //create a button and place it in the root - then attach code
    that loads your external .swf into your holder mc
    homeButton_btn.onPress = function(){
    _root.holder_mc.loadMovie("home.swf") }

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

  • Windows publish AIR with runtime embedded outputting .app

    When attempting to publish an AIR app set to runtime embedded on Windows, the output target has the .app extension. Same outcome on a true Windows machine as well as Windows running in VMWare.. This seems to go against the documentation Adobe AIR * Packaging a captive runtime bundle for desktop computers "The bundle produced is a self-contained folder of application files on Windows and an .app bundle on Mac OS." Flash CC build 14.0.0.110

    The Docs are misleading because they refer to the old WIndows-model (Pre 8) where you would have a exe as runtime bundle, whereas since windows 8 .app/.appx is the format that the windows store expects. If you just want publish targeting exe you have to check "windows Installation program" and make sure that any included/loadied files are included at the bottom. Then AIR will package all the necessary files in one .exe file and create the folder structure during install.

  • Embedding a .swf published in Catalyst in another Catalyst project

    Ok,
    i've been trying different things but now i can't figure it out.
    It's actually a school assignement where we have to create an interface similar to a smartphone.
    Me and my partner decided to create a Catalyst project for each page and publish each of them in swf. Then, we wanted to create a main Catalyst project that was embedding each swf in different states.
    BUT
    It just doesn't work! The embedding doesn't work.
    Is the swf published in Catalyst actually  compatible to embed in Catalyst?
    Thanks!

    A custom component is like other components like buttons, scrollbars, etc.  except you get to define all the behaviors and states.
    Try this
    1. draw a sqaure
    2. right click and choose Convert Artwork to Component > Custom Component
    3. Now double-click the custom component to edit it
    4. Create a few states and modify the square in each state
    5. to exit editing the custom component double-click the white area of the artboard
    6. Now add a button to the app
    7. With the button selected go to the Interactions panel and choose "On Click, Play Transition to State" and pick a state of your custom component.
    Notice that in this example the application only has one state, but a custom component with multiple states was able to capture different appearances of the app.
    You can think of designing your app by breaking down the functional parts into custom components. For example: navigation bar, content area, ad area, etc.
    Regarding "export library":
    After creating a custom component or customizing a built-in component like button you will notice that the library will contain an item representing the definition of that component. When you export as an fxpl file, all components in your library are exported.
    Ty

  • Flash CS6 does not not create an .app file when I Output as application with runtime embedded

    I am attempting to create an application with runtime embedded, but the process keeps failing without throwing an error. Specifically: in Air Settings, I select Output as: Application with runtime embedded. When I build it this way, Flash tells me that it's created Telepath Tactics - Steam.app...
    ...but no .app file ever actually appears in the folder:
    This happens regardless of what I include in the Library Path, and regardless of the Default Linkage settings. (When I tell it to Output as: Windows installer, by contrast, the appropriate exe file appears without a problem.)
    I'm using Flash Professional CS6 v. 12.0.0.481 on Windows 7, 64-bit.

    I should note that this only occurs on certain windows machines. I am still waiting to hear which ones.
    I personally do not experience this so I have to rely on Client feedback.
    On my machine it works fine without Flash installed.

  • Embedding a SWF Video in an AIR 2 HTML App

    I've been through the forums for awhile and I can verify that my issue doesn't have to do with transparency or chrome.  I have an IFRAME which is in the application sandbox, giving it access to files in app-storage.  Dynamic images are loading fine, but my dynamically generated <OBJECT> code that is placed in the DOM is not loading the SWF video.  I can see the object placeholder, but no video.
    Are there any requirements to embedding a SWF file, perhaps size requirements (both height and width required)?  Given the fact that my content is dynamic and I don't know the dimensions of the SWF file, I currently have two options for embedding:
    1. Calculate the height and width of the parent element, and assign those values to the OBJECT params.
    2. Use 100% width and height on the OBJECT
    This might pose problems with the proportions of the SWF file, which I'm hoping can be fixed by the scale PARAM (http://kb2.adobe.com/cps/127/tn_12701.html).
    Please help, I haven't been able to find any similar problems.  I followed the documentation for embedding from here:
    http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS4B441C24-BAE3-4110-91FD-A4E5EEFB2467.htm l

    Is this happening for any swf file, or is this an issue related to video?

  • What is the use of embedding Xcelsius Swf file in to Crysatl report?

    Hi all,
    I read some documents related to this integration, but still am in a confusion about the final purpose.
    Can any of you answer my question patiently?
    1.Is the embedded SWF acts just like a static object (just like a SWF)?
    2.If, I embed a swf file in CR 2008, Will both have any interactivity between those two?
    I mean, if I change the source data for CR , will the data SWF be changed? (If I have same columns like Country, Sales)
    3.How the interactivity will work..? From SWF to Crystal data OR Crystal data to SWF (as I asked above).
    4.I read BO doc with an example, but its not clear up to my doubts.
    It would be thank full if any of you spend your time for a clear description.
    Thank you,
    Krishna Pingali
    Dell India.

    Hi Mathew,
        The Convert to Formula in Excel Allows you to Convert you Embedded Bex Query into API Calls. This enables you to Better Format the Excel Output by allowing you to move your Cells Around.
    This helps because when you refresh you Query all the Changes you make will be maintained.
    [More Info on Working with Formula|http://help.sap.com/saphelp_nw70/helpdata/EN/d3/015369f54f4a0ca19b28c1b45acf00/content.htm]
    Hope this Helps
    Datta.

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

  • Embedding a SWF inside a MovieClip - width = 0

    I have a class that extends a MovieClip and receives a MovieClip inside it. The movieclip is embedded like this:
    [Embed(source='assets/emi_dir.swf')]
    protected var MyMovie:Class;
    and I add it on the Parent constructor like this:
    public function Item(content:DisplayObject) {
    super();
    var lines:Sprite = new Sprite();
    lines.graphics.lineStyle(1, 0xFFFFFF, 0);
    lines.graphics.moveTo(0, 0);
    lines.graphics.lineTo(0, content.height);
    lines.graphics.lineTo(content.width, content.height);
    lines.graphics.lineTo(content.width, 0);
    lines.graphics.lineTo(0, 0);
    addChild(lines).name = "bg";
    addChild(content).name = "content";
    I had to include this "lines" MovieClip so that the Parent wouldnt be with width = 0 and height = 0, which happens when I only do this:
    public function Item(content:DisplayObject) {
    super();
    addChild(content).name = "content";
    When I add a Bitmap the Parent Item grows to accomodate the child, but this do not happen with SWF's... Why is that?
    Thanx
    Bruno

    Here it goes
    public function pushItemFromURL(url:URLRequest, row:int = -1):void {
    var loader:Loader = new Loader();
    loader.load(new URLRequest("http://127.0.0.1/emi_dir.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(ev:Event):void {
    pushItem(loader.content, row);
    public function pushItem(obj:DisplayObject, row:int = -1):void {
    var item:Item = new Item(obj);
    if (row < 0 || getLinha(row) == null)
    row = getGrelha().numChildren - 1;
    if (item.width > maxWidth)
    maxWidth = item.width;
    if (row >= maxHeights.length)
    maxHeights.push(item.height);
    getLinha(row).addChild(item);
    refreshPlacement(row);
    public class Item extends MovieClip {
    public function Item(content:DisplayObject) {
    super();
    var fill:Sprite = new Sprite();
    fill.graphics.beginFill(0, 0);
    fill.graphics.moveTo(0, 0);
    fill.graphics.lineTo(0, content.height);
    fill.graphics.lineTo(content.width, content.height);
    fill.graphics.lineTo(content.width, 0);
    fill.graphics.lineTo(0, 0);
    addChild(fill);
    addChild(content);

  • Embedded AS3 SWF access in Flex 2

    I have an SWF (Action Script 3) created in Flash 9 Alpha
    Public.
    I can access all its methods and variables when using
    SWFloader, but fail to do so when embedding it by using [Embed]
    tag.
    I need to do it to use it as a custom cursor (CursorManager
    accepts objects of Class type as cursors). Before I was using SWF 8
    (AS2) with LocalConnection, but since the new SWF 9 is in Action
    Script 3, I want to use it directly.
    The code looks like this:
    [Embed(source = "cursor_9.swf")]
    private var newCursorSymbol:Class;
    private function changeCursor(event:MouseEvent):void
    CursorManager.setCursor(newCursorSymbol);
    The question is. Can I, and if I can, then, how, access this
    swf methods from within a Flex 2 application?
    or else, can the CursorManager somehow accept the content of
    SWFloader, which is a MovieClip object?
    Thank you

    This is tough. The DisplayObject that represents the customer
    cursor is instantiated internally by the CursorManager and is
    stored in a private variable, so there's no way to get at it. I
    believe there is a hack you can do if you ever only have one
    instance of that cursor. The Class you pass to the CursorManager
    can be any DisplayObject, so you can cook one up to wrap your SWF.
    For example, call it MyCursor.mxml:
    <mx:Canvas xmlns:mx="...">
    <mx:Script>
    <![CDATA[
    public static var sCursorLoader: SWFLoader;
    ]]>
    </mx:Script>
    <mx:SWFLoader id="loader" source="cursor_9.swf"
    creationComplete="sCursorLoader = loader"/>
    </mx:Canvas>
    And then use the CursorManager:
    CursorManager.setCursor(MyCursor);
    The idea is that once the CursorManager instantiates the
    MyCursor class, the static variable will point to the SWFLoader, so
    you can access it in a global way:
    MyCursor.sCursorLoader
    Of course, you'll have to put in some kind of delay to make
    sure the SWF is completely loaded, etc. This is just something I
    thought of off the top of my head, so take it with a grain of salt.
    :-)

Maybe you are looking for

  • Help! about process chain execution status

    hi: we nearly have one problem about the process chain execution status, when error occured during  process chian execution, we fixed it in time, however, even the error repaired, its status still showed yellow, and this stop the subsequent process t

  • Can's see my WIN2000 PRO Pcs  on the network.

    Any help would be appreciated. Anyone else experiencing the same? I can see all my macs and I can even print to to my imagesetter using Appletalk, but no go mounting any pc disks, can't even see them, cant even browse to them with their ips. Help...

  • Raising ora-01426 error while truncating table

    Hi, We have a procedure which executes in the following process for few set of tabls 1. disables the constraints 2. truncating the tables 3. enabling the constraints but after processing for 5 tables, while truncating the error throws BEGIN <procedur

  • RFC Source data not filled correctly

    Hi All, I am facing a typical problem. I have created a RFC to File scenario and I am running the ABAP program to call the RFC with the following values: field1(type Char 14; value:'aaaaaa')                   --> Field1 (string) filed2(type Char 15;

  • HT203524 Apple won't stop these two spammers

    In my Apple mail account, I have been receiving daily SPAM from these two spammers for 4 months i continually report them to: Return-Path: <[email protected]> Return-Path: <[email protected]> [email protected] [email protected] [email protected] I ha