Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




HTML/Flash Image Conversion



I made a banner in flash mx that is a link to a site and I want to put it on a html page would this be possible I hosted the swf on my hoster and tried the img src code but that did not work can someone help me with the right code or how to do it



FlashKit > Flash Help > Flash Newbies
Posted on: 05-15-2005, 04:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

AS2 - HTML To Flash Login Conversion
Hi everyone!

I'm new to flash and I have zero experience in actionscripting

I would like to convert our HTML login to flash but I don't know where to start. Below is the HTML form script:


HTML Code:
<script type="text/javascript" src="https://www.mysite.com/js/md5.js"></script>
<script>
function login_to_cd() {
var d = document.cdlogin;
var textmsg = '';
if (d.username.value == '') { textmsg += "You must enter a valid username.
"; }
if (d.password.value.length < 4) { textmsg += "You must enter a valid password."; }
if (textmsg == '') {
d.m.value = hex_md5(d.password.value);
d.password.value = '';
return true;
} else {
alert(textmsg);
return false;
}
}
</script>

<form action="https://www.mysite.com/loginauth" method="POST" onSubmit="return login_to_cd();" name="cdlogin" target="_blank">
<input type="hidden" name="m" value="" />

Username:<br>
<input id="username" maxlength="20" name="username" size="20" type="text"/>

Password:<br>
<input id="password" maxlength="20" name="password" size="20" type="password"/>
<br>
<input name="submit" type="submit" value="Submit">
</form>
I hope someone out there will be able to help me coz I'm already losing my hair trying to figure out how I'm gonna be able to convert this simple HTML script into flash

Thanks guys!

[F8] AS2: HTML To Flash Login Form Conversion
Hi everyone!

I'm new to flash and I have zero experience in actionscripting

I would like to convert our HTML login to flash but I don't know where to start. Below is the HTML form script:


Code:
<script type="text/javascript" src="https://www.mysite.com/js/md5.js"></script>
<script>
function login_to_cd() {
var d = document.cdlogin;
var textmsg = '';
if (d.username.value == '') { textmsg += "You must enter a valid username.
"; }
if (d.password.value.length < 4) { textmsg += "You must enter a valid password."; }
if (textmsg == '') {
d.m.value = hex_md5(d.password.value);
d.password.value = '';
return true;
} else {
alert(textmsg);
return false;
}
}
</script>

<form action="https://www.mysite.com/loginauth" method="POST" onSubmit="return login_to_cd();" name="cdlogin" target="_blank">
<input type="hidden" name="m" value="" />

Username:<br>
<input id="username" maxlength="20" name="username" size="20" type="text"/>

Password:<br>
<input id="password" maxlength="20" name="password" size="20" type="password"/>
<br>
<input name="submit" type="submit" value="Submit">
</form>


I hope someone out there will be able to help me coz I'm already losing my hair trying to figure out how I'm gonna be able to convert this simple HTML script into flash

Thanks guys!

ASCII Conversion Table...great For Flash Html...
For those who don't already have such a thing, or think they might one day need it, here's a link to an awesome ascii-conversion resource:www.asciitable.com/ Its useful for building html strings for html-enabled components, like textfields and such, so that the characters that make up an html tag, like </font> can be "escaped" with the following AS code
PHP Code:



HTMLclosetag=chr(60)+chr(47)+'font'+chr(62)




That variable can then be used as a kind of AS 'meta-tag' when building text strings that need html formatting for display in Flash.

Note: the 'chr()' command has been deprecated since Flash MX in favor of the 'String.fromCharCode()'...but I couldn't resist using a 3-character keyword instead of a 12-character one...

ASCII Conversion Table...great For Flash Html...
For those who don't already have such a thing, or think they might one day need it, here's a link to an awesome ascii-conversion resource I recently found:www.asciitable.com/ Its useful for building html strings for html-enabled components, like textfields and such, so that the characters that make up an html tag, like </font> can be "escaped" with the following AS code
PHP Code:



HTMLclosetag=chr(60)+chr(47)+'font'+chr(62)




That variable can then be used as a kind of AS 'meta-tag' when building text strings that need html formatting for display in Flash.

Note: the 'chr()' command has been deprecated since Flash MX in favor of the 'String.fromCharCode()'...but I couldn't resist using a 3-character keyword instead of a 12-character one...while I still can...

Quick Tag Question And Functions For Conversion Of Html To Flash
Hi, currently on my site
http://clan-fka.50webs.com
i have a donations button that uses paypal, i was wondering if there was a way to bypass the html code and link page and just make it 100% flash with the same functions.

>form action="https://www.paypal.com/cgi-bin/webscr" method="post">
>input type="hidden" name="cmd" value="_s-xclick">
>input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
>input type="hidden" name="encrypted" value="" </form>

i made the tags backwards so it dosent convert it and make it unseeable.

Image Changes After Conversion
OK this is going to be hard to explain so bear with me. Basically, I just learned how to make things dragable.

This is what I do. I take the image I want to drag and I open it in an image editing program. Then I'll copy the upper-left portion of it as a new image (the part that you will be able to drag it with).

Then I import them both to Flash. I put the main image in, then I put the copied piece of it over it, so it looks like just the 1 image.

Then I'll convert the upper-left image to a button to be used for dragging it. After, I convert both of them to the movie clip that will be dragged. It works perfect that way.

Now here's the problem I'm having. I check 2 images after I put them in place (with ctrl+enter) to make sure they're still aligned and look like 1 image: however, after I convert the 1 image to a button it comes out of alignment. It only becomes 1 pixel out of alignment both ways, but that 1 pixel is enough to make the image look terribly unaligned. It actaully looks like the drag image becomes 1 pixel bigger on each side, not that it actually just moves 1 pixel out of alignment.

Anyways, it looks completely fine when I proof it before I convert the image to a button.

By-the-way, the images I'm using are regular, transparent background, .GIF images... if that means anything. I've tried converting the images to other formatts, but they all do the same thing.

Does anyone have any idea what may be causing the problem, or what I'm saying? heh

Thanks

HTML Conversion
I am in need of help fellas.

I have a business selling webtemplates, and for my commercial templates i have a screenshot of them. What i want is when the user clicks on the screen shot, it takes them to the paypal page for purchase. here is the html that paypal gave me.


Code:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="d_lockett18@hotmail.com">
<input type="hidden" name="item_name" value="ED-GameTech">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="20.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
</form>
Thanks for the help

Conversion Of Html To Php
hi all,

anybody is having any idea about converting the whole web page or some content of web page into the php.

i had found many softwares for that but with that softwares it is manually possible and i want to convert it dynamically

so anybody is having any idea.

thaks in advance

Dynamic Layered Swf Image To Gif/jpg Conversion
Hi, does anyone know if it is possible to dynamically convert an image in a flash movie that is composed of several layers in to a single image file using actionscript?

We have a cartoon character engine that allows users to build a character from several different objects such as torso, head, hair, legs, jeans etc.

Once the user has finished the character building process (by clicking a submit button) we would like to be able to capture the character in a single image file as it appears to the user so we can save the image in a database. Is this possible?

SWF To Image File Conversion Question.
I'm in the process of putting together a web-interface for a research database and I've run into a bit of a problem. The site will be using a combination of PHP and Flash to generate a dynamic chart/graph in SWF format, based on the user's queries. The code I plan to use is from this site: http://www.maani.us/charts/index.php?menu=Introduction . My problem is, I want to be able to provider users with an image copy of the graph created - sort of a "Save Chart/Graph" button included in the page which would allow the SWF to be saved as a BMP, GIF, JPEG, or PNG (whichever is easiest). There's no animation within the graph - just the created image. I haven't been able to find any examples of code, a specific program, or any mention of any such function through Google that shows that Flash can even do this. Is this even possible? And if so, can someone point me in the direction of a possible solution I can use for this problem?
Thanks in advance for your time and patience,
Eldric

P.S. If this isn't possible at all with Flash, please drop me a line to let me know - that way I can try to figure out another solution to my graph/chart display.

Using Flash In HTML, Alt-image?
Currently, I'm using flash for a navigation bar on a otherwise HTML only page. The owner doesn't wish the entire site to be in Flash and also wants non-flash compatability. Is there a way using dreamweaver, frontpage, or some HTML code that would allow me to display an image or possibly even an image-mapped graphic if the user doesn't have flash installed.

I suppose there would be a way to change the content if I ran a javascript to check for the exsistance of the plugin but I havn't explored Javascript plug-in checks for a long time.

The Html Image Tag In Flash
Hi
I was messing around with html in flash and to test what it can do I made a little swf.. there are to textfields, an input text and a dynamic.. type in your html and press "til html" the dynamic box shows the html formatted..

This works fine except for the img tag, I put up a picture in this folder and type this but nothing happens..

try it here:

html formatter


the path of the pic:

<img="http://www.ors.dk/html/pic.gif">

anyone?

HTML With Image And Flash
Hi, I have a Flash file with the following code in it:


Code:
// Create a new style sheet object and set styles for it.
var styles:TextField.StyleSheet = new TextField.StyleSheet ();
styles.setStyle ("html",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'12px', color:'#0000FF'});
styles.setStyle ("body",{color:'#00CCFF'});
styles.setStyle ("h1",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'24px', color:'#006600'});
styles.setStyle ("p",{color:'#000000', fontSize:'14px'});
styles.setStyle ("a",{color:'#0000FF', fontSize:'14px', fontWeight:'bold', textDecoration:'underline'});
//
/* Assign the style sheet object to myTextArea component. Set html property to true, set styleSheet property to the style sheet object. */
myTextArea.styleSheet = styles;
myTextArea.html = true;
myTextArea.focusTextField = null;
//

