Load external FLV files?

I would like my desktop AIR app (built in Flash CS3) to load
and play external FLV files which are on the same computer/hard
drive but are not packaged as part of the AIR app. Is there a way
to do this with the sandbox restrictions AIR has? If so can you
point me to a sample or documentation?
Excuse me if this is an obvious subject but the information
out there is incomplete and confusing.

I'm still running into the following: As soon as I test the
movie, I get the following in the area where the video should
appear:
status (0 seconds)
Level: status
Code: NetStream.Play.Start
status (0.434 seconds)
Level: status
Code: NetStream.Buffer.Flush
status (4.898 seconds)
Level: status
Code: NetStream.Play.Stop
It doesn't matter if I click the button or not. The video is
on my network.

Similar Messages

  • Existing 'load external .flv' code?

    Recently, I found a great little Flash  project that acts like a jukebox for external mp3 song files, and am using it on my website to play my song demos.
    I'm now trying to find if there is an existing solution like that for video.  I just need some way to progressively download video files from my webspace when the thumbnail is clicked... and am now looking into some sort of Flash jukebox.
    I've tried just embedding the video files into HTML, but they don't progressively download for some reason (even though they are saved as Progressive With Compressed Header).  I've even tried using prettyPhoto (...a script that mimics a Lightbox like feature, where the whole page dims, and a floating window appears over your site, displaying any media, and allowing you to move back/forth through your list of media)..... works great, but again, not a progressive download, so you stare at a blank screen for a while.
    Seems the only way it works is if I have the file on YouTube or some other site, then embed it or use the prettyPhoto app.
    So, can someone either tell me how to make the embedded file download (OT, but I figured I'd ask), or point at some existing Flash file that serves as a video jukebox, showing all media on a common window?

    Hi,
    You can load external .flv files which is placed on your web server. You have to add a small amount of AS3 code into your flash document. Please click on the below link
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/media/Video.html
    Please use the sample code which is provided in the bottom of the page. In the code, you will find a line
    private var videoURL:String = "Video.flv";
    In the above line, instead of "Video.flv", you have to give your webserver path like http://www.domainname.com/foldername/videofilename.flv
    (The above code does the progressive download of an video)
    You can play the video through progressive download, by click on an image. To achieve that, you need to place the above code inside the mouse click function of an image.
    Thanks

  • Using Flashvars to load external mp3 files

    I am trying to find a very good step by step tutorial on using "Flashvars" to load external mp3 files, I have been searching on google and the many I have found fall short in some way or another. From what I have been able to gather, I have tried using the code in red (commented out), which works, and modify it to use "Flashvars". The code that works, the mp3 file is hard coded, but my goal is to use "Flashvars" which I am attempting to do in the code following the code in red. I am also including the html code. Any help will be greatly appreciated.
    Thanks,
    David
    var soundReq:URLRequest = new URLRequest("mardi_gras2.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void
        sound.play();
    var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void
        sound.play();
    HTML CODE
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="mySoundvars" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="mySoundvars.swf" />
       <param name="FlashVars" value="audio=mardi_gras2.mp3" />
        <param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="mySoundvars.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="mySoundvars" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="audio=mardi_gras2.mp3" />

    Ok waterlovinguy,
    I went back to my original code, and I got things to work... I think my whole issue was with the HTML CODE. So I decided to use the "SWFObject generator". I had never used it before, frankly I had never heard of it until I started my searches on "Flashvars".
    Thank you very much for all your assistance, PEACE,
    David
    Final Codes below
    var my_var:String = new String();
    my_var = root.loaderInfo.parameters.myflashvar;
    myText.text = my_var;
    var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
    var sound:Sound = new Sound();
    var soundControl:SoundChannel = new SoundChannel;
    sound.load(soundReq);
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    function playSound(event:MouseEvent):void
        SoundMixer.stopAll();
        soundControl = sound.play();
    function stopSound(event:MouseEvent):void
        soundControl.stop();
    HTML Code
                    <!>>
                    <!<![endif]>
                        http://www.adobe.com/go/getflashplayer
                        </a>
                    <!>>
                    </object>
                    <!<![endif]>
                </object

  • Trouble with loading external mp3 files

    I apologize for the length of the post. I hope this is clear
    of what I am trying to explain.
    My problem deals with getting "undefined" when I press a
    button to load an external mp3 files. The following is what my XML
    childNode looks like:
    <option phonetic="Soundless, or A" name="aleph"
    cursive="alephCursive.swf" block="alephBlock.swf"
    audio="char1.mp3"/>
    Every attribute loads the way I've programmed them, except
    for the last one "audio".
    The following is what my actionscript looks like loading in
    these attributes:
    Everything is happening inside the onLoad event for my XML
    file.
    var xmlContent = this.firstChild.firstChild;
    audioContent = new Array();
    for (var i = 0;
    i<this.firstChild.firstChild.childNodes.length; i++) {
    nextEntry = xmlContent.childNodes
    audioContent = [nextEntry.attributes.phonetic,
    nextEntry.attributes.name, nextEntry.attributes.cursive,
    extEntry.attributes.block, nextEntry.attributes.audio];
    The code above simply adds each attribute to the audioContent
    array. Each element traces out correctly.
    The following code is how I am using these attributes:
    for (var i = 0; i<audioLength; i++) {
    audioContainer.attachMovie("container4", "audioItem"+i, i);
    // Create a shortcut reference to the present movie clip
    thisClip = audioContainer["audioItem"+i];
    thisClip.myTxt1.htmlText = audioContent[0];
    thisClip.myTxt2.htmlText = audioContent
    [1];
    thisClip.cursive_mc =
    loadThis(assetPath+audioContent[2], thisClip.cursive_mc);
    thisClip.block_mc = loadThis(assetPath+audioContent
    [3], thisClip.block_mc);
    thisClip.speaker_mc.attachMovie("speaker", "speaker_mc",
    this.getNextHighestDepth());
    thisClip.speaker_mc.speaker_mc.onRollOver = function() {
    this.nextFrame();
    thisClip.speaker_mc.speaker_mc.onRollOut = function() {
    this.prevFrame();
    thisClip.speaker_mc.speaker_mc.onRelease = function() {
    mySnd.loadSound(audioPath+audioContent[4],true);
    Loading the text works inside the htmlText. Using a function
    loadThis to load external swf files works corerctly and even
    attaching a linked movieclip from my library called "speaker" works
    correctly.
    The problem comes from pressing the speaker movieclip that
    the output traces "undefined" instead of the external mp3 file.
    I appreciate any help. Thanks.

    As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.

  • Positioning external flv files on stage??

    Hy, i am loading 3 flv files so that the first file plays once and the other two loop afterwards. Now i am interested is it possible to position the flv files on the stage to certain coordinates when they start to play (so for example that the first flv plays as default in the centre, the second flv file plays a little bit right and the third plays a little bit left). This is the code i'm using:
    import fl.video.VideoEvent;
    var clips:Array=["1index.flv","2sat.flv","3spavam.flv"];
    var index:int = 0;
    /* gledamsat would be what I think you are wanting to name the instance of the FLVPlayback on the stage... */
    gledamsat.addEventListener(VideoEvent.COMPLETE,goNext);
    function goNext(e:VideoEvent):void {
            index++;
            if(index > clips.length-1){
               index = 1;
            gledamsat.source = clips[index];
    function init():void{
       gledamsat.source = clips[0];
    init();
    Now i tried these lines to position the flv files but it doesnt work:
    if (2sat.loaded == true) {
    2sat._x = 400;
    if (3spavam.loaded == true) {
    3spavam._x = 100;
    Can someone help??! Can the flv files be positioned when loaded???

    Modify the following function
    function goNext(e:VideoEvent):void {
            index++;
            if(index > clips.length-1){
               index = 1;
            gledamsat.source = clips[index];
    to,
    function goNext(e:VideoEvent):void
    index++;
    gledamsat.source = clips[index];
    if(index == 0)
       gledamsat.x = <original poosition>;
    else if(index == 1)
       gledamsat.x = <original poosition> + 10;
    else if(index == 2)
       gledamsat.x = <original poosition> - 10;
    if(index == clips.length-1){
        index = -1;

  • Loading external .swf files issue...

    Hi,
    I'm working on a simple example of loading external swf files with some ActionScript.
    I've placed an instance of List Component and gave it an instance name of loadList. Using Component Inspector, I assigned data for 4 external files as below:
    Next, I've added a UILoader component (instance name - loadWindow). The code that is supposed to load the content into UILoader is this:
    loadList.addEventListener(Event.CHANGE, selectItem);
    function selectItem(e:Event):void
        loadWindow.source = e.target.selectedItem.data;
    When I run it in a FlashPlayer, it only loads the first 2 swf files....  (I checked the files and all files are fine).
    I hope to get some light on the issue so any help will be appreciated.

    Try tracing e.target.selectedItem.data to make sure it's what you expect.
    Also, have you tried using the load() method instead of the source property?

  • Flash streaming external flv files

    I have a web page which contains a flash object embeded in
    it, this flash is streaming external flv files. The flash was being
    displayed correctly when the website was hosted on a windows 2000
    server but when the site was moved to a windows 2003 server the
    flash is no longer displayed, instead of it a box with undefined
    text inside it. I searched the Adobe support center and found this
    Tech Note about adding the MIME Type through IIS since windows 2003
    doesn't stream flv files. I followed the steps mentioned but still
    am getting the undefined box
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19439&sliceId=2
    Does anyone know how to solve this issue?
    Thanks in advance.

    This is the problem.
    When Flash Player movie files that stream external FLV files
    (Flash videos) are placed on a Microsoft Windows 2003 server and
    then viewed in a browser, the SWF file plays correctly, but the FLV
    video does not stream. These files work correctly if tested on
    other operating systems. The issue affects all FLV files played via
    Windows 2003 server
    And can be solved by....
    1. On the Windows 2003 server, open the Internet Information
    Services Manager.
    2. Expand the Local Computer Server.
    3. Right-click the local computer server and select
    Properties.
    4. Select the MIME Types tab.
    5. Click New and enter the following information:
    * Associated Extension box: .FLV
    * MIME Type box:flv-application/octet-stream
    6. Click OK.
    7. Restart the World Wide Web Publishing service.

  • Can you load external jpg files

    Is there a way to load external .jpg files on the fly or do
    they have to reside in the swf file?

    Hi Persons,
    macrofireball is correct as always, but I'll just add a
    thought to this thread because I suspect "rfull" isn't actually
    asking what he/she
    appears to be asking.
    No photo can ever be displayed "by itself". That is, image
    files are always "opened" in some sort of vehicle. It might be an
    image editor, or it might be a document like a *.DOC or a *.HTM ...
    but
    something must "contain" the image.
    So you can access a photo at any time you wish by putting it
    on a web page, then linking to the web page (for instance). Is
    something like that what you really had in mind?
    Have a good 'un folks!
    .

  • Media files prevent Flash from fully loading external XML file

    Im trying to debug a flash widget we created, and it loads
    fine on the 20 odd computers we tested on EXCEPT for one computer
    where, the application doesn't load an external XML file that calls
    for 3 small mp3 files and a FLV file to load as well.
    In a debugger, we noticed that when it tried to load these
    mp3 files it was getting a Forbidden access message. The FLV just
    prevents the FLV player from showing up at all (not even the skin).
    Can anyone figure out why, that it would work over all the
    other computers and NOT the one? On that person's computer, we
    tried it in IE, Firefox, even Chrome and the application doesn't
    load. We even cleared the cache, did a hard refresh and still
    nothing.
    However, the other computers work just fine.
    ALL the computers have the latest Flash software installed.
    What could cause this problem?

    Actually what worked was removing 'xmldoc' from the php script. So $data =$GLOBALS["HTTP_RAW_POST_DATA"]; instead of $data = xmldoc($GLOBALS["HTTP_RAW_POST_DATA"]);
    Couldn't find anything about 'xmldoc'. Is it used for anything in php?
    Anyway, the loading error went away, but then I got into problems with getting the return echoed values back. The textfield stayed empty even when saving the data.txt file worked.
    I then placed the <stuff> tags between <root> tags and then flash got the sentences between the <stuff> tags back. Why does Flash need the returned xml output to be between <root> tags for it to see the content between the <stuff> tags? So why do I need to use echo("<root><stuff>Server unable to create file.</stuff></root>"); instead of cho("<stuff>Server unable to create file.</stuff>");?

  • Loading external swf files in a swf - Error#1009

    I have been having trouble using a swf file within a swf file.   The external swf files all work as expected.  However when used within another swf file I get the standard TypeError #1009 for some of my swfs.   The external swf files are mainly actionscript 3 files.  A typical swf file will have an object (or objects) in the library which has an export for ActionScipt property enabled and an addEventListener(Event.ENTERFRAME, somefunction).   About four years ago when I had to do some work with AS2 I seemed to get around a similar issue with the _lockroot method but this is no longer part of AS3. I have searched various forums and note that I am not the only one with this issue but did not find any relevant solutions.   If anyone could give me any ideas on how to get around this it would be appreciated.
    Regards
    Norman

    Hi,
    I have added a download to rapidshare and its link is:
    Download link: http://rapidshare.com/files/380202712/ExtSwfs.zip
    The main file Training01.fla has been set up with links to download several swf's.   The links that do not work properly are those labelled :  Module6 and Module 8.   The first Module 6 connects to a function that is a variation of how I was trying to load external swfs using Application Domain, while Module 8 is a link to a swf that uses and external class.  Module 8 is supposed to load with rotating stars, while Module 6 loads the same file as the link called Module 1.   As soon as I use the two links Module 6 or Module 8 the whole lot ceases to work properly.  I did also follow through the examples on the Adobe site.  The examples for Module 6 and Module 8 are tutorials I have used from the Internet as part of my training from the site FlashMyMind.com but they replicate the type of work we have been doing with respect to using ActionScript3.
    Re my background, at this stage I am self-taught using tutorials on the web and whatever books I can lay my hands on here.  There is no structured training available where I live as there is insufficient demand and no books available on Flash or ActionScript at the local book stores or libraries so the books are ones I have ordered via the Internet.  The one I am currently using apart from Adobe Classroom in a Book Flash CS4 is O'Reilly's Learning ActionScript 3.0 a Beginners Guide.
    The other problem I have been trying to solve and still researching is why one loses sound in the flash player when playing flv files, if the user has selected or restarted a video (or videos) many times eg 25 to 30 times as we create video training files and serve them to the user within the flash environment using Flash Player 9 and IE6.
    Regards
    Norman

  • NaN with loading external flv

    Hi all
    I'm having some strange diffulties which I can't solve.
    I'm starting off with a website.swf which loads different
    external swf's depending on the button that has been pressed.
    One of those swf's is a file with different buttons to load
    different external flv's.
    While loading a flv a progressbar shows the percentage of the
    loaded part of the flv
    Now: If I play the first video file everything works fine
    While switching to another button to load another flv during
    the loading of the first flv, My percentage says NaN. and stops
    loading.
    On each button I say:
    on (press) {
    stream_ns.close();
    connection_nc.close();
    _parent.videoloader_mc.unloadMovie();
    on (release) {
    _parent.videoloader_mc.loadMovie("movies/binnenkomers01.swf");
    This is the part I use for loading a flv in f.ex
    binnenkomers01.swf.
    stop();
    delete _global.loaded_interval;
    delete _global.connection_nc;
    delete _global.stream_ns;
    delete _global.pctLoaded;
    // video URL
    video1_url = "movies/binnenkomer06_Floriane.flv";
    _global.connection_nc = new NetConnection();
    connection_nc.connect(null);
    _global.stream_ns = new NetStream(connection_nc);
    videoholder_mc.video.attachVideo(stream_ns);
    stream_ns.play(video1_url);
    stream_ns.seek(0);
    // Zet de video op stop om te wachten tot hij volledig is
    ingeladen
    stream_ns.pause();
    _global.playstatus = "pauze";
    play_pauze_mc.gotoAndStop("pauze_lb");
    this.createEmptyMovieClip("progressBar_mc",
    this.getNextHighestDepth());
    progressBar_mc.createEmptyMovieClip("bar_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.bar_mc) {
    beginFill(0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    endFill();
    _xscale = 0;
    progressBar_mc.createEmptyMovieClip("stroke_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.stroke_mc) {
    lineStyle(0, 0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    progressBar_mc._x = 640;
    progressBar_mc._y = 400;
    this.createTextField("loaded_txt",
    this.getNextHighestDepth(), 0, 0, 200, 22);
    loaded_txt._x = 645;
    loaded_txt._y = 405;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.color = 0x333333;
    my_fmt.font = "Verdana";
    my_fmt.size = 9;
    my_fmt.align = "left";
    _global.loaded_interval = setInterval(checkBytesLoaded, 500,
    stream_ns);
    function checkBytesLoaded(stream_ns) {
    trace("my_ns.bytesLoaded: "+stream_ns.bytesLoaded);
    trace("my_ns.bytesTotal: "+stream_ns.bytesTotal);
    _global.pctLoaded =
    Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
    trace("_global.pctLoaded: "+_global.pctLoaded);
    loaded_txt.text = "loading... "+pctLoaded+"%";
    loaded_txt.setTextFormat(my_fmt);
    progressBar_mc.bar_mc._xscale = pctLoaded;
    if (isNaN(pctLoaded)) {
    clearInterval(loaded_interval);
    } else {
    trace("OK");
    if (pctLoaded>=100) {
    clearInterval(loaded_interval);
    Hope you guys can help me....

    Maybe they have hotlink protection enabled
    "indierockmedia" <[email protected]> wrote
    in message
    news:f3c4mo$ddn$[email protected]..
    > Hi, I am having trouble with some loading issues. I
    design ecards for
    > bands and
    > their tour dates, bio, and video files all load external
    files (text files
    > for
    > bio/tour, flv files for the video, and an swf skin file
    for the video).
    > Its
    > only a problem when I have to embed those ecards into
    sites that don't
    > host the
    > ecard. I have used crossdomain.xml and every fix ive
    read about, and still
    > have
    > issues. Let me detail below:
    >
    > For example, I have an ecard for a band at
    >
    http://bandwebsite.com/ecard/ecard.swf
    > The tour and bio and video files load simply "tour.txt,
    bio.txt,
    > video.flv,
    > skin.swf"). Works great because no external servers are
    being called.
    >
    >
    But when I want to embed the file elsewhere, or use different
    domains,
    > I
    > have issues:
    > I want to embed the ecard on to
    http://www.otherwebsite.com,
    so I can't
    > have
    > it simply call "tour.txt" for example, the ecard will
    think the tour file
    > comes
    > from www.otherwebsite.com/tour.txt. So I call the full
    path
    >
    http://bandwebsite.com/ecard/tour.txt
    > I go to the ecard and click the button to load the tour
    dates. The text
    > box
    > that worked before says "undefined". So I put a cross
    domain file at the
    > root
    > of
    http://bandwebsite.com that
    allows access to files from
    > www.otherwebsite.com. Still getting undefined. I go to
    the embed code for
    > flashobject and have allowscript access to "always".
    Still undefined. I go
    > and
    > add System.security.allowDomain to my timeline and
    specify
    > www.otherwebsite.com. Still undefined. Still won't load
    my video or video
    > skin
    > and text files.
    >
    > Am I missing something?
    >
    > mikey
    >

  • Loading external swf file in a new window

    Hi,
    I've got a few .swf files with video tutorials I've created using Captivate 4.
    I wanted to link them so I've created a main screen with menu with buttons in Flash.
    I've added AS to load the external swf files but they load in the same window. How can I load these .swf files in seperate window so that you could get back to the main window after you've finished watching?
    Here's my code:
    stop();
    var myLoader:Loader = new Loader();
    button1_btn.addEventListener(MouseEvent.CLICK, movie1_1);
    function movie1_1(e:MouseEvent):void
        var myURL:URLRequest = new URLRequest("01_01_Welcome.swf");
        myLoader.load(myURL);
        addChild(myLoader);
    I'm also attaching screenshot with menu in flash

    I've deleted the line and now the code lookes like that:
    stop();
    var myLoader:Loader = new Loader();
    button1_btn.addEventListener(MouseEvent.CLICK, movie1_1);
    function movie1_1(e:MouseEvent):void
        var myURL:URLRequest = new URLRequest("01_01_Welcome.swf");
        addChild(myLoader);
    Unfortunately, it doesn't load the .swf file when you click on the button...

  • How to load external text file into a Form?

    Hi,
    I made a menu with 1-5 in a Form and 5 external text files. I want the user who is able to view the text content of the text file when he chooses one of them from the menu. And the text file screen has a "Back" command button to let him go back.
    How can I do it and can it support other languages such as Chinese and Japanese?
    Thanks for help.
    gogo

    Sorry, I made the mistake about the subject, it should be loading local file, not external file through http.
    I wrote a method but it throwed an exception when the midlet was run.
    private void loadText()
    try {
    InputStream is = this.getClass().getResourceAsStream("/text.txt");
    StringBuffer sb = new StringBuffer();
    int chr;
    while ((chr = is.read()) != -1)
    sb.append((char) chr);
    is.close();
    catch (Exception e)
    System.out.println("Error occurs while reading file");
    I put the text.txt file in the same folder with the main file (extends midlet). How can I load the text content and display it on StringItem?
    Thanks for any help.
    gogo

  • How to load External swf file in AIR

    I try this code its working in computer but when I publish this file in .apk or .ipa , my external swf file is not opening
    (I include my external file as well)
    places_btn.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
         trace("you clicked me");
         var loadit = new Loader();
         addChild(loadit);
         loadit.load(new URLRequest("scene02.swf"));

    thx boss its working great
    I have 3 scenes; load scene code is working great
    1. How can I unload the scene?
    2. Can I unload all scenes or one by one?
    can I unload some think like this
    Load scene 2 , unload scene 1 and scene 3
    Load scene 3, unload other all scene
    i try this
    load2.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
    function newvid(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene02.swf"), _lc);
              loadit.unload();
    load3.addEventListener(MouseEvent.MOUSE_DOWN, newvid1);
    function newvid1(event:MouseEvent) {
              trace("you clicked me");
              var loadit = new Loader();
              addChild(loadit);
        var _lc:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
        loadit.load(new URLRequest("scene03.swf"), _lc);
              loadit.unload("scene01.swf scene02.swf");

  • Loading external htm file to display in TextArea

    Hi,
    I'm trying to think how I can load an external HTML file ad
    display the page in a TextArea and assign an external css file to
    style the text.
    Would appreciate any advice and sample code.
    Alex

    lexy,
    Are you trying to just use HTML text for a single text area,
    or are you trying to load an entire web page? If you are just
    looking to load some text, you can create an
    <mx:HTTPService> and point it to your .html file. Then
    you have to drill down to the section you are looking for ie..
    htmlVar.HTML.Body.div.tr.td.etc. Unless you are creating the
    file from scratch, in which case you can just make is an HTML
    formatted flat file with a single header like:
    <body> this is the <b>TEXT</b> I wanted to
    <i>display</i> </body>
    and then just load that. In any case, load that into an
    Object and then assign, the
    htmlText property of your textArea the Object variable and
    you should be set (be that the case).
    If you are looking to load a webpage in a container, check
    out this link:
    http://raghunathraoflexing.blogspot.com/2006/12/flex-i-frame.html

Maybe you are looking for

  • PDFXML Plug-in Now Available

    I am pleased to announce that we have just gone live with the Adobe Acrobat 9 Professional release of the PDFXML Plug-in (formerly the Mars Plug-in). The Mars Project is an XML-friendly representation of PDF, now called PDFXML. PDFXML is the name of

  • How does one install non-English character sets for use with the "find" function in Acrabat Pro 11?

    I have pdf files in European languages and want to be able to enter non-English characters in the "find" function. How does one install other character sets for use with Acrobat Pro XI?

  • HD Scaling to 960x540@30 fps or 1280x720@24 fps?

    Wondering what the best way is to get source material (1080i or 720p, 60 fps) onto the ATV with the least quality degredation, two target file options being 960x540@30 fps and 1280x720@24 fps. Based on a little bit of fooling around, seems like forme

  • Changing the Document Mode to IE9

    I exported my Captivate project for HTML5, and the project works on my MAC and PC, but when testing it on another co-workers computer using IE9, she was unable to play the project, index.html. When she opened index.html, this is the response she rece

  • Operation cancelled on SQL Developer still running on the DB

    Using either the SQL Developer 2.1.1.64.39 or .64.45 versions when a DML statement (e.g. SELECT, DELETE, etc.) is executed and few seconds after cancelled before it finishs, the SQL Dev IDE shows as the operationwas cancelled, but it still running at