Integrating BlazeDS into a Flash AS2 application

All,
I'm looking for some information about the feasibility of connecting a Flash application built in AS2 to BlazeDS.
Is this possible? Are there any tutorials/overviews to help me get started?
Many thanks in advance for any insights or advice.

Hi.
If you just want to talk to a remoting destination in BlazeDS this is not too difficult. Here is a blog posting that Mete (one of the developers on the LCDS/BlazeDS team) wrote that describes how to do this using the NetConnection API.
http://meteatamel.wordpress.com/2010/01/22/netconnection-and-remoting-in-blazedslcds/
If you wanted to do pub/sub messaging that would probably require back porting quite a lot of the BlazeDS messaging code to AS2 which I imagine would be quite difficult.
Hope that helps.
-Alex

Similar Messages

  • Problem integrating BlazeDS into CF8 (StreamingAMFChannel not found)

    Hi everyone,<br /><br />Ive been trying for days now to integrate BlazeDS into one of my Coldfusion 8 multi-server instances, and I get the following error in Flex Builder 3: Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Sorry for the dreadful amount of information that's coming, I just want to be sure I didnt do anything wrong here.<br /><br />My goal is to use the tutorial-chat application proposed by Adobe here: http://www.adobe.com/devnet/livecycle/articles/blazeds_gettingstarted_02.html but obviously without Tomcat.<br /><br />Ive got integrated LiveCycle Data Services ES, so I followed the corresponding instructions of the Installation Guide (http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide).<br /><br />I edited "web.xml" as asked Then, I followed the optional steps (#8 to 12) to avoid overwriting my current XML files.<br /><br />I restarted my CF8 instance, and then created a new Flex project in Flex Builder 3.<br /><br />b -       Project name = <br />tutorial-chat<br /><br />b -       Folder = <br />\\london\nath\tutorial-chat<br /><br />b -       Application type = <br />Web application<br /><br />b -       Application server type = <br />J2EE<br /><br />-       Use remote object access service, LiveCycle Data Services.<br /><br />b -       Server location = <br />\\london\cfservers\nath\cfusion.ear\cfusion.war\<br /><br />b -       Root URL = <br />http://london:8303/ (which points to my folder \\london\nath)<br /><br />b -       Context root = <br />/tutorial-chat<br /><br />b -       Output folder = <br />bin-debug<br /><br />According to the XML files in the blazeDS samples folder, I added these lines to messaging-config.xml:<br /><br /><default-channels><br />        <channel ref="<br />b my-streaming-amf<br />"/><br /><channel ref="<br />b my-polling-amf<br />"/><br /></default-channels><br /><destination id="tutorial-chat"/><br /><br />And these in services-config.xml:<br /><br /><channel-definition id="<br />b my-streaming-amf<br />" class="mx.messaging.channels.StreamingAMFChannel"><br />]<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/><br /></channel-definition><br /><br /><channel-definition id="<br />b my-polling-amf<br />" class="mx.messaging.channels.AMFChannel"><br />]<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/><br />]<properties><br />]]<polling-enabled>true</polling-enabled><br />]]<polling-interval-seconds>4</polling-interval-seconds><br />]</properties><br /></channel-definition><br /><br />I restarted my CF8 instance and rebuilt the workspace in Flex.<br /><br />And I get in the Problems panel:<br /><br />b Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Has anyone come across the same issue? And hopefully, come up with a solution? :)<br /><br />Thanks for taking the time to read me.<br /><br />Nath

    Hi Mete,
    rpc.swc is appearing under my Server SDK library path.
    But I have no idea how to check if it is out of date... Both Flex and BlazeDS are kind of new to me.
    I tried replacing it (+ the locale) by the ones from the flex SDK included in BlazeDS turnkey, but no luck: Flex Builder returns a "unable to load" error.
    EDIT: out of curiosity, I tried removing the streamingAMF channel definition, so that the polling channel is used.
    No error in Flex Builder, but when I try sending a message in the chat application, I get "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://london:8303/tutorial-chat/messagebroker/amfpolling'".
    (and in my browser I get a 404 error with this URL)

  • Can Help be loaded into a flash application?

    I am looking for help solutions that will fit inside another
    application, a flex app, that would load inside a flash popup
    window. RoboHelp outputs a hybrid of flash and html, correct? Is
    there a way to output just swf format so it can be loaded into
    another application?

    RevJaySprout wrote:
    > I'm trying to make a bit of a digital magazine by taking
    PDFs of our print
    > version and loading them into a flash movie where the
    user can flip through the
    > pages pretty much like a photo gallery. Can I do this or
    will I have to convert
    > them to JPGs and provide links to download the PDFs if
    they want to print?
    >
    need to convert to jpg, there is no load of PDF yet.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Embed FME into a Flash application?

    Hi,
    I'm wondering if I can embed FME into a flash application?
    Regards,
    Nevin

    No, FME is a Windows executable.

  • [svn:fx-trunk] 11575: Put default style declarations into one class per application or module.

    Revision: 11575
    Author:   [email protected]
    Date:     2009-11-09 11:34:57 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Put default style declarations into one class per application or module.
    Generate all the default styles in one class instead of a class for each style. The name of the style class will be based on the application or module name. An application named ?\226?\128?\156foo?\226?\128?\157 will have a style class named ?\226?\128?\156_foo_Style?\226?\128?\157. The idea is to allow applications to be compiled with different themes and get their owns styles. Currently this is not possible because a global style in both themes will have the same class name, _globalStyle. Whatever class the top-level application loads the sub-applications and modules will have to use the same class because of the flash player first-class-in-wins rule. Now each application and module will have their own style class.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-22454
    Reviewer: Paul, Pete
    Tests run: checkintests, all mustella tests.
    Is noteworthy for integration: No.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22454
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java

    Revision: 11575
    Author:   [email protected]
    Date:     2009-11-09 11:34:57 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Put default style declarations into one class per application or module.
    Generate all the default styles in one class instead of a class for each style. The name of the style class will be based on the application or module name. An application named ?\226?\128?\156foo?\226?\128?\157 will have a style class named ?\226?\128?\156_foo_Style?\226?\128?\157. The idea is to allow applications to be compiled with different themes and get their owns styles. Currently this is not possible because a global style in both themes will have the same class name, _globalStyle. Whatever class the top-level application loads the sub-applications and modules will have to use the same class because of the flash player first-class-in-wins rule. Now each application and module will have their own style class.
    QE notes: None.
    Doc notes: None.
    Bugs: SDK-22454
    Reviewer: Paul, Pete
    Tests run: checkintests, all mustella tests.
    Is noteworthy for integration: No.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22454
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vm
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StylesContainer.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java

  • Cross domain scripting at run time using local connection flash AS2

    Hi
         I want to do live video streaming using FMS and FMLE in Flash As2. Suppose 100 users watching video online and I want to show message to  all 100 users using the Local connection.
    If I am sending message using different browser in same pc then I can get the message which was send from another swf file but I am checking from another pc then message not coming in receiver swf file.
    Please find the code below. 
    receievemovie.swf
    // Code in the receiving SWF file
    this.createTextField("result_txt", 1, 10, 10, 100, 22);
    System.security.allowDomain("*")
    System.security.allowInsecureDomain("*")
    var my_lc:LocalConnection = new LocalConnection();
    my_lc.allowDomain = function(sendingDomain:String) {
    domain_txt.text = sendingDomain;
    return true;
    my_lc.allowDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    my_lc.allowInsecureDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    my_lc.methodToExecute = function(param1:String) {
        result_txt.text = param1
    myResult.text=param1
    my_lc.connect("lc_name");
    sendmovie.swf
    System.security.allowDomain("*")
    System.security.allowInsecureDomain("*")
    var sending_lc:LocalConnection;
    var sending_lc:LocalConnection = new LocalConnection();
    sending_lc.allowDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    sending_lc.allowInsecureDomain = function(sendingDomain:String) {
    return (sendingDomain == "*");
    myButton.onRelease = function(){
    sending_lc = new LocalConnection();
    sending_lc.send("lc_name", "methodToExecute", sendMsg.text);
    sendMsg.text="Message has been sent"
    If you have any other way to do it please suggest me to do that.
    Thanks & regards
    Sunil Kumar

    Hi, go to
    Flash Resources , you can
    find a java application that can serve policy files to resolve this
    problem.

  • FABridge - Error: You are trying to call recursively into the Flash Player [...]

    I'm using FABridge to communicate between JS (and GWT) and a flex component I've written, but I've run into a strange error:
    You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.
    I know what the error means, but what I don't understand is why I'm only receiving this error when I run the application locally (127.0.0.1) in this one webapp.
    Once I upload the app to the remote testing server, the error goes away and the app functions as it should.  I've tried to use setTimeout without any luck.
    I thought this might be a crossdomain problem so I set Security.allowDomain("*") in flex and the same on the testing server via a crossdomain.xml file but this did nothing.
    The function that is being called takes a parameter (image or an image wrapped in swf file) via the querystring and adds it to the stage.  The files all exist on the remote server.
    Another strange part is that when I run the flex app via Flash Builder it behaves fine. Also, I've run the component as part of a separate project locally without issue.
    The problem only exists when I run the component as part of the this project, when I'm working on it locally.  I even have another local app using the same component that works fine.
    I'm at a loss.  Any ideas?

    Ok, I was excited when I noticed I didn't change allowscriptaccess, but that didn't work. 
    Just to recap:
    -I have Security.allowDomain("*") as the first line in the init() (creationComplete) function
    -I have a crossdomain.xml file located on the remote server that allows="*" and ports="*" (because gwt debugs through :8888)
    -allowscriptaccess is set to always
    -I am using FABridge to communicate between JS and the swf.  Calling the function directly from Firebug causes the same error. 
    Even trying to call a function that is completely unrelated to the remote domain produces the same error.  For example, getAppHeight().  So at second glance, this doesn't seem to be a security issue?
    The only post (Google Cache) about the error suggests I use FABridge.MethodsToCallLater which doesn't seem to exist anymore in the version of FABridge that I downloaded.  The copy of FABridge I have doesn't have any version information in the file, but I believe I pulled it from the Flex 3 SDK. 
    Can anyone tell me if that feature has been removed/added in recent versions?  Or any other insights into my current situation?  Thanks for looking!

  • Inserting into a flash template

    Does anyone know how to insert an embedded file into a flash
    template? Or Is this even possible?

    Thank you for helping me!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Bridge Point Church</title>
    <script src="/Scripts/AC_RunActiveContent.js"..."
    type="text/javascript"></script>
    </head>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','766','height','750','title','Bridge
    Point Church','src','mainV8','quality','high','pluginspage','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','mainV8'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="766" height="750" title="Bridge Point Church">
    <param name="movie" value="mainV8.swf" />
    <param name="quality" value="high" />
    <embed src="mainV8.swf" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="766"
    height="750"></embed>
    </object>
    </noscript>
    </body>
    </html>

  • Embedding Flash into a Flash page

    Hey all...my first post here.
    I've recently learned Flash and have had pretty good success figuring out challenges that come up...however I am stuck on one now and am looking for help.
    I am designing a site for a music project that I manage.  The band also uses another free site, Reverbnation, for promotions and such.  The site provides a mailing list function, and you can embed an already provided "widget" onto your HTML web page that will automatically add people to your e-mail list if they choose to sign up.
    The problem I am having is that the page the widget is going to be on is now all Flash.  I can't figure out how to get the widget into the Flash page.  The Flash page itself is really nothing elaborate.
    Here is the code for the widget that they provide:
    <img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNzQyMTEwMDU3NjUmcHQ9 MTI3NDIxMTQyMTQwNiZwPTI3MDgxJmQ9ZmFuX2NvbGxlY3Rvcl9maXJzdF9nZW4mZz*x/Jm89ZDlkZTU1NWQ2YWFlN DRiMDlhMzU4MDgxZDM1OTk2ZWUmb2Y9MA==.gif" /><embed type="application/x-shockwave-flash" src="http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=artist_708835 &backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_708835" height="100" width="434" /><br/><a href="http://www.reverbnation.com/gigfinder" onclick="javascript:window.location.href=&quot;http://www.reverbnation.com/c./a4/11/708835/Artist/708835/Artist/link"; return false;"><img alt="Land Gigs" border="0" height="19" src="http://cache.reverbnation.com/widgets/content/11/footer.png?1" width="434" /></a><br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/11/artist_708835/artist_708835/t.gif"/><a href="http://www.quantcast.com/p-05---xoNhTXVc" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-05---xoNhTXVc.gif" style="display: none" border="0" height="1" width="1" alt="Quantcast"/></a>
    Any ideas on how I would embed this into my Flash page to be a functioning widget?
    Thanks!

    your published swf will be embedded in an html file.  add your widget code to that html file.
    you can use html, styles, divs etc to position the swf and widget.
    or, if you want to incorporate that widget within your swf, you might be able to load
    http://cache.reverbnation.com/widgets/swf/11/fancollector.swf?page_object_id=art%20ist_708 835&backgroundcolor=EEEEEE&font_color=000000&posted_by=artist_708835
    and manage.

  • Load swf created by Xcelsuis 2008 into another Flash by loadClip

    I have a problem to load the swf file created by Xcelsuis 2008 into another empty flash file by using the function loadClip.  It works on the swf created by Xcelsuis 4.5 pro .   Could Anyone give me some suggestions.  Is there another method to load the swf into another Flash?
    Thanks a lot!

    publish the one that doesnt work to AS2 and see

  • Passing multiple session values from cold fusion into a flash movie

    Hello all,
    I know that to pass multiple variables into a flash movie
    you could use the embed tag like this(with the & between each
    variable):
    <embed
    flashvars="variable1=value1&variable2=value2"
    ></embed>
    Now to pass a single session variable from coldfusion in i
    did the following; which worked:
    <embed
    src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Note that i had to use the cfoutput tags to get the value
    stored in the variables. Now; i tried to do the same thing for two
    session variables and the second one does not get read in. Here was
    my code:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID=<cfoutput>#session .testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Can someone please tell me what I am doing wrong? Thank you
    very much in advance.

    Hold on there was a little error: My final code that did not
    work was the following:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID
    =<cfoutput>#session.testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>

  • Safari problem:  when I switch back into safari from another application, the menu bar comes up but no tabs or windows.  What's going on?  Just started yesterday.  I have found a workaround: when I Command Tab back to safari, I hit command T to open a new

    Safari problem:  when I switch back into safari from another application, the menu bar comes up but no tabs or windows.  What's going on?  Just started yesterday.  I have found a workaround: when I Command Tab back to safari, I hit command T to open a new tab and Command W to close it, and my other tabs are visible.
    I have tried shutting down, closing tabs, with no success.  What's going on and how can I fix it?
    Thanks,
    Cindi B
    PS:  I'm not sure of the actual OS level, but I have not allowed it to upgrade to Maverick yet; concerned about it because of a few things I've read...

    A Safari extension or third party plugin may be causing the menu bar issue.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test. If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.
    As for which OS X is installed.
    Click the Apple () menu top left in your screen. From the drop down menu click About This Mac.
    The version is noted there.
    v10.6 Snow Leopard v10.7 Lion  v10.8 Mountain Lion
    It's your choice whether or not to upgrade to Mavericks. If you decide to do this, make sure your Mac meets the requirements noted here.

  • How to install Windows XP into a Flash Drive?

    I would like to install Windows XP into my flash drive. Not boot from the flash drive and install into my PC. I've searched extremely hard on the internet and found the other thing around and I tried what I could. Any suggestions? (Here's what I tried: Creating partition tables. Install using VMware. Using different formats.

    Thanks for the tips. I was able to install Windows XP and boot from the SATA drive by using these options and setting the appropriate boot device selections...
    Legacy Mode
    ATA Configuration - PATA only
    SATA Keep enabled - yes
    PATA Keep enabled - yes
    PATA channel selection - both
    Combined Mode Option - S-ATA 1st Channel
    S-ATA Ports Definition - P0 - 3rd./P1 - 4th.
    I just wasn't sure if I was really getting "SATA" performance, etc. without specific drivers.
    Thanks again.
    Bob (ll1951md)

  • How to embed Flex swf into existing Flash?

    Hello,
    I am brand new to Flex, so I desperately need your help!
    I have an existing Flash file, written in Flash 8. When I
    open this file, it plays in Flash Player 9, the latest player I
    have installed on my machine.
    This Flash file tries to dynamically load about.swf, a stub
    file created by the designer. It works.
    I am a programmer, so I want to create my own about.swf in
    Flex 2 and then substitue the existing about.swf written in Flash
    with my about.swf written in Flex. The problem is that the existing
    Flash file just displays a blank when I try loading about.swf
    written in Flex.
    Is there any way to load SWF file written in Flex 2 into an
    Flash file written in Flash 8?
    Thank you for your help!!!
    Evgueni

    I think no.
    Flash 8 uses Actionscript 2.0, but Flex 2.0 uses AS3. I think
    these will be incompatible, as they use different VMs.
    If the two swf's exist individually, in their res[pective VM,
    you can communicate between them using LocalConnection.
    Tracy

  • Has anyone integrated OpenID into the Mac OS X Server Wiki and Blog?

    I am currently working on integrating OpenID into the eXist Open Source XML Database (http://exist-db.org). As a separate topic, I was wondering if anyone has integrated OpenID into the Wiki, Blog and OpenDirectory.

    do
    you
    have
    any
    adviceon
    the
    best
    way
    to
    do
    this?
    or
    can
    you
    guide
    me
    to
    a
    beginners
    guide
    on
    how
    to
    set
    up
    a
    Web
    page?

Maybe you are looking for

  • H5, SAP SCRIPT

    Hi , I am working on Automatic Payment F110 tcode. 1. It is printing several pages, we need 1 page print. 2. Everytime print time Cheque number should be changed. 3.And Company logo also has to be printed. How to do all these & where can i do these c

  • Entity object attribute with a list of objects

    Does anyone know how one sets up an entity object that has an attribute with a list of objects as the type? (assuming that's supported) as in: CREATE TYPE phones AS VARRAY(10) OF varchar2(10); Create table suppliers (supcode number(5), Company varcha

  • There's no phonetic first or last name option in add field in contact's.

    Hi, trying to get siri to pronounce a name right so I saw you could just spell it phonetically and it will pronounce it that way, and when I pressed on a contact, and went to add field, there was no option to do it? help!

  • How to make the contents appear of a repeating frame even if its empty

    Hi all, how can i make the contents of a repeating frame (like the labels) even if the query doesnt return anything ?? Regards, Rafael

  • ECM Maximum Amount freezing

    Hi, I have below query requested your help and appriciated . I have done the automation of salary updating basic Pay based on the appriasal points . We have scenerio that an if employee gets 5% hike and from his salary of 4800 he should not get more