Solved

TGoToFrame not working in Flash 3

Posted on 2000-05-16
12
243 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now