Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

TGoToFrame not working in Flash 3

Posted on 2000-05-16
12
249 Views
Last Modified: 2008-02-01
I have a function in JavaScript that helps me jump to specific Scenes and frames within my movie. This code was working fine when I tested it on the Flash 4 control, but when I tried it with the Flash 3 control it no longer works. This only has to be implemented in IE5, but it has to work with the Flash 3 control for at least the next three months. Any ideas why this would work with F4 but not F3.

var movie
function go(num)
{
if (qIndex<10){
      movie="Q0"+qIndex+"/"
}
else{
      movie="Q"+qIndex+"/"
}
      if(movie_ready == "false")
            {
                  while(movie_ready == "false")
                  {
                        if(movieobject(moviename).PercentLoaded() == 100)
                        {
                              movieobject(moviename).TGotoFrame("MC Master/",num);
                              movieobject(moviename).TPlay("MC Master/");
                              if (num==95){
                                    movieobject(moviename).TGotoFrame(movie,0);
                              }
                              movie_ready = "true";
                        }
                  }
            }
            
      else
      {
            movieobject(moviename).TGotoFrame("MC Master/",num);
            movieobject(moviename).TPlay("MC Master/");
            if (num==95){
                  movieobject(moviename).TGotoFrame(movie,0);
            }
      }
}

This function is used to control the display of certain remediation movies that are called based upon specific user responses in a quiz.

Thanks,
0
Comment
Question by:ematlack
12 Comments
 

Author Comment

by:ematlack
ID: 2817389
By the way, it was published in Flash 3.
0
 

Author Comment

by:ematlack
ID: 2817715
By the way, it was published in Flash 3.
0
 
LVL 3

Expert Comment

by:SuperMario
ID: 2819060
Review the JavaScript commands for a FlashAPI object in the Flash3 documentation. I know a lot of stuff like that changed over the versions...

-D
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:ematlack
ID: 2819128
According to tech note #13246 on Macromedia's supprt site, both of these methods are supported in Flash 3

TGotoFrame (String target, int frameNum)
 
TPlay (String target)

Is there another way to do this that you know is supported by Flash 3 that doesn't use TGotoFrame to access a frame within a speciic scene?
 
0
 

Author Comment

by:ematlack
ID: 2821751
Adjusted points from 50 to 200
0
 
LVL 7

Expert Comment

by:ssdesign
ID: 2830652
How are you calling this script from flash, are you using FSCommand?

If so then the script will not work because flash3 does not support FSCommand

Hope this should make things clear for you.
0
 
LVL 3

Expert Comment

by:SuperMario
ID: 2830770
Wrong!

Flash 3 supports FS Command in full. I know this because I've used it a *bunch* in the past. Flash 4 is just more stable.

-D
0
 

Author Comment

by:ematlack
ID: 2831177
No,

Besides SuperMario's accurate response, the problem is not in the communication between Flash and the page, but between the page and Flash.
0
 

Author Comment

by:ematlack
ID: 2831189
My current thiking is that there must be a syntax difference in the way Flash 3 and Flash 4 call instances from outside Flash. However, it is very difficult to difinitively prove this assumption. There seems precious little information published on advanced techniques for interacting with Flash objects in Javascript.
0
 
LVL 3

Expert Comment

by:SuperMario
ID: 2831211
Can you make javaScript interact with your Flash movie *at all* ? Do any commands work with your Flash 3 control?

-dan
0
 

Author Comment

by:ematlack
ID: 2831226
So far only PercentLoaded() is returning results.
0
 
LVL 2

Accepted Solution

by:
68k earned 200 total points
ID: 2839951
hello -

funny you should ask this question.

issue:
TGotoFrame and TPlay methods aren't working with the Flash 3 player.

reason:
bug.

you can try an experiment - view this page with the flash 3 player vs the flash 4 player - netscape or ie (pc) or netscape/mac - and you will see it work only with the f4 player.

this method is *supposed* to work with the flash 3 player, according to this technote:

http://www.macromedia.com/support/flash/ts/documents/f3_script_methods.htm

but they do not, at least as is.

other methods (such as PercentLoaded) and such do work, but the ones that use a target (movie clip) do not.

why should you believe me? it's my day job. ;>)

sorry, i can't believe we didn't know this didn't work before.

i've been told that it *may* be possible through the fscommand in flash. however, simple tests confirm that these above clearly don't work in the flash 3 player.

my test of this:
http://63.194.219.30/jstest.html

pretty simple demonstration.

unfortunately, this can't be fixed. the only solution is to view these pages with the flash 4 player. i realize that this will preclude designing for flash 3 users, but i don't know of any way around this.

if i can be of any more help, let me know by replying here.

68k

aka
matt wobensmith
macromedia tech support
"the flash team lead"

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question