Adobe Dreamweaver Forums



Last 10 THreads :         text justification (Last Post : forexsystemprofi - Replies : 6 - Views : 7 )           »          Web-tier compiler is not for production use (Last Post : puja mantri - Replies : 0 - Views : 1 )           »          call function, pass value, access variable in movieclipclass from main stage (Last Post : Joergen N - Replies : 1 - Views : 2 )           »          div tags (Last Post : malcster2 - Replies : 4 - Views : 5 )           »          Rate My Site Please (Last Post : Ian Edwards - Replies : 4 - Views : 5 )           »          Do you use Java Faces with Flex? (Last Post : SujitG - Replies : 1 - Views : 2 )           »          textinput highlight problem (Last Post : SujitG - Replies : 1 - Views : 2 )           »          flex version (Last Post : SujitG - Replies : 1 - Views : 2 )           »          WebHelp Compile Won't Display (Last Post : Colum McAndrew - Replies : 20 - Views : 21 )           »          Placing an image in each column in ColumnChart (Last Post : SujitG - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Authorware
 
Tags:



Reply
  #1 (permalink)  
Old 10-01-2008, 01:53 PM
MN_Mike
 
Posts: n/a
Diggs:
Default How do I get the library file name for a linked icon?

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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-01-2008, 01:53 PM
Mike Baker **Adobe Community Expert**
 
Posts: n/a
Diggs:
Default Re: How do I get the library file name for a linked icon?

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
>



Reply With Quote
  #3 (permalink)  
Old 10-01-2008, 01:53 PM
Mike Baker **Adobe Community Expert**
 
Posts: n/a
Diggs:
Default Re: How do I get the library file name for a linked icon?

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
>



Reply With Quote


  #4 (permalink)  
Old 10-01-2008, 01:53 PM
MN_Mike
 
Posts: n/a
Diggs:
Default Re: How do I get the library file name for a linkedicon?

Mike,

Thank you for your quick response. I used GetLibraryInfo() as you suggested.

Mike
Reply With Quote
  #5 (permalink)  
Old 10-01-2008, 01:53 PM
MN_Mike
 
Posts: n/a
Diggs:
Default Re: How do I get the library file name for a linkedicon?

Mike,

Thank you for your quick response. I used GetLibraryInfo() as you suggested.

Mike
Reply With Quote
  #6 (permalink)  
Old 10-01-2008, 01:53 PM
jetshing
 
Posts: n/a
Diggs:
Default Re: How do I get the library file name for a linkedicon?

A really prompt reply.Thanks.
Reply With Quote


  #7 (permalink)  
Old 10-01-2008, 01:53 PM
jetshing
 
Posts: n/a
Diggs:
Default Re: How do I get the library file name for a linkedicon?

A really prompt reply.Thanks.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk