Flash Panel Problem

Hi,
ich habe ein Flash Panel bekommen (swf und jsx), welches auch super funktioniert.
Ich muss aber etwas am Panel ändern, kann ich aber nicht, da ich nur die swf habe. Also will ich mithilfe von Flash Builder ein neues Panel kreieren und die alte jsx verwenden.
Aber natürlich funktioniert es nicht...
Das Skript macht folgendes:
- System aussuchen aus einer dropdownliste, bzw. ich musste eine combo box nehmen...
- Spielnamen eingeben
- system + spielnamen an einen vorher definierten pfad anhängen und dort einen Ordner erstellen mit dem Spielnamen. ( Beispielsweise ist der vordefinierte Teil "D:\Test", dahinter dann das System + Spielnamen -> "D:\test\supernintendo\tetris")
- dann werden Dateien in den Ordner kopiert und ebenfalls umbenannt.
Mein erstes Problem war, dass ich die exportierte swf öffnen konnte und auch die Combo Cox funktioniert hat. Sobald ich in Photoshop öffne, geht die Combo Box nichtmehr auf, bzw ich sehe nur den ersten Eintrag.
Ich habe es jetzt hinbekommen, die Werte der Combobox und des Textfeldes, in einer Variablen zu speichern (path). Allerdings muss ich diese Variable beim Funktionsaufruf von CreateFolder(), mit übergeben. Das bekomme ich nicht hin...
Hier mal der Code der mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                width="418" height="232" layout="absolute">
    <mx:Script>
        <![CDATA[
            import com.adobe.csxs.core.CSXSInterface;
            import mx.controls.Alert;
            import mx.events.ListEvent;
            import flash.external.ExternalInterface;
            public function callAddDocument():void{
                CSXSInterface.instance.evalScript("addDocument");
            public function callCloseDocument():void{
                CSXSInterface.instance.evalScript("closeDocument");
            public function init():String{
                var path:String;
                path = String(sys.value);
                path += "=" + game.text;
                //Alert.show(path);
                return path;
            public function callCreateFolder(path:String):void{                              
                CSXSInterface.instance.evalScript("createFolder");
            public function callCopyRenameFile():void{
                CSXSInterface.instance.evalScript("copyRenameFile");
            public function callCopyAllFolder():void{
                CSXSInterface.instance.evalScript("copyAllFolder");
            protected function sys_changeHandler(event:ListEvent):void
                // TODO Auto-generated method stub
        ]]>
    </mx:Script>
    <mx:Label id="yoyo" x="20" y="81" fontSize="16" fontWeight="bold" text="System:"/>
    <mx:Label x="20" y="120" fontSize="16" fontWeight="bold" text="Gamename:"/>
    <mx:Image x="118" y="10" width="175" height="43"
              source="file:xxx.png"/>
    <mx:TextInput id="game" x="171" y="119"/>
    <mx:ComboBox id="sys" x="171" y="81" change="sys_changeHandler(event)" editable="false"
                 enabled="true" name="systemo">
        <mx:String>xxx</mx:String>
        <mx:String>yyy</mx:String>
        <mx:String>zzz</mx:String>
    </mx:ComboBox>
   <mx:Button  x="171" y="178" label="Button" click="init();callCreateFolder(document.path)"/>               
</mx:Application>
Und die dazugehörige jsx:
// JavaScript Document
function addDocument() {
    app.documents.add();
function closeDocument() {
    app.activeDocument.close();
function createFolder(path) {
    var osSpecificPrePath = "";
    if ($.os.search(/windows/i) != -1) {
        fileLineFeed = "Windows";
        osSpecificPrePath = "E:/";  //M:/
    } else {
        fileLineFeed = "Macintosh";
        osSpecificPrePath = "";  //yyy/xxx/ccc/
    var arguments = path.split("=");
    var type = arguments[0];
    var gameName = arguments[1];
    gameName = gameName.replace(/\s/g, "");
    gameName = gameName.replace(/\,/g, "");
    gameName = gameName.replace(/\&/g, "");
    gameName = gameName.replace(/\-/g, "");
    gameName = gameName.replace(/\´/g, "");
    gameName = gameName.replace(/\_/g, "");
    gameName = gameName.replace(/\./g, "");
    // Templates
    var commonDesignTemplatesPath = osSpecificPrePath
            + "xxx/yyy";
    //Target
    var gameDesignPagePath = osSpecificPrePath + "xxx/yyy" + type + "/" + gameName;
    copyAllFolder(commonDesignTemplatesPath, gameDesignPagePath, type, gameName);
    remSign(gameName);
Wie gesagt, die jsx war so und hat auch so funktioniert. Ich muss also nur die mxml dazu anpassen.
Wenn mir jemand helfen könnte, wäre das traumhaft
Vielen Dank im Voraus
uebeL

Dies ist ein Englisch-sprachiges Forum.
Außerdem solltest Du vielleicht auf
http://forums.adobe.com/community/flash_builder
posten.
Edit: Du scheinst von dort hierher verwiesen worden zu sein.
This is an English-language Forum.
Moreover you may want to post over at 
http://forums.adobe.com/community/flash_builder
Edit: You seem to have been directed here from there.

Similar Messages

  • [extending fireworks] mouse wheel in flash panel

    Hello
    I'm developing flash panel for fireworks
    and can't manage to make mouse wheel work
    stage.addEventListener(MouseEvent.MOUSE_WHEEL, onMoeseWheel);
    doesn't work for some reason,
    could you please help me figure out why?
    it works when I'm testing outside fireworks, but stops working inside
    I checked there there are some extensions where mouse wheel works
    Thanks

    Great, yes it works via air,
    Aaron, thank you so much for your answers!
    But I have another problem with CSXS AIR panel
    it is impossible to catch fireworks events with latest CS SDK
    ExternalInterface available there
    and it is possible to run JS from CSXS2 panel using ExternalInterface.call,
    but ExternalInterface.addCallback does nothing :/
    I've decompiled CSXSLibrary-2.0-sdk-3.4-public.swc and spent many hours learning it's insides
    now I have pretty clear understanding how it works,
    but I haven't found any way to register listener for fireworks events :|
    so I'm stack with:
    New CSXS panels - no events
    Old school panels - no mouse wheel
    Any thoughts on this would be appreciated

  • Flash panel in PS CS5 not showing up

    I am tryig to build a simple flash panel followig some tutorials from the old panel sdk which uses flex 3.  Since its all flex 4 and flash builder now some things arent lining up   Anyhow, i have the swf building ok with a simple label.  I can view it in the browser ok, but trying to load it up in PS just gives me an empty panel.
    Is there any way to debug this or get some sort of error log to see where the problem lies?
    Is there a tutorial for makeing a flash panel in PS for flex 4 use flash builder 4.5?
    Thanks

    I don't know that much about PC's, but you need to open the browser and click on the preferences, I think in the same way as you would do with a Mac and click on select javascript.
    Rather than Firefox, get them to download a copy of Safari for PC from the Apple site.
    Other than this I am not really sure of a solution, other than telling them to buy a Mac instead!!

  • Fixed size CSXS Flash Panel

    Hi all, I've been trying to fix the hight of a Flash panel in Photoshop exactly the same way that the width of the Kuler panel is fixed.
    I have read this thread:
    http://forums.adobe.com/message/203439#203439
    This method does work but is buggy.  As I replied in the thread there MUST be a better way of doing this since Kuler does it.
    PS: I've tralled all relevent doco and can't find anything so please don't reply with "it's in the doco somewhere".  Sorry dont want to sound narky but if you read the above thread you'll see what I'm talking about.
    TNKS!

    Never mind, found some info.
    Here's in the doco for Metadata tags and look in the comments for SWF
    http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html#comments
    And here's a simple format example:
    http://www.joeflash.ca/blog/2008/03/the-swf-metadata-tag-documented.html
    Not that this makes any differece to the resize problem, just wanted to make sure this avenue was fully explored.

  • Flash panels crashing Photoshop CS4

    Flash panels crash Photoshop CS4 under the following conditions:
    1. The "Auto-Collapse Iconic Panels" option is activated under Edit > Preferences > Interface.
    2. The flash panel is collapsed to an icon.
    3. You click on the panel icon to display it and run a filter plugin from the flash panel.
    The crash happens when you run the filter plugin from the panel or after you click OK on the plugin dialog. Sometimes the crash happens after the plugin was applied and you do something else in Photoshop.
    I was able to reproduce the problem with my own ThePluginSite panel and the Blow-Up panel of Alienskin.
    If the "Auto-Collapse Iconic Panels" option is deactivated, there is no crash.
    Can this problem be fixed in Version 11.02 of Photoshop CS4?
     

    What does this have to do with the SDK?  Does it crash in a plugin that you wrote using the SDK?
    Or are you just trying to report a bug in the flash panel code?  If so, use the normal bug report form, and include details so we can work with Alien Skin to resolve the problem.

  • No UI redraw while Mousedown in Illustrator with flash panel (MAC only)

    Hello all,
    I've noticed in Illustrator whenever the mouse is held down over a FLASH UI object on a mac no updates are drawn to the UI until the mouse button is released. This makes things like highlighting text , using scrollbars etc very awkward.
    Has anyone else come across this?
    I have slightly altered the sample "Freegrid" & "FreegridUI" found in the illustrator CS5 SDK. I'm running in debug mode & the events are working perfectly (as far as I know)
    Interestingly enough the same code works in windows perfectly.
    I also experienced the exact same problem back in CS4 when i was using the ADM flash player UI to play my flash animation. My previous CS4 post is
    http://forums.adobe.com/thread/533171  (7 months ago, boy how time flies)
    I have tried on two macs. One PPC the other Intel, 1.5.8 OS
    Thanks.

    I have retested and confirmed; The bundled FreegridUI ZXP appears to have the same draw problem I have described.
    The answer to your question is, from my perspective: The supplied Freegrid works well on both Win & Mac; FreegridUI works well only on windows. My code does not seem to be a factor here at all.
    Due to the nature of the samples given in the SDK it is not something that would appear to be obvious, but it fortunately is very easy to reproduce.
    (the problem is extremely noticable with a scrollbar, the scrollbar graphic does not update until the mouse is released!)
    Slowly highlight any text you have entered and you will notice the lack of UI feedback until the mouse is released.
    Running the FreegridUI.swf file directly does not have this problem. AFAIK that means this problem is either related to me compiling "Freegrid" or the way the flash panel is being handled on a mac.
    This problem has occured on 10.5 Mac OS PPC and Intel. I will be testing it on 10.6 shortly!
    If i had any choice I would stick to windows programming, I'm not a big fan of Xcode!
    Please tell me i'm not crazy, or it's some crazy compiler flag that I have missed.
    Thanks!

  • Capturing right clicks in flash panels

    Is there a possibility to capture a right click in a Photoshop flash panel?
    When running a SWF in a browser you can right click to display a context menu, which can be populated with own items. But when running a flash panel in Photoshop and you right click somewhere no context menu is displayed. If you right click on a flex list or tree control it selects an item as if it you had left clicked.
    I know that there is MouseEvent.RIGHT_CLICK constant, but appearently it only works in AIR applications. But I read that flash panels run in the AIR player engine. The problems is that Flex Builder does not compile the swf if I use MouseEvent.RIGHT_CLICK with addEventListener.
    Is there any other possibility?

    Hi Harald,
    You could try implementing a ContextMenu: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/ContextMenu.ht ml
    Kind regards,
    Lea

  • Flash Panels on PSCS3 Mac

    Flash panels apparently don't work too well on PSCS3/Mac but I can't (re)find any posting or notice from Adobe that this is in fact busted.
    The sample script provided with PSCS3 doesn't even work:
    /Applications/Adobe Photoshop CS3/Scripting Guide/Sample Scripts/JavaScript/FlashUISample.jsx
    Does anybody have a reference to anything definitive on the topic?
    -X

    The sample script works fine on XP and Vista but I believe there is a problem with using Flash on the Mac.

  • Adobe Flash Player Problem: "Movie Not Loaded"

    new user to mac.
    i'm getting more and more frustrated with this computer.
    what's bugging me the most right now is
    i am unable to view videos on certain websites.
    rather than showing the content,
    a white box appears.
    when i right click on the white box,
    it says "movie not loaded" (in gray) and adobe flash player 9 (in black).
    i can't click on the gray line.
    when i click on the black line, it brings me to the adobe website and tells me adobe flash player 9 has been successfully installed.
    i am fairly sure this has nothing to do with heavy traffic.
    any insights on how to resolve this issue?
    cheers.

    Adobe Flash Player Problem
    http://www.adobeforums.com

  • Flash Panels for Flash Builder?

    Hi,
    It would be great if Flex Developers can create their own Flash Panels for Flash Builder. Photoshop and Flash CS4 has this feature, why not Flash Builder?
    Mariush T.
    http://mariusht.com/blog/

    Andre:
    Hi. I'm trying to do the same thing (create custom xmp panels) and I'm having miserable luck following the XMP Fileinfo SDK.
    I've installed Flash Builder 4. I've installed Apache Ant. Dumped the appropriate .jar file in the plugins section. Downloaded the AntView plugin and installed that and then created the MySample example.
    It runs fine as a web application from FB and it appears to publish correctly (creating a .swf file in the target bin and writing it all out to the proper location in the Adobe xmp custom panels folder) but when I access the File Info screen in an Adobe product, I get a tab with MySample but the dc field doesn't show up.
    I assumed it was a Flash trust file issue and created one, but it still doesn't work. I'm getting no errors and I've tried this a dozen times with the same results.
    Was there some step that I missed that you see by any chance?
    Thanks.
    --jon

  • To set minimum size of flash panel

    I am developing a flash panel in PS CS5. I have tried many way to set minimum size of panel window, but they don't work. I have not idea how to do this now. I'm waiting for your HELP. Thank YOU!

    One posible solution is to add a ComponentListener to the
    JFrame that implements ... (struggles to remember) ...
    componentResized().
    Inside componentResized(), check the size of your JFrame,
    and if it is smaller than your preferred minimal dimension,
    resize it up to your minimum.
    // in the constructor, perhaps, or initialization routine
    addComponentListener(
      newComponentAdapter()
        public void componentMoved(ComponentEvent e)
            Dimension size = e.getComponent().getSize();
            size.width = Math.max(size.width, myMinimalWidth);
            size.height = Math.max(size.height, myMinimalHeight);
            e.getComponent.setSize(size);
      }); Pity there's no setMinimumSize() like the JComponent class.
    Best of luck !
    Eric

  • Running Flash panels in CS3 applications

    How would I go about using Flash panels designed for CS4 in CS3 applications?

    Ramón G Castañeda wrote:
    You can create and save new ones in The Configurator:
    Sorry, never mind.  I just double checked, and it does require CS4.  I was led astray by the fact the it was announced before CS4 shipped. 

  • Strange flashing cursor problem

    Hi,
    I've just finished installing Vista 32bit on my Macbook Air (1.6) and its working fine apart from one small problem - when starting up it freezes on a black screen with a flashing cursor for 2-4 mins and then will start loading Vista fine. Once in there is no problem and its stable and what not. I have had a look at some on the articles on here and other forums and the flashing cursor problem usually refers to when people try to first install a MS OS and not once one has been installed successfully.
    I only have to boot into Vista every now and then and only for a few minutes at a time so I usually spend as much time in Vista as it does loading.
    Any help appreciated.

    General purpose Mac troubleshooting guide:
    Isolating issues in Mac OS X
    Creating a temporary user to isolate user-specific problems:
    Isolating an issue by using another user account
    Identifying resource hogs and other tips:
    Using Activity Monitor to read System Memory and determine how much RAM is being used
    Starting the computer in "safe mode":
    Mac OS X: What is Safe Boot, Safe Mode?
    To identify potential hardware problems:
    Apple Hardware Test
    General Mac maintenance:
    Tips to keep your Mac in top form
    Direct you to the proper forum for MacBook :
    MacBook Series Forums 
    https://discussions.apple.com/community/notebooks?view=discussions
    http://www.apple.com/support/macbookpro
    Mac OS X Forum
    https://discussions.apple.com/community/mac_os?view=discussions
    This forum deals with a desktop/tower 65lb Mac Pro
    http://www.apple.com/support/macpro
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X & Mountain Lion Community
    https://discussions.apple.com/community/mac_os
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
    Recovery Mode
    http://support.apple.com/kb/HT4718
    Unless you did a clean install, and I can't tell what your system maintenance is whether it is what I would do. Backup / clone your system, use ML RECOVERY and erase the system partition and update with just Apple updates, don't restore anything.
    Run Apple Hardware Test.
    Take it in for a free check and diagnosis.

  • Flash player problem after updating to belle on my...

    flash player problem after updating to belle on my nokia c7.when I try to play .flv videos screen goes blank as show in image,previously these videos runs fine on symbian anna plz help plz  help or tell me the way to downgrade to anna
    Attachments:
    scr000002.jpg ‏10 KB

    1) product code  059B7W0
    2) software version 111.030.0609
    3) it is actually stored .flv files on my phone  workes fine on symbian anna
    Attachments:
    Scr000003.jpg ‏17 KB
    Scr000004.jpg ‏15 KB

  • Pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1

    pixelation problems occurs in my videos when using adobe flash but using chromes pepper flash no problemes so its definitely adobe problems on my WIndows 8.1

    Problem is:
    Flash Player for IE11 (which is the worst browser ever developed - BAR NONE) is a Microsoft product, when it comes right down to it.
    Adobe writes the base code and yes, they do collaborate on updates for it, but the gang in Redmond alter the plug-in and add "proprietary" code before embedding it, and at that point it's "their baby".
    There are two (2) registry keys - 1 for 32 bit IE and the other for 64 bit IE, as well as a KB patch that prevent all but the most experienced Windows users from ever touching the Flash Player plug-in for IE. So there's NO WAY you could have done a clean install of the ActiveX plug-in in Windows 8. Unless you're an uber-geek, you can only update it through Windows Update.
    WIn 8 is an abomination and IE11 made it worse. IE has always been the "problem child" of browsers, failing to handle CSS, Javascript, some PHP and most design "tweaks" that good webmasters can use with other browsers, trouble free.
    I have IE8 on XP, 9 on VIsta, 11 on 7, 10 on 8 and 11 on 8.1... but they're all for testing only. I'd have to be out of my mind to ever think of using IE as my primary browser. ActiveX controls have to be disabled formost stuff and that opens millions of security holes in IE.
    You've got a good video card and a decent sound card. It's a shame to waste them on a pile of garbage like IE, just because it came with Windows.

Maybe you are looking for

  • Key Fields, Data Fields, Key Figures and Characteristis, Dimesions & Key Fi

    Hi All, Can any one please describe more about the below terms and with the Example.... Like when we identify which one is Key filelds and Data fileds, how to distingush creating new dimesions (Is it based on user reporting) Key figures in Dimestions

  • Is there a maximum number of contacts in an Address Book group?

    I have 4,367 contacts. I'm trying to create two different groups, one for my wife and one for me. The majority of the 4,367 contacts will be in my group. I've tried several time but keep getting the same result. On the iCloud website I create a new g

  • Oracle-8.1.7 on gcc-3.2-based Linux?

    Hello, I have downloaded and installed Oracle-8.1.7 on my SuSE-Linux 8.0 (that's gcc-2.95.3 and glibc -.2.5) just fine. Now I consider to upgrade to SuSE-Linux 8.1 or 8.2, which are gcc-3.2-based, and I'm wondering if Oracle will still run. The reaso

  • Daily Buglet Report

    Yet another niggling little thing, noticed recently... Once it was possible to put one of these...    ...on the same line as text. Alas, no more.  Now it appears on the a line by itself when it is posted. Does anyone know a secret handshake for getti

  • Why won't xcode load on my mac book air?

    I just downloaded xcode on my MacBook Air and for some reason it will not load completely after launching the app.  Anyone have any input?