[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

From Flash 4 movie to plain HTML page ...

Hello,

I have a frameset which defines the boundaries of the First frame:

|         |         |
| Frame 1 | Frame 2 |
---------------------
       Frame 3
---------------------

Frame 2 & 3 points to the same HTML with a specific grid pattern. Nothing special.

Frame 1 points to Flash.htm (containing a flash movie (stackable with 5 movie layers)) and fits in pixels exac between Frame 2 and 3.

Now I want to quit the Movie by invoking the FS-Command wich triggers JAVA scripting for starting MenuBar.htm in frame 1. (MenuBar.htm is in fact a frameset -> gives me a frameset in another frameset).

Who can help me program that Java Code ?

Can I have the Framset code (from MenuBar.htm) also have in the Flash.Htm code ? (like giving a wait gif picture that will be overrided by the finally gif picture ?)


Content of Flash.htm:
---------------------------------------
<!DOCTYPE HTML PUBLIC "-//SoftQuad//DTD HoTMetaL PRO 5.0::19980907::extensions to HTML 4.0//EN" "hmpro5.dtd">
 
<HTML>
 
<HEAD>
<TITLE>Untitled Document</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<SCRIPT LANGUAGE="JavaScript">

 function L0StartScreen.swf_DoFSCommand(command, args) {
      if (command == "messagebox") {
            document.location="MenuBar.htm";
            
      }
}
 </SCRIPT>

</HEAD>
 
<BODY BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0"
 MARGINHEIGHT="0">
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0"
 WIDTH="796" HEIGHT="434" ALIGN="CENTER" VSPACE="0" HSPACE="0">
  <PARAM NAME="SRC" VALUE="L0StartScreen.swf">
  <PARAM NAME="QUALITY" VALUE="high">
  <PARAM NAME="SCALE" VALUE="exactfit">
  <EMBED SRC="L0StartScreen.swf"
 PLUGINSPAGE="http://www.macromedia.com/shockwave/download/"
 TYPE="application/x-shockwave-flash" WIDTH="796" HEIGHT="434" ALIGN="texttop"
 VSPACE="0" HSPACE="0">
  </embed>
</OBJECT>
</BODY>
</HTML>
 
---------------------------------------

Please be complete as possible ....
0
p05010
Asked:
p05010
  • 13
  • 10
1 Solution
 
p05010Author Commented:
Adjusted points to 200
0
 
p05010Author Commented:
" Who can help me program that Java Code ? " -> Java Script
0
 
jbrugmanCommented:
If you want to 'stop' the movie, why not go to a blank html page, or insert a button in flash thet stops the movie?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
p05010Author Commented:
How can I stop that movie and loading a plain HTML ?

With Stop I mean -> Gone ... not just a stop of that movie ....
0
 
jbrugmanCommented:
in a frame, make a
<A HREF="plain.htm" TARGET="framename">click to exit</A>
in one of the html frames.
0
 
p05010Author Commented:
jbrugman,

Know what you mean, BUT .....

Take in mind that I have a full interactive movie. The last frame must invoke a FS_Command that calls a JavaScript function in the same frameset where the movie is. It's that specific HTML page (in that specific frameset) that contains the movie must be switched. >Automatically done by the movie and the FS_command.
The other frames are INACTIVE (Frame 2 and 3).

About the movie:

It's a diafragma whereby each diafragma segment is a clickeble button. Then a banner comes out the diafragma. That banner is also availeble in GIF format for the HTML page. When the banner pops up in the movie then the HTML page must be shown transparantly. The user may not see the Movie exit to the HTML page.

If you want, I set it on the WEB ....
0
 
jbrugmanCommented:
Have you tried to make the JavaScript inside the page, and call it in flash, like calling a URL?
0
 
p05010Author Commented:
**************
<SCRIPT LANGUAGE="JavaScript">

 function L0StartScreen.swf_DoFSCommand(command, args) {
if (command == "messagebox") {
document.location="MenuBar.htm";

}
}
 </SCRIPT>
**************
I did something like this, the movie calls this javascript (at the end).
Netscape said it was processing javascript ....
That thing won't jump to MenuBar.htm, don't know why ?
BTW I'm not a JavaScript guru :(
0
 
jbrugmanCommented:
What happens when you try to start,
When the process stops,
type exactly as shown below in the address bar:

javascript:

and see if there are javascript errors in the javascript console.

If not, tell again.
0
 
p05010Author Commented:
* In IE5 -> Done but with errors on page. *

Details:
Line 11
Char 11
Error: 'L0StartScreen' is not defined
Code: 0
URL:file://D:\Data Files\Websites\Oz501\Intranet\GoodMoviePieces\Flash.htm

NN V4.5:
At the end I get Starting Java ... Done.

Here I'm sure Flash triggers that Javascript.
0
 
p05010Author Commented:
Browse to

http://vrienden.pandora.be/peter.boons

Scroll down and you get the word ExpertExchange. Click on the word and you'll see the unfinished animation.
0
 
p05010Author Commented:
The Movie maximum exist of 8 stackable Movies.  :-P

Whereby 4 of them are vastly loaded.

IS there something wrong with the export, -> including FS_commands or not ??

0
 
jbrugmanCommented:
is noticed the following error in netscape...
missing ( before formal parameters.

 function L0StartScreen.swf_DoFSCommand(command, args) {

try not to place a '.' in the function, but make it for example a '_'

function L0StartScreen_swf_DoFSCommand(command, args) {

also change it on the places where you call it.

(nice page !)

no luck yet?
Let me know.
0
 
p05010Author Commented:
Hey, found it.

Fixed the code. did a wrong export and I was working with that export. This is the good one:
*****************
<HTML>
<HEAD>
<TITLE>L0StartScreen</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0"
 MARGINHEIGHT="0">
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function L0StartScreen_DoFSCommand(command, args) {
  var L0StartScreenObj = InternetExplorer ? L0StartScreen : document.L0StartScreen;
  //
  // Place your code here...
      if (command == "messagebox") {
            document.location="./Keuze1/Keuze1.htm";
            
      }
  //
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
        navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
      document.write('<SCRIPT LANGUAGE=VBScript\> \n');
      document.write('on error resume next \n');
      document.write('Sub L0StartScreen_FSCommand(ByVal command, ByVal args)\n');
      document.write('  call L0StartScreen_DoFSCommand(command, args)\n');
      document.write('end sub\n');
      document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
 ID=L0StartScreen WIDTH=796 HEIGHT=434>
 <PARAM NAME=movie VALUE="L0StartScreen.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="L0StartScreen.swf" quality=high bgcolor=#FFFFFF  WIDTH=796 HEIGHT=434      swLiveConnect=true
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
**********************

Pls check it out at my site,
pls give me your opinion.

In fact, with that routine you can go recursive and without renaming the SWF files. Just playing with the directorynames.

At the moment I'm missing the four round buttons at the diafragma (like the one in the menubar).Do you have an Idea for a kind of LED / LCD display so the user knows were she/he is ? Something seen on the net ..... ?

CU soon

Peter
0
 
jbrugmanCommented:
ok! Ze gaan dus allemaal naar 'keuze 1', maar het werkt wel!
Nice page, Would like to make them like that as well.
If you like shockwave, have a look at
http://www.kimble.org
Here is a nice example of how to use your techniques.

<--
At the moment I'm missing the four round buttons at the diafragma (like the one in the menubar).Do you have an Idea for a kind of LED / LCD display so the user knows were she/he is ? Something seen on the net ..... ?
-->
I'm not sure where to look at in the page.


No pro at JavaScript?
check http://www.javascripts.com

Justus
0
 
p05010Author Commented:
Justus,

van waar ben jij ergens ?

http://www.kimble.org -> Zeker de moeite :)

Peter

0
 
jbrugmanCommented:
Uit Nederland... (Den Haag)
http://www.hab.nl
Hmmm, niet zo mooi als jouw pagina, maar toch.
:)
0
 
jbrugmanCommented:
ps Jij bent een:
Pc Technician/Programmer/Client&Server Engineer

Bedoel je de AS/400 hiermee?
0
 
jbrugmanCommented:
ps Jij bent een:
Pc Technician/Programmer/Client&Server Engineer

Bedoel je de AS/400 hiermee?
0
 
jbrugmanCommented:
ps...

Did you fix it by yourself, or did my comments help you out.

if you fixed it yourself, you can delete this question, if it was due to my help, let me know to post an answer.

ps.. ps..

Waarom ga ik ook niet verder in een makkelijkere taal ;)

Justus
0
 
p05010Author Commented:
Ik ben systeem administrator, alles wat PC's betreft -> Client/Server.
We hebben ook een AS400, heb ik geen kennis van, gebruik het gewoon.
In de toekomst zal ik wel wat Delphi programma's schrijven voor Dbase koppeling naar de AS400 toe. -> toekomst muziek ....

Ik heb een andere export (met FS_Command) genomen bij de Flash 4 voor de start movie, daar heb ik de rest gevonden.

Ik laat deze vraag bestaan en geef jouw de punten... voor diegene die het zelfde probleem en oplossing zoeken.
Zoek maar eens achter Flash, je zult hier weinig vinden :(

Heb jij toevallig vragen, kan je altijd e-mailen: peter.boons@pandora.be

Cu on the net,
Peter
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 13
  • 10
Tackle projects and never again get stuck behind a technical roadblock.
Join Now