+ Reply to Thread
Results 1 to 3 of 3

Thread: above frame 10

  1. #1
    bunglebrown is offline x10 Sophmore bunglebrown is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    157

    Question above frame 10

    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="http://download.macromedia.com/pub/s...rsion=9,0,28,0" 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="http://www.macromedia.com/go/getflashplayer" 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();
    }

  2. #2
    Nathan H is offline x10 Elder Nathan H is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    562

    Re: above frame 10

    have you tried using the hexidecimal rather than denary counting system, is A instead of 10 B instead of 11 etc
    Nathan H Formerly UnFoundBug



    http://www.theadmin.co.uk - Yes i know the colours don't go, I'm working on it.

    VPS Admin | x10-commandments

    So thats where it went! I thought i was losing my mind.

  3. #3
    bunglebrown is offline x10 Sophmore bunglebrown is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    157

    Red face Re: above frame 10

    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.

+ Reply to Thread

Similar Threads

  1. Vista windows frame
    By galaxyAbstractor in forum The Marketplace
    Replies: 0
    Last Post: 06-13-2008, 04:23 PM
  2. Ad Issue (Putting it in a seperate frame?)
    By MistaC87 in forum Free Hosting
    Replies: 3
    Last Post: 01-03-2008, 01:24 AM
  3. a site without frames and a site with frame
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 18
    Last Post: 12-31-2007, 02:20 PM
  4. having trouble with php in a frame set
    By oregonsv in forum Programming Help
    Replies: 4
    Last Post: 12-19-2007, 02:39 PM
  5. Javascript + CSS Frame = PAIN.
    By DecemberGuild in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 11-07-2006, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers