Is it possible to load content into a loaded swf?

I'd like to access a loaded SWF and load images/videos into it and trigger functions inside the loaded *.swf.
Is this possible ??

Yes, see the "Chromeless..." examples in the Example Player sample app.  The basic idea is that you subclass SWFElement and map the SWF's API into the MediaElement API, so that your SWFElement subclass can be handed to a MediaPlayer, integrate with compositions, etc.

Similar Messages

  • Dynamically load content into a "template" swf from text file

    I have a dream....
    Well, I have a concept. I have not actively pursued Flash in
    several years, though I've continued to have it in my arsenal. I've
    not done much in the action scripting realm for a while though.
    I am trying to create a template that will be used for about
    100 different product pages.
    It would have two tabs, basically, 2 different graphical
    button sets. One will have up to 4 links to similar products, each
    tab will be on the side of a square, and I need the ability to not
    display a tab if there is no actual link.
    As for the other tab, Its a menu that consists of a series of
    lines. This can be an external menu, I just need a way to have
    flash load the right menu. This menu, when you mouse over a line,
    the name of the product appears, as well as a product image that
    gets loaded with the menu. The product images would be external,
    allowing me to simply replace an image if a new higher end version
    of the product comes out.
    So, I am totally not an actionscripter. Looks like I need to
    load variables from an external file. Can I set a property in the
    flash code on the html that tells the movie what dataset to grab
    from?
    Here's basically what I am looking for
    property: value
    (load variables for:)
    item: 44
    (menu1)
    faster: 54b.html
    slower: 34d.html
    left: 43d.html
    right: 45c.html
    (menu2)
    menu:graph5.swf
    (menu loads images from external source)
    link51: 51d.html
    link52: 52c.html
    link53: 53c.html
    link54: 54d.html
    link55: 55b.html
    link56: 56d.html
    A possible third menu would be text driven, and would use
    html to link to various items.
    This is a static site, so urls will be fixed.
    Is it best to build a php page that serves up data for a
    single item, or do one big text file with all 100 or so items? Is
    that even possible?
    My Flash since MX is very rusty. I am using Flash Pro8. I
    would love to create a single file so modifications are to the text
    files, unless a new item is released, then it's updating a single
    flash menu and updating the text file.
    Been spending way too much time in InDesign lately! I used to
    be pretty good at Flash!

    well sorry there fanmap - but I don't think you're going to
    be able to get this to work. here's why: the link points to a php
    file - which gathers dynamic info from a DB - the return from the
    php is generating a string that is based on the DOM and
    'constructs' a javascript method that in turn writes to the html
    document. although we can embed html into a textField in Flash
    there are a limited number of supported html tags - and JS methods
    will not operate internally. in addition, (i'm not certain someone
    correct this if i'm off) there's no way to 'change' the output of
    the php call, therefore you will not be able to read the return
    because it is designed to use the DOM and write solely to the
    current document. Even if you were to access the JS method from the
    swf file (which one can) it will still only write the content of
    the php return to the html document - and the output is not
    compatible with the textField class.

  • Anyone experience this error : Error in LKM COMM Load Members into Planning - Load Members to Classic Planning

    When running Metadata load in ERPi it fail on step ‘Export members to planning application for dimension organization’ see error.
    Error in LKM COMM Load Members into Planning - Load Members to Classic Planning
    Traceback (most recent call last):
    File "", line 381, in
    ODIPlanningException: com.hyperion.odi.planning.ODIPlanningException: Could not connect the Planning instance on host [vmhodctau006.oracleoutsourcing.com], port [11333], check if connect information is correct.

    Check if the Planning service is definitely running on Planning server. Check if port 11333 is open (using telnet) and make sure host is reachable from the ERPi system.
    Regards,
    Santy

  • Load Content into a javascript Variable

    Hello guys. I very new to spry and I need some help.
    How can I load content (text) from a html page(actually I
    want to get a result from a dynamic php script) into a javascript
    variable?
    I saw the fragments example in wich spry loads some html
    fragment into a div, etc... but I need the result text to be stored
    in a variable so I can test the result before update the div.
    Thanks in advance...

    I think this function updateContent shoud have a parameter to
    tell if we want the content to be loaded inside a container or a
    variable. It would be very helpful to integrate php/mysql
    validation scripts to forms. I wanted to test if a username was
    already in the database when the user choose the username in the
    form, so I made a custom function and aplied it to the textbox
    validation widget. Its working great, but it would be better if I
    didnt have to create invisible divs to receive the response from
    the php script I made.
    Thanks anyway. Spry is a great product.

  • Pushing Loader.content into DisplayObject Freezes Animation

    I am working on a slideshow app which involves a bunch of images with mask effects cycling one after the other. I created a buffer to preload images in the background while the animation plays. I am using Tweener for all my tweens, and this has nothing to do with garbage collection or declaring vars inside function scope. The problem is the following lines of code in my complete handler of the flash.display.Loader class cause the animation to freese for a split second:
    _preloadingSlide.source = _preLoader.content;
    _preloadingSlide.loading = false;
    _preloadingSlide.loaded = true;
    _preloadingSlide is an insctance of a custom class that extends Sprite. The source attribute is a setter/getter whos code is as follows:
    public function set source( value:DisplayObject ):void{
                _source = value; //_source is of type DisplayObject
                if( _source!= null ){
                    addChild( _source );
    I have isolated the error to these lines of code. When I halt execution while buffering and wait until all images are loaded there is no issue. Whenever these line execute it freezes the animation for a half second or so. I thought maybe it had to do with the internal copying the bytearray that FLASH is doing. Anyone have any ideas?

    Is the profiler available as a set of AS classes? I use the SDK and I thought it was only for FLEX Builder. I use the underlying classes in flash.sampler to monitor memory consumption, etc as well. I am working on some tests using getTimer to see exactly how long it is takes for the Loader class to assign its content to my class, and as an alternative, exactly how long it takes to convert the bytearray of the bitmap data loaded with URLStream using Loader.loadBytes. I am sure the problem is that these bytearrays are very large due to the image size (900x800 avrg), and whatever internal code goes on in the loader class to convert them to a DisplayObject hangs up the player. Just out of curiosity is the source code of the Loader class available? Once again thanks for the help.

  • Loading content into project/timeline from http listener

    Hi
    I have an application which helps producers/researchers browse and search for video assets. Once they have located one or more assets, I would like to be able to "push" them over to Premiere Pro.
    The browser is written in Silverlight, so the only mechanism it has to communicate with Premiere Pro would be via http. I think what I need is a plug in which has an HttpListener listening on a specific port, so that the silverilght application can post information (in edl/xml format) to the port the plugin is listening on. The plugin will then load the assets (mms video streams or files from uris) into the project and/or timeline.
    I would like to write this either using Flex or the Premiere Pro SDK. I need it to run on both Windows and the Mac.
    If anyone can provide any pointers, I would be very grateful.
    Thanks
    Nigel

    Hi Zac
    Thanks for the information.
    Can you clarify this a little for me? If I understand what you have written, I have to create an XML file using FCP format which I save to local storage, then use something like SendMessage in another application to programatically initiate a drop sequence of the file onto the Premiere Pro window. I would have to write two applications, one for the Mac, and one for the PC, using Visual Studio and Objective C rather than use the SDK.
    Is that correct?
    Can you also tell me if a plugin written in Flash/Flex can communicate in any way with the application, such as to automate a file/open sequence. I ask this because I believe Flash can listen on an http port, and avoid the need for separate apps on the Mac and PC.
    What you suggest appears possible, but tying it together in a way invisible to the user might be a bit tricky.
    Thanks
    Nigel

  • .swf being able to load contents into it issue.  Please help?

    Hi there,
    I have strange situation regarding flash that I can't figure out.  I have a flash .swf file that is intended to load .flv video files into them at the local root level.
    I have been able to do this on my own server, but the .swf and the .flv videos are now located on the media streaming server, and the .swf is able to show up on it's own when embedded onto my page (on MY server), but it's not being able to load the video files.  I am perplexed because the videos are structured in the same EXACT way that it was being done on my server, but they will not load onto my .swf as they were doing when they were on my server.
    For example, one of the videos is loaded by using this convention in my actionscript:
    var file = "videos/Bob_Peebler.flv";
    So, on my media hosting service, I've loaded the .swf file on the local root, and the videos are placed in the same exact directory structure as they were done on my server.  In the example above, the  "bob_peebler.flv" is located inside the videos folder, and the videos folder is on the same level as the .swf
    In my flash file, I've thought that the var needs to point to the actual URL of the flash file, so I've then typed out the URL of the flash video, but I still can't seem to get it to work.
    var file = "http://iongeo.fileburst.com/videos/Bob_Peebler.flv";
    Here is where the .swf can be located to get a better sense of what I am trying to accomplish.
    http://iongeo.fileburst.com/ChannelGuide_Features.swf
    Please let me know if I can clarify on something better.
    I would really appreciate any kind of assistance that could be provided.
    Thank you

    Hello
    On my flash, I already have those parameters in place.
    I don't think there would be any security issues however, since I have used a player .swf which loads from the media site and plays the videos without a problem.
    http://www.iongeo.com/channelguide_test_dev/
    click on the four images at the bottom of the screen to see how it works.
    Now, I am pretty much doing the same thing, but this time embedding the other swf to load the videos.  As I mentioned, I was able to do this when everything was on our server, but now there is an issue for some reason when I try to load the .flv into the .swf from the other media server.

  • Load contents into one "netui:select" on click of another.

    Hi! I am a fresher to Weblogic Workshop and Portal. I want to know how to capture the onSelect or onChange event in a <netui:select> tag and call a pageflow action on the occurence of this event.

    I remember this keyboard menu. Didn't I give you the CSS for this?  I'm pretty sure I did.  Because I still have it in my notes.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>CSS Horizontal Menu</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <style>
    /* BEGIN Horizontal Navbar */
    nav {
    margin: 0 auto;
    padding: 0;
    width: 900px;  /**adjust width as required**/
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
    overflow: hidden; /**float containment**/
    border: 1px dotted red; /**for demo purposes, you may delete this border**/
    nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: auto;
    /**list styles**/
    nav li {
    display: block;
    float: left;
    width: auto;
    line-height: 1em;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 15px;
    text-shadow: 1px 1px 1px #000;
    /**link styles**/
    nav li a {
    display: block;
    padding: 0.5em;
    border: 2px outset #999;
    color: #FFF;
    font-weight: bold;
    text-decoration: none;
    background: #CCC;
    /**mouseover styles**/
    nav li a:hover,
    nav li a:active,
    nav li a:focus {
    border: 2px inset;
    background: #00CCCC; }
    /* END Horizontal Navbar */
    </style>
    </head>
    <body>
    <nav>
    nav container
    <ul>
    <li><a href="#">Menu Item 1</a></li>
    <li><a href="#">Menu Item 2</a></li>
    <li><a href="#">Menu Item 3</a></li>
    <li><a href="#">Menu Item 4</a></li>
    </ul>
    <!--end nav--></nav>
    </body>
    </html>
    Nancy O.

  • Unable to load itmsp into application loader

    I am unable to open prepared itmsp package in itunes connect application loader.  Of course, I have two logins and it offers to let me switch accounts.  I switch accounts OK...but when I want to open using that account, I can't open with that account either.  I can login everywhere but there.  I set my router to allow access to the ports.  My itmsp file is 65Mb.  I waited for over half an hour for it to load before forcing quit.  Anybody have any ideas?

    I guess Apple decided to hiccup and I was able to log in.  This was not the first time I tried this procedure, but this is how it happened.  I was not able to log in after the export from iBooks Author.  I closed iTunes Producer and then opened it through Launchpad.  I logged in with the account that is set up for the book, selected open package, and, I'll be danged if it didn't open this time.  Unbelievable...  I don't think it is what I did.  I think Apple hiccuped or cleared her throat.

  • Import Content into Forums (7.0)

    I see that it is possible on Jive's website that it is possible to import content into Jive forums through xml.
    I do not know of a way to do this with the forums available with SAP Portal.
    Does anyone know if this is possible yet?
    (What I am wanting to do is migrate content from a MS SharePoint discussion to SAP Forum.)

    Hi Eric,
    you might use the XML Import in the Jive Admin Tool. You see the schema definition here: [http://www.jivesoftware.com/products/forums/jiveforums.xsd|http://www.jivesoftware.com/products/forums/jiveforums.xsd]
    Regards,
    Michael

  • Please help on the Loader.content to movieclip

    Hello there,
    I have been search around and got some mixed solutions,
    summarized as follow:
    If I need to load external swf into the main swf file, I need
    to Loader with appropriate URLRequest for this purpose.
    After loaded, you can listen to the complete event and
    addChild the loader.content to the main swf.
    Because I have a stop on the loaded swf first frame, I need
    to start the swf with a button. Some solutions on the net pointed
    that to make this happened, you need to cast the loader.content to
    MovieClip and have to through a tricky way to accomplish it like
    var movie:*=loader.content ;
    var clip:MovieClip=movie;
    clip.gotoAndPlay(4);
    I tried this method and still got Type Coercion failed
    ::cannot convert flash.display to MovieClip
    Please help, don't know why some experts said it is working
    while I can not get it to work. Thanks in advance

    Thanks WL, you are very close. I have a flash8 movie (purely
    animation)
    and I actually opened it in CS3 and saved as CS3. after
    publishing that's the movie I am tring to load.
    I recreate the whole animation in CS3 and everything start to
    run as supposed to. By trace the loader.content I find out one is
    [object AVM1Movie] for sudo as2 movie and [object MainTimeline] for
    the pure as3 movie. Thanks again.

  • Load file into BPS - Excel File

    Hi Guys,
       Could someone please tell me how to load excel into BPS, the "Loading file
       Into BPS" loads text file but i need to load excel instead. I know we need to
       just change few lines of the ABAP code to make it work for excel, but don't
       how. Any help (code) is appreciated.
    Thanks All.

    Hi,
    You can try FM 'RSDRI_CUBE_WRITE_PACKAGE' for direct update to your cube.
    You need to pupulate an internal table as per your cube structure from your excel file.
    It may help you.
    regards
    rajesh

  • Loader Event.INIT fires but Loader.content is null

    The title describes the problem: Loader.load() is firing the INIT event, but in my listener it's reporting loader.content as null. The description for INIT event is "Dispatched by the associated LoaderInfo object when the properties and methods of    the loaded SWF file are accessible."
    I'm loading a lot of JPG images, and 95 percent of the time it works fine; the init listener fires and reports valid loader.content. I absolutely need loader.content available because I need to set the bitmap smoothing property to true.
    I've tried using Event.COMPLETE and it has the exact same problematic behavior.
    Any ideas?

    I didn't try contentLoaderInfo.content before. When the problem occurs, it throws this:
    Error: Error #2099: The loading object is not sufficiently loaded to provide this information.
    So INIT and COMPLETE fire, but it's not sufficiently loaded to even access the content? Weird.
    Note that in the event handler, Event.currentTarget points to the contentLoaderInfo, which may have the "content" defined, while it's not yet defined on the Loader instance yet. But thatt's just a wild guess though.
    Well what do you know, you're right. loader.content is null, loader.contentLoaderInfo.content is inaccessible, but event.currentTarget.content is available. I've tested around and sure enough, the same situations before where loader.content is null is now working fine with event.currentTarget.content -- I am able to cast the content as Bitmap, set smoothing to true, and resize the content.
    Kinda buggy if you ask me, but glad it's working now and it makes think I should use currentTarget more than often as it's apparently more reliable, at least in this situation it was.

  • Loading File name and file contents into two separate tables using Sqlloadr

    Hi All,
    I have situtation like to load File contents into One table and File name into one table . File comes with .txt extension
    Example :
    File name : product_09_abc.txt
    File contents :
    Productcode
    ABC
    CDE
    EFT
    Can you please help me out this how can we acheive this using SQLLOADER.

    SQL*Loader will not pass through the filename for you to be able to insert into a table.
    You will need to have a controlling o/s script that picks up the file name, calls sql*loader and then also call's an SQL script (using sql*plus?) to insert the filename into a.n.other table.

  • 1.is it possible to read a .xls file and load it into an oracle table

    1.is it possible to read a .xls file and load it into an oracle table, using oracle database or oracle forms i.e. either utl_file, or text_io, or any other oracle tool.
    As far as I know we need a csv file or a txt ( tab delimited) file ?
    2.Are there any windows tools for the same

    Hi,
    If you want to use the DDE package to read the XLS file then yes, you will neeed to know the number of rows and columns in the input file.
    i.e. How will you know :
    1) How many columns are there in the input file.
    If I have a XLS file with the following data :
    R1C1 R1C2 R1C3 R1C4 R1C5 R1C6 R1C7
    xxx xx x
    Where R represents row and C represents column, then how will you know the each row has 7 columns. If you know the answer upfront, then it's not a issue.
    Using the DDE apprach, you will have to specify the RowNum and the ColumnNo of each idividual cells to read/write data from xls sheet.
    Look at the syntax in my ealier post.
    using the other approch (i.e. comma delimited text file - CSV file) , you need not know the number of columns as you can loop thru the input record till the last column is read.
    All you have to do is to look for the 'n' occurances of the field delimiter say ',', do a substr from the current position to the point where the ',' was found.
    This process is to be repeated in a loop till all columns are read.
    The TEXT_IO package can trap for EOF (End Of File).
    Hope I made myself clear.
    -- Shailender Mehta --

Maybe you are looking for

  • Does anyone know how to solve: "Firmware update failure. Disk write error"?

    Hi all, Here is the list of all what went wrong and where I am now: 1. My Ipod worked well 2. I wanted to update it, you know, the normal thing with Itunes 3. Every time I tried, my computer froze. I was unable to add only one song (both automaticall

  • Upgraded RAM but now won't recognize

    I just bought a 1GB kit from RAMJET (2x 512mb) and installed the new DIMM's inside my mac. Now when I plugged everything back in and rebooted, the computer is not recognizing the new memory. When I go to "About This Mac" the system profile says there

  • How to find the WSDL URLs in NW CE 7.1 EhP1?

    Hi, I have upgraded my dev system from NW CE 7.1 SP5 to NW CE 7.1 EhP1. In this new version, the layout of the Web Service Navigator changed. I used to use the old WS Navigator to find out the URLs where the WSDLs for services are available. I deploy

  • MSSTV001 - Delegating tasks using the team viewer iview.

    We are setting up a proxy so that our highest level mangers will not have to do their own compensation planning through MSS.  We found the user exit MSSTV001 to use for this purpose.  Does anyone have experience in using this user exit? I am looking

  • How to watch videos in Safari 6.1

    OS X 10.8.5 I can't watch videos included on sites in Safari. All I see is a white space. Youtube works well.