Html files play in main stage of flash
How can macromedia flash play html files?
I have a problem my friends! First of all I should say that I
know flash is not a browser!!! I have lots of internal and external
html files next to my main swf movie and I made lots of botton for
each html files and a window next to the bottons on the left side
of my stage now the question is: how can I tell macromedia flash by
pressing each botton its especial html file play in the left
window?(and not anywhere else) I tried "get url" but html files now
are playing in a browser and not in my window!!
Maybe I made the window in the wrong way so how can I create
this window for html files?
I am not a professional user of macromedia flash –
thank you for your coaporation
In the following path you can find an example this is where I
installed my flash
C:\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\Text\ TextEnhancements
Here is a link that maybe show my question better
Its just 120 kb
http://scorpionsofhack.googlepages.com/html.zip
Set the sample rate higher in MainStage and you'll get lower latency.
Similar Messages
-
Horizontal Scrolls on the main Stage
Hi
I am putting 11 movies containing 11 flv files on my main
stage. All those movies have onMouse over and click events attached
with them. As those movies are not going to fit on the main stage
so when i am running the flash file, it is just displaying 5 of the
11 movies and rest are being cut. Is there any way that I can code
so that I will get the horizontal scrolls automatically if the
movies are not going to fit on the screen? I am new to the 'stage'
and AS3 concepts . Please help me out.
All I need is to put 11 movies on the main stage with the
horizontal scrolls.
Thanks in advance for your help
regards
Anujyou can check a similar thread involving a scrolling
movieclip:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid =1324923&enterthread=y -
How to show applets in a html file ?
Hi all
I have created an applet with jdev ,and I also generated the corresponding html file and a main method. So the java file runs standalone when I click on the run button , but when I copied the class file and the html file in a web server, then there is nothing in the applet region ! Can anyone help me ?
Here are the code :
Code of the java file :
// Copyright (c) 2001
package pack_applet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
* Applet
* <P>
* @author xxxx
public class Capplet extends JApplet {
boolean isStandalone = false;
String x;
String y;
JLabel label = new JLabel();
* Constructs a new instance.
* getParameter
* @param key
* @param def
* @return java.lang.String
public String getParameter(String key, String def) {
if (isStandalone) {
return System.getProperty(key, def);
if (getParameter(key) != null) {
return getParameter(key);
return def;
public Capplet() {
* Initializes the state of this instance.
* init
public void init() {
x = this.getParameter("x", "0");
y = this.getParameter("y", "1");
try {
jbInit();
catch (Exception e) {
e.printStackTrace();
private void jbInit() throws Exception {
this.setSize(new Dimension(400, 400));
this.getContentPane().add(label, BorderLayout.CENTER);
label.setText("x = "+x+" y = "+y);
* start
public void start() {
* stop
public void stop() {
* destroy
public void destroy() {
* getAppletInfo
* @return java.lang.String
public String getAppletInfo() {
return "Applet Information";
* getParameterInfo
* @return java.lang.String[][]
public String[][] getParameterInfo() {
String[][] pinfo =
{"x", "String", ""},
{"y", "String", ""},
return pinfo;
* main
* @param args
public static void main(String[] args) {
Capplet applet = new Capplet();
applet.isStandalone = true;
JFrame frame = new JFrame();
frame.setTitle("Applet Frame");
frame.getContentPane().add(applet, BorderLayout.CENTER);
applet.init();
applet.start();
frame.setSize(400, 420);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
frame.setVisible(true);
frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } });
static {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
catch(Exception e) {
e.printStackTrace();
And code of the html file :
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<HTML>
<TITLE>
HTML Applet Test Page
</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript"><!--
var info = navigator.userAgent; var ns = false;
var ie = (info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0
&& _info.indexOf("Windows 3.1") < 0)
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
var _ns = (navigator.appName.indexOf("Netscape") >=0
&& ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0
&& java.lang.System.getProperty("os.version").indexOf("3.5") < 0)
|| (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
//--></SCRIPT></COMMENT>
pack_applet.Capplet will appear below in a Java enabled browser.<BR>
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" codebase="HTTP://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"> <NOEMBED><XMP>');
else if(_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.2" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" java_CODE = "pack_applet.Capplet" java_CODEBASE = "Capplet.class" "x" = "0" "y" = "1" pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"> <NOEMBED><XMP>');
//--></SCRIPT>
<APPLET CODE = "pack_applet.Capplet" CODEBASE = "Capplet.class" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" >
</XMP>
<PARAM NAME = CODE VALUE = "pack_applet.Capplet" >
<PARAM NAME = CODEBASE VALUE = "Capplet.class" >
<PARAM NAME = NAME VALUE = "TestApplet" >
<PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.2">
<PARAM NAME = "x" VALUE = "0">
<PARAM NAME = "y" VALUE = "1">
</APPLET>
</NOEMBED></EMBED></OBJECT>
</BODY>
</HTML>
Thank you very much.you can load your pdf into your browser using
navigateToURL(new URLRequest("yourpdf.pdf")); -
Hi, I'm a beginner and I need to do a program that display a
tree at the left of the screen and a textfield at the right. I load
the tree's elements from a txt file whit loadVars but how can I
introduce the code from textEnhancements.fla to load an html file
at the begining of the flash movie. This is my code.
var dateVars = new LoadVars();
dateVars.onLoad = function(ok) {
if (ok) {
//** Cargamos la lista de las paginas correspondientes al
concepto
paginas_web = dateVars.pags_web;
lista_conceptos = paginas_web.split("@");
//** Cargamos los titulos correspondientes para cada pagina
paginas_tit = dateVars.pags_titulos;
lista_titulos = paginas_tit.split("@");
//** Convertimos la lista de titulos en los elementos del
arbol a la izquierda
for (i=0; i<=(lista_titulos.length-1); i++) {
arbol_conceptos.addTreeNode(lista_titulos
, lista_conceptos);
// carga arbol y variables
dateVars.load("concepto.txt");
html_contenido.multiline= true;
html_contenido.wordWrap = true;
html_contenido.html = true;
story = new XML();
story.ignoreWhite = true;
story.onLoad = function () {
html_contenido.htmlText = story;
story.load("01pagweb.htm");
Thanks a lot. I'm mexican. =)HTML
support in flash 8 -
Hello,
I'm new with edge animate, but i fell in love with it.
I'd like to know, is it possible to load different html pages dynamically in the main stage in order to avoid the preloader to be load?
I can figure out how to save all the pages of the site, but i can't merge them in a continuous animated browsing experience.
As sample.
I've got a index.html and home.html, how to switch form index to home without having a clear division between the two pages?
I can place all the animations within a file and this will allow me to have a continuous surfing experience but it won't generate specific and google indexable pages within the site.
Example, index.html will generate www.mysite.com, home will generate www.mysite.com/home. How ho switch dinamically between them and integrate them in a unique fading experience?
Thanks in advance for any help. I'm a newby, but i would like to learn.
Fea.Look into using the Loader class to load the swf files. If you want to have it happen in different frames then you can put the code into the different frames.
-
Passing a variable into HTML to play a Flash file
I'm trying to create a simple SWF file that can receive the name of a FLV file in the HTML file and play it since I have many FLV files. Basically using the technique of FlashVars. I've set the contentPath/source in the components to be blank, and set my actions in the first frame to be player.source = filename, as was instructed to do so in a Flash book I am reading. I then set the "filename" variable to a file in the same path as the web page in the HTML file, however, all I get is a blank Flash player skin. The FLV file will not load. I also tried setting the "filename" variable to load the FLV from a public website in the same domain and on another domain, but it still doesn't work. Any ideas on what could be wrong? I am using Adobe Flash CS 4.
1) You mention that there are 3 locations that need to reference FlashVars in my HTML file, but I made only 2. Where should the 3rd change be made? Below is my code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="640" height="480" id="flashvar" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flashvar.swf" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="filename=file.flv" />
<embed src="flashvar.swf" loop="false" quality="high" bgcolor="#ffffff" FlashVars="filename=file.flv" width="640" height="480" name="flashvar" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
The filename=file.flv is located in the same web directory as the flashvar.swf file. Am I supposed to set the filename=www.mydomain.com/file.flv? Or am I supposed to set the filename=c:\directory.\file.flv?
2) I don't care if I'm using AS2 or AS3. I just need this to work. I thought I would post in AS2 since it would be more compatible with previous FlashPlayers. And for the record, I am using contentPath. My understanding is that the difference in this case would just be contentPath versus source. My actionscript on the first frame is: player.contentPath = filename; -
Help Editing code from a published html file with flash detection enabled from flash
hi guys ive publish a html file with flash detection enabled from flash
heres the code from the publish html:
<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>main</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 45;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '800',
'height', '600',
'src', 'main',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'main',
'bgcolor', '#ffffff',
'name', 'main',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'main',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
</noscript>
</body>
</html>
now since the default codes places my flash movie on upper left corner, ive made my own tables with the flash on it, how or where do i place this code to the upper codes?
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th valign="middle" scope="col"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="600" bgcolor="#333333" scope="col"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','height','600','src','main','quality','high','pluginspage','http://www.adobe.com /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600">
<param name="movie" value="main.swf">
<param name="quality" value="high">
<embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object></noscript></th>
</tr>
</table></th>
</tr>
<tr>
<td height="30" bgcolor="#990000"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col"><div align="left" class="style1">Copyright 2009 St. Paul of the Cross Parish. All Rights reserved.</div></th>
<th width="400" scope="col"><div align="right" class="style1">Usage outside our permissions guidelines requires our prior written consent.</div></th>
</tr>
</table></th>
</tr>
</table></td>
</tr>
</table>
Tnx in advance!Hi
Can you tell me which version of dreamweaver you are using (and flash pro, if you have it), as the code you provided has element of a number of different versions (e.g. your js flash files are reasonably new, but your flash inserted into the html body is old, but with the cs3 version of flash player indicated!). Also the detect flash file is no longer required.
PZ -
I can't open a HTML file with flash linked
I have Flash CS3. I have created a flash file. If I click on the SWF file I have no problems opening it. It plays. It looks nice. I'm the man.
However, now when I try to publish it, the HTML file will not work. It says "windows cannot find this file, please ensure you have typed the location correctly".
I am double clicking directly on the file and not typing anything, in fact I was considering checking on Ebay to see if I could upgrade my PC to have eyes.
The feature has worked previously, which leads me to the conclusion that something else has changed. I have tried using the publish setting, I have also tried using Dreamweaver to embed the file, and have also tried manually inserting the necessary code after seeing some on a website.
All of these things produce the same result, windows cannot (or will not) find the necessary file.
It's an odd one, and very frustrating, can anyone help me at all?
Cheers in advance,
EoinNope this doesn't work. I wasn't using the default names previously but I can't see that it should make a difference, although Flash can be quirky.
I tried putting them in a new location to no avail.
Attached is a screenshot of the error message. -
Can't get my embedded swf files to play in HTML file
Hi there,
I'm just wondering why my swf files won't play when I upload them along with my HTML file to the server.
The problem can be seen at the following URL:
http://marthalodge.com/productDev.html
I inserted the swf in 'insert media' - 'shockwave' and the thing works when I press play to view it within dreamweaver. However, when I try to view it on a browser, either locally or remotely, it doesn't work.
Does anyone have a suggestion as to why this might be happening?
Thanks,
MHi,
I did what you suggested and again, nothing shows. You can see what I did at:
http://marthalodge.com/ProdDev.html
Do you have any idea why this is happening? I don't get any error report when I publish my swf from Flash. -
Flash navigation and html files
I have a Flash navigation banner. The navigation banner
contains seven buttons. Each button when clicked goes to different
frames in the Flash movie. So, the first interaction is to make the
movie to go to a particular frame, which I was able to do easily.
On those frames, I also would like to load or link to HTML page.
Like frame 10 will be page1.htm, frame 18 will be page2.htm so on
and so forth. How do I link .htm files and the single navigation
bar where each button would go to a specific frame and play the
frame? I don’t want to use frames in my html docs. Is there
any other solution? Please help!!
Thank you in advance.
FAThank you for reply. I appreciate it. So, if I understand
correctly:
I would embed the navbar.swf in all my html files. Then Each
button would go to each html pages (Like page1.htm page2.htm
etc...) Then I use your code in my html file right? Like each html
file will have the following code:
<param name="movie" value="nav.swf?frame=page2">
Is that how it works. Sorry for not being able to your
answer.
Thank you very much again -
HTML file won't play/appear
Hello,
Why is it that I cannot get my published HTML files to play?
The Flash files work fine, but after uploading the HTML version to
our CMS and then linking, the window that opens is empty. Does this
have anything to do with the javascript file that is created?
Thanks!Hi again Bethanne
Yes, all the files Captivate creates and places on your hard
drive should also be copied to the server. And they should all be
placed in the same folder on the server so they may find one
another.
It's a bit like a house of cards. Take away any one of the
elements and the whole of it collapses.
Cheers... Rick -
HTML files not playing from Dropbox
I used to be able to upload all parts of the file (cptx, html, swf, js) to Dropbox and link to the HTML file and it would play in a new tab on IE. Now anytime I link to the html file it opens a new tab but doesn't load/play.
The swf file plays but the htm file doesn't. I'm using Captivate 5 (all updates done) and IE, Flash, Java are all up to date.
My client used to just click the Dropbox link to play the htm file and now it doesn't work. Even my old html files don't play or open.
Any suggestions?That's what I thought too, but all files are there. I used to have numerous files (6-8) in a dropbox folder with all parts: cptx, htm, swf, js and the html would play fine by just clicking on the link. Once it started not working I made individual folders with each part of the file and included them into each seperate folder. Still not loading/opening. This is happening to everyone I send the link to. I've tried opening it in different browsers too.
Here is a link if anyone wants to see what happens: https://www.dropbox.com/s/460vq2nqu4dbwf1/courseconnect_training_2013.htm
Here is how I am including each part of the file in the actual folder:
https://www.dropbox.com/sh/sdfjdeud8jro1v1/SdZMzJHXBo -
Whenever I export my interactive indesign file to swf the videos won't play in the resulting html file, it's just a black screen. I'm using .mp4 videos as well.
Does anyone know what may be causing this problem?
Thank youUnless you held down the Command key when dragging the iPhoto Library package to the flash drive you only copied the library. How is the flash drive formatted? If it was not OS X Extended (journaled) the integrity of the library's internal structure was probably compromised.
If you don't have a current backup of your library do the following:
1 - launch iPhoto with the Command+Option keys held down to open the First Aid window. Be sure to follow the circled recommendation in the screenshot.
2 - run Option #4, Rebuild Database. -
Flash gives me html file, Now what do I do with it?
Hi everyone,
This may seem like a stupid question, but here it is:
I've converted and published my video in Flash, and now I
have a swf file and an html file. I've noticed that if I just put
the swf file on my website, the video plays just fine but the skin
doesn't show up.
I'm pretty sure this has something to do with the html file
not being included, but I'm afraid I have no idea what to do with
it.
Any ideas?
Thanks in advance.Add the HTML code into the page where the .swf object
is -
How to insert a HTML file in Flash
hi,
When a new flash page is opened, i want to see a HTML file
is inserted and shown in the flash page directly. I know it's not
easy. The URL of the HTML is known.
For example, i want to see the "
http://www.adobe.com/" displaying
in a small window in flash page.
I'm new to Flash. So anyone can explain to me or give me any
hints.I'll appreciate that.Thx.
D.LHi
I give you a code but first you need create a dynamic text
box to render the html inside soo create a dynamic text box and
give a instance name, before put this simple code in the frame.
function carregar()
var texto = new XML();
texto.onData = function (html_no_flash)
texto_html.html = true;
texto_html.htmlText = html_no_flash;
texto.load("not.php");
} // End of the function
stop ();
System.useCodepage = true;
carregar();
note: attention in the dynamic box instance name i put
(texto_html).
good luck
Maybe you are looking for
-
Exchange 2013 Window Backup failure - fails to clean up log files - error FFFFFFFC
Hello, We currently have an Exchange 2013 - Exchange 2007 coexistence setup. 1x Windows Server 2008 R2 with Exchange 2007 CAS/HUB 1x Windows Server 2008 R2 with Exchange 2007 MBX 1x Windows Server 2008 R2 with Exchange 2013 CU 3 (all roles) Since our
-
Logical multiply instead of pause trigger
Hello all! Can some one help me with gating counter with another one, i want to produce modulated timebase, first counter generate pulses in continuous mode, and another one does the same, but with lower frequency, for example f1 = 20Hz, f2 = 0,1 Hz.
-
Hi, Is it possible to do a kind of select bulk from PHP ? In my case, when I retrieve lot of data from a table and display it, I use a basic select but I can see the page is loading gradually. I think if I am using the equivalent of a select bulk it
-
Music library sorting keeps changing
i have my music library set to sort by "album by artist/year". i use itunes in grid view so i go back and change artist, then go through their albums. for reasons i just cannot pinpoint, itunes changes my sorting back to albums alphabetically. it is
-
Why am I now having certificate issues with Firefox but not IE?
I can no longer log into Gmail, Facebook, Amazon, etc... using Firefox. I get the following error "accounts.google.com uses an invalid security certificate. The certificate is not trusted because no issuer chain was provided. (Error code: sec_error_u