var myVars:LoadVars = new LoadVars ();
// Define onData handler and load text to be displayed.
myVars.onData = function (myStr:String):Void {
if (myStr != undefined) {
myTextArea.text = myStr;
} else {
trace ("Unable to load text file.");
}
};
//
myVars.load ("references.htm");
//
THEN, I have the file references.htm to be loaded:


Code:
<p>Text text text. <br/>[<img src='images/imagepopup.gif' width='15' height='15' vspace='0' hspace='0'/><a href="http://www.cnn.com" target="_blank">Link to CNN</a>]</p>
The problem is that the image that is in the HTML code does not appear in the same line with the text (inside the []). Instead, it appears in a line below.

It looks like this:
Text text text.
[Link]
Image

But it should look like this:
Text text text.
[Image Link]


Is there anything wrong with the code? Please advice.
Thanks,

Flash Html Help (image Tag)
Hi,
I am working with the Image tag in the textfield. when i load the image it always take the left or right alignment. i want the image tag where exactelty i place the image tag . In Html it shows fine but the same code i added in flash it dosent work . Please let me know if any solutions for this.
Thanks,
B.Srinivasa Rao
srinu_multi@rediffmail.com (email)
send2srinu@hotmail.com (msn chat)

HTML With Image And Flash
Hi, I have a Flash file with the following code in it:

// Create a new style sheet object and set styles for it.
var styles:TextField.StyleSheet = new TextField.StyleSheet ();
styles.setStyle ("html",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'12px', color:'#0000FF'});
styles.setStyle ("body",{color:'#00CCFF'});
styles.setStyle ("h1",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'24px', color:'#006600'});
styles.setStyle ("p",{color:'#000000', fontSize:'14px'});
styles.setStyle ("a",{color:'#0000FF', fontSize:'14px', fontWeight:'bold', textDecoration:'underline'});
//
/* Assign the style sheet object to myTextArea component. Set html property to true, set styleSheet property to the style sheet object. */
myTextArea.styleSheet = styles;
myTextArea.html = true;
myTextArea.focusTextField = null;
//

var myVars:LoadVars = new LoadVars ();
// Define onData handler and load text to be displayed.
myVars.onData = function (myStr:String):Void {
if (myStr != undefined) {
myTextArea.text = myStr;
} else {
trace ("Unable to load text file.");
}
};
//
myVars.load ("references.htm");
//

THEN, I have the file references.htm to be loaded:

<p>Text text text. <br/>[<img src='images/imagepopup.gif' width='15' height='15' vspace='0' hspace='0'/><a href="

Flash + HTML + Image
Hi,

I want to load an image in a dynamic textfield from xml. The problem is, when i execute the flash file i can see the image getting displayed. But when i publish and make an html, i cant see the image getting loaded in the browser (IE 6.0) but other text without the image is getting displayed.

I am getting image as a String containing text as well as image path as below:

Quote:




<P align='center'>Ashish Chandras</P><BR><P><IMG src='image.jpg' /></P><P>Address:Bla Bla Bla..</P>




I can see the text but couldnt see the image when i publish the file. I am using flash mx 2004 and publish settings are AS 2.0 and Player is 7.0.

Any pointers towards this...???

Thanks in adv
-------------
aShIsH

HTML With Image And Flash
Hi, I have a Flash file with the following code in it:


Code:
// Create a new style sheet object and set styles for it.
var styles:TextField.StyleSheet = new TextField.StyleSheet ();
styles.setStyle ("html",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'12px', color:'#0000FF'});
styles.setStyle ("body",{color:'#00CCFF'});
styles.setStyle ("h1",{fontFamily:'Arial,Helvetica,sans-serif', fontSize:'24px', color:'#006600'});
styles.setStyle ("p",{color:'#000000', fontSize:'14px'});
styles.setStyle ("a",{color:'#0000FF', fontSize:'14px', fontWeight:'bold', textDecoration:'underline'});
//
/* Assign the style sheet object to myTextArea component. Set html property to true, set styleSheet property to the style sheet object. */
myTextArea.styleSheet = styles;
myTextArea.html = true;
myTextArea.focusTextField = null;
//

var myVars:LoadVars = new LoadVars ();
// Define onData handler and load text to be displayed.
myVars.onData = function (myStr:String):Void {
if (myStr != undefined) {
myTextArea.text = myStr;
} else {
trace ("Unable to load text file.");
}
};
//
myVars.load ("references.htm");
//
Then, I have the file references.htm to be loaded:

Code:
<p>Text text text. <br/>[<img src='images/imagepopup.gif' width='15' height='15' vspace='0' hspace='0'/><a href="http://www.cnn.com" target="_blank">Link to CNN</a>]</p>
The problem is that the image that is in the HTML code does not appear in the same line with the text (inside the []). Instead, it appears in a line below.

It looks like this:
Text text text.
[ Link]
Image

But it should look like this:
Text text text.
[Image Link]


Is there anything wrong with the code? Please advice.
Thanks,
CH

Flash + HTML + Image
Hi,

I want to load an image in a dynamic textfield from xml. The problem is, when i execute the flash file i can see the image getting displayed. But when i publish and make an html, i cant see the image getting loaded in the browser (IE 6.0) but other text without the image is getting displayed.

I am getting image as a String containing text as well as image path as below:

Quote:




<P align='center'>Ashish Chandras</P><BR><P><IMG src='image.jpg' /></P><P>Address:Bla Bla Bla..</P>




I can see the text but couldnt see the image when i publish the file. I am using flash mx 2004 and publish settings are AS 2.0 and Player is 7.0.

Any pointers towards this...???

Thanks in adv
-------------
aShIsH

Flash Moving On HTML With Image Only
Does anyone know how to have a Flash movie appear after a certain amount of time on a normal html page, with no background or border or anything except an image, ie. the only image was say a car appearing and moving across the screen and thats it - but as the car moves you can still see the html text behind it.
I saw this when i was on excite.com and wonder how this can be done.
Thanks in advance!!

Can Flash Change HTML Bg Image?
I have a flash file that has two different layouts. One for the home page and one for the interior pages. Each layout needs a slightly different background image in the HTML file. Is there a way I can change the background image from Flash with JavaScript or something without needing to open a different HTML page?

