JSFL Question

Btw, I'm not sure this is the right forum for JSFL questions,
but I do not know any forum here that would be closer.
I wish to make a jsfl script that exports all bitmaps in the
library to AS. But for some reason it doesnt work for Bitmaps (but
it does for MC symbols). On a german forum I read:
das liegt daran das die linkageExport settings für
bitmaps nicht greifen.... du müsstest zuvor deine bitmaps in
movieclips packen und diese exportieren... da kannst dann auch die
ganze linkageExportForAS, linkageExportInFirstFrame und
linkageIdentifier props setzen.
I'm not expert at german, but it sounds to me that he's
saying that it just isn't possible to export Bitmaps, that u have
to trick it via a movieclip. Anyone know anything about this issue?
I also got the impression from that forum, that jsfl is buggy in
general. One bad thing I discovered is that jsfl scripts can just
stop executing (maybe because of a nullpointer exception or
something) without giving any error message - which makes it hard
to debug. Anyone who can shed light on the subject?

eric76,
> I wish to make a jsfl script that exports all bitmaps in
the
> library to AS. But for some reason it doesnt work for
> Bitmaps (but it does for MC symbols).
I just ran a quick test, and I can confirm that ...
annoyingly, yes, it
seems to fail for bitmaps. (That's a bummer!)
> On a german forum I read:
> das liegt daran das die linkageExport settings f?r
bitmaps
> nicht greifen....
Seems to be the case.
> I'm not expert at german, but it sounds to me that he's
> saying that it just isn't possible to export Bitmaps,
that
> u have to trick it via a movieclip. Anyone know anything
> about this issue?
While I can "hold my own" with JSFL -- I do use it quite a
bit -- I
wouldn't say I'm an expert. If this issue really is what it
seems to be,
I'm afraid I don't have a guru hack handy. That said, it
certainly would
(should) be possible to use JSFL to create the movie clips
necessary to get
these images to export. It would just take a bit more effort,
but you could
even name the clips a similar name to the images, then put
them all into a
Library folder to neaten things up.
> I also got the impression from that forum, that jsfl is
buggy
> in general.
I wouldn't say "in general," really. Not any more so (in my
experience)
than any other language. Possibly a *bit* more, because it's
used by so few
people, but I'll put it this way: JSFL has saved by butt a
lot more often
than it has given me a headache.
> One bad thing I discovered is that jsfl scripts can just
stop
> executing (maybe because of a nullpointer exception or
> something) without giving any error message - which
makes
> it hard to debug.
I get errors when scripts time out or fail. It happens in a
model alert
box. You don't get those?
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Some questions on JSFL

    Kind time of days!
    1) If I am in a symbol as to me to look hierarchy/level of the document and to learn that I not on the main timeline and in editMode. I found only fl.getDocumentDOM().getTimeline().name.
    2) Being inside MovieClip the cursor of a mouse has global co-ordinates X and Y while all objects local. How to learn local co-ordinates of the mouse?
    function mouseDown(pt)
    fl.trace(pt.y);
    fl.trace(fl.tools.penLoc.y);
    fl.trace(fl.tools.penDownLoc.y);
    this all get the global X and Y.
    Any ideas? Thanks!

    1) set your movie clip pigout point on top,left corner
    2) Set the clip left = 0 and right = 0
    3) now when you inside the "editMode" mode your X an Y vale are same as the main stage X and Y

  • Creating Gradient-filled shapes via JSFL CS5.5?

    I'm trying to use JSFL to create a number of oval shapes on a layer, that have a gradient fill applied to them.  I've stripped down the JSFL to very bare bones which I will post here:
    var flashDoc = fl.getDocumentDOM();
    var flashLib = flashDoc.library;
    var flashTimeline = flashDoc.getTimeline();
    // Set fill color for all shapes
    var fill = flashDoc.getCustomFill();
    fill.style = "radialGradient";
    fill.color = "#FFFFFF";    // For some reason if I don't assign at least *something* here, the color array doesn't work and I get fully black shapes
    fill.colorArray = ["#0033CC", "#FFFFFF"];
    fill.posArray = [0, 255];
    fill.focalPoint = 0;
    fill.linearRGB = true;
    flashDoc.setCustomFill( fill );
    for( var i = 0; i < 10; ++i )
        var x = Math.random() * 500;
        var y = Math.random() * 400;
        var radius = Math.random() * 25 + 25;
        var left = x - radius;
        var top = y - radius;
        var right = x + radius;
        var bottom = y + radius;
        flashDoc.addNewOval( {left:left, top:top, right:right, bottom:bottom}, false, true );
    When I run this script I do not get the results I'm expecting.  I get a number of oval shapes that all share the same gradient transform, i.e., each shape only gets part of the gradient.  The documentation says this function should be equivalent to using the draw oval tool, yet when you use that tool each oval you draw is associated with its own gradient transform.
    My Questions:
    1. Am I missing a piece here to create shapes each with their own gradient transform?
    2. Is it a bug that I have to set something into fill.color, even though I'm supplying a color array?  If I set nothing there, all the shapes will draw in full black.
    3. Is there a way to specify gradient colors that include alpha?
    Thanks for your time.

    Yep, that made the rest of my whole day!! Works excelllent in the demo, and i'm just replacing all the  Image<->Triangle commands. Wonderfulll & thanks a lot, LitDev. (enjoint the sb sample in your Test-DL :-))
    PS:
    Controls.SetTextBoxText(Controls.AddTextBox(10,10), "Enter your name here...")
    Controls.AddButton(".. then press the Button", 180,10)
    LDGraphicsWindow.Capture("","")
    GraphicsWindow.Clear()
    GraphicsWindow.DrawImage("ImageList1", 0,0)

  • JSFL SpriteSheetExporter exports png's without alpha channel.

    Hi,
    When I generate spritesheets using the JSFL SpriteSheetExporter it seems the generated png's always come with a solid background. I have found no information in the documentation on how to control this (e.i make the background transparent).
    SpriteSheetExporter.format returns  "RGBA8888", so the image appearenly has an alpha channel.
    Grateful for any information or ideas to help resolve this issue.
    Cheers!

    Esdebon,
    Thanks for the reply.
    No, the movieclip has a transparent background.
    Note that this question concerns the JSFL SpriteSheetExporter (scripting). The tutorial you refer to seem to cover the sheet exporter in the Flash IDE.

  • How to delete a shape for real in JSFL (possible bug)

    I have this big JSFL project I'm working on that involves deleting a raw shape (ungrouped) and then replacing it with another one.  The problem is that the original shape doesn't always actually get erased (I haven't figured out the precise circumstances where this happens yet though).  Even if it does get deleted, though, when I draw the new shape on the stage (using Path.makeShape), the new shape has extra vertices where its edges cross those of the original shape.  So even if I end up with the correct-looking shape on the stage without the one that was there before, my shape I just created is likely to have extraneous vertices (and I need the vertices to be unchanged).
    Some details:
    First I select all the shape elements in a frame by looping through the frame elements, adding any with elementType == "shape" and isGroup == false to an array, and then set fl.getDocumentDom().selection to be that array.  Then I call  fl.getDocumentDom().deleteSelection().  Then I call myPath.makeShape() on a path I created previously.
    So does anyone know of a workaround for this?  I've tried changing the selection and changing currentFrame to something else and back, but those didn't help.  I tried deleting the shapes earlier -- before I do the work of building my path -- but still the same problem.
    One idea I've just had: perhaps I could group the shape I'm going to delete and then delete the group.  Maybe that would solve it?
    Anyway, if anyone has any ideas about this please let me know.  If any Adobe people are hanging out here, does this sound like a bug?  If so, is there a workaround for it?
    -David

    I tried the grouping idea that I mentioned and yes, grouping the to-be-deleted shape before deleting it solved my problem.  The question still stands, though: Is this phenomenon a bug?  Can anyone from Adobe comment on this?
    -David

  • Is there any specific thread in flash professional for jsfl issues

    I'm working heavily with jsfl in order to automate massive changes in a flash elearning content and I don't find a thread for jsfl issues.
    Is there anyone? If not, wouldn't it be a good idea to add one?

    >don't find a thread for
    Adding a thread (in a forum/subforum) and adding a subforum are two different things
    The Moderator in the forum you use would be the one to add a subforum... so go to the forum you use and post a questions with a title "something like"
    MOD - Please add SUBFORUM for jsfl issues

  • Broken JSFL Commands

    Anyone at Adobe I could use your help!
    I'm an experienced JSFL developer, and there's a few serious
    bugs in the CS3 version of JSFL.
    1. The library.updateItem() command causes the Flash
    Authoring environment to completely crash. In my search for
    information, I saw a post from another JSFL developer out there
    with a
    Text
    similar
    experience.
    Even the most simple use of this command, such as this
    one-line piece of code, crashes Flash:
    fl.getDocumentDOM().library.updateItem("nameOfItemInLibrary.png");
    2. The new fl.findObjectInDocByName() command and
    fl.findObjectInDocByType() command don't work. Any attempt to use
    them results in the error that the command is "not a function."
    I'd like to know what is going on with this... Does Adobe
    know about this? Are there any plans to fix this? Am I crazy? Is
    there something wrong with my particular installation of CS3? If
    the updateItem() command works fine in Flash 8... but not in CS3,
    is this an indicator that Adobe has no intention to maintain JSFL
    in future versions of Flash?
    Also, here's one other question which is slightly
    off-topic... Is there any chance of adding a JSFL command that will
    tell you the location or pathname to a library bitmap's source file
    on the hard-drive? This is a significantly useful bit of
    information that cannot be accessed through JSFL in any other way.
    Thanks for any information!

    I'm also having problems with CS3 JSFL. In particular: this
    doesn't work for me anymore.
    fl.getDocumentDOM().library.itemExists("linkageID")

  • JSFL commands slow in CS5

    The execution of JSFL files seems to have slowed down in Flash CS5.  Or, at least, the updating of the display has been severely slowed down.  I have a command I use all the time -- so much that I don't even think about it -- that worked fine in CS4 and earlier, but in CS5 it seems to execute too slowly.  My command is a replacement for the "Step Forward One Frame" and "Step Backward One Frame" commands in the control menu (the "<" and ">" keys).  I wrote them so that the selected symbols remain selected when going to a new keyframe.  Of course, I use this all the time just like I did with the original "<" and ">" keys, and they need to run fast enough that I don't notice their execution time.  They don't do that much processing at all, so it really shouldn't be a problem.
    I also wrote some functions for profiling, and they indicate that the command is actually running in a reasonable amount of time (around 50ms).  When I run it again immediately, though, the execution time balloons to about 300ms.  Not only that, but in both cases the display takes its sweet time updating itself.  It seems to wait until all activity is finished, and then updates.  This means that when I execute the command repeatedly (keyboard-scrubbing the timeline) I don't get to see the current state of the stage until I stop completely and wait for it to update.
    As I said before, I never had trouble with this in CS4 and earlier.  So my question is: is there any way to tell Flash to update its display in a command, so that I don't have to wait for Flash to get around to it?  Relatedly, is there any way to give the javascript interface a higher priority so it'll execute commands faster?

    I can confirm this claim that JSFL code is running slower in CS5.
    I've recently downloaded a trial version of CS5 to see if it be worth updating from CS3. I use my JSFL script to batch swf building, which include separating assets like jpgs into a separate swf file.
    Now the JSFL code (which ran perfectly fine in CS3) takes significantly more time to execute in CS5, even to the point of crashing the Flash IDE quite consistently.
    Are there more people who have similar JSFL problems out there? Are there any alternatives to get around this problem?

  • How will Flash CC affect JSFL?

    So the question is how new 64bit Flash CC will affect all the JSFL stuff?
    New Flash will have 64bit modular architecture, light and dark interface colors, hi-DPI support etc. - will it support old JSFL extensions, panels created by me and other Flash users using the past CS versions.
    Will something change in JSFL?
    Thank you in advance.
    Roman

    yes, there are changes but i don't think anything has been removed (except code hinting). 
    there are a number of enhancements including improved error messages (pinpointing the line number), support for the dark interface (your panels should be edited to account for users with the dark interface) and some new dpi detection and control has been added to the panels.

  • Call JSFL from Flex Air application

    Hi,
    I have a Flex Air application that converts old style flash
    text var txt files into XML. As part of the process it creates a
    jsfl file that when run will automate through older FLAs and
    upgrade them with changes required.
    My question is this. Using the command
    fl.runScript(locationOfJSFLscript) in flash, it will automatically
    call the script and execute it. How do I do the same in Flex? i.e.
    I have a button in the application. I press it and it sends the
    call to run the script.
    Thank you

    Of course you may have some unstated reason for doing this in Air, but if not...
    Google photoshop droplet....
    Bob

  • JSFL for Flash 5

    Hello,
    I would like to use a JSFL extension on files developed with
    Flash 5. The problem is that sometimes, when I open a Flash 5 file
    with Flash 8 (necessary to run the JSFL extension) some action
    script code change...
    Do you know a way to do this? Or where can I find some help
    information?

    Hi Chris,
    Thanks for your reply. Yes, export FXG would be just the thing, or at least, thats exactly what i thought. However Flash Pro CS5's JSFL does not expose any sort of 'Export to FXG' functionality at this time. I have added this as a feature request to the Adobe Labs Idea site here, (feel free to vote on that feature), as well as posted a general question to the Flash forum here. I'm about to experiment with a JSFL script that will instead perform an exportSWF call, and see what Catalyst can do with that.
    d

  • New Widget - ObjectFindAndSelect.jsfl error

    Hi,  I just tried to create a new widget in Captivate and ran into the following error as soon as the new file opens in Flash CS5:
    The Output windows shows up the following message although I have not even run the file...
    The following JavaScript error(s) occurred:
    At line 39 of file "/Users/me/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    importPublishProfile: Argument number 1 is invalid.
    Is the file ObjectFindAndSelect.jsfl corrupted?
    thanks in advance,
    Sandra

    This question was also cross posted to a different forum category. If you choose to reply to this, please reply there.
    Click here to view the new thread.

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Satellite P300D-10v - Question about warranty

    HI EVERYBODY
    I have these overheating problems with my laptop Satellite P300D-10v.
    I did everything I could do to fix it without any success..
    I get the latest update of the bios from Toshiba. I cleaned my lap with compressed air first and then disassembled it all and cleaned it better.(it was really clean insight though...)
    BUT unfortunately the problem still exists...
    So i made a research on the internet and I found out that most of Toshiba owners have the same exactly problem with their laptop.
    Well i guess this is a Toshiba bug for many years now.
    Its a really nice lap, cool sound (the best in laptop ever) BUT......
    So I wanted to make a question. As i am still under warranty, can i return this laptop and get my money back or change it with a different one????
    If any body knows PLS let me know.
    chears
    Thanks in advance

    Hi
    I have already found you other threads.
    Regarding the warranty question;
    If there is something wrong with the hardware then the ASP in your country should be able to help you.
    The warranty should cover every reparation or replacement.
    But I read that you have disasembled the laptop at your own hand... hmmm if you have disasembled the notebook then your warrany is not valid anymore :(
    I think this should be clear for you that you can lose the warrany if you disasemble the laptop!
    By the way: you have to speak with the notebook dealer where you have purchased this notebook if you want to return the notebook
    The Toshiba ASP can repair and fix the notebook but you will not get money from ASP.
    Greets

  • Question regarding NULL and forms

    Hi all, i have a survey that im working on that will be sent via email.
    I'm having an issue though. if i have a multiple choice question, and the user only selects one of the choices, all the unselected choices return as NULL. is there a way i can filter out anytihng that says "NULL" so it only shows the selected options?
    thanks.
    here is the page that retrieves all the data. thanks
    <body>
    <p>1) Is this your first visit to xxxxxxx? <b><%=request.getParameter("stepone") %></b>
    </p>
    <p> </p>
    <p>2) How did You Learn About xxxxxxx?</p>
    <p><b><%=request.getParameter("steptwoOne") %></b>
      <br>
        <b><%=request.getParameter("steptwoTwo") %></b>
      <br>
        <b><%=request.getParameter("steptwoThree") %></b>
      <br>
        <b><%=request.getParameter("steptwoFour") %></b>
      <br>
        <b><%=request.getParameter("steptwoOther") %></b>
    </p>
    <p> </p>
    <p>3) What was your main reason for visiting xxxxx?</p>
    <p><b><%=request.getParameter("stepthreeOne") %></b>
        <br>
          <b><%=request.getParameter("stepthreeTwo") %></b>
        <br>
          <b><%=request.getParameter("stepthreeThree") %></b>
        <br>
          <b><%=request.getParameter("stepthreeFour") %></b>
        <br>
          <b><%=request.getParameter("stepthreeOther") %></b>
    </p>
    <p>4) did you find the information you were looking for on this site?</p>
    <p><b><%=request.getParameter("stepfour") %>
    <br>
    <b><%=request.getParameter("stepfourOther") %></b>
    </b></p>
    <p>5) Do you plan on using this website in the future?</p>
    <p><b><%=request.getParameter("stepfive") %></b></p>
    <p>6) What is your gender</p>
    <p><b><%=request.getParameter("stepsix") %></b></p>
    <p>7) What is your age group</p>
    <p><b><%=request.getParameter("stepseven") %></b></p>
    8) Would you like to take a moment and tell us how we can improve your experience on xxxxxxxxxx?
    <p><b><%=request.getParameter("stepeightFeedback") %></b></p>

    i was messing around and came up with this. it doesnt remove the null, but if it is null it adds ABC beside it. so i think i might be getting close. i just need to figure out how to replace the null.
    code]
    <b><%=request.getParameter("steptwoFour") %></b>
         <% if (request.getParameter("steptwoFour") == null ) {
         %>
         <% out.print("abc"); %>
         <% }
         %>

