Adobe Dreamweaver Forums



Last 10 THreads :         directional movement? (Last Post : clbeech - Replies : 1 - Views : 2 )           »          Populating cfinputs in a form (Last Post : drieh - Replies : 0 - Views : 1 )           »          Autosuggest icon (Last Post : brettcristofer - Replies : 14 - Views : 15 )           »          Flex Session Handling (Last Post : John Hall - Replies : 1 - Views : 8 )           »          Flash Calculations (Last Post : clbeech - Replies : 10 - Views : 11 )           »          Calling Query in Custom Tag (Last Post : JR Bob Dobbs - Replies : 5 - Views : 6 )           »          DW 8 on two computer? (Last Post : Jeepbull - Replies : 2 - Views : 3 )           »          Challenging loadBytes issue (Last Post : solidated - Replies : 2 - Views : 9 )           »          Branching View - Why does it appear this way? (Last Post : Bearfn - Replies : 0 - Views : 1 )           »          Thread Safety (Last Post : rsarma - Replies : 2 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , , ,



Reply
  #1 (permalink)  
Old 08-01-2008, 03:35 AM
PaulAtSfly
 
Posts: n/a
Diggs:
Default Expanding functionality of Classes between SWCs

I'm working on developing an AIR version of a Flex application. I have a SWC
file that contains common components that I want to use between projects, but I
want to extend the functionality of some of the classes and compile it into an
SWC based on the original SWC file. For example, KeyboardEvent has basic
functionality in Flex, but has additional properties available in AIR, and both
the AIR and Flex keyboard events reside at the same package structure
(flash.events.KeyboardEvent).

How does Adobe handle this in its own swc framework? I image there?s some way
that when Adobe built sdks/3.0.0/frameworks/airframework.swc they based it on
sdks/3.0.0/frameworks/framework.swc somehow. I tried doing the same thing by
creating a 2 Library projects, then basing the second library off the first;
but, I couldn?t figure out how to make the class com.test.Test in Library 2
extend com.test.Test in Library 1 like I image Adobe did to extend the
functionality of KeyboardEvent between Flex and Air.

Can anyone explain how Adobe does this? I want to keep both Flex and Air
projects in the same package and class structure so their usage is as seamless
as Adobe?s Flex and Air libraries. I have some ideas using namespaces and
compiler constants, but I assume there has to be a more elegant solution that
what I?ve come up with.

Just to illustrate the library structure:
I have a class in the parent SWC
ParentLibrary > src > com > test > Test.as

ChildLibrary includes the ParentLibrary project and wants to extend
ParentLibrary > src > com > test > Test.as but keep the same package structure
ChildLibrary > src > com > test > Test.as

Adobe does this between its AIR and Flex libraries. How can I do it?




Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk