Flex :: Sharing Logic Between The Browser And The Server?

Oct 19, 2009

I'm working on an app which will, like most apps, have a whole boat load of buisness logic, almost all of which will need to be executed both on the server and the Flash-based client And I'm trying to figure out the best (read: least complex) way to implement the rules engine.

These are the parameters of the problem:

The rules engine must both run in a web browser (ie, in Flash Player) and on the server. Duplicating the logic (eg, by writing a "server" version and a "client" version) would be an unacceptable risk. The input/output data is fairly complex, so serialization is a nontrivial problem. We are currently using AMF for all of our serialization needs, and using another protocol would add significant complexity So it should probably be avoided. It is infeasible to implement a "rules description language". Experimentation has shown that rules are sufficiently complex that any such language would need to be Turing complete Which would also add a significant amount of complexity. The rules engine will not need to make some, but not very many, service calls.

Currently, the best contenders are:

Writing the code in ActionScript, then running it on the server. In theory it's possible to start up an AVM instance, get it long-polling a gateway, then pass data back and forth that way But that seems less than ideal. Writing the code in haXe. I don't know anything about haXe's AMF support, so that could be a deal-breaker. Something involving Tamarin. Seems like a viable option, but I haven't done enough research to tell either way.

View 1 Replies


Similar Posts:


Media Server :: 2 Origins / Edges - Sharing Same Server Side

Jun 4, 2010

Now I want to do a different test, I put two origin, you can share the same application from two origins? The idea is to have two edges, and two origins, sharing the same server-side application.

View 5 Replies

Flash :: Media Server - Desktop Sharing Feature In Cs4 / Cs5?

Dec 20, 2010

i am newbee to fms(flash media server). Is it possible to enable desktop sharing feature in flash cs4/cs5?

View 1 Replies

Media Server :: Application Sharing (passing Events Over Network)

Mar 3, 2010

I wan't to share the application over the network using as3 with FMS in such a way that events performed on application on one PC should also reflect on all the connected PCs. for example if I shared a notepad, the task performed by me on that notepad should be reflected to all the connected users and vice-versa, like remote desktop works.

View 2 Replies

Flex :: Where Should SetStyle Logic Go In Itemrenderers's Override Methods

Aug 4, 2011

I have following itemrenderer

[Code]...

My question is Should above logic go in updtaeDisplayList or remain in set data() itself. The output is smae from both. Whats the performance impact difference if we consider it from lifecycle perspective.(The heavy computations should be pushed towards the end of the frame rendering)

View 1 Replies

Flex :: Example Flex Zend AMF Sharing Web Services Between Components In ViewStack

Aug 10, 2011

I've been searching for the last couple days but can't seem to find a basic example of what I'm looking for. I'm developing a Flex 4.5 app and in it I have a viewstack of 2 components that use some of the same services. Currently the only way I can get the app to correctly use the web services is by defining 2 different web services that use the same PHP web service file. For example: I have an app, and within it I have a viewstack with tab navigation of 2 components: #1) retrieve a list of all Salary Employees, and #2) retrieve a list of all Contractors. Currently to get it working I am defining a UsersTableEmployees webservice within component #1 and a UsersTableContractors webservice within component #2, but they both point to the same PHP class, and only differ in the arugment value I pass to them. Ie, getUsers("employee") and getUsers ("contractors"). Of course this is not best practice.

