Loading an external webpage into the Flex app

Is there a way to load an external webpage into a Flex application. I only need to show a portion of the webpage not the entire page. For ex: Take the http://www.cnn.com main page. I only want to show the latest news column containing the bullted list of the news and not the entire page.
Thanks in advance.

You could use Flex I Frame component. Here is the link
http://code.google.com/p/flex-iframe/

Similar Messages

  • Can I load a swf into my Flex app that loads other swf's?

    The code below loads an AS2 swf into my Flex mobile for IOS app and it works.  If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     initialize="init()">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.UIComponent;
                                  private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
                                  private var loader:Loader = new Loader();
                                  private var myComponent:UIComponent = new UIComponent; 
                                  private function init():void{
                                            myComponent.percentHeight = 100;
                                            myComponent.percentWidth = 100;
                                            loader.load(request);
                                            myComponent.addChild(loader);
                                            player.addElement(myComponent);
                        ]]>
              </fx:Script>
              <s:Group id="player"
                                   height="100%" width="100%"/>
    </s:Application>
    But if that AS2 swf loads other swf's, they don't load or display.  My FlashBuilder debugger reports no errors or security sand box violations.   I'm using the most elemental code in my AS2 swf so as to not cause problems.  This is it in its entirety:
    this.onLoad = function(){
              _root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
    The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app.  They also load and run fine if I cut out the AS2 swf and access directly from my Flex code.  So I know there isn't a path issue.  More likely not accessing the right layer in the AS2 swf from Flex or something.  Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console.  When run console just reports:
    [SWF] SwfMobile.swf - 2,639,761 bytes after decompression
    [SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
    Is there something inherently wrong with loading swf's that load other things?  Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue.  Just the act of embedding a swf that loads other things seems to be the problem.

    Ah, yes. Using an AVM1 SWF could prove difficult...
    I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
    Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
    That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
    But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
    *a few moments later*
    Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
    To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
    So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
    Keep me posted!

  • Inserting external swf "Widgets" into a Flex app

    Hi.
    I need to insert several external widgets into my Flex application. For example the Twitter flash widget and flickr slideshows widget.
    Those widgets normally give you HTML code to insert in your HTML page, like:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="290" height="350" id="TwitterWidget" align="middle">
        <param name="allowScriptAccess" value="always" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#000000" />
        <param name="FlashVars" value="userID=xxxxxx&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml">
        <embed src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" quality="high" bgcolor="#000000" width="290" height="350" name="TwitterWidget" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="userID=xxxxxx&styleURL=http://static.twitter.com/flash/widgets/profile/smooth.xml"/>
    </object>
    I'm trying to achieve the same goal in my Flex application using the SWFLoader control, but I've got a lot of troubles starting with security issues, and although I just learned to pass the FlashVars values, I don't know how to pass the "<param" values.
    public var twitterWidgetSrc:String = "http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf?userID=xxxxxx&styleURL=h ttp://static.twitter.com/flash/widgets/profile/smooth.xml";
                <mx:SWFLoader
                    id="twitterWidget"
                    source="{twitterWidgetSrc}"
                    height="290" width="350"
                    init="setSecurity();">
                </mx:SWFLoader>
    Is there an easier way to insert these widgets into my Flex application? or how can I complete the SWFLoader to achieve the same results?

    I don't mean to disappoint you, but your Idea is impossible due to security violation
    if you'll look inside this file http://static.twitter.com/crossdomain.xml
    you'll probably find out that your host isn't listed there, so you will be not able to load any twitter stuff
    Detailed info you could catch in here:
    http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf
    The only way to get the widget embed and working is through HTML

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • LoadMovie- loading an external swf into movieclip in AS3

    Im extremely frustrated.........im trying to do something
    that was once very simple, which has now become over complicated
    unecessecarily.....i want to do a simple loadMovie type action and
    load an external clip into a movieclip called ph. my AS2 code would
    be:
    loadMovie("ExternalMovieClip.swf","ph");
    or
    on(release) {
    loadMovie("ExternalMovieClip.swf","ph");
    This no longer works. Can somebody tell me the new code that
    i would use with AS3 to do exactly what i just demonstrated? I
    honestly dont even want to touch AS3. The only reason i want to use
    it is because it makes skinning the components SOOOOOO much easier
    than AS2. That is the one and only reason im trying to convert to
    AS3. All the new load movie AS3 examples ive seen on google look
    like half a page long to do what i used to do in 2 lines. There
    must be a simpler and much easier way. I am a designer. It looks to
    me like Adobe went back to making flash for programmers only again
    leaving us designers out of the mix. Someone please help me, im
    desperate. I also have other old code that im sure im going to have
    to convert to AS3 for it to still work, and i may eventually need
    help with that as well, but ill stick with this loadMovie problem
    for now. Any and all help is appreciated. Thanks

    have a look here:
    http://www.smithmediafusion.com/blog/?p=381
    use this:
    var i =new Loader();
    i.load(new URLRequest(”yourSwf.swf”));
    myMC.addChild(i)
    myMC is the name of your clip on the stage.
    Dan Smith > adobe community expert
    Flash Helps >
    http://www.smithmediafusion.com/blog/?cat=11
    http://www.dsmith.tv

  • Loading an external .swf into an empty container

    I'm loading an external .swf into an empty container.
    Everything seems to work fine except when the .swf is loaded both
    seems to be running extremely sluggish. The button rollovers are
    slow, the page transitions..everything. I can't figure out why it
    is doing this. Both .fla's have the same frame rate. Is there some
    known reason why this might happen?

    well, we've tried that and it is actually a little bit worse.
    Normally i test everything in a browser window anyway. I'm thinking
    it might be a naming issue of some variable or something that is
    the same for both fla's....not sure yet though.

  • By updating my iphoto will my old pictures automatically be transferred into the new app. or will they be lost?

    My iphoto 6 importer for facebook wont sign in anymore so I am thinking of updating it to iphoto 7.
    I have a Mac OS X 10.4.11
    I wanted to check if my old library of photos will automatically transfer across to the new iphoto 7, or will they be deleted?
    If so how do I save them to reinstate into the new app.? I already have an external harddrive that everything is saved on, but Im not very good with computers so I hope it just transfers.

    Thank you both for your prompt replies
    I do have an external hard drive that backs up everything on my computer every week.
    I just wondered about my iphoto library being transferred or would I have to manually do it.
    I know I have an old computer.
    I would also like to upgrade my safari 4.1.3 browser or add another that works better, but nothing else seems to work. I cant afford another computer unfortunately.

  • Adding external webpage into my existing page

    Hello there
    I want to add an external webpage into an exisiting page on my website.  Can anyone help with this issue.
    thanks Rob

    Snak
    That is exactly what I needed ..thanks for the quick reply and your help on this.  Have a great day ..Rob

  • I downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    i downloaded an album on itunes using my new itouch; but it's only allowing me to put three songs at any one time into the music app...how can i get it to just move them all in there?

    hi philly, thanks for getting back to me, especially on such a busy day.
    I don't think that's quite the issue though. I bought an album and it appears in 'my purchases' within the itunes app. Yet, in order to listen to the music, i must use the 'music' app and in this application, there are only three tracks displayed at any one time from my downloaded album.
    I can 'download all' from the 'my purchases' section but that still doesn't help, it just keeps the last three tracks downloaded in the music app.
    I have the 'icloud' enabled and wondered if it had anything to do with that.
    i have successfully downloaded another full album totally into the music app, but this first album is causing me problems.

  • I've been running Windows XP over bootcamp on an iMac for a few years now and I can't seem to get any sound from external devices into the machine. Any ideas?

    I've been running Windows XP over Bootcamp on iMac for a few years and I can't seem to get any sound from external devices into the machine. Any ideas?

    O.K. fgonoz98
    I would do 1 thing at a time:"now the micropohone is not working in facetime"
    Here is what you can check to get your mike working in facetime:
    1. Hold down option while you click on the speaker next to time a. date,
    under input Device see if your mic is marked. If not: ✔️
    2. Click the apple top left/System Prefs./click on the Sound speaker:
    under Input highlight microphone.
    3. When you have factime on go to video above scroll and see if your mic is marked ✔️
    If that does not get it to work there is more you can check:
    (Utilities/Audio, midi setup)
    For any other audio device you do this for input and output.
    If you get stock post back

  • How can you pull in pdf's from iBooks and bring them into the Box app?

    How can you pull in pdf's from iBooks and bring them into the Box app?

    That sounds great, but I'm lost.
    I followed these steps:
    1) Open your PDF (in Adobe Acrobat Pro)
    2) Chose print
    The print/printer options pop-up will show.
    3) In the printer section, do not use your normal printer, a printer named Adobe PDF should be an option. Chose it.
    4) Under the "Page handling" section, change the Page Scaling drop-down menu to "Multiple pages per sheet".
    It works fine, but it looses all of the font information and the search no longer works. How can you do it and save the font info, so the search tool continues to operate.
    Am I missing anything?

  • Accessing my iTunes was working great then all of a sudden most all my songs had a white box beside them resembling a white word pad and now I can't drag them into the garageband app to use

    All was working fine with garageband and all of a sudden kaboom.....most all my songs now have a white box beside them resembling a white word pad and now I can't drag songs from my itunes into the garageband app but they still work in iTunes. Help please!

    All was working fine with garageband and all of a sudden kaboom.....most all my songs now have a white box beside them resembling a white word pad and now I can't drag songs from my itunes into the garageband app but they still work in iTunes. Help please!

  • How do I install external (not on the appStore) apps in .mobi, on my ipad?

    How do I install external (not on the appStore) apps in .mobi, on my ipad?

    You don't.  There is no supported way to install external Apps. You can only install Apps from the App Store.
    Attempting to install non supported Apps, may void your warranty and forfeit support from Apple and by extension these forums.

  • Possible to import GIS data into the Map app?

    I would love to be able to import lat/long data into the Map app to display transit stop info on the job, as I do now with a crappy PC portable and Delorme Street Atlas.
    Possible?
    Thanks

    You can do this with CartoMobile which is available in the AppStore. CartoMobile allows you to take your GIS in the field with you, and works online or offline.

  • How can I get into the Dutch App store?

    I am a Dutch Native living in the U.S. and since a few weeks the proud owner of an Ipad 2. I would like to download some Dutch apps for me and my son but I do not know how to get into the Dutch App store or how to find Dutch apps in the U.S. app store.

    http://store.apple.com/nl
    All the Apple online stores are just store.apple.com/(country-domain_suffix)
    Not sure about payment policies and such (that is, if you need a Netherlands credit card with a Netherlands billing address, or whether you can use a US credit card).