Setting Html Bg Image From Flash...
Hey All,

I am setting up random "themes" for a flash site and each theme requires a unique background image to be used on the html page the flash piece resides. Any ideas how I could maybe pass a javascript to trigger this?

Any help would be greatly appreciated.

cheers
-jub-

Flash Control HTML BG Image
Can Flash control the bg image on a HTML page? I basically have 6 menu items within Flash and when the user clicks on a new button, I want the bg to change, the bg is inside a the HTML page... I realise I could just add the bg image to the Flash file, but want to keep the combo of HTML and Flash... Any ideas?

Flash Control HTML BG Image
Can Flash control the bg image on a HTML page? I basically have 6 menu items within Flash and when the user clicks on a new button, I want the bg to change, the bg is inside a the HTML page... I realise I could just add the bg image to the Flash file, but want to keep the combo of HTML and Flash... Any ideas?

Background Image In Flash Or HTML
Hi there!

I've got a Flash movie with a photo background for added effect, the problem is, this is bumping my movie up to 118 K, its 72K without the background.

I've tried putting the background in HTML, but it won't scale to fit the screen. I've also tried using layers with a 100% sized image, but this screws up if the browser is resized.

Should I put my background in Flash or HTML? Which will be faster at downloading?

Using Flash As HTML Background Image?
Can I use a SWF as a HTML background image?

I've tried this a couple of different ways...

Any tricks to make this work?

Flash Image And Html Pages
I do have an SWF sequence of images in the main html page. In the second page I do have sections. Each section has a title of an image of the SWF file. The role of this section is to describe the image.
I trying to whenever I click on each image of the SWF in the main page, I should be directed to its description in the second page, meaning, that the second page should be loaded and its scroll down bar should go down and stop where the specific section (describing the image I’ve just clicked on) starts.

Flash Control HTML BG Image
Can Flash control the bg image on a HTML page? I basically have 6 menu items within Flash and when the user clicks on a new button, I want the bg to change, the bg is inside a the HTML page... I realise I could just add the bg image to the Flash file, but want to keep the combo of HTML and Flash... Any ideas?

Flash Control HTML BG Image
Can Flash control the bg image on a HTML page? I basically have 6 menu items within Flash and when the user clicks on a new button, I want the bg to change, the bg is inside a the HTML page... I realise I could just add the bg image to the Flash file, but want to keep the combo of HTML and Flash... Any ideas?

Flash Control HTML BG Image
Can Flash control the bg image on a HTML page? I basically have 6 menu items within Flash and when the user clicks on a new button, I want the bg to change, the bg is inside a the HTML page... I realise I could just add the bg image to the Flash file, but want to keep the combo of HTML and Flash... Any ideas?

Changing The Background Image In Html From Flash
I have several frames of a flash movie. I want the back.jpg image in the html page to change to back1.jpg when I click in my flash movie to frame two.

I'm a designer, and not a programmer, but, I assume it's a simple javascript issue.

M

Using A Flash Movie As A Background Image In HTML?
I want to use a flash movie as a background image in HTML. Can this be done? If so, how do I make it happen. I've tried various solutions, but no luck so far. Thanks in advance for the help.

Josh

Flash As Background Image Of HTML-Page
Simple question!?

is it possible to place a Flashmovie (swf) as a background-image into a HTML-table as you can using *.jpg's and *.gif's.

bye

smik

Flash Drop Down Menu Over Html Image
I was wondering how can i create a Flash drop down menu where the drop-down menu will appear on top of a html image.

[CS3] How Do I Change The HTML Background Image From Flash?
Hi,

I'm new to the whole forum thing, but i'm running out of ideas of how to resolve this issue.

I've created a transparent flash movie, for a new portfolio website. I've dropped it into an html page with a full bg image (2000x1500) but i want to change the html bg image each time i click on a new area of the flash movie.

Can this be done? I know it requires javascript and actionscript, but as a designer i am having a real hard time trying to find any solutions or understanding any code thats out there.

Please help if you can...

Cheers in advance.

Can FLash Clear Image In HTML Textfield
Hi all.
When the image loaded into HTML textfield via <img> tag, say, aligned to the left, text floating it right. When i need the text to below the image, without floating it, i've used <br clear="all"> for browsers, and it worked well. Is there any way to simulate such behaviour in Flash HTML textfield?

Thanks.

HTML File Substitute And Image Instead Of Flash
HELP! I already uploaded the website and it contains flash for the header. I just found out that people who do not have flash it just shows a blank box. How do I detect the if the audience has flash and if they don't just have a picture show up.
PLEASE HELP!
Thanks,
Heather

Website: www.jacobusenergy.com

Pass Image Name And Path To Flash From Html
Hello Flash Forum,
I would like to use Flash to display a larger image in an HTML page that opens on top of a window with
thumbnail images. The thumbnail page will be a php page. If the user clicks the thumbnail, I would like to open a swf that diplays the larger image. I would like to pass the path and name of the image to display to my swf. It would open a browser page (or just a swf file) over the thumbnail page. The use could then close the larger image display, and click another thumbnail, etc.

How could I do this? I have a swf file that will display the image, but I would like to pass the image name from outside the swf file.
Thanks for any tips,

eholz1

Changing An HTML Background Image From Flash
Hi all,

I am building a site right now that gives the users the option to change the color scheme of the site.

The problem I am running into is my footer an image outside of flash as the background colour of a table.

Is there a way that I can create some sort of function in flash that speaks with the html of the page to change that table cell's background image? I assume it would be javascript if it's possible.

Border Around Flash Image In Html Table, Shouldn't Be There
On this page:

http://www.techartisans.net/speedMin...php?flash=true

you will find a table which includes one flash image. For some reason the flash image appears a pixel or two smaller than the table cell it is in, and so there is a dark blue border around it (it was a white border until I set the background color of the flash to dark blue). The cell is 326 pixels in height, and colspan=2 so it never actually says it is 360 wide, but it is. The flash image is also 360w x 326h.

I played around with adjusting the size of the flash but it didn't change much, just made the border slightly skinnier or fatter. I also took a good look at the widths and heights of the table cells, and they are all correct.

One strange thing was when I took out the spacer row that Flash creates when it publishes the html. The whole thing went out of wack, nothing matched up, even tho the widths and heights are correct. It's all just weird.

Any ideas why this might be happening, and how to fix it?

Thanks, Emily

Image Maps And Embedding HTML Onto Flash Movie
I know how tto embed a Flash movie into an HTML page. How do i embed an HTML page into a Flash move?

I created an image map in HTML because i didnt know how to do it in Flash5.
The rest of the movie is done in Flash, including the navigation bar. The Flash-implemented navigation bar on the top of the page remains static. When a link is clicked, various movie clips are loaded in the bottom 3/4 (main body) of the page . Is there a way to load the HTML page (with image map) into the main body of my page when the relavant link is clicked? Or is there an alternate way of doing this (say, like converting the image map into a Flash movie clip?)
Any help would be greatly appreciated!

Thanks!
Debbie

How To Display Gif Image In Flash Textfield From Html File
Hi,

I have loaded an html file and displayed in textfield in flashMX2004, It is displaying every thing except the gif image. I am placing the sample code;




var my_lv=new LoadVars();
my_lv.onData=function(prm_data){
if (prm_data){
txt=prm_data; //this will be the raw content, exactly from the .html file
img_txt.html=true
img_txt.htmlText=_root.txt
} else {
trace("error in loading data");
}
};
my_lv.load("ex.html");



if that html file contains gif it is not displaying . Any one can give any suggestions regarding this.

Thank you for your time and consideration.

Regards
Advika

Image Leakage In Html Of Flash Import In Dreamweaver
When i import the .swf file into Dreamweaver as a specific sized image it is fine, but when I wish to have the image box size as 100% or 95% in the html code so it fills the screen and resizes in the browser the flash movie leaks out of the image box and into the html page which then shows bits of the movie out of the designed area, how can i stop this?

