Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: GotoFrame strangeness, please help!
From: Michael Geary
Date: Thu, 9 Dec 1999 16:57:29 GMT

Hi Gang,

strange problem here. I've got flash file which is being sent to
particular frames based on cookie information retrieved by Javascript.
Because we need to ensure that the frame in question has been loaded, the
flash file has a preloader scene, which waits until the entire movie is
loaded before retrieving the cookie information.

All that seems to work just fine. However, upon receving the GotoFrame
command from the browser, we frequently get either a blank screen, or,
even more strangely, a partially drawn screen in our flash file.

If the user option/right clicks on the file and selects "Rewind", the
piece performs correctly, but for some reason, it is stalling at this
strange in-between state.

Here is the Javascript function issuing the GotoFrame:


function showIt(targetFrame)
{
var theFlash = document.embeds[0];
if(!theFlash)
theFlash = document.accessorize_new;

//alert("targeting " + targetFrame);

//setTimeout('TestIt()',5000);
//alert(theFlash);

theFlash.GotoFrame(targetFrame);
}


...here is the simplified Javascript catching the FScommand:


function accessorize_new_DoFSCommand(command, color)
{

//alert("starting")


if(command == "getColor")
{
var frame = 25;


setTimeout('showIt(' + frame + ')', 500)
}
}


...and here is the Flash instance of FScommand:

FS Command ("getColor", "")


The strange thing is, if we turn on the alert in the showIt function,
telling us what frame it is going to, the whole thing works. Can anyone
offer any insights?

Thanks a bunch in advance,

Michael Geary




Michael Geary
Multimedia Developer

Network Publishing / Intelligroup
(801) 377-7928 x143
mgearyatnetpub [dot] com



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]