Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breadcrumbs, leaving them in Flash? 1

Status
Not open for further replies.

Kirderf

Technical User
Oct 4, 2000
183
US
I wonder if the new FlashMX has a way of highlighting the navigation to tell the user where they are in the site.
I could create a series of similar flash movies with the differently highlighted navigations, but Is there a better way...?(hard way)
How about saving a variable created when the user clicks a nqavigation link and then reloading it when the new page loads. the variable would be used to send the user to a defined place on the timeline.(cool way)

I just don't have the experience that would tell me it can't be done. Am I barking up the wrong tree?

Thanks

I'd gladly pay you on Thursday
for a hamburger today!
 
Why have several pages, when the whole thing can be contained in one main movie interface, loading other sections (external .swfs) upon request?

You could also open new windows for other external html pages, if needed.

Regards,

cubalibre2.gif
 
I forgot to mention, the .swf is only the navigation.
(It was the best solution to allow users who turn javascripting off to have a pop-out subnavigation.)

The .swf is inside each html page and reloads with each new navigational click.

We don't have the whole site linked, but here is the first page mockup.
The flash is the left side navigation.

I'd gladly pay you on Thursday
for a hamburger today!
 
Thanks, OldNewbie!
I read the first link and have been able to set the variable from within the html page.(example below)

I am haveing a problem using the variable inside my flash file though. I think my syntax is wrong and I am not correctly defining my variable.


My first frame was an if statement.
if (text=hello) {
gotoAndPlay(2);
} else if (text=goodbye) {
gotoAndPlay(3);
}


Is there a way of defining the variable without changing the one the html page assigns?

FYI: I am defining the variable from within the html page by adding the variable ot the param name and embed src
?text=hello
here:
<param name=&quot;movie&quot; value=&quot;breadcrumbs.swf?text=hello&quot;>
<param name=&quot;quality&quot; value=&quot;high&quot;>
<embed src=&quot;breadcrumbs.swf?text=hello&quot;

I'd gladly pay you on Thursday
for a hamburger today!
 
An if statement does take 2 &quot;==&quot; and not one only. And in this case, think you should be using double quotes, although you could also try it as an integer value...

So probably something more like...

if (text==&quot;hello&quot;) {
gotoAndPlay(3);
} else if (text==&quot;goodbye&quot;) {
gotoAndPlay(4);
}

Furthermore there might be a delay reading the variable, so maybe add a second frame with...

gotoAndPlay(1);


Regards,

cubalibre2.gif
 
Perfect! It works like a charm.!!

Thanks again OldNewbie!

I'd gladly pay you on Thursday
for a hamburger today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top