|
-
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 ?
-
Monkey Moderator
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?
-
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.
-
Monkey Moderator
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|