How to debug swc files in Flash CS5

Hi, to coin a familiar phrase "I'm new to Flash developement". My question is very simple. How do I debug .swc files (that I've created in Flash Builder 4) in Flash Professional CS5. I've incorporated the .swc file in the Publish Settings->Flash tab. But when I attempt to consume the objects in the .swc file I get an error saying it "Cannot display source code at this location."
Can someone tell me the best pratice for debugging .swc files. Do I debug them in Flash Builder or Adbobe Professional Flash CS5?

I think I found the solution to my problem..... but dont know how to implement it correctly.
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html#SHOW_ALL
I believe I need to use the SHOW_ALL constant, but there isn't an example of how to do it
Heres my code, it compiles without errors, but when I publish it as .exe I get the 'Error 1037: Package cannot be nested':
package
          import flash.display.StageScaleMode
          import flash.media.Camera;
          import flash.media.Video;
          public class ScaleMode
                    public static const SHOW_ALL:String = StageScaleMode.SHOW_ALL;
                    var camera:Camera = Camera.getCamera();
                    if (camera != null) {
                              videoTwo.attachCamera(camera);
                    } else {
                              trace("You need a camera.");
          stop();
Any ideas??

Similar Messages

  • How to publish iPhone Apps with Flash CS5 for beginners

    After many trial/errors and with lots of support from this site, I've decided to start building some tutorials to help people get into the packager. This is the first one and, now I'll work on a usual erros handle tutorial.
    Any comments and/or critics are welcome.
    http://www.chrisid.com/blog/2010/10/how-to-publish-iphone-app-with-flash-cs5-for-beginners /
    cheers,
    Chris.

    It helped me a lot, exept I hav this little problem ..
    I can't select the .p12 file .. it's disabled..

  • How to import swc into Adobe Flash CS3 ?

    I use following command to create a swc file,such as test.swc, there is a file named test.swf in myapp directory
    compc -include-sources myapp -output test.swc
    then I copy test.swc into Adobe Flash CS3\zh_cn\Configuration\Components directory, Then I restart Adobe Flash CS3,and create a file and press ctrl+f7, but I don't find test.swc!  Why? Where is wrong? How to import swc into Adobe Flash cs3?
    Thanks

    If you want to embed videos in your muse site, without using a service like youtube or vimeo, then you will need to manually upload the video files on the server and use them via the video tag available in html5, HTML5 Video
    To insert the video tags in your muse pages, you will need to use the 'Object -> Insert HTML' option.
    Since this option is not available in Muse, out of the box, I will recommend that you post this on our ideas section over here, https://forums.adobe.com/community/muse/ideas, and let our devs team know of this requirement.
    - Abhishek Maurya

  • How to link pdf file in flash by xml ??

    how to link pdf file in flash by xml ??

    try to give <a href="your address">My Pdf</a>
    and your textfield should be html enabled
    mytextField.html=true
    mytextField.htmlText=your xml text

  • How do I open files in InDesign CS5.5 CS5?

    How do I open files in InDesign CS5.5 CS5?

    Hi, are you trying to open up a CS5.5 document in CS5? If so you need to export the docment while in InDesign CS5.5 to the IDML format.
    Please refer to this document: http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6d52a.h tml#WSa285fff53dea4f8617383751001ea8cb3f-6d4da

  • Open Flash CC 2014 file in Flash CS5 (was: hello)

    is there anyway to open flash cc 2014 file in flash cs5 and work on the files

    Flash CS5.5 lets you open any newer file. But you can save down to older versions (back to CS5) with CS6 if you have access to it. Flash CC does not give you the option to save down.

  • How can I import SVG file to Flash CS5.5

    I want to import a .SVG file that I made in Inkscape to Flash CS5.5 how do I do this? Do I need to install some type of plugin/extension? Is there some way around it?

    Actually no, that's incorrect. Flash CS5.5 can NOT import PS/EPS. I've seen a few threads mentioning this, but it's not the case (maybe older versions supported that?).
    The list of supported file formats can be found here;
    http://helpx.adobe.com/flash/kb/supported-file-formats-flash-professional.html
    To import PS/EPS, you'd need to convert it first through another tool, such as Illustrator.

  • Creating a SDK (.swc) in Adobe Flash CS5 - Error + Best Practices Questions

    Hello all,
    I'm currently developing a client library for a server-based API which is developed by my company.
    The goal is for the .swc to be usable in both Flash and Flash Builder (any Actionscript environment, really).  So far I've just been creating it in Flash CS5 and have yet to test it in Flash Builder.  It contains a single piece of UI (a login window) but is intended to expose a number of actionscript classes as API interface points to the developer.  The login window is a single Movie Clip placed onto the stage.  I have been testing by simply running the Flash project for the SDK and it works well.
    However, I run into problems when I attempt to use the SWC in other projects (I have the Flash project for the SDK set to create a SWC as well as a SWF)...
    I link the SWC to the other project using the flash compiler settings
    com.mycompany.SDK is a class required for initialization (singleton) and com.mycompany.LoginWindow is the UI window for logging in
    The developer needs to call SDK.Initialize(), which seems to work fine
    When the following code is added I get the below error: addChild(new LoginWindow())
    1046: Type was not found or was not a compile-time constant: InstanceInfo.
    I take it that the error is a result of an undefined class - but I cannot figure out where InstanceInfo (it is not a class of mine) is being used or how to fix this...

    Found a good example that helped me figure this out.
    http://www.adobe.com/devnet/air/flex/quickstart/articles/xml_prefs.html
    Will share the results when complete.
    Thanks

  • How to easily get an Adobe Flash CS5.5 Professional project into Flash Builder 4.5?

    Hey all,
    I am new and trying to do the following, can you please guide/help me do it:
    I have a video chat application that is done on Adobe Flash CS5.5. I had the problem of "echo" so I wanted to use "getEnhancedMicrophone()". When I replaced "getMicrophone()" with "getEnhancedMicrophone()", Adobe Flash CS5.5 Professional didn't recognize it. I knew I need Flex, so I installed Flash Builder. And then got lost. What I simply want is just import my "FLA" file (or if I need to convert it to something else using a specific tool, let me know.. I have Adobe Flash CS5.5 Professional and can install other required applications if needed) done on Adobe CS5.5, into Flash Builder, and then "support Flex" so that I compile with the flash-version argument required.
    I am totally new to MXML and Flash Builder, and even Flex. I don't know how to import a FLA and add "Flex" libraries into it simply to make "getEnhancedMicrophone()" work without the need to recreate the whole thing on Flash Builder. Can you guide me please? The output is for a web SWF file, not a desktop application.
    Thanks!

    I have the same problem here. I'm trying to do a stick animation on cs6, but to be more precise, i need to actually draw with a larger brush size. I suggest using the pen tool with the smooth option on. You can't see exactly where the stroke will be, but its better than nothing, and it more or less acts like the brush anyway.

  • Problem with using swc files in Flash Player 10

    I have two Actionscript projects in Flex. One is using Flash Player 9 the other is using 10.  Both projects use the fl classes specifically FLVPlayback.
    In the Flash Player 10 project I am using the recently released version 2.5.  Both players use individual controls instead of a complete skin swf.  So the code goes something like video_player.playPauseButton = playPauseBtn.  All the swc files are imported through properties-ActionScript Build Path-Library path-add swc.  This all works great in both projects exept in the Flash Player 10 project the volumeBar swc does not load properly.  In the debug variables for a break point at the function below in FLVPlayback.as the variables handleLeftMargin, handleRightMargin, handleLinkageID and handleY are missing even though they are all in the original fla used to compile the swc.  I have tried compiling swc in both Flash CS3 and 4.  I have tried moving the Actionscript inside the fla files but nothing changes. This leads me to believe it is a bug in the Flash Player 10 or the version 10 playerglobal.swc since this part of FLVPlayback.as is identical in versions 2 and 2.5. The result is that only the volume bar renders but no handle. Debugging all through fl.video.UIManager.as handle_mc remains null?
           public function set volumeBar(s:Sprite):void {
                uiMgr.setControl(UIManager.VOLUME_BAR, s);
    In the Actionscript 9 project all the variables are accounted for so the volume bar and handle render and work fine.

    Further info for anyone who can help!
    I am opening a session from a server via the following sql
    statement:-
    http://servername/virtualdirectoryname?sql=SELECT
    * FROM table1 for XML auto&root=root"
    I only get the popup window when trying it out from our
    webserver?
    The server is MS SQLServer
    The virtualdirectory is created with access set as Windows,
    and always log on set as "myusername" + "mypassword"
    So I thought (hoped) I could pass the "myusername" +
    "mypassword"
    bits into the above sql statement (maybe appended at the
    end?)
    If I type the above sql statement into a browser it works
    perfectly with the xml returned in a web page,
    also as I state above, when I run it from within my flash
    prog on my local machine it runs OK and returns the results into
    the text area specified within the flash prog.
    BUT - When I upload my flash prog to the webserver and try it
    from there, I get a windows popup asking me for username + password
    + domainname.
    any ideas please?

  • How to Edit PSD Files In Flash Template

    Hi Everyone,
    I am new to flash and I am trying to create my first flash site using a template that I have downloaded. I can edit the first page fine, but when I click the "about us" or any other section, the standard template text, Which isn't even in english, appears. I believe that these are psd files, and I have tried to edit them, saved and replaced file on my computer, but still I get the same unchanged text on this site when I preview. Could someone please tell me how to edit and replace these files within the flash movie?

    Instance names are the reference names that you give to the individual items on the stage. Only movieClip and button symbols can have instance names.
    When you import a photoshop file to Flash you will get individual bitmap objects on the stage and in a folder in the movie's Library. You will need to select each item, one at a time, on the stage and convert each one to a symbol. When you make that conversion the name that you give to that new movieClip or button is the name that you will see in the Library.
    When you select that new symbol on the stage, look at the Properties window. You will now see a space at the top where you can give that item an instance name. The instance name is what you will use in Actionscript to control that object on the stage.
    When you look in the movie's Library, you will see the original bitmap and the symbol that you created that contains that bitmap.
    Does that help?

  • Adobe Air + Box2D.swc = TypeError: Error #1009 // New way to handle .swc files in Flash for iOS Apps?

    Hi,
    I need your help please - I have to update one of my iOS Apps. In this App I use Box2d for a simple maze game (it's an app for kids). When I publish & test this game on my Mac it works fine. I can drag my Hero (fish) through this Maze and all collision detections, gravity etc. work perfect.
    When I test it on my iPad it doesn't work. The device debugger shows this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at global$init()
      at global$init()
      at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31]
      at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26]
      at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50]
      at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100]
      at misc::Entity/handleAddedToStage()
    Line 31: loader = new CLibInit();
    I guess "CLibInit" should come from the .swc file.
    The thing is:
    I didn't change anything in this maze game - it seems this has to do something with the new Flash and/or Adobe Air version. Box2D.swc file is included:
    It always worked like this - and it works when testing it on my Mac - but it is no longer working on my current system.
    So I started my Mac from an older system (10.9.5 on an external HD) and published the App from Flash CS6 and Adobe Air 13.0 - then it suddenly worked on my iPad as before. I was able to tap an the fish and drag it arround.
    The same project / app published from my current OS X 10.10 + Flash CC 2014 + Adobe Air 15.0.0.302 is not working. I always receive this Error Message - I can not drag the fish - nothing happens. And I have no idea why this happens and what else I could do. I searched the whole day for a solution but didn't find anything.
    So did anything change by the way Flash and/or Air handles .swc files? Is there an other way to include: import cmodule.Box2D.* / CLibInit ?
    Please - if anyone has a clue - please let me know!!
    Best regards
    Jan

    Update:
    There is also an Android Version of this App. I just published and tested a new version of it on my kindle fire & Samsung Galaxy Tab 2. On both Tablets the maze works perfect. I'm able to drag the fish around etc.
    Then I published this Android Version for iOS and tested it on my iPad. Again I'm getting the Error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference. 
      at global$init() 
      at global$init() 
      at Box2DAS.Common::b2Base$/initialize()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_ Retina/src/com/Box2DAS/Common/b2Base.as:31] 
      at wck::WCK/create()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/src/com/wck/ WCK.as:26] 
      at misc::Entity/ensureCreated()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Retina/s rc/com/misc/Entity.as:50] 
      at misc::Entity/handleAddedToStage()[/Users/jan/Documents/_Projekte/Spielplatz/Universal_Ret ina/src/com/misc/Entity.as:100] 
      at misc::Entity/handleAddedToStage
    ...and the fish is stuck - I can't drag it - nothing happens. So this error only occurs when I publish the App for iOS - as an .ipa. Did anything change in the way Air handles .swc files?
    I'm totally confused
    If anybody has an idea what I could try - PLEASE LET ME KNOW!!

  • How to import swc file in flexBuilder2 ???

    hi i am a flash programmer  trying to make flex faceebook connect app, but flex is not importing swc file. I paste the swc file in
    Flex SDK 2\frameworks\libs but flex is still not flex is not using swc files classes... what I do next???.... or I miss some step to import swc??
    thanks for help buddy

    1)Put swc inside the libs folder.
    2)Right mouse click on your project. 
    3)Go to properties. 
    4)Click on Flex Build path in the Properties window. 
    5)Click on Library Path tab. 
    6)Remove the libs folder if there is any. 
    7)Click on the 'Add SWC' button and browse the path of the swc from location of your project. 
    And click ok. you will get this. 
    with Regards,
    Shardul Singh Bartwal

  • Importing a flash Catalyst .swf file in Flash CS5 ?

    Hi,
        I found Flash Catalyst by luck while browsing the Adobe website and downloading the Flash CS5 trial...
    One simple question....
    Can I import a .swf file created in Flash Catalyst into a Flash CS5 .fla as an element ?
    I created a scrolling text attached to a custom made scrolling bar in Flash Catalyst, and I would now like to use it in my Flash CS5 project...
    Well, I will be waiting for your responses...
    Thanks in advance for your help !
    Gilbert Gour

    Unfortunately you can't import an SWF from Flash Catalyst into Flash CS5.  Flash Catalyst uses the Flex Framework for building the its SWF.  Flash CS5 does not use the Flex Framework and doesn't know what to do with that kind of file.  You can load an SWF from Flash CS5 into your Flash Catalyst project, though. 

  • How to debug rename file??

    Hi
    I use a loop and renameTo() method below to move some files to other location. When I run my class, it should move 5 files (vector include 5 files names), but insteade, some time it move 4 files , some time it move 3 files. there are no error message. Most time, last file cann't be moved
    for( int i=0; i<newFiles.size(); i++ ){
    File temfile=new File(tempFolder+"/"+newFiles.elementAt(i).toString());
    File realfile=new File(destDir+"/"+newFiles.elementAt(i).toString());
    boolean successful=temfile.renameTo(realfile);
    newFiles is vector to include files name string.
    I print out temfile and realfile , all of them are correct. May be somewhere else inside my class, other code, affect this , but I don't how to debug?? Thanks for help
    Gary

    You can try to catch Exception which could be raise be the methode "renameTo"
    try {
    boolean successful = temfile.renameTo(realfile);
    } catch (Exception e){
    System.out.println(e.getMessage());
    You can hava SecurityException - If a security manager exists and its SecurityManager.checkWrite(java.io.FileDescriptor) method denies write access to either the old or new pathnames
    Bye

Maybe you are looking for