A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: JSFL : It seems I found a bug

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    19

    Exclamation JSFL : It seems I found a bug

    Hello,

    It seems I found a bug with JSFL in Flash 8.

    Create a document. Import a bitmap in the library.

    Execute this JSFL script :

    Code:
    fl.getDocumentDOM().library.items[0].linkageExportForAS = true;
    fl.getDocumentDOM().library.items[0].linkageIdentifier = "test";
    The bitmap has still no linkage name and no "Export for As" checked

    Someone has experienced the same result ?

  2. #2
    Monkey Moderator Lexicon's Avatar
    Join Date
    Jul 2001
    Location
    UK
    Posts
    2,038
    The commands work, the library items are just not being updated on screen.
    (if you actually check the linkage of the item you will see it has worked, and then by closing the linkage dialog the library item will be updated on screen).

    So you can run commands like this to make them update on screen automatically...


    Code:
    fl.getDocumentDOM().library.items[0].linkageExportForAS = true;
    fl.getDocumentDOM().library.items[0].linkageIdentifier = "test";
    
    fl.getDocumentDOM().library.selectAll();
    fl.getDocumentDOM().library.updateItem();
    www.lexicon-design.co.uk
    If we aren't supposed to eat animals, then why are they made of meat?
    If Vegetarians like animals so much, why do they eat all their food?

  3. #3
    Junior Member
    Join Date
    Oct 2005
    Posts
    19
    No, it didn't work.

    I known the refresh problem. It seems you test to link a Symbol like MC...

    But if you try to give a linkage to a bitmap, it's impossible.

    Run your JSFL script and go see the "Linkage..." property of the item

    Nothing happens.

  4. #4
    Monkey Moderator Lexicon's Avatar
    Join Date
    Jul 2001
    Location
    UK
    Posts
    2,038
    you're right it doesn't work for bitmaps unless that bitmap already has a linkage name set, in which case it does seem to work.

    Perhaps you should talk to Macromedia about that one.
    www.lexicon-design.co.uk
    If we aren't supposed to eat animals, then why are they made of meat?
    If Vegetarians like animals so much, why do they eat all their food?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center