Using same project for Desktop and Web (?)

Is it possible to manage a same codebase/project for compiling both for AIR and web release (?) Also, on a distant thinking, can ANT able to help on this way?

To elaborate further, in Flash Builder create:
Core Library : Actionscript Library Project - This project contains 90% of your code as CWBenccw mentioned.
AIR Core Library : ActionScript Library Project (Linking AIR libraries) - This project contains AIR-specific implementations of core functionality.
Web App: ActionScript Project (Web) - This project links with Core Library and contains a basic entry point for web (a Main Sprite)
Desktop App: ActionScript Project (Desktop) - This project works like the above, but with a Desktop entry point and Application descriptor, and links with AIR Core Library
Mobile App:  ActionScript Mobile Project - Same as above, but for mobile
The way you use your AIR Core Library is to provide overrides for things that are different in AIR.  For instance you might want to be able to save files differently, but transparaently to the Core Library.  In this case you create an interface for saving in Core Library, e.g.
interface Saver
function save(filename:String, data:String) : void;
You also create an implementation for your non-AIR core:
class FlashSaver implements Saver
function save(filename:String, data:String) : void
     var so : SharedObject = SharedObject.getLocal("something");
     so.data[filename] = data;
     so.flush();
And then an AIR implementation that might use AIR features like direct File IO.
Your various entry points are responsible for providing the correct implementation of Saver to your Core Libraries via some form of dependency injection.

