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


Similar Posts:


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

ActionScript 3.0 :: Runtime Code Sharing?

Aug 18, 2009

I'm working on a project that uses a lot of "widgets" that are displayed in the main application. Many of these standalone swfs where the same code is incorporated several times ( for instance TweenLite ). I want to optimize this by removing this added code from each widget to reduce load time. I'm working on Flex Builder, but this is an actionscript/flash project. I'm not sure how I should do this

View 2 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

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 :: 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 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

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 :: 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

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 :: Sharing XML Between .as Files?

Apr 22, 2009

I am customizing Google Maps for Flash.I have an external .AS file for my document class and one .AS file that extends the look of the Google Maps popup window.I am importing the locations of many apartment buildings from an XML file. The XML is being read in the main .AS file.There are textfields I need to populate in the popup.AS file but I don't know how to get that XML information from the document class .AS file into the popup.AS file. I wouldn't think I need to run an XML loading function in the popup.AS file right? how I can get variables from one .AS file to another?

View 4 Replies

Flash8 Sharing Art Across Files?

Feb 16, 2010

How would I set it up so that I can share a single piece of art across multiple files? My goal is to arrange it so that I can edit the art in the original file and automatically update the art in all files linked to it when published?

For example, I'm working on a character animation where the character appears in many episodes and the episodes are split into many .fla files. If I needed to change the appearance of the character in all of the episodes which are spread across many .fla files, I would I have to do it manually?

View 3 Replies

ActionScript 3.0 :: Sharing Data Between Swf's?

Jun 3, 2010

Say I create a swf and in it, I have two dynamic text fields. I do all the usual stuff like give these text fields instance names. I call this swf1.Now say I load swf1 into another swf, say swf2. Can I set the values to be placed into the text fields in swf1 from within swf2?

View 1 Replies

Embedded Sharing Buttons In Videos?

Apr 16, 2010

flash video that incorporates buttons to share to sites like twitter or facebook? For example at the end of a video at youtube you are presented with a share button. At vimeo there are links on the right hand side of the video for like, share, embed, etc. Are these buttons (i.e. links) added during creation of the video or are they added by the site itself?

I am trying to build a small site that allows a user to upload videos and have a 'share to facebook' and 'share to twitter' button show up in the video when the video is done playing.

View 3 Replies

ActionScript 3.0 :: Sharing Functions Between Classes?

Mar 9, 2009

I have Flash project that is set up something like this:

myProject.fla

- document class = myMenu.as

- the document class imports a menu item from menuItem.as (import menuItem;)

I have a function in myMenu.as that sets the text formatting for all the text fields on the page. I want to be able to use this same function in menuItem.as so that all the formatting is consistent & you only have to change it in one place. How do I access this function from both myMenu.as & menuItem.as?

View 2 Replies

ActionScript 3.0 :: How To Do Remote Desktop Sharing

Jun 11, 2009

Can we do remote desktop sharing by using AS3?

View 2 Replies

Flash :: Pro CS 5.5 Runtime Sharing Bug - Fonts?

Sep 19, 2011

I have an issue with an apparent bug in Flash Pro CS5.5. I have recently upgraded to CS5.5 Master Collection from my previous version of 4.0. The bug is when I create a fonts FLA file with fonts embedded in it that I want to use throughout an entire site. I correctly configure those fonts as export for runtime sharing.

In any other FLAs in which I wish to use the shared fonts, I either (a) drag the assets from one library to the other, or (b) add them to the new fla and configure them as import for runtime sharing (both of which achieve the same result).

[Code]...

View 2 Replies

Actionscript 3 :: Online Video Sharing API?

Oct 8, 2010

I'm developing a web app based on videos that my client would like to upload using an online resource such as YouTube or Vimeo. Since YouTube has a 15 mn restriction length on the videos one can upload, my client has decided to use Vimeo instead, but Moogaloop(!) the Vimeo AS3 API is fairly restrictive and only offers a handful of methods to control the video.

