Flash Pro CS6, JSFL, and SpriteSheetExporter.exportSpriteSheet()

Hi, I've been trying to use SpriteSheetExporter.exportSpriteSheet() but it just reports the following error:  "Argument number 1 is invalid"
The documentation says to pass a (file) path for the first argument.  I've tried to pass both a platform path and a URI to a file to the method without success.
The documentation seems to need some clean up too:
http://help.adobe.com/en_US/flash/cs/extend/WSd5f4b6c52cfaa4b1-d3431961351cb0528c-7ffb.htm l
Anyone have a working example?

Same problem here. Mac OS X 10.8.2, Flash Pro CS6 12.0.2.529.
I've tried passing valid paths using valid URI, platform path, relative path, w or w/o file name and extension... all result in the same exception being thrown:
exportSpriteSheet: Argument number 1 is invalid.
var document = fl.getDocumentDOM();var timeline = document.getTimeline();var fileName = document.name.replace(/\.[^\.]+$/, '');var fileDir = document.path.replace(/[\/\\][^\/\\]+$/, ''); var item = document.library.getSelectedItems()[0];var spriteName = item.timeline.name;var exportDir = FLfile.platformPathToURI(fileDir); //+'/../../app/data/scenes'); var format = {format:"png", bitDepth:32, backgroundColor:"#00000000"};var writemeta = false; var sse = new SpriteSheetExporter();sse.addSymbol(item);sse.layoutFormat = "easeljs"; var path = spriteName +'.png';path = exportDir +'/'+ path;//path = FLfile.uriToPlatformPath(path); fl.trace('export '+ item +' using '+ sse +' to '+ path);var result = sse.exportSpriteSheet(null, format, writemeta);fl.trace('result: '+ result);
Please fix!

