C# :: Share Code Between C# And Flex?

Jul 15, 2009

I am developing a Flex / Flash application which talks to an ASP.Net / C# backend. Is there any way I can share code between the two?The server provides a reasonably interesting domain model which the client is designed to maniuplate. Ideally I would like to be able to define this domain model once and have both sides use it for consistency. I am after all the benefits that come with being DRY.I'm new to Flex but the sort of thing I had in mind was some intermediate language that compile to both C# and ActionScript.

Update:I currently have a basic REST style web service which sends XML serialized versions of the objects down the wire to Flex. This works fine but what I am really interested in is being able to share simple business logic that goes along with these objects. There are certain business rules that need to be processed on both the server and the client and is possible I would prefer not to have to call back to the server for performance reasons.

View 7 Replies


Similar Posts:


Flex :: Share Code Between Swfs?

Sep 24, 2009

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 swf A

This 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.

I want to do this without a having a separate rsl, so I can reduce the number of http requests.

View 3 Replies

Javascript :: Flex - Share Code Between Library Without A Bridge?

Apr 15, 2012

I'm involved in writing a Flex/ActionScript library and in the future I will be involved in writing the same library in JavaScript. Rather than writing a library in each language and having to maintain them separately I was wondering if it was possible to:

1) Write the code in one language and share the code into the other e.g. Write the code in JavaScript and use the same .js files in ActionScript

2) Write the code in one language and perform a conversion into the other

I know it's possible to communicate between Flash/ActionScript and JavaScript but I'd like to avoid the overheads in using the technology bridge so this isn't really an option.

How do other people deal with writing and maintaining libraries that do exactly the same thing but in different languages? Specifically how do people do this between JavaScript and ActionScript?

View 2 Replies

Actionscript 3 :: Share TextArea Component In Multiple SWF - Runtime Share Library?

Jan 12, 2011

How to share TextArea Component in multiple swfsaylib.swf (has TextArea Componenet)main.swf (Import TextArea Componenet from lib.swf)section.swf (Import TextArea Componenet from lib.swf)

View 1 Replies

Share Data Between Components In Flex?

Jul 9, 2009

I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a selection of states: "In Progress", "Rejected", "Complete") that I want to have use the same data source.

What is the best way to manage this?

View 2 Replies

Flex :: Share Components IDs Through Modules?

Apr 16, 2010

Are IDs attributes shared between different modules in Flex ?

i.e. I have a text area with id="text1" in my menu.mxml file.

And I want to write on it from another module mainArea.mxml

The debug gives me error, so how can I share different components ?

View 1 Replies

Flex :: How To Add A Twitter Share Button

Feb 14, 2011

I've got a Flex 3 website. How do I add a Twitter share button?

View 3 Replies

Flex :: Share Instance Between 2 Parsley Configurations?

May 23, 2011

I got 2 parsley configurations for my 2 elements.

A.xml

<fx:Declarations>
<!--Presenters-->
<presenters:ScenarioDefinitionPresenter id="scenarioDefinitionPresenter"/>

[Code].....

how to make that the "scenarioDefinitionPresenter" in both config share the same instance?

View 1 Replies

Flex - Upload Or Share Images On Flicker Through Php?

May 24, 2011

i am developing an application in which user have the option to share images on different social sites like Facebook, twitter and Flicker.

I have done with Face book and twitter, i upload image to my server and share the link on Face book and Twitter.

[Code]...

View 1 Replies

Have Flex WebServices Share A Common Wsdl

Aug 3, 2011

I have a flex app that loads a WSDL at runtime and shares that across several different web services I have defined. Unfortunately each call to loadWSDL() makes a network request for it, and while it's not really a problem due to caching it's still annoying and wasteful to have all those requests generated. Is there a simpler way to solve this problem and only make one network request?[code]

View 1 Replies

Flex :: How To Embed Share On Facebook Button Into Application

Sep 9, 2010

I'm trying to duplicate the behaviour of the "Share on Facebook" button from Youtube. Basically, inside a Flex app I'll have a button and when I click it I want a popup that enables me to post something on the wall. While it is possible to make a call to javascript to open the pop-up I want to be able to set the images and the text of my posting. How I could set the images or text as a parameter to the sharer window?

View 3 Replies

Flex :: Share Text Area In White Board?

Jun 29, 2011

I Created a white Board in Big Blue Button.In that white board i created a text Field.. Now i want to Share the Text Field.

View 1 Replies

Actionscript 3 :: Share .as File Bettween Two Applications In Same Project In Flex?

Apr 16, 2010

I have two applications in my project 'test' the applications are one.mxml and two.mxml and i want to use the same main.as file in both using

<script source='main.as'/>

Can I access the components of both applications from main.as when both are running simultaniously.

View 1 Replies

Flex :: Upload Image Then Share Without Saving The File Using SharedObject Or Anything?

Jun 10, 2011

I'm currently working on a chat with uploading an image and sharing it. The problem is I can upload and display the image but I can't share it to the other side. Here is some code:

[Code]...

View 1 Replies

Flex :: Structure Multiple Cairngorm MVC Projects That Share Several Components?

Jun 5, 2009

I recently completed a project for a custom report UI in Flex. Now, I've been tasked with creating a new application that is essentially a "lite" version of the original UI. It will include only a few of the options that are in the original application. Also, it needs to be a separate application.

I do not want to duplicate my code, so I am planning on moving a bunch of the classes from the original application to a new library that can be shared by both applications. However, I'm trying to figure out how to make this work in my MVC environment.

For example, I have an Accordion component that lets users filter several items. Each Accordion child is an instance of a custom component with two lists (one for entities available for selection, the other for the entities the user has selected). Each child component has properties bound to the Model and functions that call Cairngorm Events.[code]...

View 1 Replies

Flash :: Flex PopupManager Share And Center Popups For A Whole HTML Page?

Feb 28, 2011

I have to put multiple Flash movies on a page and I'd like them to share modal popups, so that access to the entire page is denied while a popup is active. I can do this via Javascript and create HTML popups via the ExternalInterface class, but I would love to be able to do this entirely in Flex using the PopupManager class.

Note: This is not for any evil purpose. I just need to make sure none of the other movies' buttons are clicked before the user responds to the first thing they clicked. Also, some of the movies are quite small and can't contain some of the popups they require.

View 1 Replies

Flex :: Why Do Charts Axis Values / Labels Not Show Up When Using Runtime Share Libraries

Nov 10, 2009

I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries.I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc share libraries. After deploying, my application loads, however my axis values within each of my charts are missing. The axes themselves are shown, however they do not have their label units displayed. The series themselves are displayed too.I have tried this using the 3.4 SDK and also the 3.2 SDK within Flex Builder. I also tried compiling flex using the mxmlc ANT tasks and got the same results.I made sure that the framework RSL is getting loaded first and I also made sure that the global flash cache has been cleared before I tested.I can see from my access logs that the .swz files are getting loaded the first time I make a request for my application, so I am confident that I properly cleared the flash player global cache.

Does anyone know why my axis values would be missing only when I deploy with RSL??? Switching back to Merged mode, my application works fine and it is only when I deploy with RSLs that I get the issue.I have also tried to compile using only the framework RSL and not the datavisualization or rpc RSLs (keeping them in merged mode) and I get the same results, no axis values.

View 1 Replies

ActionScript 3.0 :: Flex - Valid JavaScript Code That Is NOT Valid Code?

Mar 12, 2010

Most JavaScript code is also syntactically valid ActionScript 3.0 code. However, there are some exceptions which leads me to my question:

Which constructs/features in JavaScript are syntactically invalid in ActionScript 3.0? Please provide concrete examples of JavaScript code (basic JavaScript code without DOM API usage) that is NOT valid ActionScript 3.0 code.

View 6 Replies

ActionScript 3.0 :: Flex Code For Rich Look And Feel Of Flex Line Charts?

Nov 25, 2010

I want to give a good look and feel to the flex line charts. How to show it more attractive. I have done everything, now i want to show it more attractive/rich look and feel. can you guys provide me any samples.

View 3 Replies

Flex - Graphics - Code Of Drawing A Text Curve In Flex?

Feb 1, 2011

I just need a simple code of drawing a text curve in flex

View 2 Replies

Adobe Flex 2 Projects With Same Class Share That Class Between The Two Projects?

Dec 24, 2009

i have several flash projects and i have common classes. is there a way to share these classes between the project so i won't need to copy it to all the project when ever i modify something?

View 2 Replies

AS :: IDE - Duplicate MC Does Not Share?

Jan 3, 2009

I have the details in my flash and swf file, but I'll explain what's happening. If you click on the green "i", it opens a window, you can drag the window by the top bar next to the exit and minimize. But unfortunately, if you close this window and open other (duplicate of MC), you can not move the window like you can on the original. My guess is that the AS does not carry onto the duplicate; I am stuck right here, if I can get this fixed, it will fix a lot of my other animations. I've been trying to search for this on Kirupa, but there are no results

Code:
on (press) {
bn = "window" add n;

[code]........

View 2 Replies

ActionScript 2.0 :: Share A S.O. Between Two Swf's?

Dec 2, 2004

I'm wondering if you can either specify a specific path of where to save your S.O.'s? I'm trying to share a S.O. between two swf's. I know they get saved here:

Code:
C:Documents and SettingsusernameApplication DataMacromediaFlash Player#SharedObjects

and right now they reside under two seperate folders (named after the two swf's) under the localhost. The script for retrieving and saving, as well as the S.O. name are all the same for both files although the swf file names are the same.

View 2 Replies

ActionScript 1/2 :: How To Share Same Sequence

Jul 13, 2009

Let's say I have 2 buttons at the beginning and 2 different endings, but same sequence in the middle, how can I click on button 1 > same middle > ending 1 ; as well as button 1 > same middle > ending 2. Surely I know I can do it by duplicating frames, however it seems not right if I have more buttons and more endings.

View 3 Replies

ActionScript 3.0 :: Share Data Between SWF's?

Aug 30, 2009

Is there any way to exchange data between 2 swf's?

View 2 Replies

Share Streaming Between Applications?

Mar 17, 2011

I wonder if it is possible to share live video streaming between applications on the FMIS. and also if it's possible SharedObject sharing between applications.

View 1 Replies

CS4 Share Fonts Doesn't Appear To Work

May 11, 2009

I've followed the documentation (I think) but it doesn't seem to work. I have a root document which loads a bunch of swfs created off a 'template' that uses two fonts. Rather than embed the fonts on each swf I though I'd embed them in the calling document and share them. The documentation explains to export them for sharing and give give them an identifier string and a URL. AS3 however doesn't permit the identifier string so I assume this is supposed to work with the class name.

As for the URL I'm giving it the name of the compiled root document (home.swf). I then copied the fonts from the calling document's library to the library of one of the called documents. I then told the pasted font symbol properties to import for runtime sharing and added home.swf to the URL field. The swfs are all in the same directory but when I compile the home.fla and call the swf there is no text visible. No errors show up.

View 8 Replies

Draw Application And Share Object?

Oct 2, 2009

[url]...I added clear button, which clears all lines from user's whiteboard, but every other user who is connected to whiteboard, still sees lines. But when other users refresh the page, lines are gone too. That means I'm able to delete data from shared object, but I don't know how to update other users' whiteboard.[code]...

View 2 Replies

Media Server :: How To Share An Array

Apr 26, 2011

I want to share a list of visitors of chat room with SharedObject. I was going to put and array into shared object's field. Is it possible? And also I was realized that it is impossible to synchronize shared array correctly. If two visitors will add themselves to the list simultaneously, then one can be lost.Is it possible to synchronize access to shared object somehow or the only way is to write server side function to control the array?

View 1 Replies

Flash :: Create A Share Button In AS3?

Mar 24, 2010

creating an AS3 Facebook share button? I need to be able to customize the title, description and picture.

View 3 Replies







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