Searching StackOverflow and Google gives me many results about ColdFusion and MVC (example What's the best way to share data between components in Flex?), but I'm still confused. Can anyone here point me to a basic example (even sample MVC) and source code of an app that uses Zend AMF and allows different components to call common web services?

View 1 Replies

Sharing Code Between Flex And AIR?

Nov 17, 2010

As you know, we could build a RIA application based on flex. Also, we could build an desktop application based on AIR. I have a question, If we want to build web & desktop application simultaneously. Could we use the same codes to ship our production to web & desktop?

View 3 Replies

Flex :: How To Add Screen Sharing To App

Aug 18, 2011

Are there any off the shelf components for adding a screen sharing feature to my app?I've built real time text chat for a group chat room - now I'd like to have a button where a user can share their screen with the other members of the chat. Basically, I'm looking for a way to add this feature as easily as possible:

[Code]...

View 2 Replies

Flex :: CreateChildren Called Before Component's MXML Bracket Logic Is Evaluated?

Mar 16, 2010

I have the following MXML:

<mx:Script>
var someBoolean:Boolean = determineSomeCondition();
</mx:Script>

[code]......

View 1 Replies

Flex :: Dynamically Change Mxml For UI Description And State Transition Logic?

Aug 25, 2011

I want to use Adobe mxml to create a swf. However, the mxml gets compiled to swf itself and is not available after creating the swf. I want to add states with UI components without compiling it every-time.

View 1 Replies

Flex :: Mvc - Sharing Data Between Different Components

May 13, 2010

i have in my flex application various mxml components that all need to show stats based on the same data. how can i go about doing that? do i need some mvc framework like cairngrom or puremvc for that or can i do it without them?

View 4 Replies

Flex :: Sharing Code Between Swfs?

Jun 4, 2011

Lets say I have two swfs A and B, and at runtime, swf A loads swf B, and I wish to share code between them, to minimize file size and download times.If swf B has some code (say. com.blah.HelloWorld), I tell the compiler to have swf B's source in swf A's classpath, but only do a compile-time link and not actually compile com.blah.HelloWorld into swfThis works, and I have tried it, using a the -includes and -externs compiler options.However, My problem is that I wish to do this the other way. i.e. swf A and B (and potentially swf C) all need com.blah.HelloWorld, but I want com.blah.HelloWorld to be compiled into just swf A, have it as an external reference in swf B ( and potentially C as well.)I tried doing this using the externs and includes, but I get ReferenceErrors when I do this.

View 1 Replies

Flex :: Resize An Entire Air App AS IS - Ignoring Component's Positions And Sizes Logic - Like Zooming

Dec 5, 2010

i have written an air app which is fixed in dimensions: 1000 w X 800 h i have set the resizable and maximizable tags of the app-xml to false, to prevent the user from changing it's size. this app looks and interacts perfectly at these dimensions but not at other: it has "bad" coding techniques in it like hard-coded display sizes and such, rtl and ltr combined layoutdirections and so forth...

when the applicationComplete event dispatches, i check Capabilities.screenResolutionY and if it is less then 800 i want to resize the app programatically (preserving the width/height ratio). i have tried all the StageScaleModes and tried changing the dimensions of the stage, the nativeWindow, the app itself("this") and so on in every combination.

i am looking for a way to resize the entire app as is, meaning i dont want to use display logic of the components and such, just to "shrink" or "expend" the whole app as is, with hard-coded pixel amounts to change within the logic of the app accordingly (change all sizes, locations, fonts etc.. in sync) the app should look and work exactly as it did in it's 1000x800 default size, only smaller or bigger

View 2 Replies

Flex :: Screen Sharing Software Creation Using As3?

May 27, 2010

I wish to do screen sharing application using as3 as the part of one project. how to get screen sharing video using as3.

View 2 Replies

Flex :: Sharing Variables Between MXML Components

May 29, 2010

I have several mxml components in an app, all of which need the same variable called genericX. I've included that variable in the main mxml and made it public
[Bindable] public var genericX:Number = 102;
But I still can't access it from other mxml components. If I try to do this for example, it doesn't recognize the variable.
<s:Button x="{genericX}" label="Click" />

View 5 Replies

Flex :: Flash Video Capture And Sharing?

Dec 7, 2011

Is there any way to capture and upload video from web cam? Video upload expectation is it much smiler to Facebook video upload from web cam.

View 1 Replies

ActionScript 3.0 :: Flex Sharing Project On Different Computers?

Apr 11, 2010

I'm currently keeping all my flex projects in a dropbox folder (though considering changing to alternative with multiple folder support) as I'm continuously working on different computers.

Since my AS libraries doesn't have the exact same path on the different machines, I have to change the path in the projects I like to work on every time I switch computer.

View 7 Replies

Flex :: Presentation Model Pattern Can View Specific Logic Reside In View?

Aug 15, 2011

I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.

View 1 Replies

Flex :: Make A Flash Browser App That Could Receive Data From Browser Plugin Or Other Windows App?

Dec 18, 2009

in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?

View 1 Replies

Actionscript 3 - Flex / Flash - Open The Swf In A Browser Window That Doesn't Have The Browser Control Bar Or Menu?

Oct 27, 2010

The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?

View 2 Replies

Flex :: Session Sharing Between BlazeDS Servlets And Http Servlets?

Apr 30, 2011

I'm developing a Flex application that employs BlazeDS with Tomcat on the backend. The Flex client authenticates through the ChannelSet which in turn creates an authenticated session on Tomcat. From then on, all of the client calls are authenticated transparently. However, I have a regular HttpServlet for uploading files, which does not get the session information from the BlazeDS servlets.

Is there a way that I can get the Principal object in the HttpServlet? I know that I can get the session ID from the BlazeDS servlet, pass it to the client, and then send that along with the upload request.

View 1 Replies

Media Server :: Get Browser Information?

Jan 3, 2011

How can we get the browser name and version through which the current streaming is takes place?

View 4 Replies

Media Server :: Communicate To FMS From Browser Not With Swf

Aug 9, 2011

Cen i communicate to FMS from browser not with swf. For example - by javascript from user side or by C# from IIS server side.
 
I need to built a live chat appliction where the swf only get the live streem and show it to the user but all the other logic code that communicate to FMS will be not in the swf and not in some *.exe file.
 
I need this because this live chat appliction will have to work on apple ipad and iphone soon when FMS will be able to stream to those devices and i will have to abandon the swf anyway.

View 1 Replies

Php :: The Logic Of Ecards?

Dec 9, 2011

Would like to understand the basic process behind an ecard before I attempt to construct one!Obviously there could be the following elements:Initial web page containing a Swf (choose swf) offering a user a choise of ecards and a consisting of a series of text input fields to collect recipients and senders address and a message. With actionscript that calls a php file on the server.

Passing variables holding the card choise the card text the email from and to etc from swf to php file.The php script runs and creates a copy of a swf card, the one chosen by the user(swf1) It populates the swf copy with text from the variables set by the choose card swf.the php then sends an email to the recipient address with ? and this is where I am unclear?Does it send an attachment of the swf1 or how does it do it?

View 2 Replies

Flash :: Playing Video On A Web Browser From A Web Server?

May 5, 2010

I need to play videos stored on a web server from a web browser.

I was thinking of using Flash to achieve this. I found this article [URL]

Is there a better approach? Also when the video is playing or is paused, I'd like to be able to read the current time of playback from the browser (I guess through Javascript). Would Javascript be able to retrieve this time from the flash player?

View 2 Replies

C# :: Communicate To Flash Media Server From Browser Not With Swf

Aug 9, 2011

Cen i communicate to FMS from browser not with swf. For example - by javascript from user side or by C# from IIS server side.

I need to built a live chat application where the swf only get the live stream and show it to the user but all the other logic code that communicate to FMS will be not in the swf and not in some *.exe file.

I need this because this live chat appliction will have to work on apple ipad and iphone soon when FMS will be able to stream to those devices and i will have to abandon the swf anyway.

View 1 Replies

ActionScript 2.0 :: Concerning Logic Operator -=?

Sep 19, 2005

Im doing a tutorial in a book that moves a car from one end of the screen to the next by buttons.When you release a button it moves the car 10 pixels more down the X axis.The code confuses me and I want to understand it Please Help!

Here is the code:

// stop the cars traveling
stop();
// callback for onPress event on 'back' button
back_btn.onPress = function() {
// move my car -10 pix

[code]...

Why does the - sign and + sign appear before the = instead of after?Is this a logic operator(-= or +?Why doesn't putting the - sign or + sign after the = work?

View 2 Replies

Media Server :: Live Stream Vp6 From A Browser/swf File?

Jul 23, 2009

Currently we have a swf file application that runs in a browser and takes the live video stream from the camera on the computer and streams a live sorenson spark stream to the fms 3.5 server.
 
Question is: How to live stream vp6 from the browser/swf file on the camera computer, instead of the sorenson spark. (We seem to be stuck only on sorenson spark).

View 13 Replies

Media Server :: PHP Shown In Browser As Text On FMS Apache

Oct 22, 2009

We have several small websites, some with limited php and some with small mysql databases and we are planning on running Flash Media Server as well all on one RedHat server. I have installed the FMS and apache as per default installation and all is working ok I see the sample videos and have added some of my own videos. I have added some content under /opt/adobe/fms/webroot and this appears ok.

I have 2 flat sites called mysite1 and mysite2
Apache is installed as the default install on linux under /opt/adobe/fms/Apache2.2.
I have installed php php -vPHP 5.1.6 (cli) (built: Feb 26 2009 07:01:12) Copyright (c) 1997-2006 The PHP GroupZend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

I have the following in my httpd.conf file and this seems to work ok for the virtual hosts in apache as I can see these sites
NameVirtualHost *:8134
<VirtualHost *:8134> DocumentRoot "/opt/adobe/fms/webroot" ServerName myservername
ErrorLog /var/log/httpd/error.myservername.log .....

But when I go to look at a php page all I saw was the php text. So for example I go to [URL] page appears fine, when I go to [URL] all I see is the php text. I looked at the php.conf file from another server and I noticed that it used modules/libphp5.which is not available on this copy of Apache so I am not sure what I need to do to get php running on the server.

View 1 Replies

Flash - Video Streaming From Browser To Server Software

Sep 7, 2011

I need to stream webcam/microphone data from a browser to my server: Can I use anything else than Flash on the client side? What alternatives to Flash Media Server are there? Any open-source?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved