From: Ross FT on
Hi all,

Is it possible to navigate to a specific icon using the GoTo(IconID@"IconTitle") replacing "IconTitle" with a variable that has captured the icon title to go to?

Thanks

R
From: Mike Baker **Adobe Community Expert** on
Yes you can do that with something like this
TargetIcon := "The Icon I want"
Goto(@(TargetIcon))

Or you can assign an icon id to the variable
TargetIcon := IconId("The Icon I want")
Goto(@(TargetIcon))

If you name an icon "67275" and there is an icon with id of 67275 then you
can't tell where it might go.

HOWERVER
Even though it's possible, you really ought to steer clear of using Goto. It
can make programs very difficult to trace, troubleshoot, maintain, etc. You
can check the history in the newsgroups to see discussion on the topic.

HTH,
Mike
====================
Mike Baker
Adobe Community Expert
mike-baker(a)cox.net


"Ross FT" <webforumsuser(a)macromedia.com> wrote in message
news:fd1mkp$2b7$1(a)forums.macromedia.com...
> Hi all,
>
> Is it possible to navigate to a specific icon using the
GoTo(IconID@"IconTitle") replacing "IconTitle" with a variable that has
captured the icon title to go to?
>
> Thanks
>
> R


From: Amy Blankenship *AdobeCommunityExpert* on

"Ross FT" <webforumsuser(a)macromedia.com> wrote in message
news:fd1mkp$2b7$1(a)forums.macromedia.com...
> Hi all,
>
> Is it possible to navigate to a specific icon using the
> GoTo(IconID@"IconTitle") replacing "IconTitle" with a variable that has
> captured the icon title to go to?

Look at the calculated navigation type in the Navigation icon. Note that
the icon must be attached to a framework and have a unique title.

HTH;

Amy


From: Ross FT on
Sorry guys I still can't get it to work properly, I suspect it is my
explanation.

I am capturing icon titles using variables as they progress through the piece.
I wish to use this title with an incremented number to send them elsewhere if
a selection is chosen.
I use:

currentIcon := IconTitle to capture where they are,
i.e. The Current Value of currentIcon = "My Page"

When I use the GoTo(@(currentIcon) it goes nowhere
If I hard code GoTo(@("My Page") it works

I want to be able to use the variable to navigate not have to hard code the
title as this will change depending upon where they are in the piece.

Thanks for any help.

R



From: Amy Blankenship *AdobeCommunityExpert* on

"Ross FT" <webforumsuser(a)macromedia.com> wrote in message
news:fd2npl$45v$1(a)forums.macromedia.com...
> Sorry guys I still can't get it to work properly, I suspect it is my
> explanation.
>
> I am capturing icon titles using variables as they progress through the
> piece.
> I wish to use this title with an incremented number to send them elsewhere
> if
> a selection is chosen.
> I use:
>
> currentIcon := IconTitle to capture where they are,
> i.e. The Current Value of currentIcon = "My Page"
>
> When I use the GoTo(@(currentIcon) it goes nowhere
> If I hard code GoTo(@("My Page") it works
>
> I want to be able to use the variable to navigate not have to hard code
> the
> title as this will change depending upon where they are in the piece.

Use CurrentPageID AND A NAVIGATION ICON.