above frame 10

bunglebrown

New Member
Messages
157
Reaction score
0
Points
0
I have an animation that is triggered outside of flash. I want certain images (outside of flash) to trigger certain frames but currently can only get it to jump to frames below 10 for some reason. If anyone can tell me why and how I get around this I will be truly grateful. And please be gentle - it might look like I know what I'm doing but I've still got my L-plates on.

Here is a test page:
http://webvertising4free.com/MFPOI/FlashTEST.html

As you can see we have the 'play' which starts the animation from wherever it currently is, 'play frame 5' which jumps to frame 5 and starts playing and 'play frame 11' which just doesn't work even though I have used the same form of coding.

Here is the JS file:

movie1.js
Code:
function RunMovie()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="[URL]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0[/URL]" id="FrameCount" width="400"  height="550">\n');
   document.write('<param name="FrameCount" value="FrameCount.swf">\n');
   document.write('<param name="quality" value="high">\n');
   document.write('<param name="wmode" value="transparent">\n');
   document.write('<embed type="application/x-shockwave-flash" pluginspage="[URL]http://www.macromedia.com/go/getflashplayer[/URL]" name="FrameCount" width="400" height="550" src="FrameCount.swf" quality="high" wmode="transparent" swliveconnect="true" allowscriptaccess="samedomain"></embed>\n');
   document.write('</object>\n');
}
function getFlashMovieObject(FrameCount)
{
  if (window.document[FrameCount]) 
  {
    return window.document[FrameCount];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[FrameCount])
      return document.embeds[FrameCount]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(FrameCount);
  }
}
function PlayFlashMovie()
{
 var flashMovie=getFlashMovieObject("FrameCount");
 flashMovie.Play();
}
function Frame5FlashMovie()
{
 var flashMovie=getFlashMovieObject("FrameCount");
 // 4 is the index of the property for _currentFrame
 var currentFrame=flashMovie.TGetProperty("/", 4);
 var Frame5=parseInt(currentFrame);
 if (Frame5>=1)
  Frame5=5;
 flashMovie.GotoFrame(Frame5);
 flashMovie.Play();
}
function Frame11FlashMovie()
{
 var flashMovie=getFlashMovieObject("FrameCount");
 // 10 is the index of the property for _currentFrame
 var currentFrame=flashMovie.TGetProperty("/", 10);
 var Frame11=parseInt(currentFrame);
 if (Frame11>=1)
  Frame11=11;
 flashMovie.GotoFrame(Frame11);
 flashMovie.Play();
}
 

Nathan H

New Member
Messages
562
Reaction score
0
Points
0
have you tried using the hexidecimal rather than denary counting system, is A instead of 10 B instead of 11 etc
 

bunglebrown

New Member
Messages
157
Reaction score
0
Points
0
Never heard of it but I did try it (with the code being altered as shown below) - no luck I'm afraid. {also wondering where you would go from Z [frame 36] with that system}

Code:
function Frame11FlashMovie()
{
 var flashMovie=getFlashMovieObject("FrameCount");
 // 10 is the index of the property for _currentFrame
 var currentFrame=flashMovie.TGetProperty("/", A);
 var Frame11=parseInt(currentFrame);
 if (Frame11>=1)
  Frame11=B;
 flashMovie.GotoFrame(Frame11);
 flashMovie.Play();
}

Someone must have experience of this, please step forward.
 
Top