What would be your best AS3 API for an online video sharing site? By best , I mean one that allows as much control as possible over the site's player features. I need to be able to listen to events , control the fullscreen capability , enable/disable some specific features such as a "embed" or "share" button.

View 2 Replies

Actionscript 3 :: Two MovieClips Sharing The Same Class?

Jan 1, 2012

I have two MovieClip symbols in my library and I want them to share the same class, but Flash doesn't allow me to assign the same class to any two different MC symbols, so instead I created two bogus classes which extend the class I wished to share initially.

So having two MC symbols defined by 2 different classes extending a different class allows me to share the same piece of code.

My Question: is there a better was to share a class between 2 or more different library symbols?

View 1 Replies

Actionscript 3 :: Sharing Attributes In Classes?

Mar 23, 2012

Ive been asked to research the relationships between classes but having trouble understanding it.

Within my code, the class A creates an instance of class B inside it, storing the instantiated B in a variable in class A so that class A can access data members (attributes) and methods from class B.

How could I create a link in B so that it can also access information about class A?

View 2 Replies

ActionScript 3.0 :: Delay In Desktop Sharing?

Jun 29, 2009

I am using SharedObject.Send() for implementing remote desktop sharing feature using Wowza rtmp.I am able to implement it but as time of desktop sharing increases the delay increases at client side.Is there any way by which I can fast forward the process at client side or just keep on current copy of desktop screen and discard all the previous one

View 0 Replies

ActionScript 3.0 :: Sharing A Xml Based Calendar?

Apr 27, 2010

[URL] but as the link is provided but no contacts available, I cannot check out this issue..basically, I went through the codes and able to understand but coming to this point, on the top right corner of the rect, the day number do not appear as it appears on the site..when I do trace, the text is there, but swf is not showing it.

View 0 Replies

ActionScript 3.0 :: Two Symbols Sharing The Same Class?

Jul 25, 2011

In my library I have a few symbols (with diffrent graphics) that I want to share the same class (the same methods I written in as3).

First I tried to set the same name on the class line when converting to symbol but Flash then tells me that the name have to be unique. So I tried diffrent ways of inherit the class in each symbols custom class, but I didn't get that to work either..

View 1 Replies

ActionScript 3.0 :: Image Sharing On Facebook?

Apr 1, 2012

how I can share an image on facebook using AS3.... eg using BitmapData or something similar...

View 5 Replies

ActionScript 2.0 :: Linkage / Runtime Sharing?

Aug 25, 2005

Lets say i have two movies.1.swf (contains movie clip in library with linkage ID "thing")directory/2.swfInside of 1.swf I load 2.swf inside of a emmpty movie clip.On the root of 2.swf I attach the "thing" from 1.swf's library:

Code:
attachMovie("thing","test_mc",this.getNextHighestDepth());
Nothing happens. The movie is not attached.

[code].....

View 1 Replies

ActionScript 3.0 :: Sharing Library Assets Between 2 Or More Swf?

Feb 19, 2009

Since I can access the library assets from external class, I have a question :

1. Is it possible to use any of library assets of one movie into another? Let's say in my movie A, I have McA1 movieclip in the library. Is it possible to access/display/addChild McA1 in movie B?

2. If there's a case that Movie B is loaded into Movie A - does all the library from Movie B will be inherited into movie A - vice versa - so it makes them accessible?

3. If the answer of 1, and 2, is no and no, is there any work around to make any library asset accessible accross the board? Is this what so called runtime sharing? Do you have any resource that I can refer to?

View 5 Replies

ActionScript 3.0 :: Sharing The Dispatched Events?

Apr 7, 2009

I have two classes, classA and classB

classA is created on the maintimeline
var myClass:ClassA = new ClassA();
addChild(myClass);

one of the methods dispatches an event

dispatchEvent(new Event("createdIt")

How do I create an eventListener for this event in classB?

View 4 Replies







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