Compile flex project to multi swf files !

Hi all !
   I have a flex project include one mxml main application, some mxml component and action script files. Can I compile flex project to multi swf files. My goal is: swf file very large, so I divide it into multi small swf files ! How can I do this? plz, give me some guide or links about it !
   Thanks very much.

Hi there,
Use modules to do that.
regards aktell2007

Similar Messages

  • Final .swf file works different (and BAD) like while runing in flex

    OK, next question!
    How is it possible, that when I compile Flex project, everything works, but when I click on html file from bin-debug folder, nothing works?!
    I use SDK 3.2. and flash player version is set up to 10.0.0.
    When I run the project, I am able to load image and work with it. When I run html file from bin-debug folder, I am suddenly NOT ABLE to load that image!
    What's wrong?
    This is my code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" height="632">
        <mx:Script>
            <![CDATA[
                private var fileRef            : FileReference; //browser souboru
                private var fileFilter        : FileFilter; //seznam pozadovanych koncovek souboru (obrazky = ".jpg ...")
                private var loader            : Loader; //nahraje obrazek z browseru
                private var photoBitmap        : Bitmap; //nahrany obrazek ze souboru
                private var photoData        : BitmapData; //data obrazku ze souboru (pristup k pixelum obrazku)
                private var shape            : Shape = new Shape();
                public function Browse() : void
                    fileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
                    fileRef = new FileReference();
                    fileRef.browse([fileFilter])
                    fileRef.addEventListener(Event.SELECT, onImageSelect);
                private function onImageSelect(event:Event) : void
                    photoPanel.title = fileRef.name;
                    fileRef.load();
                    fileRef.addEventListener(Event.COMPLETE, onDataLoaded);
                private function onDataLoaded(event:Event) : void
                    var tempFileRef : FileReference = FileReference(event.target);
                    loader = new Loader();
                    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPhotoLoaded) ;
                    loader.loadBytes(tempFileRef.data);
                private function onPhotoLoaded(event:Event) : void
                    photoBitmap = Bitmap(event.target.content);
                    photoImage.source = photoBitmap;
                private var isDrawing        : Boolean;
                private var drawSize        : Number;
                private var drawColor        : Number;
                private function onImageMouseDown(event:MouseEvent) : void
                    isDrawing = true;
                private function onImageMouseUp(event:MouseEvent) : void
                private function onImageMouseMove(event:MouseEvent) : void
                    shape.graphics.beginFill(0xFF0000);
                    shape.graphics.drawRect(event.localX-1, event.localY-1, 3, 3);
                    shape.graphics.endFill();
                    photoImage.addChild(shape);
            ]]>
        </mx:Script>
        <mx:Button x="10" y="418" label="Upload" click = "Browse()" />
        <mx:Panel x="10" y="10" width="400" height="400" layout="absolute" id="photoPanel" backgroundColor="#D9D4D4">
            <mx:Image x="0" y="0" id="photoImage" mouseMove="onImageMouseMove(event)"/>
        </mx:Panel>
    </mx:Application>
    IN HTML pages I call the swf file this way
                <script type="text/javascript">
                    if (AC_FL_RunContent == 0) {
                       alert("This page requires AC_RunActiveContent.js.");
                 } else {
                       AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0','nam e','postcard','width','700','height','500','align','middle','id','postcard','src','postcar d','quality','high','bgcolor','#ffffff','allowscriptaccess','sameDomain','allowfullscreen' ,'false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','postcard' ); //end AC code
                </script>
                <noscript>
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" name="postcard" width="700" height="500" align="middle" id="postcard">
                    <param name="allowScriptAccess" value="sameDomain" />
                    <param name="allowFullScreen" value="false" />
                    <param name="movie" value="postcard.swf" />
                  <param name="quality" value="high" />
                  <param name="bgcolor" value="#ffffff" />
                  <embed src="postcard.swf" quality="high" bgcolor="#ffffff" width="700" height="500" name="postcard" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </noscript>

    Is there a difference in the URL in the address bar in the browser?
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Embedded swf files don't show / slow to load when viewing project online

    I'm playing with the trial version of Captivate 3 and doing a
    mock up of an e learning module. I have a project which is about 30
    slides long and 4 or 5 of those slides have full motion recording
    objects on the slide (that were created when I drag and dropped
    something during the recording process). When I publish the
    project, it creates a separate swf file for each of the motion
    recordings...
    When I upload my published captivate project to my web server
    (the html doc, main swf, and supporting swfs), everything plays
    fine until I get to one of the slides that had one of the full
    motion recordings on it. When I get to those slides, the captions
    keep appearing, the audio keeps playing, etc. but the slide is
    blank - the full motion recording doesn't load.
    It appears that it just hasn't loaded yet, because if I try
    running the whole thing again, then it works fine!
    It's like the supporting SWF file hadn't finished loading but
    the main swf just kept on going...
    This seems like a really big bug to me? I'm pulling my hair
    out :(
    Is there a way to compile the whole project into 1 SWF file?
    Is there a way to embed the SWF files into the main SWF file so it
    is taken into account when preloading?
    Thanks to anyone who has some advice!! help!
    Gaspar

    Hi Gaspar,
    Are you using a preloader for the project? If so, the default
    one in Captivate waits for 60% of the project to load before
    playing. Perhaps try to add the preloader if you aren't using one,
    or remove it if you are to see if that makes a difference. In
    Captivate 3, you can change this option in Preferences -->
    Project --> Start and End --> Loading Screen.
    Good luck,
    David
    Edit: I just tried this too and got the same results when
    publishing with all versions of Flash - I was a little surprised to
    see it even with Flash 7 exports, because Captivate has let me
    embed .swf animations into a single .swf project file using Flash
    7. I'm guessing that whatever Flash "engine" Captivate uses to
    create its own FMV .swfs must be Flash 8 or 9. That would be
    something that would be nice to adjust - especially because of the
    lack of the ability to merge .swf files into one file. I guess I'll
    send a feature request again...

  • Newbie question - SWF file download size

    If I have say 20 different screens to display in a flex application, after I compile the size of the swf file would be quite big (5+Mbs apprx) for the browser to download.  Hence, the users will have a waiting state unless the SWF file is completely downloaded to the browser cache.  And if there are any update to the file the complete file will be again downloaded to the client.
    I want to reduce this download time and ensure that users do not get tired of waiting for download to happen.  Preferably I would like to load the components/screens as and when required (like it is done in java web start).  Is something like this possible in flex?  If yes how?
    One of the approaches is to have multiple SWF files say for every module.  Even in such cases the size of SWF file will be large enough for the user to wait.  It will also display a blank screen on the browser when switching from one SWF file to another (considering it will be done through HTML).
    This is a practical problem and must be faced by a number of applications.  That makes me believe Flash must have something that provides dynamic loading of components as and when clicked.

    See the modules presentation on my blog
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • How to publish a smaller SWF file

    Dear Sirs,
    I have create a Captivate project to output SWF file as product demo. The swf file has a high resoluation, but it is too large, I want to get it more small in file size, some compromise in quality is acceptable.
    I have set a smaller Jpeg% value on SWF Size and Quality when publishing the project, but it take no effect, anyone help me? Thanks.

    Hello and welcome,
    Several factors will be responsible for the SWF output file. You use high resolution (ppi, 24-bit; sometimes I have better results with Optimized which cannot be set here but has to be done in the slides themselves), probably needed because of quality. You can reduce more by setting only those slides that need this high quality to High (or Optimized) and leave the others at Low but this also has to be done in the Slide Properties and then you'll have to check 'Retain Slide Quality Settings'. But what is the total resolution of your project: widthxheight? Because that is also one of the main factors! Next question: do you have audio? Audio clips add a lot more to the filesize than slides and/or graphics. If you have be sure to keep the lowest acceptible settings for the audio. Do you have video inserted? Again... adds to filesize.
    Maybe this seems a stupid question, but I have so often seen files with slides that have an unneccessary long duration. Each second of a slide adds 30frames to your project...
    Lilybiri

  • All .swf audio plays on slide 1 when published as swf file!

    Help!
    I am trying to publish a series of projects (seven) as swf files to upload to moodle for a CBT course.  This is my first time ever using Captivate in this way and when I go to view the outputs using a web browser, all of the audio for the imbedded flash files in the project plays on top of each other on the first slide.  They will also play as they are supposed to during the course, but it's very annoying.
    When I publish the project as a standalone file, everything works flawlessly.  What is causing this and how can I fix it?  I must also state that I outsourced the flash work and know next to nothing about flash, so any help you give that might involve that piece, I will have to pass on to the flash developer.
    Thank you in advance for any suggestions.
    EDIT: Captivate 3.0.1  Not sure what version of Flash.

    Was there ever a typing text object anywhere in your project that you delete at one time? I remember from Cp3 that when it would capture a typing text animation from a capture session, that you could never truly delete the object from the slide, only hide it (not sure if it's the same in Cp4, I recently jumped to Cp5).
    When in doubt, I would do Insert > Blank Slide, then re-create the audio/objects from your current slide 1 and insert/paste onto the blank slide, then blow away the problematic slide 1, then republish and see if that helps!

  • Sound files not playing from inDesign SWF file

    Using Dropbox file transfer, I'm sending a colleague an inDesign project  as a SWF file - a flip book with audio. The files in Dropbox are the SWF Movie files, the HTML and the Resources folder. My colleague is trying upload these to his website. I presumed the sound files would go up via my colleagues FTP and Flash player would link to them. The sound files are functioning. Can anyone outline the procedure one should follow to get Flash to engage with this?   Is there a better locale fo this thread?

    That's what I thought too, but all files are there.  I used to have numerous files (6-8) in a dropbox folder with all parts: cptx, htm, swf, js and the html would play fine by just clicking on the link.  Once it started not working I made individual folders with each part of the file and included them into each seperate folder.  Still not loading/opening.  This is happening to everyone I send the link to.  I've tried opening it in different browsers too.
    Here is a link if anyone wants to see what happens:  https://www.dropbox.com/s/460vq2nqu4dbwf1/courseconnect_training_2013.htm
    Here is how I am including each part of the file in the actual folder:
    https://www.dropbox.com/sh/sdfjdeud8jro1v1/SdZMzJHXBo

  • Captivate 2.0 Very Buggy After Import of SWF File (Flash 8)??

    Where should I begin...
    Issue 1
    I just updated to Cap 2 and started using it. I have come
    across a few very weird issues. Everyting works fine until I import
    a swf file to the stage. After I import a swf file to the stage I
    realize I made a mistake in the swf file. So I updated the swf in
    Flash 8 and publish it. I then went into Cap 2 and tried to update
    the file (which I noticed that the update button has been removed.)
    When I go to import and import the updated file, it does not update
    it. I had to close the program and reboot before it would recognize
    the new file??? Sounds like a caching issue of some sorts, but very
    buggy in my eyes.
    Issue 2
    So now I have the new file in... great! But when I try to use
    one of the drop down menus from the top tool bar, the menu
    disappears immeditly after I have clicked on it??? The only way to
    get my menu's back is to close the program and reopen it.
    Issue 3
    I just recently found another problem... I was trying to work
    with Cap 2 in its crazy state, and I pulled one of the bars on the
    timeline torwards the end of the screen and the timeline
    disappeard??? So I went to view and clicked timeline... no change.
    Now I do not have a timeline??? I have tried running a reapir and I
    even tried several different new projects with different swf files
    to see if it was just that file and I have the same results.
    Sorry so lengthly on my issues but this just sucks and I need
    help!! Anybody got any ideas!??
    Thank you!!

    Hi SaSQuaCh69247,
    Issue 1 :- Select the SWF file in library, right click, and
    select update.
    Issue 2 :- Actually it could be valid for Issue 1 also. It
    seems like SWF file you are trying to import, does some action
    like, importing another swf or connecting to server on the first
    frame itself. Captivate will try to play the first frame of SWF
    when you import them. Try creating a keyframe with the stop action
    as the first frame in your SWF, and see if you still have the
    issue.
    Issue 3 :- The approach I am mentioning over here is
    generally the last approach which I will take in such scenerios,
    but since you have already experimented a little, so try this.
    Go to C:\Documents and Settings\<user name>\Application
    Data\Adobe\Adobe Captivate
    Rename captivate_v20.dat as captivate_v20_org.dat.
    Restart Captivate Application.
    thanks

  • Why do we need to recompile our project when its property files are change?

    As property files are external files from which we get our data...Why do we need to recompile our proj. every time we make some changes to the files. Is there any solution to it.

    Muktang wrote:
    Thanks All.
    I got the solution.
    Eclipse stores the res folder in its bin folder also..so if i dont change anything and do not compile the project..
    the property files in my bin\res folder does not fget affected by the actual property file..If u change the prop file of bin\res then it will update everythingAnd, as already mentioned, if that is the only one you change, then the next time you recompile your project those changes will be lost. Go into the project properties in Eclipse and reactivate the automatic compilation. Then you need only change the "source" version of the properties file, and Eclipse will update the one in the compiled area automatically, which is the right way to do it. If you want to change both automatically, or change only the one in the compiled area, then don't complain later that your changes either dissappear or become "corrupted".

  • "Import Flex Project" Menu Disappear [FB 4.6]

    Hi All,
    I am not sure what's going wrong here but I'm not able to see "Import Flex Project" menu item under File Menu.
    Can any one knows how to get it back ?
    Thanks
    Mac

    I'm having the exact same issue as he described. This doesn't help at all.
    I am using a fresh install of Flash Builder 4.6.
    I have tried closing and re-opening the project, and cannot get the design view to work.
    I have tried creating a completely new project, it comes up bad.
    **Edit**
    I think the problem has to do with the workspace. Most of my projects are flex 4.5. I started using an old flex 4.5 workspace that I have been using for several months. It worked well for a few hours of development, and then the design view started messing up.
    I created a fresh new workspace, and imported the projects into the workspace by using file->import flash builder project->Folder, and manually selected the projects I needed.
    This method worked for me and I am good to go.
    Another point of note, is that my workspace was in my dropbox folder, which may have had some tampering going on in the background, I doubt it, but that could also have been the issue.
    Good luck guys, hope this helps.
    Message was edited by: darkscrypt

  • SWF file to play on my Flashwebite

    Hello all,
       I made a DVD project complete with menus using my Adobe CS4 Mater Collection products.  I also made that same project into a SWF file from Adobe Encore CS4.  Now I uploaded the whole thing to the server.  I'm working on a Flash website to show my project but I haven't figured out yet how to get it to work.
    So far I figured the "Component inspector player" will only play FLV files
    Converting the DVD itself to FLV I lose quality.
    When I open a browers page and type the address of the file from the server it plays fine.
    I'm looking for help  to be able to play the SWF on my flash web page.  Is it possible to use the SWF from Encore to a Flash website ?
      Thank you all in advance,
         Peter  

    Hi Ned,
       My final plan once the whole website is completed is to take it place it into Dreamweaver.  So far it sounds like I have to just make a link with a button to have it open a browser to launch the video.  That's is my last resort.  I want to try to get some kind of player and keep it on the web page to play the video (without opening a browser).  The video is the whole DVD project.  You see the menus, all the buttons works.  It's just like the DVD only in a flash format.  I could go back and split the DVD project into its own videos without using the menus, but what fun would that be   
      Thanks for the info,
        Peter

  • Is it possible to Load External SWF files into Flex Mobile projects?

    Hi Guys,
    I'm trying to load an external asset in this cse (a SWF file) into my flex project (Apple IOS IPAD), don't get any luck. Can any one suggest a solution ?

    In Apple's words, "No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple's Documented APIs and built-in interpreter(s)".
    Hence external swfs cannot be loaded in iOS.

  • Using swf files compiled as swc in a ios project

    Hi,
    I might have a quite stupid question, but here I go anyway since its not easy on iOS.
    I have 10 swf files (each file is 1 game with all assets + as3 inside it)
    I'd like to make now an iOS app (air 2.7) which can play those 10 games on selection.
    Normally on iOS its not allowed to load in swf files with AS3 in it because you may not use interpreter by Apple.
    Now, on http://www.flashrealtime.com/compiling-big-air-swf-to-ios/ I read some info about a trick to use SWC.
    Here is my question now.
    If each of my 10 swf files actually contains 1 movieclip on stage which by itself contains all game logic (as3) and assets inside it, then can I compile these 10 swf files each one to a swc and somehow include them in a big iOS app ?
    For example
    in game1.swf the main movieclip would be on stage and would be exported for actionscript under the name "game1_mc"
    in game2.swf the main movieclip would be on stage and would be exported for actionscript under the name "game2_mc"
    in game3.swf the main movieclip would be on stage and would be exported for actionscript under the name "game3_mc"
    in game4.swf the main movieclip would be on stage and would be exported for actionscript under the name "game4_mc"
    Can I then somehow include all those swc files inside my 1 big application ?
    And can I then somehow instantiate one of these movieclips and add them to the displaylist to start a game ?
    This could solve a big problem for me, but I'm very unsure if thats possible.
    Kind regards,
    Bart

    Thank you for this very fast reply. Just a little thought, but if I understand right you say that the swc method works but would be the same as copying the mc inside my .fla.
    In that case, wouldn't it be better for project management to use the swc anyway, since flash doesn't have to recompile the stuff anymore each time you build?
    Or is that advantage also not correct?
    Also (and pardon me if this sounds extremely dumb) suppose I include 100 of those games and each game uses around 5MB, then I have 500MB of data in there. Will flash then by default use 500MB of ram on the mobile device (deadli and most probably not available) or will it only use the amount of ram neede by that 1 movieclip which we instantiate from the 100 available ones?
    That would make a huge memory difference.

  • [Flex SDK in Linux] Errors running a .swf file

    Hi! Trying to set up flash development on my linux machine. Using FDT in Eclipse. The version of Flex sdk I have is 4.6.0.23201-2.
    I have in the first place had problems running the project. It gets terminated instantly and I get this output in my terminal:
    [Info] Listening to port 7935.
    Using Flex SDK 4.5 Debugger Adapter.
    [Info] Could not connect to the player, will try to connect for the next 72000 ms
    [Info] Listening to port 7935.
    [...etc etc...]
    [Info] Could not connect to the player, will try to connect for the next 8000 ms
    [Info] Listening to port 7935.
    [Info] Could not connect to the player, debug session stopped. Maybe you do not have the Debug Flash Player installed.
    Does "the Debug Flash Player" here mean Flex?
    And this is what happens when I run the .swf file that is compiled by FDT (Using Flex..), in Flex: http://justpaste.it/dlr3
    Any idea what could be the problem? Thanks!

    Hey Mark,
    Thanks for replying.  It's a standalone swf.  I'm still stuck on this issue.  It seems like it would be simple but it's baffling me.

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

Maybe you are looking for

  • Execute create trigger script in a procedure

    Is it possible to create a trigger with pl/sql? I have made a procedure thats makes the create or replace trigger statement. (when i copy and past the statement the trigger is created succesvol) How can i execute the create trigger statement on the e

  • Why does iTunes always crash and freeze on my iPad?

    Every time I access iTunes and try to select music or search, for example, it freezes and then crashes. I have restored the iPad and it was ok for a few minutes then did the same thing. Is there anything I can do as I would like to be able to downloa

  • My computer is not showing up in share monitor

    Hi I was happily creating and sharing files to Vimeo from Final Cut Pro x - When I had a kernal panic - Hard reset and now "My Computer" does not show up in share monitor - It says no clusters found - When I goto share a file to vimeo now nothing hap

  • Problem booting in OS X 10.3

    I have a G5 that was running Mac OS X 10.3. I had an issue with Roxio Toast and the system crashed. When I rebotted the machine it would come up and just sit on a folder with a question mark in it. i tried repairing the disc but it could not do it. I

  • HCM Business Events Attendees

    Hello experts, I have to create a program to obtain all the attendees of a Business Event in SAP HCM, now I am familiar with PNP Logical Database but not with PCH Logical Database, and as my approach should be from the Business Types and Events(Objec