Photoshop panel created with Flex question

Hi everyone,
Im trying to create a simple panel in Flex that you would be able to create a new PS document. I want to pass 4 parameters from Actionscript to my Javascript function. For some reason Im only able to pass one parameter, it will not work when I pass more the one. For example:
My AS function:
public function callCloseDocument():void{
CSXSInterface.instance.evalScript("testFunc", "10", "10", "myDocName");
My JS function:
function testFunc(theWidth, theHeight, docName){
thisWidth=parseFloat(theWidth);
thisHeight=parseFloat(theHeight);
app.documents.add(thisWidth, thisHeight, 72, docName, NewDocumentMode.RGB, DocumentFill.WHITE);
This will not work, when I pass just one parameter no matter which one it works no problem. I can't figure out how come this is happening. Any help would be greatly appreciated.
Chris R.

Hi Davide,
I was never able to find out why that didn't work. I looked at all the documentation available and there was nothing there. What I ended up doing was I just called 2 different functions in flex to set 2 different variables in my Javascript. For example:
myVar2.evalScript("setWidth", docW);
myVar2.evalScript("setHeight", docHeight);
and in my JS:
function setWidth(sentWidth){
thisWidth=parseFloat(sentWidth);
function setHeight(sentHeight){
thisHeight=parseFloat(sentHeight);
That worked for me, very lame I had to do it this way but like you I tried everything under the sun and I could not send more then one parameter. Let me know if you figure out how to send them over the proper way.

Similar Messages

  • InDesign Panels created with Extension Builder 3 get collapsed upon relaunch of InDesign

    InDesign Panels created with Extension Builder 3 get collapsed upon relaunch of InDesign and you have to corner drag them open to see the panel. This bug is very annoying. Does anyone know a work around?

    I found how to fix this.
    There is a hidden XML file called manifest.xml located in you project folder here:
    ../.staged-extension/CSXS/manifest.xml
    In that file there is a section called <Geometry>
    By default there is an entry for size. You can add sections for min and max panel size values.
    <MaxSize>
         <Height>enter max height size here</Height>
         <Width>enter max width size here</Width>
    </MaxSize>
    <MinSize>
         <Height>enter min height size here</Height>
         <Width>enter min width size here</Width>
    </MinSize>
    - Digital Production

  • How do I import SWC files created with Flex info Flash CS4?

    I've created very nice UI component using Flex 3 and I have exported it into a SWC file.
    How can I import it into Flash CS4 to use it there?

    Hmm... if you happen to be familiar with C#, then you may probably know about the problem of P/Invoke (this is a command that lets you access Windows API through C# code, which will apparently prevent it from functioning on other OSs).
    What happens with Flex framework is somewhat similar to this. I.e. it relies to much on the features of Flex compiler and the components of the framework create a lot of cross-dependencies, which makes them barely usable outside the framework.
    So, if you have time and doing this just as a matter of learning, I'd suggest you start an AS project in Flex builder and advance with it compiling it both with Flex and Flash to see if there are any differences (basically, once you see it doesn't compile / doesn't behave as you'd expect in Flash, you'll know you used something that is specific to Flex). These would be mostly meta tags, like [Bindable] for example.
    And, if you need any tutorials on how to code in pure AS, then, well, there are really to many So that you can even choose what's appropriate / goes better with your learning habits.
    If you like video lessons, there're tons of them at gotoandlearn.com, if you prefer reading documentation, here you go: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/class-summary.html
    if you prefer forums / written tuts, then, kirupa.com, actionscript.org, flashkit.com as well as Adobe forums will provide you with a lot of information.

  • Command-line Compilation of Photoshop Panels

    Hello,
    I'm attempting to create a Photoshop Panel using the Flex SDK and the mxmlc compiler.  I'd really love to avoid Flash Builder.  Here is the compilation line and the resulting error:
    ~/dev/shared/flex/bin/mxmlc --show-actionscript-warnings=true --strict=true -include-libraries=CSXSLibrary-2.0-sdk-3.4.swc -load-config=config.xml gridpanel.mxml
    Loading configuration file /Users/justin/dev/me/photoshop/gridpanel/config.xml
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.core:IWindow)
    Error: Type was not found or was not a compile-time constant: NativeWindow.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
    Error: Type was not found or was not a compile-time constant: NativeMenu.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.events:FlexNativeMenuEvent)
    Error: Type was not found or was not a compile-time constant: NativeMenuItem.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHistoryItem.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLUncaughtScriptExceptionEvent.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHost.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.controls:HTML)
    Error: Type was not found or was not a compile-time constant: HTMLHost.
    /Users/justin/dev/me/photoshop/gridpanel/CSXSLibrary-2.0-sdk-3.4.swc(mx.managers:NativeDragManagerImpl)
    Error: Type was not found or was not a compile-time constant: NativeDragEvent.
    I don't have too much experience with Flex, but I'm guessing the CSXS library is using mx.* components that I haven't linked against.
    Here is the config file I'm using.  My flex SDK is located at "/Users/justin/dev/shared/flex/", hence the absolute paths in the config file.
    Out of desperation, I downloaded Flash Builder to see if I could inspect what compilation command it was running.  I had it dump the config file it was generating, and attempted to use it (it looks almost identical) and I ended up with the same error when trying to compile from the command line.
    For the sake of completness, I have a super basic MXML file.
    <?xml version="1.0" encoding="UTF-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <!-- Copyright 2010 __MyCompanyName__. -->
    </mx:Application>
    Have any idea what I might be missing?
    - Thanks

    I had an HTML Class instantiated on my code, which is part of air framework. Removing it, all works.

  • Pixel bender filters in Photoshop Panel

    Hello,
    I'm writing a suite of Photoshop filters with PixelBender and would like to know if there is a way to call them from a Photoshop Panel built with Configurator without embedding these filters in a flash panel.
    I tried to build a panel with configurator, but in the filters menu, PIXEL BENDER doesn't show. So, I guess I will have to build a flash panel which is close to Chinese for me (read http://forums.adobe.com/message/37408).
    Am I out of luck?
    Thanks!
    Enrique

    Use a 'Run JavaScript' button from ACTIONS/SCRIPTS section of Configurator.
    Then use/modify the following code:
    try{
    var idPbPl = charIDToTypeID( "PbPl" );
        var desc636 = new ActionDescriptor();
        var idKnNm = charIDToTypeID( "KnNm" );
        desc636.putString( idKnNm, "Kaleidoscope" ); /*modify the name of your pixel bender filter*/
        var idGpuY = charIDToTypeID( "GpuY" );
        desc636.putBoolean( idGpuY, true );
        var idFPth = charIDToTypeID( "FPth" );
        desc636.putString( idFPth, "/Applications/Adobe Photoshop CS4/Pixel Bender Files/kaleidoscope.pbk" ) /*modify the path to your filter*/
    executeAction( idPbPl, desc636, DialogModes.ALL );
    }catch(e){
         /* catch user cancellations */
    I have it so the default settings are populated and the Pixel Bender dialog is shown (DialogModes.ALL). You could use the scripting listener plug-in to populate specific settings and/or not show the dialog (DialogModes.NO)

  • Virtual Desktop / Virtual OS with Flex / Air.

    I saw applications like: http://icloud.com and http://www.eyeos.com and they seem to work great in a browser, I think this should be created with Flex. and who knows the same app ported with AIR to run from the Desktop. Eventually this application can be make bootable and work as a real OS or some kind of virtualilzed client from a web browser.
    Can't wait to see Adobe taking this to the next level, imagine all the power of you OS in a Browser window, using resources of a Cloud Computing, or maybe just using resources from your Linux Host for small offices. Maybe booting with a Linux and use all the desktop as Flex/Air Desktop, that would be really awesome !!!.
    Dinooz

    The eyeos demo is down.
    But, from what I saw at iCloud, there is no reason you can't build an interface like that in Adobe Flex.  A few people have asked me for a "Flextras Desktop" which includes thing like a task bar component, a window manager /MDI, a start menu, etc...
    If you're looking for the same sort of thing, I'd love to talk to you more in depth about what you would use it for and specific features that you'd need: http://www.flextras.com/?event=ContactForm

  • How do I add .swf created with Photoshop web gallery to Dreamweaver page.?

    I've used Photoshop CS3 to create a Flash Web Gallery. I put that folder in my site root in dreamweaver, but when I add the .swf to the webpage- it only shows as a white box. Even when I press "play" nothing happens. What else needs to be done? All of the files created with the .swf are also already in the root directory

    That would seem to be a question for the DW forum
    http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=12

  • Are .mov files usable in PE 13?  If not, can PE 13 convert them to a usable format?  Will the result be usable in a slide show created with Photoshop Elements 13?

    Are .mov files usable in PE 13?  If not, can PE 13 convert them to a usable format?  Will the result be usable in a slide show created with Photoshop Elements 13?

    jayarl
    Please do not duplicate thread. It gets confusing for you as well as for those trying to respond to your question.
    I have replied to your question in your other thread.
    https://forums.adobe.com/thread/1662961
    Please continue the discussions there.
    A moderator will probably delete or close one of the duplicates as soon as seen.
    Just a note...Photoshop Elements 13 and Premiere Elements 13 are standalone products. Each comes with the
    Elements Organizer 13. When both are on the same computer, they share the same Elements Organizer 13.
    ATR

  • Is there any alternatives to Configurator for creating custom Photoshop panels?

    I've been using Configurator for quite some time now in order to improve my workflow; having custom panels is huge to me.
    So I was surprised that Adobe decided to stop supporting flash panels, starting with version CC 2014. I want to update Photoshop to CC 2014 but am unable to do so due to my custom panels (which DOES NOT work in said version!!): I would be handicapping myself by upgrading the software.
    I've looked around for alternatives, but so far I haven't found any decent replacement to Configurator for creating HTML5-based panels. I know about PsTools but it appears to be limited to Tools only, and I need to both create a custom toolbar as well as custom panels for my most used filters and selection -actions. Also I know there's an API for creating HTML5 panels now, but I'm a 3D Artist - not a C++ programmer.
    So what exactly are the alternative here?

    I've been using Configurator for quite some time now in order to improve my workflow; having custom panels is huge to me.
    So I was surprised that Adobe decided to stop supporting flash panels, starting with version CC 2014. I want to update Photoshop to CC 2014 but am unable to do so due to my custom panels (which DOES NOT work in said version!!): I would be handicapping myself by upgrading the software.
    I've looked around for alternatives, but so far I haven't found any decent replacement to Configurator for creating HTML5-based panels. I know about PsTools but it appears to be limited to Tools only, and I need to both create a custom toolbar as well as custom panels for my most used filters and selection -actions. Also I know there's an API for creating HTML5 panels now, but I'm a 3D Artist - not a C++ programmer.
    So what exactly are the alternative here?

  • Create game with Flex?

    Hi all
    this might be a stupid question, but me really not well
    understand what Flex was, and what the Flex purpose.
    me have download the trial version of flex, and found it seem
    more focus on coding and exclude the drawing things which similar
    to Flash.
    my question : is it possible to create Flash game with Flex ?
    what could be done in Flash is it possible to done in Flex
    too?
    thanks

    hi,
    With flex you need to envoke the filereference function save. Because of the security sandbox you can not programmatically save files or create folders, you need to open a windows file browse box then the user can create a folder or save a file.
    private function testme():void
    var fi:FileReference = new FileReference();
    fi.save("hello"); <=== this would open a system file save dialogbox
    David.

  • Debugging a Photoshop panel with FB4

    Hello,
    I'm trying to get my environment set up to debug a Photoshop panel I'm working, since the include AIR debuggers is apparently no longer supported. I've followed all the steps in the CS5 sdk guide, like setting the PlayerDebugMode to 1, and adding the Contents/debug file to Photoshop.
    In the documentation it then says in FB to:
    1. Open your project in Flash Builder and select it in the Package Explorer.
    2. Choose Run > Debug > Other.
    Getting Started with the Adobe Creative Suite SDK Packaging and signing your extension for deployment 19
    3. Select Web Application and click New to create a configuration for Web Application.
    4. Enter "Debug <extension_name>" in the Name box, and the name of your project in the Project box.
    5. Deselect the "Use defaults" option.
    6. Replace the values in the Debug, Profile, and Run boxes with about:blank.
    7. Click Apply and close the dialog.
    In the dialogue that comes up under Run > Debug > Other, there are no such "Debug, Profile, and Run boxes." The only place I can see to enter "about:blank" is under "URL or path to launch." That doesn't really make sense to me, since I'm not trying to launch about:blank.
    What should I be doing here?
    Also, once all of this is done, Nothing shows up under "Run > Debug > your_debug_config_name" as the guide suggests. I have to go back to "Run > Debug > Other" to select my profile again.

    Ha, fantastic! Your post prompted me to go back and look at all the debug flags to see why it wasn't working. I had the debug file in Photoshop and the PlayerDebugMode set in ~/.../com.adobe.CSXS2Preferences.plist but that wasn't working. It occurred to me to check /.../com.adobe.CSXS2Preferences.plist as well, which hadn't been set. When I set that it started working for me.
    I'm curious why having it in my ~/ directory didn't activate it. Is that some sort of global only setting, or is it possible I have some kind of problem elsewhere? I've noticed a number of debug related things (like which version of flash player is used) have issues when I try to do them in the user rather than globally.

  • How can I create an executable with Flex Builder 3?

    I'm working with Flex Builder 3 right now and I've run my
    head into a brick wall. Here's the situation:
    I'm creating a standalone application (runs in its own
    window, not in a web page) and I want to run it on a computer that
    does not have Flex Builder 3 installed. Help files and web searches
    haven't directed me to the right answer, so I was hoping that
    someone on this forum could help. Anyone know how to create a .exe
    file or something else that can be run outside of Flex Builder?
    Thanks a lot for any help!

    quote:
    Originally posted by:
    rob_parkhill
    Convert it to an AIR Application?
    Thanks Rob,
    This may be what I'm looking for, but I don't know enough
    about the difference. I guess I should have pointed out that I'm a
    complete Flex Novice!
    Anyway, with Flex Builder, I created an MXML Application. I
    went through all my various options again in Flex Builder and found
    that under the project menu, I could export a release build in what
    appears to be the format you mentioned. I managed to create a .air
    file, but it is not a recognized file type on my computer. I tried
    double clicking it and the built-in windows services couldn't even
    find a possible way to run it. Am I missing some important step?
    Thanks again.

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

  • Want to create an oval vignette in photoshop elements 10 with transparent background for printing w

    I am fairly new to PSE and I want to create an oval vignette in Photoshop Elements 10 with transparent background for printing on white paper using MS Publisher. Using the white background on inverse selection makes a slight line impression and either it should have a defined "frame" or nothing.
    Appreciate any guidance.

    Try with the Elliptical marquee tool:
    On the tool's option bar set feather 25-40 px (experiment)
    Drag out the Ellipse to embrace the object
    Go to Layer>new>layer via copy, or CTRL+J
    Your selection should fade out as a vignette and be surrounded by transparency
    Save this layer via File>save for web, select PNG-24, and tick "Transparency"

  • Can't open DNG files created with Mac CS5 downloader in Mac CS4 Photoshop

    I recently installed CS5 on my mac but I kept CS4 installed as well.  I notice that I cannot open DNG files created with CS5 in Photoshop CS4.  Bridge CS4 shows the files only as icons - no image thumbnails.  I am able to open these same files on a Windows version of CS4.  Is there some plugin for my mac CS4 that will enable me to access the DNG files created with CS5?  Is there a way to use my CS5 downloader when converting my raw files from my camera to DNG files that will make them compatiple with PS and Bridge CS4?

    rr3rd wrote:
    Is there a way to use my CS5 downloader when converting my raw files from my camera to DNG files that will make them compatiple with PS and Bridge CS4?
    Well, yes...but you'll need to modify your DNG Converter prefs to allow for that. You''ll need a recent (ideally current DNG Converter 6.4.1 or above) and click on the DNG Converter preferences and select the correct DNG Converter options. Check DNG Converter 6.4.1 (the current version) and click on "Change Preferences" to be sure select Camera Raw 5.4 and later then make sure CS4 is updated to ACR 5.7 (which is the last version of ACR for CS4) However, the changes made to ACR 6.x really should be adopted since IQ for ACR 6.4.x is a lot better...

Maybe you are looking for

  • HT2500 can i have multiple e-mail addresses with one mac account

    Can i set up multiple e-mail addresses on one mac account

  • Failed to back flush in IDES 4.7 due to kp26 proplem

    hi: I Failed to back flush in IDES 4.7, and afterwads i found it was due to a system problem with kp26 which should be patched with KH47012. I tried spam ,but failed.I could not proceed. any opinions will be appreciated. infomation below is from tran

  • Applet window opening in OM in remote instance instead of published HTML UI

    Need some help... My model has been built in UAT instance using a BOM from UAT, I built, published and tested in this instance with no issues. Then I created the full BOM in the live environment. Then I switched my BOM source to the live environment

  • ICloud questions

    I'm still confused on what gets synced through icloud. I have added some PDF files to my ibooks in itunes. they are not showing up in the ibook app on my iphone. I thought the idea is to be "pc free" but it appears i will still have to sync through i

  • Servermgrd crashes with EXC_BAD_ACCESS. Ideas?

    I just realized that I'd posted this in an inappropriate thread (as a question in answer to a question), so I'll repost it here in hopes of getting input. This problem has occurred after having suffered a boot disk failure and having performed a clea