Maybe you are looking for

  • Msi ti 4200 problems

    i installed a msi 4200 agp video card today and have had nothing but problems. on the first boot xp did not try to install new hardware. In the display properties it did not recognize the video adapter. i tried to intsall the drivers from the install

  • Re: Can't stay online for more than 2 seconds

    version 7.0 is very unstable. Last thing it does it logs in and out every 2 seconds. I run it on a desktop with Win XP SP3 and the account is not linked to microsoft/facebook etc. Up to version 6.7 it was rock solid. After that it started putting cal

  • [solved] Spamd won't start after perl upgrade

    Starting spamd via the initscript doesn't work anymore. If I try to run spamd via console I get the following error: /usr/bin/perl: symbol lookup error: /usr/lib/perl5/site_perl/auto/Crypt/OpenSSL/RSA/RSA.so: undefined symbol: Perl_Gthr_key_ptr Any i

  • CSS positioning question

    Am just trying to nail this CSS positioning thing once and for all, with a simple enough two column layout. I've posted a link below which is pretty much there - but there is an unintended gap between the banner image, and the navbar link with unwant

  • On Import Metadata in Admin Tool get "Connection has failed" error

    Hello, I am attempting to import Metadata in Oracle BI Administration Tool v.11.1.1.5 and i get " "Connection has failed" error. What is the solution? Thank you in advance, Sonya