![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
Hello,
Using AW 7.02 I have a couple of library files, one contains graphics, the other audio. I am using a dive routine to run through the icons in the a7p file and if it is a sound icon that is "linked", I want to make sure that it is linked to the audio library file. What I am having a problem with is obtaining the linked filename. Is there an icon property that contains the linked info? I believe that there is, as when I right click on a sound icon which is linked to a library file, I noticed that I could select Library Links... from the pop up menu, and I found the following data: Library Link Name:1.3.1s Linked To:1.3.1s In Library:lessonAudio.a7l <<<----This is what I am interested in getting (if it is lessonGraphics.a7l then I want to warn the developer) A little test that I did with one audio icon in the flow line just prior to the calc contents below: T_Str := GetIconContents(IconPrev(IconID)) -- produced:[[#type:#linkedIcon, #iconID:262168]] if T_Str[1, #type] = #linkedIcon then T_Str1 := GetIconContents(T_Str[1,#iconID]) -- produced:[[#type:#sound, #filename:"", #storage:#internal, #format:"MP3"]] else T_Str1 := "Otherwise, something else." end if #filename above appears not to be the place to look as it may contain the actual pathname to the mp3 file, IF that info is still available. FYI, The audio in the library file is NOT linked externally. Thanks Mike |
| Sponsored Links |
|
|||
|
You can figure this out mathematically. ((Library number + 1) * 65536) + 7
will be the first icon number in the library. You can also use GetLibraryInfo which gives you information on the libraries including the root icon of each. So your icon 262168 will be in the 3rd library returned from GetLibraryInfo() Mike ==================== Mike Baker Adobe Community Expert mike-baker at cox dot net "MN_Mike" <webforumsuser@macromedia.com> wrote in message news:g9s2tg$8a$1@forums.macromedia.com... > Hello, > > Using AW 7.02 > > I have a couple of library files, one contains graphics, the other audio. I > am using a dive routine to run through the icons in the a7p file and if it is a > sound icon that is "linked", I want to make sure that it is linked to the audio > library file. What I am having a problem with is obtaining the linked > filename. > > Is there an icon property that contains the linked info? I believe that there > is, as when I right click on a sound icon which is linked to a library file, I > noticed that I could select Library Links... from the pop up menu, and I found > the following data: > > Library Link Name:1.3.1s > Linked To:1.3.1s > In Library:lessonAudio.a7l <<<----This is what I am interested in getting > (if it is lessonGraphics.a7l then I want to warn the developer) > > > A little test that I did with one audio icon in the flow line just prior to > the calc contents below: > > T_Str := GetIconContents(IconPrev(IconID)) -- > produced:[[#type:#linkedIcon, #iconID:262168]] > if T_Str[1, #type] = #linkedIcon then > T_Str1 := GetIconContents(T_Str[1,#iconID]) -- produced:[[#type:#sound, > #filename:"", #storage:#internal, #format:"MP3"]] > else > T_Str1 := "Otherwise, something else." > end if > > #filename above appears not to be the place to look as it may contain the > actual pathname to the mp3 file, IF that info is still available. > > FYI, The audio in the library file is NOT linked externally. > > > Thanks > > Mike > |
|
|||
|
You can figure this out mathematically. ((Library number + 1) * 65536) + 7
will be the first icon number in the library. You can also use GetLibraryInfo which gives you information on the libraries including the root icon of each. So your icon 262168 will be in the 3rd library returned from GetLibraryInfo() Mike ==================== Mike Baker Adobe Community Expert mike-baker at cox dot net "MN_Mike" <webforumsuser@macromedia.com> wrote in message news:g9s2tg$8a$1@forums.macromedia.com... > Hello, > > Using AW 7.02 > > I have a couple of library files, one contains graphics, the other audio. I > am using a dive routine to run through the icons in the a7p file and if it is a > sound icon that is "linked", I want to make sure that it is linked to the audio > library file. What I am having a problem with is obtaining the linked > filename. > > Is there an icon property that contains the linked info? I believe that there > is, as when I right click on a sound icon which is linked to a library file, I > noticed that I could select Library Links... from the pop up menu, and I found > the following data: > > Library Link Name:1.3.1s > Linked To:1.3.1s > In Library:lessonAudio.a7l <<<----This is what I am interested in getting > (if it is lessonGraphics.a7l then I want to warn the developer) > > > A little test that I did with one audio icon in the flow line just prior to > the calc contents below: > > T_Str := GetIconContents(IconPrev(IconID)) -- > produced:[[#type:#linkedIcon, #iconID:262168]] > if T_Str[1, #type] = #linkedIcon then > T_Str1 := GetIconContents(T_Str[1,#iconID]) -- produced:[[#type:#sound, > #filename:"", #storage:#internal, #format:"MP3"]] > else > T_Str1 := "Otherwise, something else." > end if > > #filename above appears not to be the place to look as it may contain the > actual pathname to the mp3 file, IF that info is still available. > > FYI, The audio in the library file is NOT linked externally. > > > Thanks > > Mike > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise