Get Path from SWF

Hi,
I've found function drawPath() which allows to create different shapes from two vectors... the first with commands for drawing and the second with coordinates (http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Graphics.html#drawPath())
So can I get these vectors from some shapes back?
Actually, I need some solution for getting coordinates and commands from shapes which compiled as SWF.
I wish to use some shapes like patterns.. so I really need additional information about these objects... May be a possibility to convert SWF to svg or something another?
Thanks

There is no API for reading back the graphics that are drawn into a SWF.  Maybe someday.
It is possible to decode a SWF and see what its shapes contain, but that is a lot of work.  The SWF spec should be available on the internet.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • What is the best way to get PATHS from one Photoshop psd file to another?

    Hi! New on the site, and I signed up specifically to ask the best way to import one .psd file into another, including the paths on the paths palette.
    Almost all of my Photoshop drawings make heavy use of vector paths, which I then stroke using using PS natural-media brushes and the "stroke paths" function (usually with "simulate pressure" checked.) Also, my .psd files tend to be, um, HUGE... and I typically break up a whole drawing into separate PS files and then assemble all of them into one final finished graphic.
    I have no trouble moving raster stuff from file to file. Just put all the layers I want to transfer into a group and drag the group to the other .psd. Works fine, including layer masks. But I have not found a good way to get vector paths from the Paths palette of one .psd to another. Of course I can select paths and copy them to the Win clipboard, switch to the other .psd, and paste them back in. The drawback to that method is that I lose the correct size relation between the results of previously done "stroke paths" operations (on raster layers) and the paths that generated them. Sometimes the copied-in paths are way too large, sometimes way too small, never Just Right.
    As I'm sure most of you know, if you resize an entire Photoshop document from within PS, any paths it contains are correctly resized along with everything else. That's no longer true after grouped raster layers are dragged over to another document but paths are copied and pasted in. The size connection is lost. (Location placement, too.)
    I WANT those paths! After I bring a piece of a drawing into the full final drawing, what looked good when I was working on it separately often doesn't look right any longer and I want to re-stroke those paths using different brush diameter, opacity, etc., or maybe even a completely different brush.
    I've tried bring outside .psd files in as smart objects with the Place command but either that doesn't work or I'm not doing it right. Using Place, the paths in the Placed document don't come in at all.
    I'll be very grateful for any hints or strategies any of you knowledgeable folks can give me. Thanks very much!
    Jim
    Note, PS CS3 extended on Win 7 pro.

    Denny
    1. Connect the two macs - firewire, ethernet, sneakernet as suits you - and copy the iPhoto Library Folder from Old Machine to New Machine. Drag it from Home/Pictures to the same location on the new machine.
    2. Because all the files 'belong' to the account on the old machine, you have to update the file permissions: hence Download BatchMod from
    http://macchampion.com/arbysoft/
    And apply it to the iPhoto Library Folder using the settings found here:
    http://homepage.mac.com/toad.hall/.Pictures/Forum/BatChmod.png
    (Credit to Old Toad for this one).
    Note: This must be run on the new machine after copying the files over.
    3. Then launch iPhoto on the new machine.
    Regards
    TD

  • Getting path from file

    Good Morning,
    Is there a way to get a file path from a file without having to select it through client_get_file_name?
    for example i have a file 'test_01.txt' in C:/
    I cannot hard code the path as each day the txt name will change eg. 'test_02'.
    Is there another way to select the full path name in C:/ where file like 'test%'?
    Thank you in advance,
    D

    Sorry francois ill be a more clear
    On a variable i want to keep changing the path provided.
    For example one day will be var:='C:/Test_01'
    next day will be var:='C:/Test_03'
    as the last number is generated randomly im trying to figure a way to get the correct path in C:/ where the name corresponds to 'test' so i can pass it to my variable
    Edited by: 794018 on 18-Oct-2012 00:50

  • How can I get path from af: inputFile or a uploadedFile

    Hi, there,
    I am getting error messages while sending attachment.
    I firstly tired getting the attachment from <af:inputFile> and attach it to the email. It failed. Then I put the file name directly into my code, still choose the same file from the <af:inputFile>, it failed again. However, from the code you can see, I can get system out println to print the file name, even the file content.
    I realized that I might need the file path, but I don't konw how I do get the path, should I write code in the backing bean of uploadedFile or in the send() in the Application Module ? How can I get the path?
    any advice is welcome and thank you very much!
    The system.out.println result is
    08/05/09 11:56:38 2javax.activation.FileDataSource@1674b36
    08/05/09 11:56:38 2.1 jkljlj
    08/05/09 11:56:38 2.2New Text Document.txt
    But the error message still says :
    nested exception is:
    class javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    java.io.FileNotFoundException: New Text Document.txt (The system cannot find the file specified)
    Here is my code:
    ViewObject issueView = getIssueView1();
    Row x = issueView.getCurrentRow();
    String fileName = "New Text Document.txt";
    System.out.println("1 " + fileName);
    System.out.println("1.5 " + x.getAttribute("attachmentName"));
    // msg.setText(body);
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(body);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // String attachmentName = (String)x.getAttribute("attachmentName");
    //if (attachmentName != null) {
    MimeBodyPart mbp2 = new MimeBodyPart();
    DataSource source = new FileDataSource(fileName);
    System.out.println("2" + source);
    System.out.println("2.1 " + x.getAttribute("attachment"));
    mbp2.setDataHandler(new DataHandler(source));
    //mbp2.setFileName(source.getName());
    mbp2.setFileName(fileName);
    System.out.println("2.2" + fileName);
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    // send the message!
    getDBTransaction().commit();
    Transport.send(msg);
    System.out.println("\nMail was sent successfully.");
    } catch (Exception e) {
    System.out.println("Error: " + e.getMessage());
    }

    I wish you and others like you would say what you are trying to do, not how you are trying to do it. That would save those who would like to help the trouble of figuring it out. However, I'm going to make a guess at what you are doing. Tell me if I'm right.
    You are writing a page that lets a user construct an e-mail message. I assume that the page has fields like: addressee, subject, and message. It also has a field, defined as an <af:inputFile> component for getting a file to be added as an attachment to the e-mail.
    You will want to look at forum posts and tutorials about how to upload a file. You will see that the "value" attribute of an <af:inputFile> will normally contain EL referencing a property of a backing bean which has the UploadedFile class. This class has methods for getting the filename, MIME content type, and an InputStream containing the data in the uploaded file. These pieces of information are all you need to add an attachment to an e-mail. You don't need the file's path, which is a good thing, since that information is not available to you.
    I've never used Javamail, so I can't tell you exactly how to use it, but I do understand the basics of sending e-mail. What you are going to do is create a multi-part message. The first part will be the message itself. Subsequent parts are the attachments. Each attachment can have it's filename and MIME content type set. Then you read the file through it's InputStream and write it to the message content. If the file contains binary data, you will need to pass it through a filter that will encode it to the Base64 format - which represents your data as 7 bit bytes.
    You will NOT be using the database connection or anything from the data controls to send an e-mail, unless you also need to save a copy to the database. The connection that is needed for e-mail is a connection to an SMTP service. Ask your e-mail administrator for some help with this.
    You MIGHT want to write most of this code in your Model project as a business component. Then your backing bean would probably just pass the fields as parameters.

  • [CS4] How to get path from SPPlatformFileSpecification on mac ?

    Hi all,
    sADMBasic->StandardGetDirectoryDialog() return the directory selected by user in SPPlatformFileSpecification type variable.
      when I select the any directory i.e desktop SPPlatformFileSpecification  structure contains the following  values--
    short vRefNum =  -100
    long parID        =   371658
    unsigned char name[64] = '\0'
    is there any API or alternatives which give the path as char or string like -  "/Users/User1/Desktop" from these values?
    thanks
    D.A

    Try this:
    SPPlatformFileSpecification spec;
    // do sADMBasic->StandardGetDirectoryDialog()
    ai::FilePath path;
    sAIFilePath->SetFromSPFileSpec(spec, path);
    Then talk to path to get your location. Hopefully that does the job. I've never used StandardGetDirectoryDialog() though, so for all I know its broken.

  • Get path from string in an column

    I have an data with text and url. I need to seprate the url only in the column and display in sql query
    Need to get data after Url: and the next immediate " " {blank space}
    my data is like below
    seach engine Url: www.bing.com this is the world famous search enging
    mail box Url: www.hotmail.com email is free
    microsoft webstie Url: http:\\microsoft.com the home page of microsoft.
    ShanmugaRaj

    Try the below:
    Create table Test_Shan(Textstring Varchar(1000))
    Insert into Test_Shan Values ('seach engine Url: www.bing.com this is the world famous search enging'),
    ('mail box Url: www.hotmail.com email is free'),
    ('microsoft webstie Url: http:\\microsoft.com the home page of microsoft.')
    Select substring(LTRIM(stuff(Textstring,1,CHARINDEX('Url:',Textstring)+4,' ')),0,charindex(' ',LTRIM(stuff(Textstring,1,CHARINDEX('Url: ',Textstring)+4,' ')),0))
    From Test_Shan

  • Air Javascript - Get path from user selected directory

    Solution: The resulting variable is just an air.File, and
    nativePath is accessible, as I expected. It just did nothing the
    first few times I tried it.

    Try this:
    SPPlatformFileSpecification spec;
    // do sADMBasic->StandardGetDirectoryDialog()
    ai::FilePath path;
    sAIFilePath->SetFromSPFileSpec(spec, path);
    Then talk to path to get your location. Hopefully that does the job. I've never used StandardGetDirectoryDialog() though, so for all I know its broken.

  • Get path to nodes by value

    Can enybody please help me. I don't know really how to get path from xml
    for example, this is xml:
    <?xml version="1.0"?>
    <purchase_order>
    <po_items>
    <item>
    <name>#Name#</name>
    <quantity>#number#</quantity>
    </item>
    </po_items>
    </purchase_order>
    and get out path by variebles #Name# and #number#.
    In this case i need to get result:
    purchase_order/po_items/item/name
    and
    purchase_order/po_items/item/quantity

    Pitty you did not mention your db version.
    putting together some functions from FunctX one can write
    SQL> with t as (
    select xmltype('<?xml version="1.0"?>
    <purchase_order>
    <po_items>
    <item>
    <name>#Name#</name>
    <quantity>#number#</quantity>
    </item>
    </po_items>
    </purchase_order>') xml from dual
    select x.*
      from t t,
      xmltable('declare function local:index-of-node  ( $nodes as node()* ,  $nodeToFind as node() )  as xs:integer*
                       for $seq in (1 to count($nodes))  return $seq[$nodes[$seq] is $nodeToFind]
                   declare function local:path-to-node-with-pos  ( $node as node()? )  as xs:string
                       fn:string-join( for $ancestor in $node/ancestor-or-self::*
                                              let $sibsOfSameName := $ancestor/../*[fn:name() = fn:name($ancestor)]
                                           return fn:concat(fn:name($ancestor),
                                                                   if (fn:count($sibsOfSameName) <= 1)
                                                                   then ""  else fn:concat( "[", local:index-of-node($sibsOfSameName,$ancestor),"]"))
               element e {local:path-to-node-with-pos(//item/name[. = "#Name#"]), element name {//name}},
               element e {local:path-to-node-with-pos(//item/quantity[. = "#number#"]), element name {//quantity}}'
               passing t.xml
               columns value varchar2(50) path 'name',
                            path varchar2(50) path 'text()'
               ) x
    VALUE      PATH                                   
    #Name#     purchase_order/po_items/item/name      
    #number#   purchase_order/po_items/item/quantity  
    2 rows selected.

  • How to get list of selected files from swf to javascript ?

    Hi everybody,
    i want to make an upload script with swf and javascript. I want to do selecting files via swf then uploading files to server via javascript. I have searched SWFupload plugins but they are not working as i need. I am new here and i do some search, i see it is possible to save list of selected files in FileReferenceList array, but i dont know if is it possible to pass this array into javascript and then make upload progress via javascript ?

    Hi,
    You will not be able to get the local file paths from FileReference due to flash security restrictions.
    Hence I think it is not possible to pass the file reference data to javascript and load the same.
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • Can I make path from images folder to swf folder?

    I am using Flash CS3 and Actionscript 2.0.
    I want to make a photo.jpg that is in my images folder load into a swf that is in a swf folder. It works fine when I have the photo.jpg in the same folder as the swf. But it does not work when I have the photo.jpg in a different folder.
    What must I do to the AS2 to make this happen?
    I really do apprecaite an anwer to resolve this issue.
    Here is the path:
    mcLoader.loadClip("swf/images/photo1.jpg",mcHolder);

    When you load those swf's into the main swf, they now live where it lives, and because the main swf is loaded into the html page, that's where it lives (whether it is in that folder in real life or not).  The files are essentially working someplace different from where they live.
    You don't have to move anything, but you do have to target everything properly, and for swf's that get placed in an html-based home, that html-based home defines root of the relative path the swf's need to use.
    I believe you have an html that embeds an swf file in the same folder, and that swf file loads swf files from a subfolder, let's say it's called swfFolder.  And I believe the images also lie in a parallel folder to the swf's subfolder.  Then if those subfolder swf's load images from that images folder, call it imagesFolder,, then the path in those swf's to target the images would change from ../imagesFolder/  to imagesFolder/ because when they are loaded into the main swf which is loaded into the html page's folder, they essentially exist in the html page's folder

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Trying to subtract a complex path from another, can't get the result I need

    I'd really appreciate some help on this. I'm not familiar with illustrator and am stuck trying to accomplish what I hope is an easy task. I've uploaded my .ai here just in case anyone can help.
    I have two layers, one is a collection of lines/paths which make up a line drawing of a tree, then the layer above that is a bunch of paths using a 'distressed' brush. I've read several tutorials on using the pathfinder tool to subtract one from the other but every time I'm left with way more of the tree deleted than I want. I tried a simple test case (subtracting a single distressed path from a rectangle shape) and it worked as expected. I don't know why this one isn't working other than maybe it's just too complex.
    On the left (tempoary red background) is what my layers look like, on the right is the effect I'm trying to achieve (the white parts removed from the black parts). I need this to end up being a vector so it can get cut out of a vinyl decal.
    Thanks a ton for any help, I'm really stuck on this as I spent 99% of my time in photoshop.

    That worked perfectly, thank you. I selected everything on the tree layer, made compound path, then did the same on the texture layer. Then the subtract worked great.
    Just so I understand what's going on here - make compound path means take all the selected stuff and make it into one single shape/path, vs. having a bunch of separate paths on the same layer?
    Really appreciate your help, thanks again.

  • Issue with Getting the file path from InputFile component

    Hi,
    One of our requirement is like below:
    I am working on ADF 11g (latest release R1) page. User will select the file and when he/she clicks on the Save button we need to store the file path in the database.
    In the database file_path is varchar2(300). We need to store just the file path. I am using InputFile component but filepath is not getting inserted.
    This is really urgent. It would be really appreciate if anyone can guide me on this.
    Thanks
    MC

    Hi Mahesh,
    I have manage to store the file path from the InputFile component in Jdev 11g. I found the file upload script from this forum and manage to alter it so that i could save the file path to the database. But my problem is to retrieve it back to view as a document. Hope this will help you :)
    This is an example of what I have manage to save to my DB :
    (CLOB) //192.168.238.53/c$/Research/Docs/0906160744/EyeCandyLog.txt
    In my form, I save the file path first before I update the other fields. My code is something like this :
    public void uploadFile(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    InputStream in;
    FileOutputStream out;
    if(tanda == 0){
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    id = rS01Proposal.dptProposalid();
    tanda = tanda + 1;
    System.out.println("tanda"+ tanda);
    } catch (Exception ex) {
    ex.printStackTrace();
    System.out.println("id"+id);
    proposal = id.substring(6);
    System.out.println("proposal"+proposal);
    UploadedFile file = (UploadedFile)valueChangeEvent.getNewValue();
    String fileUploadLoc = "//192.168.238.53/c$/Research/Docs/"+id+"/";//The place where file will saved
    //create upload directory
    boolean exists = (new File(fileUploadLoc)).exists();
    if (!exists) {
    (new File(fileUploadLoc)).mkdirs();
    if (file != null && file.getLength() > 0) {
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage("File Uploaded " + file.getFilename() +
    " (" + file.getLength() + " bytes)");
    *// extracting the file message to get the path*
    context.addMessage(valueChangeEvent.getComponent().getClientId(context), message);
    columnL = valueChangeEvent.getComponent().getClientId(context);
    column = columnL.substring(9);
    System.out.println(column);
    columnLengkap = "RS01"+column.toUpperCase();
    System.out.println("columnLengkap"+columnLengkap);
    *try {*
    out = new FileOutputStream(fileUploadLoc + "" + file.getFilename());
    in = file.getInputStream();
    *for (int bytes = 0; bytes < file.getLength(); bytes++) {*
    out.write(in.read());
    in.close();
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    } else {
    String filename = file != null ? file.getFilename() : null;
    String byteLength = file != null ? "" + file.getLength() : "0";
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message =
    new FacesMessage(FacesMessage.SEVERITY_WARN, " " + " " +
    filename + " (" + byteLength + " bytes)",
    null);
    context.addMessage(valueChangeEvent.getComponent().getClientId(context),
    message);
    System.out.println(fileUploadLoc+file.getFilename());
    a = fileUploadLoc+file.getFilename();
    b = b + 1;
    if (flagInsert == 0){
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    rS01Proposal.insertDoc(id,proposal,columnLengkap,a);
    flagInsert = flagInsert + 1;
    System.out.println("tanda"+ tanda);
    //session
    ProposalSession.storeCurrentProposalId(id);
    } catch (Exception ex) {
    ex.printStackTrace();
    }else{
    // update proses
    try {
    // final Context context = getInitialContext();
    RS01Proposal rS01Proposal = (RS01Proposal)new InitialContext().lookup("Phase2-RS01Proposal#sr.model.RS01Proposal");
    rS01Proposal.updateDoc(id,proposal,columnLengkap,a);
    flagInsert = flagInsert + 1;
    //session
    ProposalSession.storeCurrentProposalId(id);
    System.out.println("tanda"+ tanda);
    } catch (Exception ex) {
    ex.printStackTrace();
    }

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • SWF-file not getting info from UI

    Hi All,
    I have a dialog that loads a flash-file. This swf-file gets info from my dialog and puts it in a datagrid.
    It works well, untill i try it the script on an other computer. The swf-file loads but is not receiving any information given through the UI.
    Is it a matter of installing extra options/software on the other pc?
    My computer (the script works) is a Windows XP with Adobe Design Premium.
    The other computer is also a Windows XP with indesign and flash player installed.
    Is there anyone who has an idea?
    THANKS
    Greetz,
    Glen

    Ok, i have the answer to my own question.
    I forgot that i had to change the settings in the settings manager of the flash player.

Maybe you are looking for

  • Error in Change Log of Sales Documents

    When i try to see the Change Log of sales document (Tools> Change Log) I get an error message No matching records found " (ADOC)(ODBC - 2028) [Message 131-183] What can it be ?

  • Non-english site

    hi! how can i make sure muse is going to correctly encode foreign languages in my site?

  • MainStage 3.1 released

    http://support.apple.com/en-us/HT200269 MainStage 3.1 MainStage 3.1 includes the following changes. For more information, see www.apple.com/logicpro/mainstage. New Features and Enhancements Redesigned Compressor plug-in with scalable, Retina-ready in

  • 20" ACD brightness / Eye-One 2 problem

    So I go to do my normal calibration with my Eye-One Display 2 on my 20" ACD and it goes fine, although I am surprised to see that the brightness level has fallen to like, 75cd/m2. So I turn up the brightness to 120, calibrate. Fine. Then I go to do a

  • Oracle APPS Field Tab issue

    Hi, I am working in Oracle APPS 11i. In the inventory module a user have entered the values of all inv category flexfield segments.One category segment OTHERS has a problem in some of its values. When I tried to enter the category codes records, in t