Maybe you are looking for

  • Upload file with special character in ECC 6.0?

    Dear All, Does anyone know that in ECC6.0 unicode environment, can we upload special character like eg ¢, ©, É. It's ok in 4.6c version but not in ECC 6.0. Any idea ? Thanks

  • Anything I should be worried about when installing Windows XP via Bootcamp?

    Are there any common problems I might experience? It is a 100% legit key of Windows XP. I really don't want to ruin my macbook considering it took me a long time to save up my allowance for it. Will my mac still be under warranty if I install Windows

  • Who Backs Up the Backup?

    I got caught in this loop during the 2.0.1 restore process, and risked overwriting my existing backups. Where exactly iTunes does iTunes store the backups it makes of your iPhone (so as to back up the backup of the iPhone.) It doesn't appear to be in

  • Have changed password.  Still can't download as it will not let me get past the Name/password screen.

    I have gone through all of the hoops to download the latest Adobe Flash, but can't do it. I have gotten the emails.  Changed my password, but still can't download. My name comes up when I go to open to install, but maybe that is incorrect. However, I

  • Can't enter safe mode in XP

    Im5tryingtoenter safe mode on an older Toshiba Satellite A105 laptop, model no. PSAU-813000. I re had reinstalled the XP OS earlier this year and the computer appeared to run as new.however, I never tried safe mode after the installation. I'm trying