Similar Messages

  • Adobe Flash Pro CS6 -- cursor and focus issues

    This is OS specific as it works fine in the Snow Leopard.
    I am having issues with nearly everything involved with switching between apps / focusing on text windows / getting the cursor to appear where I click / etc since upgrading to Mountian Lion/Mavericks while using Flash Professional CS6. 
    Example problems:
    I click on the Flash icon in the menu bar (twice because the new Mac OS's have focus problems in the dock with mission control enabled) the OS will sometimes switch to the space containing Flash (sometimes not but let's focus on the Flash focus issues). I hover over the code window, I scroll with the mousewheel down the page to where I want to edit the code, I CLICK exactly where I want to paste it, hit cmd+C -- then it pastes the code NOT THERE but instead where the cursor was before (at the top of the page)... So essentially I have to double or triple click everything in Flash all the time. I just click like crazy anymore on everything all the time, but in Flash it's really unpredictable.
    This happens on both of my work computers (both 10.8.5)
    and my Mac Pro (10.9) but not my MacBook Pro that is still extremely fortunate enough to have 10.6 on it.

    What you need is an inner Graphic symbol. What I mean by Graphic symbol is when you select all your letters and hit "F8", choose "Graphic" instead of "MovieClip." In the properties panel, you'll see that one of the sections is called "Looping." Select"play once" (the default is "Loop"). Inside that graphic should be the animation of the letters moving in from left to right.
    On the outer timeline, put a keyframe at the same frame number where the Graphic's animation ends. Change the Looping to "Single Frame" and then type in the frame number of the last frame. You can then create a motion tween that animates the graphic symbol upward at its final frame.

  • Flash Pro CS6 to HTML5 Conversion

    I purchased Flash Pro CS6 yesterday and it does not convert my Flash file to HTML5 Correctly.  It converts everything except the Action Script.  I have contacted Tech Support and they have escalted the issue, but they are telling up to 96 hours.
    The website is www.davidhornbrook.com
    When I try to convert that page (the FLA file) it converts the bottom part, his logo, and the david dropping down the side.
    It does NOT convert the top menu items OR hte drop shadow behind the logo (which is all Action Script3).
    Can someone help me?
    I have the FLA files thast I can send to you / post if that helps.
    BTW when I convert it to SWF it works fine, just not when I export it to HTML5.

    Hello ChadXSO,
    The 'Help' offered to you so far has been, as far as I can tell, no help at all.
    I've been ploughing through an old .fla trying to make a conversion.
    Nothing complex, no animations.
    6 hours later, I've part of it running, not working, just not crashing.
    It's all script, so if CreateJS doesn't convert Action Script it's producing a very good pretense of doing so. The converter does appear to be looking at the AS, since if I change the AS the output changes.
    However, I have to edit the js, every time I publish, to prevent the HTML from looping. From time to time it throws a Line 77 error, claiming that there is an undefined .str in a non-existant .jsfl file (non-existant in that Windows can't find the file).
    I produce technical anims for my students in Flash so I'm none too pleased for the option for them to view them on-line to be taken away.
    Unless Adobe produces a working conversion tool 10 years of my work is going down the toilet. There will be thousands(?) of .swf creators in the same position.
    If CreateJS is the best Adobe can manage, at this rate, I won't live long enough to convert a single .fla.

  • Flash Pro CS6 fails to load

    Flash Pro CS6 loads and suddenly disappear while "loading fonts".  I found similar discussions, and their solution suggests to find fontinfo.txt and edit it, but i fail to find the fontinfo.txt but found a missfont.map.
    Help needed, thanks in advance..

    Hi,
    The fontinfo.txt file can be found at:
    C:\Users\«YourUserName»\AppData\Local\Adobe\Flash CS6\en_US\Configuration
    Firstly, let me know if you are able find the fontinfo.txt file at the said location. Secondly, if you manage find it, empty the .txt file, save as Read Only (you need to ENABLE this option, not Disable as in your post), and then try restarting Flash.
    Please see if it works for you. These are steps as described in the forum discussion Ned referred, and I would request you try these to see if the issue still persists.
    Regards,
    Suhas Yogin

  • How do I get someone to activate my Flash pro cs6 after I properly deactivated it and now it won't reactivate.  I need a phone number or email address or something.

    I may need to reformat my computer soon.  It has been acting badly.  So, in accordance with instructions I have gotten from FLASH I deactivated Flash Pro CS6 before I turned off my computer to save myself a problem if the computer died before I deactivated FLASH.  Now, when I get back into FLASH PRO CS6 the "deactivate" button is grayed.  Who do I talk to about this and how do I contact them?

    See if the following helps...
    Activation & Deactivation Help
    If not, here is a contact link for chat.  For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • BUG - saving with both flash pro CS6 and CC causes library symbol names to change

    Concise problem statement:
    If you save with flash pro CC and then save with CS6, in the library panel, symbol names are changed.
    Specifically, pipes | and trailing spaces ("|Divider", "Divider ") get replaced by escape sequences ("&#124Divider", "Divider&#032" ...) Ampersands & and number signs # also get replaced, such that symbol names grow exponentially if you continue to save with both flash pro CC and CS6 ("Divider&#032", "Divider&#038&#035032", "Divider&#038&#035038&#038&#035035032" ...) This makes it difficult to transition a team from CS6 to CC.
    Sometimes, the original-name symbol remains, and an escaped-name symbol is also created. In this case, the children are removed from the original-name symbol, so it doesn't render anything to the screen; a mysterious, silent failure.
    Steps to reproduce bug:
    1. Create a library symbol named "|", save an xfl with flash pro CC, and close.
    2. Open, save, and close with flash pro CS6.
    3. Open, save, and close with flash pro CC.
    Results:
    A library symbol named "&#124".
    Expected results:
    A library symbol named "|".
    I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

    Hi,
    We are aware of this issue and its open for investigation internally. This issue is observed when you have certain special characters in your symbol names and try to open that file in Flash CS6. This happens due to a change in the way symbol naming is handled in Flash CC and in Flash CS 6.
    As a workaround, request you to use only Underscore or Hyphen as special characters while naming symbols or library layers etc.
    We shall update you as soon as this has been fixed.
    Thanks,
    Nipun

  • How to install latest AIR SDK (13 or 14) in Flash Pro CS6?

    Hi, I'm using Adobe Flash Pro CS6 on Windows 7 64-bit and I wanted to add latest Adobe AIR SDK, either 13 or 14, but non of them is seen as a valid SDK by Flash.
    I've tried downloading two possible SDKs (SDK & compiler and SDK without compiler) from here: Download Adobe AIR SDK (version 13) and here http://labs.adobe.com/downloads/air.html (version 14). Each time I copied the extracted SDK folder to my Flash CS6 folder where default 3.2 and 3.4 SDKs are located. After that I open Flash, then Help > Manage Air SDK, click on " + ", browse for the new folder, and all I get is "The selected folder does not contain a valid AIR SDK" warning message. It all looks the same with all four SDKs I downloaded!
    Not long ago I added AIR 4.0 without any problems. What am I doing wrong? Is new SDK Flash CC only or what?

    What are you naming the folder?
    Just as a general tip, since many applications (Flash CS4, 5, 5.5, 6, CC) you can save some space by only putting the AIR SDK in one place. Since CS6 and CC have "Manage AIR SDK" in their settings you no longer need to locate that folder like 5.5 which requires you to overlay the AIR 2.6 folder. So save some space and put it anywhere out of the way, out of the Flash folder. I have multiple drives and I have lots of SDKs installed at root on my E:\ (E:\SDK\AIR, E:\SDK\JDK, E:\SDK\Android, etc). I then just go in the help panel like you do and point CS6 and CC to E:\SDK\AIR and they work perfectly fine with the latest SDK released recently.
    Are you updating Flash Player to 13 as well?
    Last, do not download the Flex version for Flash. Flex is for Flash Builder if you intend on using Flex (it is different than Flash).
    Do not get this:
    You want the SDK from the big orange buttons above this warning.

  • Error installing Flash Pro CS6

    I'm trying to install Flash Pro CS6 but I keep getting the following error (the message is in portuguese) after running the .exe file (downloaded directly from Adobe's oficial website).
    I've tried it in 3 different computers with Windows 8 and in one computer with Windows 7 and all of them give me the same error. I'm using an Admin account so that's not the problem!

    The problem is happening when I try to extract the downloaded files from the .exe to another folder. The application has all the permissions available
    Here is another picture of the initial screen when I double click the .exe file.
    I've tried to extract it to other folders, like "Documents", "Downloads", but It gives me the same error as before.

  • Back button doesn't work in Flash Pro CS6 Simulator (ADL)

    Hi everyone. I'm testing Flash Pro CS6, and I've noticed the Back button is not detected in my Android app when testing in ADL (Control / Test movie / In ADL Mobile).
    When I try to select the option Device / Back (Ctrl+B) in ADL, it just doesn't do anything (I have a KEY_DOWN event listener which looks for the keycode Keyboard.BACK). In a real Android device, it works, but not in the "test movie" window (ADL). In CS5.5, the Back button always worked in ADL.
    Also, in the new Simulator window which comes up when "testing movie", there are "Menu", "Back" and "Search" buttons for easier access. Well, that Back button doesn't do anything, either.
    Does anyone know what's happening?
    BTW, I don't find the "Simulator" window too useful for my purposes. How can I disable it, so it doesn't automatically come up?
    Thanks!
    Edit: Well, it seems the KEY_DOWN event listener doesn't work for any key, not only the Back button.

    WHOWWW...
    suitable for Flash Player 11.6
    Back that down to as low a version as possible... 10 or so if possible.
    My advice.... never... ever target the latest version of plugin... most users will NOT have that plugin installed.
    Back it down and if that doesn't work, post a link to the actual Web page.
    Best wishes,
    Adninjastrator

  • BUG - in flash pro CC, 'bold' and 'italic' properties of TextFormat have no effect on rendered text

    Concise problem statement:
    If you compile with flash pro CC, and use the 'setTextFormat' method of a TextField, the 'bold' and 'italic' properties of the TextFormat argument have no effect on the rendered text. If you compile with flash pro CS6, the 'bold' and 'italic' properties work as expected.
    Apparently, with flash pro CC, the only way to make the text render correctly is to change the font name (add the suffix ' Bold', ' Italic', or ' Bold Italic'.) This means code which dynamically changes font styles only works in CS6 or CC, but not both. For example, if you use the 'bold' property the text renders bold in CS6 and regular in CC, whereas if you change the font name to add the suffix ' Bold', the text renders bold in CC and DOES NOT RENDER at all in CS6. This makes it difficult to transition a team from CS6 to CC.
    Steps to reproduce bug:
    1. Create an xfl with 2 TextFields on the stage, both with font "Trebuchet MS" and style "regular", one named boldTrueText containing the String "bold = true", one named fontNameText containing the String "fontName = Trebuchet MS Bold". Create 2 more TextFields on the stage for visual reference, both with font "Trebuchet MS", one with style "regular", one with style "bold".
    2. Add the following code to the Actions panel on frame 1:
    import flash.text.TextFormat;
    import flash.text.Font;
    var format:TextFormat = boldTrueText.getTextFormat();
    format.bold = true;
    boldTrueText.setTextFormat(format);
    format = fontNameText.getTextFormat();
    format.font = "Trebuchet MS Bold";
    fontNameText.setTextFormat(format);
    var fonts:Array = Font.enumerateFonts(), count:int = fonts.length;
    for (var i:int = 0; i < count; i++) {
        var font:Font = fonts[i];
        trace("fontName: " + font.fontName + ", fontStyle: " + font.fontStyle);
    3. Save, and compile with flash pro CS6 and flash pro CC.
    Results:
    With flash pro CS6, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
    With flash pro CS6, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    With flash pro CC, "bold = true" renders regular, and "fontName = Trebuchet MS Bold" renders bold.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: regular
    fontName: Trebuchet MS Bold, fontStyle: bold
    Expected results:
    The same text is rendered in both flash pro CS6 and CC. I don't know why this behavior was changed in flash pro CC - it causes silent failures in code which dynamically changes font styles. I expected the flash pro CS6 behavior to remain the same in CC, like so:
    With flash pro CC, "bold = true" renders bold, and "fontName = Trebuchet MS Bold" DOES NOT RENDER.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    If you don't want to break backward compatibility (any further), you could make both the behaviors work in flash pro CC, like so:
    With flash pro CC, "bold = true" renders bold (font is still "Trebuchet MS"), and "fontName = Trebuchet MS Bold" renders bold also.
    With flash pro CC, the following is traced:
    fontName: Trebuchet MS, fontStyle: bold
    fontName: Trebuchet MS, fontStyle: regular
    fontName: Trebuchet MS Bold, fontStyle: bold
    I submitted this bug with the bug form, and also with adobe bugbase (in case it isn't obsolete) - I'm just trying to maximize my chances of getting a fix.  Has anyone else encountered this bug?

    I just can't believe how there is ZERO documenation for any of this.  Flash's stylesheets have fontStyle and fontWeight properties, but they only recognize regular/italic and regular/bold respectively.
    This change in Flash CC completely breaks systems built in Flash CS6, and the font naming is actually arbitrary and is not a consistant combination of font name and style (e.g. "Eras ITC" family's bold font name is "Eras Bold ITC", but the bold version of Times New Roman is "Times New Roman Bold" (with Bold at the end, rather than the middle), and what's absolutely appaling is that the font name used at runtime is not exposed anywhere in the Flash IDE!!!  In the IDE you select a font family and font style independently, which is absolutely not what's used at runtime, because it actually uses a separate, arbitrarily named field in the font file for the font name. So we can't even know from within Flash what the proper runtime name is, unless we trace it out or open the font properties details tab in Windows explorer.
    It seems that Flash CC is always using the font "Title" that can be found in the properties of the font, NOT the font name displayed in Windows Font Preview or in Flash CC.  For example, the font name for Times New Roman Bold in Windows Font Preview is just "Times New Roman", but the font title in the properties/details tab is "Times New Roman Bold".  If they made the change to allow for specific fonts to be selected, that's fine, but it completely breaks HTML support in TextFields if it's not respecting bold and italic tags.
    This may actually be a trend on the web now, if you read this: http://www.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declara tion/ , it says: "If you’ve used one of FontSquirrel’s amazing @font-face kits, then you’re familiar with this approach to setting weights and styles. The CSS provided in every kit uses a unique font-family name for each weight and style, and sets the weight and style in the @font-face declaration to normal. [...] Notice that the font-family names are unique, with each font-family name accessing the appropriate Web font files."
    But there's just no mention of this in any documentation I can find.  What the hell.
    It's also helpful to realize that font and u tags have been deprecated in HTML5, while b and i tags have been repurposed since they still retain semantic meaning apart from style: https://www.w3.org/International/questions/qa-b-and-i-tags

  • Flash Pro CS6 crashes when creating symbol

    Okay...here's one I gotta share. I'm building some banner ads for a client. I open up Flash Pro CS6. I create a square on the stage. And when I right-mouse click on the drawing, choose Create Symbol...Flash completely locks up. I get that little Windows 7 'tink' in my speakers..and nothing. I cannot create a symbol of any kind. The program completely locks up.
    So...I uninstall the entire CS6 suite...reinstall with latest installers...and same result.
    BUT....if I put a graphic on the stage...go to the timeline...and try to apply a motion tween..flash alerts me that it needs to be a symbol and converts it to a movie clip for me...no errors.
    I'm on Windows 7, 64 bit, 16 G ram. So that ain't the problem. I tried in vane to get somebody on the phone at adobe....I knew that would be a waste of time.
    I've been using adobe software forever. And though it is frequently error and crash prone I can usually count on an uninstall squaring things away. Not this time. And I have no cause and effect to point to. I was using Flash a couple of weeks ago no problem...and now...unusable.
    If there's anyone out there reading this post...I'd really be interested in a solution.

    The only thing that could´ve changed are the settings on my mac...
    Sounds like this might be your trouble?
    I run a pc... no help to you.
    Optimizing for performance: Adobe Premiere Pro and After Effects
    http://blogs.adobe.com/aftereffects/2011/02/optimizing-for-performance-adobe-premiere-pro- and-after-effects.html

  • Lost cd for student edition flash pro cs6

    lost cd for student edition flash pro cs6, will "student serial" work with ADOBE's download/retrieve programs page?
    Thanks all

    Yes it should work, make sure to download correct version and language.
    Download CS6 products

  • Flash Pro CS6 & CreateJS - Prevent looping

    I've recently upgraded to Flash Pro CS6 because of the toolkit for CreateJS.  I've already successfully exported a few simple, slide by slide animations.  I was surprised to see them working in all modern browsers, not just Firefox and Chrome.  The only issue I have is that there doesnt seem to be much ActionScript support.  I'm trying to have my frames play through once, without looping through infinity.  I've tried seaching the API for an equivalent to stop(); but diddn't find anything.  Is there a built in funtion for this, or should I be using another API like jQuery?

    If you want to stop the main timeline looping there's a checkbox in the toolkit publish settings.
    If you want to stop individual clips then you can use js
    /* js
    stop();
    see http://www.adobe.com/devnet/createjs/articles/using-flash-pro-toolkit-createjs.html for more info

  • Flash Pro CS6  Update menu greyed out + AAM fail,supressed by the Admin - Win7-64

    Hi,
    I want to update Flash Pro Cs6 (PC Win7 64bit) to Update2.
    However, the menu Help>Updates is greyed out.
    The Update2 AMM patch installer says "updates could not be applied. Contact your system Admin. Updates have been suppressed by the Admin"
    before starting.
    This seems to point towards a privilege issue but, I have tried to :
    run Flash as admin, run the updater as admin, install flash logged in as admin and updater logged in as admin,
    without any luck....
    This is the install log summary:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 0 error(s), 4 warning(s)
    WARNING: DS013: Payload {7EABC54B-02C3-4DA1-9EB4-974CE7414066} AdobeHelp 3.4.0.0 is already installed and the session payload {D38116C8-C472-4BB0-AD6F-0C1DD1320D1D} AdobeHelp 4.0.0.0 has no upgrade/conflict relationship with it.
    WARNING: DS013: Payload {1A1E5FF9-D0FD-42A3-8E18-E5E7E95E1AB4} DynamiclinkSupport 5.5.0.0 is already installed and the session payload {DE88AA40-6766-43D3-A755-8FC374B3D2C3} DynamiclinkSupport 6.0.0.0 has no upgrade/conflict relationship with it.
    WARNING: DS013: Payload {A8798E04-96FF-4564-9157-0D4C89CB794C} DynamiclinkSupport 5.0.0.0 is already installed and the session payload {DE88AA40-6766-43D3-A755-8FC374B3D2C3} DynamiclinkSupport 6.0.0.0 has no upgrade/conflict relationship with it.
    WARNING: DS013: Checking payloads upgrade/conflict relationships : Failed with code 1
    Cheers,
    F.
    PS :
    sorry for cross post from this :http://forums.adobe.com/message/4793645#4793645
    Just noticed this was the dedicated forum for install issues.

    Manually update Creative Suite  6 products
    Go to the Adobe.com Product updates site and choose the update you want to download.
    When the download completes, start the update by double-clicking the Set-up.exe (Windows)
    Prompted to shut down conflicting applications, do the following:
    Windows
    Right-click the taskbar and select Task Manager.
    Select the Processes tab, select a conflicting process, and click End Process.
    Repeat for any additional conflicting processes.
    Check to see if the update downloaded successfully.
    \Users\[username]\Local\AppData\Adobe\AAMUpdater\1.0\
    Sarika

  • Flash Pro CS6  Updates fail, supressed by the Admin - Win7-64

    Hi,
    want to update Flash Pro Cs6 (PC Win7 64bit) to Update2.
    The menu Help>Updates is greyed out.
    The Update2 patch installer says "updates could not be applied. Contact your system Admin. Updates have been suppressed by the Admin"
    before starting.
    This seems to point towards a privilege issue but, I have tried to :
    run Flash as admin, run the updater as admin, install flash logged in as admin and updater logged in as admin,
    without any luck....
    Cheers,
    F.

    Manually update Creative Suite  6 products
    Go to the Adobe.com Product updates site and choose the update you want to download.
    When the download completes, start the update by double-clicking the Set-up.exe (Windows)
    Prompted to shut down conflicting applications, do the following:
    Windows
    Right-click the taskbar and select Task Manager.
    Select the Processes tab, select a conflicting process, and click End Process.
    Repeat for any additional conflicting processes.
    Check to see if the update downloaded successfully.
    \Users\[username]\Local\AppData\Adobe\AAMUpdater\1.0\
    Sarika

Maybe you are looking for

  • Bridge CC stopped showing thumbnails, does not expand at triangles

    Hello community -- three days ago Bridge doesn't let me open all triangles at folder's tab anymore, sometimes more, sometimes less -- plus when being at a folder that cannot expand anymore and Bridge should display the thumbnails of files, it doesn't

  • Locating a Text File with spotlight??

    With recent Updates of OS X, Spotlight simply finds the File but no way to tell where it is.  Have tried everything I can think of; but, so far, the only way I have found is to Duplicate and then Move that to the Desktop fromwhich I can then place it

  • Last Inserted Row in a Table

    Hi, I want to select only the last inserted row in a table. Can anybody help me how can i get it. Eg select * from emp; empno ename sal 12 abc 100 13 xyz 200 Now i have inserted a row as Insert into emp values (14,'Rohit',500); So i only want to sele

  • Create in Mass, new customers

    Hi friends. I need to create news Customers  for new company code,It's possible to create in mass data "Company code Data" through of other company code? Tks, Roberto

  • Easy DMS - disable / control thumbnail generation

    Hi, I have set up DMS and everything works fine, except... EasyDMS ist producing thumbnails from various files and I don't know where to control this behaviour. I have not set up anything according to thumbnails in SPRO. In EasyDMS preferences is not