Solved

TGoToFrame not working in Flash 3

Posted on 2000-05-16
12
251 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
[X]
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
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

690 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