Groups | Blog | Home
all groups > flash actionscript > february 2005 >

flash actionscript : #!#*#! Why can't I pass this Javascript to my page from Flash???


ShootingStar
2/12/2005 4:49:04 PM
Greetings: I sure can't figure out why this is not working. I can get this to
work when I put the command on an anchor tag on the page but just can't get
this passed out of Flash. HELP GREATLY APPRECIATED! What I want to do is cause
a timeline playing on the page to skip to the end. Here is what I coded on my
Flash button: on (release, keyPress '<Enter>') {
getURL('javascript:MM_timelineGoto('Timeline1','186')'); } I've double checked
all names and everything is correct. This also did work when placed on an
ahcnor tag in the page. Help greatly appreciated. Rip
David Powers
2/12/2005 9:34:31 PM
[quoted text, click to view]
:: getURL('javascript:MM_timelineGoto('Timeline1','186')'); } I've
:: double checked all names and everything is correct.

Double check the quotes.

getURL("javascript:MM_timelineGoto('Timeline1','186')");

Quotes must always be in matching pairs. Using single quotes throughout
breaks the code.

--
David Powers
*******************************************
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://computerbookshelf.com/php5flash/

AddThis Social Bookmark Button