主题:  flashmx粘贴外部library文件时的问题--难!

5DFlash Designer

职务:版主
等级:3
金币:10.0
发贴:1306
#12002/6/30 15:57:46
flashmx在粘贴外部library文件时,假如外部库文件名与现有库文件名相同的话,就会替换现有库中的文件,或者用现有库文件中的文件替换外部的文件。不象5里面可以进行自动命名分开来使用,老早就感觉到这个麻烦了,查帮助文件,居然5里面可以达到的功能mx里面达不到了,难道还要我在粘贴外部库文件前在外部库文件中改名吗?真是!@#%@#$%!
帮助文件中相关陈述如下,大家探讨一下如何可以象5里面那样使用。
Resolving conflicts between library assets

If you import or copy a library asset into a movie that already contains a different asset of the same name, you can choose whether to replace the existing item with the new item. This option is available with all the methods for importing or copying library assets, including:

Copying and pasting an asset from a source movie

Dragging an asset from a source movie or a source movie library

Importing an asset

Adding a shared library asset from a source movie

Using a component from the components panel


The Resolve Library Items dialog box appears when you attempt to place items that conflict with existing items in a movie. A conflict exists when you copy an item from a source movie that already exists in the destination movie and the items have different modification dates. You can avoid having naming conflicts by organizing your assets inside folders in your movie's library. The dialog box also appears when you paste a symbol or component into your movie's Stage and you already have a copy of the symbol or component that has a different modification date from the one you're pasting.

If you choose not to replace the existing items, Flash attempts to use the existing item instead of the conflicting item that you are pasting. For example, if you copy a symbol named Symbol 1 and paste the copy into the stage of a movie that already contains a symbol named Symbol 1, an instance of the existing Symbol 1 is created.

If you choose to replace the existing items, the existing items (and all their instances) are replaced with the new items of the same name. If you cancel the Import or Copy operation, the operation is canceled for all items (not just those items that conflict in the destination movie).

Only identical library item types may be replaced with each other. That is, you cannot replace a sound named Test with a bitmap named Test. In such cases, the new items are added to the library with the word Copy appended to the name.

Note: Replacing library items using this method is not undoable. Be sure to save a backup of your FLA file before performing complex paste operations that are resolved by replacing conflicting library items.


To resolve naming conflicts between library assets:



If the Resolve Library Conflict dialog box appears when you are importing or copying library assets into a movie, do one of the following:

Click Don't Replace Existing Items to preserve the existing assets in the destination movie.

Click Replace Existing Items to replace the existing assets and their instances with the new items of the same name.



5DFlash Designer

职务:版主
等级:3
金币:10.0
发贴:1306
#22002/7/1 13:51:02
好像没人知道啊?



flashwoods

职务:普通成员
等级:1
金币:0.0
发贴:119
#32002/7/1 18:53:45
妈妈也~~~~~~~~~~~~~~~



5DFlash Designer

职务:版主
等级:3
金币:10.0
发贴:1306
#42002/7/2 10:09:32
flashwoods在上个帖子中说
引用:
妈妈也~~~~~~~~~~~~~~~

干吗呢?这其实是很普偏的问题,怎么会没人提出来问,也没人来讨论啊??



Snake_5d

职务:普通成员
等级:1
金币:0.0
发贴:3
#52002/7/2 13:08:29
FLASHMX中,如果粘贴外部组件,在当前库中有相同文件名时,会自动
弹出替换对话框,其实是更“人性化”的设计。两个选项,第一个时不替换当前组件(推荐),第二个时替换当前库中的同名文件,这样,往往会影响当前已经设定好的对象(我吃过苦头)。

我个人体会而已,不准确之处请大家指出!:)


今天你“[url=http://cartoon.163.com/subcategory/page0216.html]闪[/url]”了吗?

5DFlash Designer

职务:版主
等级:3
金币:10.0
发贴:1306
#62002/7/2 17:50:22
其实是更“人性化”的设计??
不至于吧,也许mm是要我们养成规范命名的好习惯哦,不过这也是够麻烦的啦
从帮助文件来看,是没办法解决了。大家好自为知,记住不断的绞尽脑汁给你成千上万的库文件命名吧,So crazy!!!!!!



Snake_5d

职务:普通成员
等级:1
金币:0.0
发贴:3
#72002/7/2 22:51:51
我现在一点儿也没有“命名”的习惯……

HOHO!~


今天你“[url=http://cartoon.163.com/subcategory/page0216.html]闪[/url]”了吗?