activating flash outside of flash

bunglebrown

New Member
Messages
157
Reaction score
0
Points
0
wondering if there is anyway to activate a flash animation with a regular image (outside of flash) so that when you press on the image the animation will begin?
 

Nathan H

New Member
Messages
562
Reaction score
0
Points
0
well, you might be able to use javascript to force the flash to play, but i have never attempted such a thing.
 

Nathan H

New Member
Messages
562
Reaction score
0
Points
0
another alternative, is to have a script re-write a div. for example have the first frame as an image, then onclick change to the flash object
 

bunglebrown

New Member
Messages
157
Reaction score
0
Points
0
sorry - how would I go about doing all that?

That sounds like it could be the one!
 

bunglebrown

New Member
Messages
157
Reaction score
0
Points
0
port5900 that was an extremely useful link - thanks so much!!

Only one thing really I want to jump to different frames within the flash animation, i.e. certain buttons trigger the animation from various places. Any further insights??
 

Nathan H

New Member
Messages
562
Reaction score
0
Points
0
Well, you *could* do one of two things as far as i can think of

1) split the animation up into seperate files, and get them to load eachother

2) in the flash animation, get it to read a text file at regular intervals (say every second) then use JS or some other method (maybe php) to change this text file. You could use the text file as an interface between js and flash
 

bunglebrown

New Member
Messages
157
Reaction score
0
Points
0
thanks

to jump to certain frames I used this:


Code:
function Jumptoframe50()
{
 var flashMovie=getFlashMovieObject("moviename");
 var currentFrame=flashMovie.TGetProperty("/", 1);
 var Frame50=parseInt(currentFrame);
 if (Frame50>=0)
  Frame2=50;
 flashMovie.GotoFrame(Frame50);
 flashMovie.Play();
}
 
Top