Archive for November 16th, 2006

Flex 2 and IFrames

Christophe Coenraets did a Flex and IFrame example a while back. His code was before Flex 2 was release and it was never updated. I have updated the code, in connection with my last post about Flex Search mashup.

Here is the original post/code:
http://coenraets.com/viewarticle.jsp?articleId=95

You can find the newer IFrame at
http://renaun.com/flex2/posts/flexsearch/index.html

I had to change the normal Flex 1.5 to Flex 2 release stuff, like V(v)oid and property compiler error fixes. But the way the class talks to JavaScript was a little more, I changed out the getURL method of talking to JS and used the newer ExternalInterface. It was quite simply and a lot cleaner way of talking the JS on the page, that ends up talking to the IFrame.

I also added two bindable properties to the class, globalX and globalY. I used this to put buttons around the x,y of the IFrame. This is because the IFrame sits on top of the Flex app so you can’t put buttons on top of the IFrame but you can position them close by so I needed the coords.

Well have fun and enjoy.

PS: I was informed that Brian Deitte had done a port already, well now there are two they came out about the same so thats a good thing.
http://www.deitte.com/IFrameDemo3/srcview/index.html

19 comments November 16th, 2006


Flex Search Mashup

I decided to create a mashup on top of the new Flex Search that just came out.
Background, Ted Patrick just released the Flex Search Alpha1 API. He created a basic application on top of the remoting API. The Flex Search API has the following current features:

  • Search Flexcoders, FlexComponents, Flex Dev Center, Flex Documentation, AS3 Documentation and soon blog posts on flex.
  • Boolean Search syntax:
      Cairngorm –> Search for Cairngorm
      +Cairngorm -flexcoders –> Require ‘Cairngorm’, remove ‘flexcoders’
      flash.net.* –> Wildcards supported
  • AMF Remoting API with server caching logic. Only unique requests hit the database as a search. 2nd request is cached. Also when the index is rebuilt, the URL’s can be replayed caching prior content.
  • Search reporting and metrics for tuning. All searches are stored.

You can find more on Ted’s site here.

What I decided to do was make my own mashup using the Flex Search API. The application was a created pretty quickly so let me know if there are any issues. It lets search and browse the pages through an iFrame on top of the search results.

Here is the live example.

Right click to view the source or get it here.

4 comments November 16th, 2006


About: I work as a Platform Evangelist for Adobe Systems Incorporated.

My Amazon.com Wish List

Calendar

November 2006
S M T W T F S
« Oct   Dec »
 1234
567891011
12131415161718
19202122232425
2627282930  

Posts by Month

Posts by Category


Flex.org - The Directory for Flex