Use classes in another project, without including them

Hi,
I have a full flash website that is ok. One part of the code is technical and the result of months of R&D, we would like to try to protect it from decompilers. Biggest part of the website is no need to protect but we want it to download fast.
We would like to split the AS project into 2 projects :
- swf 1 we put it on a caching CDN so that it loads fast (it's big, with some medias)
- swf 2 we want to protect, must be as small as possible because it will load slowly. The server checks the rights before it returns the swf.
- some classes are used by both projects
How would you do that ?
What I think now :
- swf 1 (the big fast) has the classes used by both projects. It loads swf 2 (the small protected) with a Loader. The URL we give to the Loader executes a PHP script which checks the rights before returning swf 2.
- swf 1 can access functions and variables from swf 2 classes BUT without auto complete, type checking, function signature checking... The 2 projects can communicate by Events.
- swf 2 can access the common classes in swf 1 :
var MyClass:Class = ApplicationDomain.currentDomain.getDefinition("com.common.MyClass") 
But same problem, we don't have auto complete on variables and functions from MyClass, no ASdoc, no type checking, number of arguments checking...
To fix this, I can put the common classes in a 3rd project. I import this project 3 in project 1 and project 2. The code isn't duplicated, no problem to maintain it, but it is compiled in both projects and then swf 2 is too big.
I hope I explained it clear enough... If you figure out my problem, I'm listening !

I think we don't understand each other, I don't use the package name like a web address...
I load swf 2 in the same ApplicationDomain than swf1 with a Loader :
loader.load(new URLRequest("http:///mydomain.com/the-address/swf2.swf"), new LoaderContext(false, ApplicationDomain.currentDomain));
Then swf 2 can access all the classes in the ApplicationDomain (swf 2 classes and swf1 classes), for example :
ApplicationDomain.currentDomain.getDefinition("com.common.MyClass")
I tried to embed the code of com.common.MyClass both in swf1 and in swf 2 but then swf 2 is too big, so I would prefer to embed it just in swf 1 and have swf2 access the classes in swf1.
Can you explain "load all your project with php from a middle layer" ?

Similar Messages

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • How do you save or export an edited clip or sequence to use in another project without losing qualit

    Does anyone else like to edit each scene seperately.  Render and save, then compile a completed movie of the scenes?  What format in elements?

    You can edit one scene at a time within a single project - setting the WorkAreaBar to cover an individual scene will limit preview rendering to that scene. Once satisfied with a particular scene you can Share it to a separate file if you want to reuse them in other projects - use the WorkAreaBar to cover the range you wish to export. Use the DV-AVI format to maintain quality. Or if you don't mind adding additional codecs add the Lagarith Lossless Video Codec. Bill Hunt has written a Tips & Tricks article on using this.
    This FAQ entry will also be helpful: How can I use footage from one project in another?
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Using classes from another jar?

    Hello,
    Could anybody show me an example for how to put a shared library of classes in one jar file, and put an applet in another jar while the applet can use classes in the first jar file? Is this even possible at all???
    Thanks!

    norsez, did you had a look at the Java Tutorial:
    Using the APPLET Tag
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
    It says: 'You specify JAR files using the ARCHIVE attribute of the <APPLET> tag. You can specify multiple archive files by separating them with commas [...]'. I assume all listed JAR files are in the classpath then and you should have access to their classes.
    Let us know if it works!
    HTH, Markus

  • Use Classes from another webapp

    Hi Everybody!
    I have a webapplication, lets call it "MyWebApp".
    Furthermore I have installed axis in Tomcat.
    Now what I want to do is, create a class, situated within the axis directory, that uses classes that are stored in the "MyWebApp" application.
    Is this possible? If yes, how?
    Thanks in Advance!
    Stef

    No one can help me? ;)

  • Using vi from another project

    I have two LabVIEW projects. One of them works fine. I want to use two VIs from the working project in my other project. However, when I copy the VIs to the other project, it states that the subVIs are not executable and there is an invalid method, refnum class and constructor. 

    What exactly do you mean by project? The issue you are describing sounds more like you are trying to use a few VIs from either a library or a class. Projects do not impose any restrictions on the scope of VIs. It would be much easier if you could post some screen shots of the project and indicate what you are trying to copy.
    The real question though is why are you copying the VIs? If you take the time to organize your code correctly you should be able to simply reuse the code without having to copy it.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to use class within another class?

    Hi,
    I have written a couple of beans, and I have classified them all as part of a "beans" package. All class files are in the same folder. One of the beans in called "ProcessTextBean.class" and it contians a method "validate_email" which validates a supplied email address, I want to call that method from another bean. I think the following line should work but compiler returns an error (Cannot resolve symbol with an arrow underneath "ProcessTextBean"):
    boolean result = beans.ProcessTextBean.validate_email("[email protected]");
    Any ideas what I'm doing wrong? Thanks.
    Junaid.

    beans.ProcessTextBean
    Hihi..
    is you validate_email a static method ?
    if not i dun think you can do it.
    you can try the followingf:
    ProcessTextBean ptb = new ProcessTextBean();
    ............. = ptb.validate_email(emailAdd);
    or
    .................... = new ProcessTextBean().validate_email(emailAdd)
    sorry...i may be wrong.
    its a long time since i touch such a wonderful language such as Java..
    now my org using VBA..:(

  • Call classes from another project

    Hi,
    i have a (i hope) simple question.
    Meanwhile i have a lot of custom coding which i uploaded to my J2EE as PAR files from NWDS.
    For several projects i have similar requirements (e.g. read customers information etc.), so I generated a "base" project in nwds and deployed it.
    In NWDS project properties i can set the "Java Build Path" to this project and i am able to call the methods that i wrote in this project. But only in NWDS.
    When i deploy the project to J2EE i get runtime errors that classes are not found, so i think i have to customize sth. in portalapp.xml to set the reference
    I tried several things with "SharingReference" etc. but nothing worked.
    Could anyone tell me the steps i have to do?
    I know i could create a jar file which i link in my project but i want a central project where i can change coding, deploy it again, and all projects automatically use the actual classes.
    Many thanks
    regards
    Alex

    Hi Min,
    i tried this but get errors.
    The project par with the baseclasses has the name "com.xxx.baseclasses.par", the package in the project where the classes are placed is "com.xxx.baseclasses.usermanagement;"
    So i tried it in portalapp.xml of my other project with the following lines
    <application-config>
        <property name="SharingReference" value="usermanagement,com.xxx.baseclasses"/>
        <property name="SharingAccess" value="shared"/>
      </application-config>
    I also tried com.xxx.baseclasses.usermanagement, but no luck. In default trace i get:
    java.lang.NoClassDefFoundError: com.xxx.baseclasses.usermanagement.ZBVUser
    Do i have to set the reference in a different way or do i have to change sth. in my baseclasses project?
    Many thanks
    Regards
    Alex

  • Using css from another project

    I've been trying to create a "Theme" project in Flex 3 that can be included in my numerous other projects. Is there a way to do that currently? All it has in it right now is a styles.css file, but when I try to link that to a different project it doesn't work. Do I really need to copy my css to each project every time I make a change?
    Thanks,
    Philippe

    Hi,
    You create theme swc from css files. Check this livedoc's page for more info
    http://livedocs.adobe.com/flex/3/html/help.html?content=styles_12.html
    css files can also be compiled into swfs which can be loaded at run time.
    http://livedocs.adobe.com/flex/3/html/help.html?content=styles_01.html

  • How do I create a new iDVD project without a theme

    I completed an iMovie HD project with an opening title (white letters on black) and all my edited film clips, transitions, sound, etc. It's just the way I want it when I play it back in iMovie. I shared it to Media Browser so I could import it into iDVD. When I start the new iDVD project is appears to force me to choose a Theme. I don't want a new theme. I just want my movie to look just the way I created in iMovie. How do I over ride this step?

    A couple of ways to do this ....
    1. What I recommend is an "AutoStart Dvd" which involves dragging and dropping your QT movie / file while in mapview to the first / top box. This allows the movie to play in Kiosk Mode and you can also select the loop function so essentially you never actually see a start menu (just the movie) since the dvd will automatically play as soon as it's inserted into most set top dvd players or computers. (the following pic is from iDvd6 however the procedure is idential in iDvd'08 as well).
    Click Here
    Click Here
    2. A One Step Dvd from a QT movie / file is also possible and this approach has no menu at all.
    To burn a OneStep DVD from a movie on your hard disk:
    With iDVD open, choose File > “OneStep DVD from Movie.” as pictured above.
    Locate the movie you want to add in the dialog that opens, then click Import.
    Insert a blank DVD disc into your computer’s SuperDrive or an external drive when you are prompted to do so.
    Hope this helps but if not just come on back.
    Message was edited by: SDMacuser

  • Moving clips between projects, without rendering them

    Is this possible? I work on a Macbook Pro, using CS4 production premium. How can I move clips between projects in PP CS4?
    I KNOW there's a way. Just can't figure it out.
    Thanks!

    The easiest, IMO, is to Open your source Project and remove everything that will not be needed. Do a Save_As. Import that Save_As Project into your new one. Be sure to then twirl open the Bins, and Dbl-click on the Save_As Project's Timeline.
    Hunt
    PS I also go to Project and choose Delete Unused (or similar syntax) to clean things up for the Save_As.
    Message was edited by: the_wine_snob Added PS

  • How do you allow all normal users to use the IOSsimulator in Xcode without placing them in the _developer group?

    Ever since we've updated Xcode at my place of work normal users have been unable to run their applications in Xcodes iOS simulator because they're prompted with a "Developer Tools Access needs to take control of another process for debugging to continue. Type the name and password of a user in "Developer Tools" group to allow this". I work in an ever expanding office with over 200 employees so adding them all to the _developer group will just be far to time consuming. Is there a way to give normal users permissions to run the IOS simulator?
    Here is the message I would like for normal users to bypass.

    ....I don't see a way around it - either they're in a permissioned group with an applicable login or they're not, right?

  • Inserting animations from another project

    Hello,
    I'm using Captivate 5 (ver. 5.0.2.630) for a while know and up till know I've included interactive content by using creating it in another project, publishing it and than I included it as an animation in my main project.
    That worked fine for me for while but roughly since the last patch the anymation I include won't show anymore.
    The old anymation I included some months ago are solid white (picture 1) work perfectly fine but the ones I recently included are see-through and won't show in the publishe project (picture 2).
    Any ideas how to fix this?
    Thank you
    Michael
         Picture 1
         Picture 2

    Sorry if I was unclear on this. The animation was created in captivate and then imported into my main captivate project as a .swf. I've been working that way since march this year without problems but for the last 1...2 month it just doesn't work anymore.
    What I've done so far is to include the slides from the "animation" project and included them into my main project. But that's not always possible since I might cause problems with my navigation on some occasions.

  • Burning a DVD without a Theme

    "I recommend an autostart dvd where you drag and drop your QT movie to the top box while in map view and then set the movie to loop. That way it will play in kiosk mode w/o much user interaction other than inserting the Dvd."
    Hi all, I am fairly new to IDVD, however this is exactly how I have used it twice in the past to burn a DVD from a presentation created in iMovie. Both times it worked without any problems. However, I just followed this same procedure for a new presentation. And the DVD ran just fine on my computer, on my TV, and on the receiving persons computer and TV also. It even ran just fine on the audio/visual equipment at the rehearsal for the presentation. But what a shocker when the disk was played for the actual event and the Travel Theme with the blaring clarinet started up. Luckily I was seated close to the media room and I asked the tech person to stop it. I also had the insight to bring a back copy that I had in my jacket pocket that worked just fine.
    Anyway, to make long story short, can anyone give me a little insight as to what happen here. I have the DVD now, it works just fine. I also noticed a Theme is copied and burned at the beginning of each DVD, but there does seem to be any directory to it. Is this correct or am doing something wrong here
    And just to be on the safe I did drop in some relate image and music into the Theme boxes for future presentations.
    JG

    Apparently the autostart feature doesn't annihilate the underlying theme, but just overlays it. I can't explain why it sometimes pops up but other times doesn't. It seems like sometimes the DVD player doesn't read the auto start cue and goes right to the menu theme.
    There are ways other than auto start to make an iDVD project without a theme. I usually just select a theme like Green Linen and drag a black clip into the main menu window, then delete any remaining buttons. You can add a title using a text box. Or you can create a "play movie" button if you want.
    Take a look at this thread:
    http://discussions.apple.com/thread.jspa?threadID=1758774&tstart=15

  • I want to copy video, cutaways and audio combined and use in another project. So far I can only copy the video clip or one of the other elements at a time. How do I group all of them?

    I want to group my  video clip with its audio and cutaway clips so that I can copy the segment and move it to another project. So far I can only move one element at a time. How can I group all the elements?

    You can select multiple objects in the timeline in the usual Mac way - hold down the shift key while you click on the objects then copy, select other project, position playhead where you want to insert then paste.
    Geoff.

Maybe you are looking for