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.L
Hi
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
Similar Messages
-
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 have created a document in HTML as I need my Flash
Presentation to link to other sites with hyperlinks. I have never
actually used HTML with Flash before so I am uncertain on what I
should do,
do I have to link the HTML document to my text field in some
way
do I just put the code into the text field
do i have to call it with some sort of action script????
Any help will be greatly appreciated.What do you mean you want to implement JS onHoverOver? How
are you using that in Flash? And what do you mean by importing an
HTML file? Flash can understand some HTML but you can't import an
entire file (not in AS2 anyway). -
How to load an html file in Text Box using script?
Hi,
does anyone know what is the sequence of commands for inserting an html file in a text object, if possible, via vbs?
Unfortunately, I wasn't able to find the Commands and Variables for the text object (aka user object) in the help. Where I can search for them?
Thank you!Hi def90,
Sorry for the confusion. In that point the help information is not correct. We can only import RTF and ASCII via script but not HTML. We are going to change the help for that.
Greetings
Walter -
How to insert an image file in Oracle database
hi
can you please tell me how to insert an image file into oracle database????
suppose there is one image file in c:\pictures\rose.jpg. how to insert that file into database? theoretically i know that will be BFILE type but i dont know how to insert that.
will be waiting for your reply........
thanks & regards,
PriyatoshHello,
The easiest way to load a blob is to use SQL loader.
This example comes from the utilities guide:
LOAD DATA
INFILE 'sample.dat'
INTO TABLE person_table
FIELDS TERMINATED BY ','
(name CHAR(20),
1 ext_fname FILLER CHAR(40),
2 "RESUME" LOBFILE(ext_fname) TERMINATED BY EOF)
Datafile (sample.dat)
Johny Quest,jqresume.txt,
Speed Racer,'/private/sracer/srresume.txt',
Secondary Datafile (jqresume.txt)
Johny Quest
500 Oracle Parkway
Secondary Datafile (srresume.txt)
Loading LOBs
10-18 Oracle Database Utilities
Speed Racer
400 Oracle Parkway
regards,
Ivo -
How to insert a image file into oracle database
hi all
can anyone guide me how to insert a image file into oracle database now
i have created table using
create table imagestore(image blob);
but when inserting i totally lost don't know what to do how to write query to insert image fileHi I don't have time to explain really, I did have to do this a while ago though so I will post a code snippet. This is using the commons file upload framework.
Firstly you need a multi part form data (if you are using a web page). If you are not using a web page ignore this bit.
out.println("<form name=\"imgFrm\" method=\"post\" enctype=\"multipart/form-data\" action=\"FileUploadServlet?thisPageAction=reloaded\" onSubmit=\"return submitForm();\"><input type=\"FILE\" name=\"imgSource\" size='60' class='smalltext' onKeyPress='return stopUserInput();' onKeyUp='stopUserInput();' onKeyDown='stopUserInput();' onMouseDown='noMouseDown(event);'>");
out.println(" <input type='submit' name='submit' value='Submit' class='smalltext'>");
out.println("</form>"); Import this once you have the jar file:
import org.apache.commons.fileupload.*;Now a method I wrote to upload the file. I am not saying that this is correct, or its the best way to do this. I am just saying it works for me.
private boolean uploadFile(HttpServletRequest request, HttpSession session) throws Exception {
boolean result = true;
String fileName = null;
byte fileData[] = null;
String fileUploadError = null;
String imageType = "";
String error = "";
DiskFileUpload fb = new DiskFileUpload();
List fileItems = fb.parseRequest(request);
Iterator it = fileItems.iterator();
while(it.hasNext()){
FileItem fileItem = (FileItem)it.next();
if (!fileItem.isFormField()) {
fileName = fileItem.getName();
fileData = fileItem.get();
// Get the imageType from the filename extension
if (fileName != null) {
int dotPos = fileName.indexOf('.');
if (dotPos >= 0 && dotPos != fileName.length()-1) {
imageType = fileName.substring(dotPos+1).toLowerCase();
if (imageType.equals("jpg")) {
imageType = "jpeg";
String filePath = request.getParameter("FILE_PATH");
session.setAttribute("filePath", filePath);
session.setAttribute("fileData", fileData);
session.setAttribute("fileName", fileName);
session.setAttribute("imageType", imageType);
return result;
} And now finally the method to actually write the file to the database:
private int writeImageFile(byte[] fileData, String fileName, String imageType, String mode, Integer signatureIDIn, HttpServletRequest request) throws Exception {
//If the previous code found a file that can be uploaded then
//save it into the database via a pstmt
String sql = "";
UtilDBquery udbq = getUser(request).connectToDatabase();
Connection con = null;
int signatureID = 0;
PreparedStatement pstmt = null;
try {
udbq.setUsePreparedStatements(true);
con = udbq.getPooledConnection();
con.setAutoCommit(false);
if((!mode.equals("U")) || (mode.equals("U") && signatureIDIn == 0)) {
sql = "SELECT SEQ_SIGNATURE_ID.nextval FROM DUAL";
pstmt = con.prepareStatement(sql);
ResultSet rs = pstmt.executeQuery();
while(rs.next()) {
signatureID = rs.getInt(1);
if (fileName != null && imageType != null) {
sql = "INSERT INTO T_SIGNATURE (SIGNATURE_ID, SIGNATURE) values (?,?)";
InputStream is2 = new ByteArrayInputStream(fileData);
pstmt = con.prepareStatement(sql);
pstmt.setInt(1, signatureID);
pstmt.setBinaryStream(2, is2, (int)(fileData.length));
pstmt.executeUpdate();
pstmt.close();
con.commit();
con = null;
if(mode.equals("U") && signatureIDIn != 0) {
signatureID = signatureIDIn.intValue();
if (fileName != null && imageType != null) {
sql = "UPDATE T_SIGNATURE SET SIGNATURE = ? WHERE SIGNATURE_ID = ?";
InputStream is2 = new ByteArrayInputStream(fileData);
pstmt = con.prepareStatement(sql);
pstmt.setBinaryStream(1, is2, (int)(fileData.length));
pstmt.setInt(2, signatureID);
pstmt.executeUpdate();
pstmt.close();
con.commit();
con = null;
} catch (Exception e) {
con = null;
throw new Exception(e.toString());
return signatureID;
} -
How to insert a pdf file from a dynamic location into a table
Hi friends
Can any one please let me know how to insert a pdf file into a table from a dynamic location in server.
suppose say i have a table CUST_BLOB(file_name, file_data). I have a file in directory c:\local having file_name test.pdf
I want to insert this file in CUST_BLOB. Please help me.
Thanks in advance.
--Ahmeduser620950 wrote:
Hi friends
Can any one please let me know how to insert a pdf file into a table from a dynamic location in server. Why dynamic locations on the server?
Make it a business case that the files should be stored in specific location(s).
Oracle uses directory objects to point to locations on the file system and, whilst these locations can be altered, it is better practice to set up specific locations and grant permission to the correct users for those locations so that there is full control over who is accessing what on the server. Whilst filenames may be dynamic, I wouldn't recommend using dynamic locations. -
How to insert a gif file into a table?
Hi,
I need to insert a gif file into a table. Can anyone tell me where I can find the information on how to create this kind of table, how to insert a gif file into a table and how to select?
Thanks,
HelenHi Helen,
You could read about that in the documentation which is available online.
For a starter: BLOB. And I bet there are many examples to be found on the web.
Good luck. :)
Regards,
Guido -
How to call a html file in a java file
how to call a html file inside a java file ?
Hopeless. Are you by any chance a rare gas? You seem completely inert. LOL You totally pwned him there :rolls eyes:
well, no, I think he's looking for something to this degree:
in HTML, there is a mailto: command that makes the system default handled way to email emails open up. He's looking for a command thats very nice and opens a html file in the system default browser.
So, Dick, Runtime.exec would work execpt that he needs a way to find the default system browser to call exec on, AND he has to know how to pass html file locations to the executable via command line arguments
He just didnt try to phrase it at all :P -
Can I insert an html file as an image into an HTML page?
The site I'm working on (www.ngospen.com) has PNGs for background art - 10 - 15 kb per image. As the site is intended for settings with low bandwidth, I'd like these background images to be as small as possible.
When saving for the web, one of the options is Save As HTML file. When I open the file, the artwork appears the same as the PNG (no lost resolution), but it is a much smaller file size (1 - 2 KB).
Is it possible to insert these HTML files into my HTML pages?
Thanks!
Ken D
Creative Director
Grateful CreativeAre you meaning that you work with fireworks?
If so the html and the images you export are flattened images (slices), you have to put those images directly into your html page.
If you want to save the file (fireworks) as a flattened image you could also goto save as -> flattened png.
If you save your image from fireworks just as png it contains the layer information etc. etc. from fireworks, that's why you should save them as flattened png, or just export the slices.
http://www.dreamweaverfan.nl -
How to put an HTML file into JEditorPane
Hi
I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this source code to Jeditor pane.
Thanks
Srikanthi srikkant,
ur html code is inside the source code..? are you working on applets..? if ur html file can be read as a file and the file stream can converted to a string and put into a Jeditor pane using the setText() method. for editing HTML text a editor called javax.swing.text.html.HTMLEditorKit can be used.
Refer to JAVA API for further clarifiactions and examples. -
How to Parse an HTML File?
Hi all
I want to parse an HTML file?
How is it possible?
After taking an input which is an HTML file, i need to parse it, and i need to print/modify values based on some tags?
Please help me, how to parse an HTML file?You start by reading the first character and then continiung until you reach the last character.
For a more serious answer try elaborating on your question. Its really really vague. -
How to add a html file into JEditorPane
Hi
I am doing an aplication on swing.But I don't know how to add a html file to the JeditorPane keeping the html file on the source code. i.e my html file is in my source code.Then how to add this html file to Jeditor pane.
Thanks
SrikantQuickTime requires player and plugins that most people don't have. You'll reach a much wider audience if you use HTML5 <video> with mp4, webm and ogg files.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 with Video</title>
<!--help for older IE browsers-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<style>
video {
max-width:100%;
display:block;
margin:0 auto;
</style>
<body>
<h2>Use 3 File Types to support all browsers & mobile devices: MP4, WEBM and OGV.</h2>
<h3>Online Video Converter
http://video.online-convert.com/</h3>
<!--begin video-->
<video controls poster="Your_poster_image.jpg">
<!--these are 6 sec sample videos for testing purposes. Replace sample-videos with your own files-->
<source src="http://techslides.com/demos/sample-videos/small.webm" type="video/webm">
<source src="http://techslides.com/demos/sample-videos/small.ogv" type="video/ogg">
<source src="http://techslides.com/demos/sample-videos/small.mp4" type="video/mp4">
If you're seeing this, you're using an
outdated browser that doesn't support
the video tag. </video>
<!--end video-->
</body>
</html>
Nancy O. -
Can AnyOne Please Tellme How to configure the HTML files
This is very Urgent.
1.I am using the WLS7.0 sp1 .I need to configure theHTML files which are in a
different path how can I map them to the present DefaultWebAPP directory.
2. How can I get rid of the port number when I am fully using in production mode.
I have been posting this query since long but in vain. Please guide me1. I got rid of port number with link provided by the karthik.
2.How can I create a link .The link appends to the defaultwebapp directory
and checks from their .I need to know how to configure the
HTML files which are not in the DefaultWebApp.But completely in directory.
Any suggestions !!!!!!!
Shehzad <[email protected]> wrote:
1. You can create a link to that directory
2. In order to get rid of port number, either boot weblogic at default
port 80, or use Apache or Iplanet webserver, and use Weblogic plugin.
That way all the traffic comming in from http will comein at port 80
to the webserver, and would then be forwarded to Weblogic at whatever
port it is booted.
This is very Urgent.
1.I am using the WLS7.0 sp1 .I need to configure theHTML files whichare in a
different path how can I map them to the present DefaultWebAPP directory.
2. How can I get rid of the port number when I am fully using in productionmode.
I have been posting this query since long but in vain. Please guideme -
How to embed the html file into form 6i?
How to embed the html file into form. What control activeX should i use? please help!!!!!!
You can use web.show_document function for this purpose. See
form builder help topics for more details.
Hope this helps.
Maybe you are looking for
-
How do I move music libary from my iphone 4s to i cloud ?
How do I move my music libary from iphone 4s to i cloud ? Some of the music was bought thru itunes but most was downloaded .
-
My MBP won't detect a projector even when I reboot the system.
I can connect to a monitor, so I know the adapter and cable are working, and my old HP will connect to the projector so I know it's not the projector, but my MBP will not even detect that a projector is connected.. I have tried multiple projectors a
-
Retirement of Assets - Document splitting
Dear All I am trying to post retirement of multiple assets with cost centers belonging to different profit center through F-92. I have document splitting activated, but the Customer line item is not getting split according to the profit centers of th
-
I am new to Labview, I am communicating with a TQ8800 Torque meter via RS-232. The 16 digit data stream is as follows: D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Each digit indicate the following status : D0 End Word D1 & D8 Display readin
-
My company just received a full license for WebLogic Server 5.1.0 and other products. I am having a problem getting WebLogic to run after copying the license information to the WebLogicLicense file. This is the error I get: bash-2.03# sh startWebLogi