Similar Messages

  • Can I use same account for android and PC and how ...

    Can I use same account for android tablet and PC and how do I link both?

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

  • Simultaneous development for desktop and web

    What I'm looking for is simultaneous development of a desktop client and a web client (as an applet). Basically, the desktop client and the web client should provide the same functionality. What I'd like to do is develop these two concurrently; with the same tool, using the same codebase with build-specific changes being kept to the absolute minimum. To estimate the size and difficulty of the project.. JDBC, sockets, graphics.
    From what I read, Java Studio Enterprise would be OK for working on both aspects. Functionality would be provided by a set of special Beans I'd write. What I'm wondering about is that how well could this succeed. Question time!
    * I'd like to have the desktop client use SWT and the web client Swing. It should be possible to wrap these to provide a common API for myself, but how much work am I looking at?
    * Regarding the question above - if I use a visual RAD tool like Sun Java Studio Enterprise, how easy/much work would it be replace the widget library with their "cross-platform" widget library equivalents (so that in the code, it'd reference my own versions and all)? This is about reducing the build-specific changes again - when I drag and drop a button to a form, I'd want it to be one of my own magical SWT/Swing buttons.
    * I'd imagine the application would get fairly large - how much unavoidable change should I expect between the desktop client and web client? Are there any serious pitfalls/caveats?
    * Would it be feasible to realize the desktop "client" through Web Start - just make the applet and have it launched through that?
    I'm evaluating different views and ideas for a possible project and would like to know how Java would fare in something like this. Let me know what you think. Thanks for your input!

    Maybe something like OpenID Connect built on top of oAuth 2.0 would be applicable?
    Users can manage their identities with an Identity Provider. Your Web and Desktop applications become Relying Parties and they will be given an ID Token and possibly an Access Token when the user is authenticated with the Identity Provider.
    The Identity Provider could be extended to federate onto other Identity Providers such as ADFS, Google, Facebook...

  • How to use same jsp for edit and add form

    Hi,
    I would like to use the same .jsp file for edit and add. I just want to change a few controls based on edit/add mode. How do I configure this in the jsp?

    In the environment I currently have access to do not have similar setup.
    Let say you setup the DFF1 default value to $HEADER.customer_name, the name of the DFF is CUSTOMER_NAME, description can be anything.
    In DFF2, default value should be a SQL, where you can reference the DFF1. For example, SELECT DECODE($FLEX.CUSTOMER_NAME, 'ABC', 1, 'DEF', 2, NULL) FROM dual
    In this case, you can reference the DFF1.

  • Dataguard 9iR2 using same SID for primary and physical standby issues

    Hello, I have been following the Creating Physical Standby Database document from Oracle setting up a physical clone for a 9iR2 database on Solaris 9 environment between two identical workstations. I want to databases to have the same SID for relatively seemless failover however the redo logs are not pushed to the physical clone. when I switch a logfile on the primary and then query v$archive_dest on dest_id=2 I get a status of ERROR and the ERROR is the ORA-12154 TNS service name error.
    Here is a summary of my setup:
    Primary - SID = PROD1, located on WS001
    Clone - SID = PROD1, located on WS002
    SPFILE settings on Primary:
    *.db_name='PROD1'
    *.dg_broker_start=true
    *.fal_client='PROD1_node2'
    *.fal_server='PROD1_node1'
    *.log_archive_dest_2='service=PROD1_node2 optional lgwr async=20480 noaffirm reopen=15 max_failure=10 delay=30 net_timeout=30'
    tnsnames.ora on Primary:
    PROD1_node2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WS002) (PORT = 1521))
    (CONNECT_DATA =
    (SID = PROD1)
    listener.ora on secondary:
    PROD1_node2 =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WS002) (PORT = 1521))
    SID_LIST_PROD1_node2 =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /export/oracle/oracle_9.2/PROD1)
    (SID_NAME = PROD1)
    Any input would be appreciated. I can provide whatever else you might need. I thought this was the most pertinent to this problem.
    Thanks.
    Jim

    I have been looking at the sqlnet.ora files for the two databases
    for WS001:
    Names.Default_Domain = WS001.example.com
    Names.Directory_Path = (TNSNAMES, ONAMES,HOSTNAME)
    for WS002:
    Names.Default_Domain = WS002.example.com
    Names.Directory_Path = (TNSNAMES, ONAMES,HOSTNAME)
    I cannot connect with sqlplus from WS001 to WS002 on the other machine.

  • Need to retrieve deleted messages/conversations for desktop and web

    someone has deleted messages and conversation from my yahoo email and facebook accounts, as well as to my desktop??? Can i find them-get them back??? also, how do i "check out " my computer for hidden-well hidden anything!?!folders/documents/tasks
    HELP PLEASE!!!

    I found a web site that said there was a program that you can use to retrieve them.
    Here's the link
    http://riactant.wordpress.com/2009/05/02/retrieving-deleted-text-messages-from-y our-iphone/

  • Use Same URL for Internal and External Access for CRM 2015 IFD

    I have setup a CRM2015 server for IFD access.
    ADFS and CRM are on separate servers.
    CRM server all roles
    ADFS 2.0 server.
    Using the internal URL I am able to access CRM without entering my details (as expected)
    Using the external URL I am authenticated by ADFS as expected and can sign in.
    We have an internal domain domain.local
    We have an external domain domain.com (the certificate is for *.domain.com)
    We have a DNS zone created internally for domain.com.
    CRM URLs
    internal : internalcrm.domain.com
    External : externalcrm.domain.com
    I would like all users to use the same link regardless of them being internal or external, but I would like so that any user who is on the domain is automatically logged in without entering their username and
    password. What is the best way to do this?
    I have tried creating a cname record on the internal domain.com zone pointing externalcrm.domain.com to internalcrm.domain.com but that didn't work, I still get the ADFS sign in page.
    Thanks

    So fair warning, what you're asking for isn't really a supported deployment method of CRM.
    That said, you should be able to do some DNS trickery internal to your network that points your "crm.domain.com" to "crm.domain.local" and then hopefully CRM will treat the connection as if it came from an internal network.
    Otherwise, you're likely going to have to accept that everyone gets the ADFS login page internal and external to your network.
    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

  • Using Same Home For Mint and Arch

    I installed arch onto a 10gb partition just to test it out and im becoming very accustomed to it but the partition is too small if i want to use it as my main distro and was wondering if I could use the same user (and home partition) for both linux mint and arch or would it be safer to create separate users and have them live on the same partition?

    Onwards wrote:...you needn't worry about UIDs as they are used by the kernel; it doesn't care about usernames...
    Exactly - if you're trying to keep things "in sync" between installations, then the UID needs to be the same because files and directories on disk are stored by UID. They are then just mapped to a username for display purposes.
    Eg, username "bruce" on install 1 has UID 500 and username "bruce" on install 2 has UID 502. Same username, different UID's. Permissions will always fail between the installations because as far as the kernel on install 1 is concerned, all of "bruce"s files are owned by 500. The kernel on installation 2 won't allow read/write etc (depending on the permissions) because it knows the files are owned by 500, but "bruce" is 501.
    I think that makes sense?   It does in my head

  • Use same player for images and video

    Greetings,
    I am working on a media player using Flash Pro CS4. I am
    totally new to Flash, but I do have experience coding in C#. I have
    included a URL to a media player used by the UFC. I'm trying to
    figure out how they have a single media player that allows you to
    display either an image or have the next selection in line be a
    video that plays. I did find a tutorial on in the Flash Developers
    Center on how to create a dynamic video player with an XML
    back-end, which is very helpful, but it only covers using video. If
    anyone could help me out by pointing me in the right direction, I
    would greatly appreciate it.
    Thanks,
    PAffiliates
    PS...Below is the URL I mentioned...
    http://www.ufc.com/includes/flash/FeaturedMediaGallery.swf?4

    So fair warning, what you're asking for isn't really a supported deployment method of CRM.
    That said, you should be able to do some DNS trickery internal to your network that points your "crm.domain.com" to "crm.domain.local" and then hopefully CRM will treat the connection as if it came from an internal network.
    Otherwise, you're likely going to have to accept that everyone gets the ADFS login page internal and external to your network.
    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

  • Can you use same earphones for iPhone and iPad air

    Can you use the earphones from an iPhone on an iPad air

    Welcome to Apple Support Communities
    Of course. They are compatible with both iPhone and iPad Air

  • IBook for Graphic and Web Design

    Hello,
    I'm thinking of buying my sister's iBook (since she doesn't really use it). I was talking to a mac rep about using the iBook for Graphic and Web Design purposes and I wanted to get other people's opinions on how Adobe Creative Suite and Dreamweaver have performed in other people's iBooks.
    Thanks!

    Running a lot of applications simultaneously, or a few high processing type applications such as Adobe's is what takes up RAM. OS X utilizes Hard Drive available space to make up for memory (RAM) deficiencies. This will "slow down" a system's ability to manage the files. So if you like to multiple applications opened at the same time, buy more RAM. Personally, 1 gb ought to be the minimum for today's systems.
    By contrast, a computer's processor, including logic board, video board, etc. are the engine of the system. The iBook has a small engine. So no matter how much RAM you feed it, it's still going to operate like a small engine. If you want more processing power, you would need to purchase a more powerful notebook (eg Power Book) or a more processor oriented machine such as the Intel iMac or Mac Pro.

  • Same BS for sender and receiver comms

    Hey pals,
    can we use same BS for sender and reciever communication channels?!!
    -Esha

    Hello Esha,
    You have to you 2 BS
    One from where u hav to pick the file and the other one where you want to post it.
    what is a Business system? What is use of creating it
    Business System have an entry in the SLD and Buiness Service do not.
    Business Systems are used when you are sending data to and from an R3 system and can be of ABAP, JAVA and Third Party Types.
    Business System is a logical representation of a Technical System.
    Business Service is a abstract representation of a System. For instance, www.google.com have a several system working together and IPs of this machines change eventually. When we use a Business Services like google we reference a computer that we don't know the phisical implementation.
    Thanks,
    Satya
    Edited by: SATYA KUMAR AKKARABOYANA on May 15, 2008 5:51 PM

  • Using Yosemite - cannot project screen onto TV.  Get bits and pieces or black screen.  Have been using same setup for years.

    Using Yosemite - cannot project PC screen onto TV.  Can get a black screen or bits and pieces of a screen ( not always the one displayed on PC).  Have been using same setup for years.
    Thanks for any help

    Hi, edward.  
    Thank you for visiting Apple Support Communities.  
    I understand that you are having a display issue with your MacBook Pro on your TV.  I would need a little more information regarding how you are connecting your device and what content is being displayed to provide a better answer.  However, here is the best troubleshooting resource to go through when experiencing these symptoms.  
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT201177
    Cheers, 
    Jason H.

  • I downloaded mountain lion on my laptop.  Do I need to do the same on my Desktop and iPad or is the one download good for all 3, and how do I do that if it is?

    I downloaded mountain lion on my laptop.  Do I need to do the same on my Desktop and iPad or is the one download good for all 3, and how do I do that if it is?

    If your desktop computer is one that supports Mountain Lion, you can either download it there or make a bootable jump drive with the installer on it -- assuming you haven't yet used the installer you downloaded to your laptop.
    As for the iPad, it doesn't use the same OS as the Macs do; it uses iOS versions, so Mountain Lion won't work there.

  • I have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    i have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

Maybe you are looking for

  • New Hard drive and ram upgrade

    Hi my mac tower g5 is running quite slow at the moment and the hardrive is really loud, so i can tell you its on its way out. Will replacing this make it run much faster or is it running quite slow due to the fact I am using a powerpc? I want to use

  • Output Post Processor is not coming up

    Hi all, In a cloned instance, Output Post Processor Concurrent Manager is not coming up. In manager log it shows like /appstest/testcomn/util/jre/1.1.8: Permission denied usdsop: exec failed during spawn Apps user is applmgr bash-2.05$ pwd /appstest/

  • How to pass  variables into flex movies form the url

    I used to do this in Flash 8 using swfobject, but it does not seem to work with Flex. Anyone can provide an example on how to do this. Thanks, Gilbert

  • RecordSet and ResultSet

    When Should I use RecordSet and when ResultSet?

  • What is Data Management?

    All SAP Gurus, What is Data Management in SAP? Is there any special module for Data Management? Regards,