Flash to HTML targets ?
- Started
- Last post
- 7 Responses
- CX
Do you see anything wrong with this code?
It's a map in Flash that jumps to the addresses with targets.
Here's an example of the code in Flash on the buttons:
on (press) {
getURL("javascript:jumpContent...
}Here is the function it calls at the top of the page:
The problem is it usually works fine but about every third button you click it goes to a blank page with javascript:jumpContent('japan') in the URL bar.
Anyone know why or have any solution?
- jkosoy0
I'd have to see your javascript, too. One thing I'd try is to use expressions instead of strings. Instead of 'japan', 'china', 'usa', or whatever, use 1, 2, 3, 4.
why not on(release)?
- CX0
I'd have to see your javascript, too.
--------------
I posted it in my original post. It's only a few lines.
--------------One thing I'd try is to use expressions instead of strings. Instead of 'japan', 'china', 'usa', or whatever, use 1, 2, 3, 4.
--------------
Yeah, I could try that.
--------------why not on(release)?
-------------
I don't know. I didn't think there was much of a difference.
-------------
- CX0
bump
- wideye0
heya.
Your javascript isn't in your last post. Take another look.
I've had some strange things happen with that method of calling javascript from Flash MX (haven't tested 2004). You might try the rather less elegant fscommand to call a function, if nobody can figure out the problem.
Rob of Wideye
http://wideyegroup.com
- jkosoy0
I just suggest on(release) as a side note cuz it gives the user the option to change their mind. Y'know, you ever click a link and then been like "Whoooaaaa don't wanna do that." on(press) is just slightly less functional in that respect. But no big deal. :)
Good call on the fscommand. It will probably work better. I remember reading that while its depreciated code, its far more stable.
Give that a shot.
- CX0
OK. Thats cool, good ideas. I didn't realize the JS didn't show up. How do you make it show up in a post? Comment it out? I try those and post the results if it works.
- jkosoy0
hmmm...I dunno. maybe post it as a text file on a server somewhere and just link us up?