[F8] Passing PHP To Flash- Trying To Display Image With HTML, Not Working?
My Flash is correctly passing PHP variables to my SWF, but I'm passing a variable with HTML in it, and instead of loading the image, it loads the text, literally.

Here's my PHP file-

<?php
print "myVar=<img src=http://www.tiffanydavisphotography.com/online01.jpg>";
?>

Html Background Image Covered By Flash Stage
http://rufushale.com/test.html for example.

I am using Flash Pro 8 and DW 8 on ibook g4.

The problem is that i cannot seem to prevent the Flash "stage" from taking up most of the screen, covering the bg image, which is the green stripes. It does not matter how small I make the stage in Flash.

Here is the page code:

<html>
<head>
<link rel="shortcut icon" href="Assets/Images/favicon.ico" >
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}


//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style7 {font-family: Arial, Helvetica, sans-serif; color: #996600; }
.style8 {font-family: Arial, Helvetica, sans-serif}
body,td,th {
background-image:url(http://rufushale.com/vertstripes.jpg);
background-attachment:fixed;
background-repeat:repeat;
background-position:center;
}
{font-family: Arial, Helvetica, sans-serif;
color: #3399CC;
}
.style12 {font-family: Arial, Helvetica, sans-serif; color: #FF9900; }
.style13 {
color: #FF9900;
font-weight: bold;
}
.style14 {color: #FF9900}
-->
</style>
</head>

<body bgcolor="#FFFFCC">
<div align="center">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
<param name="movie" value="test3.swf">

<param name="quality" value="high">
<embed src="test3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>
</object>
</div>

</body>
</html>

Backgorund Image In Html & Flash Movie Problem
i have a problem....
I have a html page with bacground image and inserted flash project that is transparent. everithing o.k.
BUT!!!!
mozzila and iexplorer are displaying different !!!!
I have a image in background of html page in one image in flash and i can see, that mozilla is displaying this image in flash 1 pixel in -y direction, iexplorer displayed o.k.!
that means, if i open the same page in mozilla or explorer i dont get 100% the same picture!
Any idea???
Fresh ales

HTML Swap Image Command From Flash Actionscript
Is there a way within Flash, with actionscript, to make an image swap on an html page? Help!

Making An Image Popup In A HTML Window From Flash
Hi all, I was wondering, how do you make an image pop up in a window javascript style, from flash?

i have a variable in flash, equal to something like "images/image.jpg", and I want to make a button so when you click it it opens up a popup window thats a certain size, without menubars/scrollbars etc, to display that image, like a javascript on your standard HTML.

I read that flash has a javascript API, so there must be a way to do it huh? Is it getURL stuff, maybe with a POST of my variable?

Upload Image To Flash Movie From Html Form
Any ideas (or links to threads/tutorials) on how to have a running flash movie provide an option to upload an image. I would like to use a pop up window with a html form with upload file field, upon submitting, the window closes and the image is uploaded into the flash movie.

My initial thought is to uses a loadvar.load directed at the html form URL and have the form pass the path to the recently uploaded image, which will need to be be uploaded to a temp directory on the server. Then the image is loaded to an empty movieclip.

Does that sound like the way to go or does someone have a better idea?
Thanks

Calling Java Script From Html To Flash For Swapping Bg Image
Hi,
I want to swap images throught javascript. It's working.
but my problem is I want to call that function from flash on press for my button
this is the code I have used in html

<script language="JavaScript1.1">
function swp(id)
{ alert("hi");
if (id=="img1"){
document.getElementById("img1").src = "images/02.jpg";
document.getElementById("img1").id = "img2";
}
else
{
document.getElementById("img2").src = "images/01.jpg";
document.getElementById("img2").id = "img1";
}
}
</script>

this is the code I have used in flash in my button but it's not working

on (release) {
getURL("JavaScript:swp(id)");
}

any one can help me please

Copyright © 2005-08 www.BigResource.com, All rights reserved