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.
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 06-27-2005, 01:31 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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 In An Html Textfield
hi,
i'm using the img tag to display an image in a html texfield with some text but the text doesn't flows around the image correctly unless i make it selectable and click on it which of course is not a solution...
does anyone know how to make the text appear correctly ?
here's my code in case you need it:
/// Flash on frame 1///
var imgXML:XML = new XML();
imgXML.ignoreWhite = true;
imgXML.onLoad = function(success){
if(success){
var root = this.firstChild;
_root.txt = root.firstChild.nodeValue;
T1.htmlText = txt;
}
}
///
I've put a dynamic textField named T1 on the first frame
imgXML.load("img.xml");
/// XML ///
<?xml version="1.0" ?>
<n>
<![CDATA[<img src="img.jpg"width="285"><br>Txt de description de l'image]]>
</n>
///////
AS3: Bind Image In HTML TextField ?
Hi.
I can't fin a solution to my problem ... so i decided to try here
I have assets class with images like:
Code:
[Bindable]
[Embed("icons/smilies/icon_cool.gif")]
public static var COOL:Class;
I would like to bind an image in dynamic TextField using html tag IMG.
I was wondering if is it possible to bind resources ....
had tried <img src='{Assets.COOL}'/>, <img src='@imgAsset'/> ...
Anyone have any idea how to bind embeded images in html textfield?
Tnx in advance
HTML TextField Block Image?
I need to insert some images into a dynamic Textfield via the <img> tag. There are two problems I've encountered:
1) Flash seems to display it as inline, wrapping text around it. Is there a way to specify the image as being block?
2) If I have multiple images near each other, they overlap each other. Is there a way to avoid this?
Thanks for any advice.
Flex AS3: Bind Image In HTML TextField ?
Hi.
I can't fin a solution to my problem ... so i decided to try here
I have assets class with images like:
Code:
[Bindable]
[Embed("icons/smilies/icon_cool.gif")]
public static var COOL:Class;
I would like to bind an image in dynamic TextField using html tag IMG.
I was wondering if is it possible to bind resources ....
had tried <img src='{Assets.COOL}'/>, <img src='@imgAsset'/> ...
Anyone have any idea how to bind embeded images in html textfield?
Tnx in advance
Image In Html Textfield Not Wrapping Text Properly
Greetings,
I have an external .jpg placed inline in an html textfield using an <img> tag with the alignment attribute set to "right". When the textfield first appears on the stage, the text does not wrap around the image and instead continues on behind the image. Once the textfield is clicked/selected or scrolled, then the text re-wraps itself around the image properly.
To hack around the issue I use the Selection methods to select the textfield after inserting the new html text string. This works but unfortunately crashes the player/browser consitantly after replacing the text a few times. Any better solutions out there?
my code:
Attach Code
textfield_txt.htmlText = "html string with inline image tag...";
Selection.setFocus(textfield_txt);
Selection.setSelection(0,0);
Textfield + HTML Hyperlink + Image = Selecting Text?
I have a curious predicament. I am placing html text content into a textfield. Everything shows up correctly. I have placed an image in the html text that has an <a> tag wrapped around it. The <a> taget has an "event:value" target value applied to it. When I click on the link it selects the text (starting from the first character to my image).
Here is the project test site:
http://www.guttaupr.com/testearea/Index.html <-- Click one of the press release items on the main page... when the press release appears, scroll to the bottom and try clicking on the button.
Here is the exact html code on the image: <a href="event:showList"><img src="img/PRBtn.jpg" align="right"/></a>
Thanks!
How To Include Clear Bacground Or Image In Flash Slideshow
Hi there, we are using the following script and dont want the colour background to show as the images dont have a background. So every time one of the images goes from one to next we see a whote background but want to know if we can change it so that there is no colour in the transition OR can we change it so that a background image comes up instead of a colour.
WIDTH="300" HEIGHT="220" ALIGN="" id="slidesimple">
<PARAM NAME=movie VALUE="slidesimple.swf?xmlUrl=exemple2.xml">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#ff6600>
<EMBED src="slidesimple.swf?xmlUrl=exemple2.xml"
loop="false"
menu="false"
quality="high"
bgcolor="#FF6600"
WIDTH="300"
HEIGHT="220"
NAME="slidesimple"
ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="
Textfield Clear
I've got a textfield with input settings that is controlled by buttons. Each button (0-9) will input the value in the textfield.
A script is looking to this textfield and on a special input, it will jump to another scene. What I want now is that this field has to be cleared when it contains 3 digits. So that when i press one off the buttons, it is going to check if there are 3 digits or not. If true, it must clear or reset my complete textfield.
Any suggestions?
Thanx in Advance
Clear Textfield
I'm lqqkinf 4 the code that clears a text field once the cursor/I-beam is in it. For instance, if there is text already in the text field, I would like the code that would clear the text field once I places I beam/cursor in it...
thanks a million
Flamboyant Flasher
Clear Textfield Problem
Hi everyone !
I have a small problem with clearing a textfield....!
I have a movieclip with 3 frames, in the first frame you can type your name, email and comment, and when you hit "send", you go to frame 2, where you can se the information that you just has entered. And in frame 2I have a back button to frame 1, so that they can write a new message, an here I want the textfields to be cleared !!!
Have tried this;
on (release) {
varname = "";
vartelefon = "";
varEmail = "";
gotoAndStop(1);
}
Hope anyone can help me with thsi little problem
Jakob
Clear Textfield Onclick?
Hey everyone
Is there a way to do this with a textfield in AS3:
Code:
MyTextField.onPress = function()
{
this.text = "";
}
I now that the TextField doesn't have an onPress, so what do I do?
I have a loginform, where I want the word "username" to appear until the user clicks in the textfield, an then it resets so the user can enter his username
Clear Focus From Textfield
I have a field that a user can enter data and then push a button to submit that data. The problem I'm having is I can't figure out how to remove the textfield focus(get rid of the blinking cursor) after the user presses the button. Does anyone know how this is done?
Clear A Textfield When You Select It
Does anyone know hoe to clear a textfield when you click on it. I know how to do this in mx, but I now need to know how to do it in 5 or 4 if possible.
I hope someone can help me with this.
Clear Text In Textfield
I have a textfield with the text "type here" in it. I want it so that when the user clicks in it the text disappears.
The textfield uses an onChange listener to initiate a list filter function so I want to maintain this and add another function just to clear the text.
Clear Input Textfield On Click
I have a mailform in my website which sends mail to my email. When a user enters an unvalid email (no "." or "@") the phrase "please enter a valid email" is seen in the input textfield. I want This phrase to go away as soon as the user clicks in the field, rather than having to select the phrase to delete it.
It should be rather easy but I need it to go with my current code which I have been having trouble with....
Code:
fscommand("allowscale", "false");
//
// set some variables
//
mailform = "mailform.php";
//confirm = "thank you a confirmation email has been sent to your email address.";
action = "send";
error1 = "Oops... enter a valid E-mail";
error2 = "Input required";
//
// and focus on variable fname
//
Selection.setFocus("name");
//
// validate email function
//
function validate(address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".")) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
// form check
//
function formcheck() {
if ((((email == null)) || (email.length<1)) || (email == "Oops... enter a valid E-mail")) {
email = error1;
action = "";
}
if (!validate(email)) {
email = error1;
action = "";
}
if ((name == null) || (name == "")) {
name = error2;
action = "";
}
if ((comments == null) || (comments == "")) {
comments = error2;
action = "";
}
if ((validate(email)) && (email != error1) && (name != "") && (name != error2) && (comments != "") && (comments != error2)) {
action = "send";
loadVariablesNum(mailform, 0, "POST");
gotoAndPlay("wait");
}
}
stop();
Textfield Clear Text When Selected
I have a textfield with the text "type here" in it. I want it so that when the user clicks in it the text disappears.
The textfield uses an onChange listener to initiate a list filter function so I want to maintain this and add another function just to clear the text.
Blurry Image With Mask Of Clear Image That Is Supposed To Show When Mouse Rolls Over
Very first thing, after preloader, is a blurry image that is supposed to get clear when mouse goes over the image. Problem is, the image that is clear will not, when previewing the movie, move from the top left corner. It is supposed to be right on top of the other image, which is in the middle of the screen. when i go into the layer that the clear image is it is right over the blurry image. I don't understand why, and have tried many different ways to try and fix this. Please let me know if you can help. Thanks.
[F8] Swapping New Image In As Movie Clip - How To Clear Size Of Old Image?
I'm loading in a jpg with the MovieClipLoader object. After the initial load, the movie clip _width property accurately reflects the width of the jpg loaded. Subsequent reloads show the width of the initial image. i need to get the width of the jpg i just loaded so i can properly size it for display. Is there a good way to clear out the initial jpg?
Blurred Image Tweened To Clear Image
How do are can you, take a blured image and tween (morph) it into the same image but it's not blurred any more.
Thanks for your time and help.
JT
ATL
Clear Image
How do you make a clear image that give a flat image the look of a 3 dimentional object? Like a circle turned into a ball.
Clear Images On Flash Not Clear On Net
I have imported 2 pictures into my library, used the bitmaps in flash converted to symbols for editing. They look great when in flash but they are very pixelated when viewed on the web. Dont know why, quality is all the way up, jpg setting is all the way, it has to do with the way it is published internally. here take a look............. www.newrealitydesigns.com In reference to the table.
If anyone knows whats up let me know.
new_reality@411.com
How? Those Little Boxes Over An Image That Turn Clear
I've seen this on a few websites and I was curious of the best way to go about doing this.
I'm talking about some sites that will have an image, with what looks like a grey film over it. When you mouse over the image you find out it's really tons of 10x10 (or something similar) boxes all together, and when you mouse over one box it turns invisible. After 10 seconds or so the box fades back to the grey film.
I figure the little 10x10 grey film boxes are one movie clip with the alpha at 40% or something duplicated on top of an image. Then a mouse over function that will call a function to turn the alpha off, then after 10 seconds has it fade back to 40% or whatever made it look like the grey film. Is that the right way of thinking?
If so, what is the best way to lay out all the little boxes? I'm figuring they use actionScript and avoiding the time of placing each one on the stage. If so, what would the actionScript look like? Would is just be as easy as taking the width/height of the image it's covering and have it place one every 10 pixels, this way allowing it to cover different image dimensions?
I'm not sure if this way of thinking is too complicated and may strain the viewers system, anyhow, if anyone has any opinions or tips I'd really like to know.
thanks
sorry for the length of this tale.
Import Image With It's Background CLEAR
"SWISH2"I know how to import images, but How do you import an image thats not a square (flat sides) so that it's background is CLEAR? Here is an example: I've loaded a Scene(Image) of Space, Now I want to Place a SpaceShip in it and have it move or use it as a Logo, But Obviously the background around the SpaceShip comes with that image and it looks Stupid in the Movie. So how do I get rid of it (the spaceShips Background)so the SpaceShip itself looks like it's in Space (Scene/Image)? I can cut the SpaceShip out of it's original picture, but how do I get it into Swish2 and the scene as an object that can move or increase and decrease in size?
Getting Text From A Flash Textfield For Use In A Html Form...
Im using coldfusion to update my database online and would like to create a flash interface for it. How can I pass text from a flash text field to an HTML text field, or something else, for use w/ my form.
example: You enter text in a flash text box, then that text is taken from the field, just like an HTML form, and processed.
any ideas?
-Regards,
Tyler
Problem With Html-codes In A Flash-textfield
OK, that is not the problem, because that works.
But the thing is that the html-codes in the xml are plain text in my textfield.
Instead of making a link to a website, the text reads "< a href="..." "
where i should get a link... The textfield is <> checked.
in the file you'll find my php-page (to output the xml) and the flash-file.
You can download it here
i've been looking and searching for the UTF-8 stuff but right now, i'm going crazy...
Html >> Automatic Popup >> Clear SWF
Hi guys and girls,
Well I decide to post here because I think it is an newbie question.
I want to put my simple commerce POP-UP window.
1) I've got a HTML file
I want my SWF file to show up automaticly after index.html is loaded.
I want that SWF file clearly POPUPed on my screen without any
border or frames - nothing just simple Movie CLIP.
Guys.. I just don't know which key words should I use to
find a solution for this. I`d be grateful for any advice.
Thanks
mrlame.
Html >> Automatic Popup >> Clear SWF
Hi guys,
First of all I`m not certaing about my question.
I hope you understand it..
Well what I want to do is simple automatic flash popup window.
I've got simple html website that I want to popup swf file
without bars or anything just SWF file.
Do you know how to do this?
Well I've made my swf file with possibility of closing it after popup.
Now I don't know what code to put into my html file which is
javascript I guess..
I just need advice or just the solution.
Thanks.
How To Clear Flash When Using "get Url (pg2.html)"?
my site has a lot of streaming mp3s (in .swfs).
when i test it on a dialup connection (aol), they sound fine, but when i go to another html page on my site via "get url" with the path "page2.html" the songs on the new page glitch.
if i go to another page via "get url" with the path "mysite.com/folder1/page2.html" it works fine.
the reason that i embedded my flash pages in html pages was because i hoped that all of the flash would stop streaming when people switched .html pages.
my buttons use "stop all sounds" and "loadmovie number" (into the same level as existing song) to switch sounds. is there a better way?
is there script that i can put on my navigation buttons that will stop/clear all flash?
any help would be appreciated, i need to figure this out and get some sleep,
thanks,
noah d. noahd@deezlee.com (very much under constuction)
Copy Flash Textfield Realtime To HTML Form
Hi,
Is there a way to copy flash textinput-values from a flash to a HTMLform(to a hiddenfield) in realtime (so prior to posting the HTML form itself)?
Kind regards
Patrick
Dynamic TextField > HTML Text > Flash Function
Hi there,
Dynamic textfields in Flash can contain HTML-code like:
click <a href='http://www.flashkit.com'>here</a>
It's a standard anchor tag that adds a link to the textfield.
Now I would like to add links to a textfield that, instead of opening webpages in a webbrowser, execute Flash functions. Is that possible?
Increase Size Of HTML Text In Flash TextField
Well, I basically said it all in the title.
Can a user increase the size of HTML text loaded into a Flash textField with Ctrl+"+" or Cmd+"+"?
I have several textFields (html = true) in a .swf, then loaded some text stored in a .xml file into them, styled the text with a .css file and was wondering if, being html text, it would respond to the browser options for increasing or decreasing font-size.
Thanks for your help.
Copy Flash Textfield Realtime To HTML Form
Hi,
Is there a way to copy flash textinput-values from a flash to a HTMLform(to a hiddenfield) in realtime (so prior to posting the HTML form itself)?
Kind regards
Patrick
Embedding Swfs In Html That Loads Into Dynamic Textfield In Flash
Hi...
I'm pretty rusty with my actionscripts now...
So pleading for help for this problem.
I'm trying to embed or load a swf (lets say from youtube), that i've written on a html.txt, which will be displayed in my dynamic textfield, in my flash file.
I've no problem updating or including images in the html.txt, which load beautifully into my flash file.
However, are there any ways of doing the same for another flash file?
Thanks in advance..
Embedding Swfs In Html That Loads Into Dynamic Textfield In Flash
Hi...
I'm pretty rusty with my actionscripts now...
So pleading for help for this problem.
I'm trying to embed or load a swf (lets say from youtube), that i've written on a html.txt, which will be displayed in my dynamic textfield, in my flash file.
I've no problem updating texts or including images in the html.txt, which load beautifully into my flash file.
However, are there any ways of doing the same for another flash file?
Thanks in advance..
Photo Gallery: Last Image Doesn't Clear On GotoAndPlay On Different Scene
I've built this photo gallery, using a tutorial book, standard script. The rub is that I can view the thumbnails fine they switch, however whatever the last photo is stays.
I click on my button with the script below.
home_btn.onRelease=function(){
gotoAndPlay ("Scene 1", 141);
}
Once it's clicked, flash goes to the appropriate from in Scene 1, but the movie(photo) is still on displaying. I've tried about about everything, new buttons, tried to trick it to load a movie only had a transparent box.
Why does it continue to display the movie(photo)?
TextField: Can We Embed HTML In Textfield?
Hello all,
I know that textfield can embed HTML like:
Code:
createTextField("noteText", 1, 100, 100, 300, 30);
noteText.type = "dynamic";
noteText.wordWrap = true;
noteText.border = true;
noteText.html = true;
noteText.htmlText = '<font color="#FF0000">This is HTML</font>';
I wonder if we embed button, HTML input field int Flash textfield?
Code:
noteText.htmlText = '<input name="txtTest" type="text">';
Thanks,
INPUT TextField Within An HTML TextField Via <img>
I'm trying to extend an HTML TextField to include an INPUT TextField control as an <img> tag. This I can do. The problem is that mouse and keyboard events are not being seen by the inner TextField. I created a test case to demonstrate the situation. My guess is that <img> tags are treated like AS2 events and because the outer TextField is trapping text events, they are not propagated to the inner TextField. Is there anyway around this problem? Mouse events to other DisplayObjects work fine. I'm using Flash CS3.
The test case contains two classes. TextImgTest is the document class for TextImgTest.fla. TestImg implements the <img> loaded by TestImgTest. To run this. Just create an empty TextImgTest.fla and set the document class to TextImgTest. Then publish and run.
Attach Code
package
{
import flash.display.MovieClip;
import flash.events.TimerEvent;
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import flash.text.StyleSheet;
import flash.utils.Timer;
import TestImg;
public class TextImgTest extends MovieClip
{
public var textField: TextField;
public var styleSheet: StyleSheet;
public var img: TestImg;
public var timer: Timer;
public function TextImgTest(): void
{
// render directly
img = new TestImg();
addChild(img);
// render within a TextField as an <img> tag.
styleSheet = new StyleSheet();
styleSheet.setStyle("p", {fontFamily:"sans-serif", fontSize:"10"});
textField = new TextField();
textField.styleSheet = styleSheet;
textField.multiline = true;
textField.autoSize = TextFieldAutoSize.LEFT;
textField.wordWrap = true;
textField.border = true;
textField.borderColor = 0x0000FF;
textField.background = true;
textField.backgroundColor = 0xFFCCFF;
textField.width = 190;
textField.x = 5;
textField.y = 120;
textField.htmlText = "<p>TextField with an <img src='TestMsg' id='rmk'> tag:<br><img src='TestImg' id='rmk'></p>"
addChild(textField);
textField.selectable = true;
textField.mouseEnabled = true;
// Give it a little time to render then get a reference to it.
timer = new Timer(3000, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimeout);
timer.start();
}
public function onTimeout(evt: TimerEvent): void
{
var freeText: TestImg = textField.getImageReference("rmk") as TestImg;
freeText.tField.mouseEnabled = true;
freeText.tField.selectable = true;
freeText.tField.appendText(" Got ImageReference for 'rmk'.");
}
}
}
===================================================
package
{
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextField;
import flash.text.TextFieldType;
public class TestImg extends MovieClip
{
static public const MSG_WIDTH: int = 170;
static public const MSG_HEIGHT: int = 100;
static public const MSG_MARGIN: int = 8;
public var tFmt: TextFormat;
public var tField: TextField;
public var sBut: SimpleButton;
public function TestImg(): void
{
super();
this.tabEnabled = false;
this.mouseEnabled = false;
// Show this MovieClip
with (this.graphics)
{
clear();
beginFill(0x9999FF);
drawRect(0, 0, MSG_WIDTH, MSG_HEIGHT);
endFill();
}
// Show the INPUT TextField within it.
tFmt = new TextFormat("_sans", 10, 0x000000, true, false,
false, null, null,
TextFormatAlign.LEFT);
tField = new TextField();
tField.type = TextFieldType.INPUT;
tField.height = MSG_HEIGHT - 2*MSG_MARGIN - 16;
tField.defaultTextFormat = tFmt;
tField.multiline = true;
tField.wordWrap = true;
tField.width = MSG_WIDTH - 2*MSG_MARGIN;
tField.border = true;
tField.borderColor = 0xFF0000;
tField.background = true;
tField.backgroundColor = 0xFFEECC;
tField.x = MSG_MARGIN;
tField.y = MSG_MARGIN;
tField.text = "TestImg MovieClip containing an INPUT TextField.";
this.addChild(tField);
tField.selectable = true;
tField.mouseEnabled = true;
// Show the button within this MovieClip
var butGraphics1: Sprite = new Sprite();
with (butGraphics1.graphics)
{
lineStyle(1, 0x000000);
beginFill(0xFF0000);
drawRect(0, 0, 32, 16);
endFill();
}
var butGraphics2: Sprite = new Sprite();
with (butGraphics2.graphics)
{
lineStyle(1, 0x000000);
beginFill(0x00FF00);
drawRect(0, 0, 32, 16);
endFill();
}
sBut = new SimpleButton();
sBut.upState = butGraphics1;
sBut.overState = butGraphics2;
sBut.downState = butGraphics1;
sBut.hitTestState = butGraphics2;
sBut.x = MSG_MARGIN;
sBut.y = MSG_HEIGHT - MSG_MARGIN - 16;
this.addChild(sBut);
}
}
}
Display Html Table In Html Enabled Textfield. Alternative?
hello!
i'm facing an issue due to the shortcomings of html tag support in flash.
The xml file containing the content to be displayed in a textfield (with html enabled) on the stage, contains a table. Right now, it displays each cell underneath each other, as if it were a paragraph. Any idea if there is a way to do this?
Also, is it possible to display an image inside a textfield (loading a img src="myimage.jpg" ) ?
thanks a lot!
alex
Clear Button Work To Clear All The Lines Drawn On The Board
hi i need help in regrading to my school project... here is my project... i have been stuck with this for the pass 2 weeks and i still cant figure it out i am hoping that some one would be able to help me.
my project is that i need to click 3 points on the board to draw line connecting the points which i have done.
but i need help in getting my clear button work to clear all the lines drawn on the board
and also to allow the program to draw another sets of lines after the first line has been drawn
and also an undo button that will undo the previous line drawn
HTML Textfield Shows My Html Tags?
My html properties of my textfield are set on true and STILL he shows all my html tags? (property is set with actionscript AND in properties panel)
The XML with the html content looks like this:
====================================
<?xml version="1.0" encoding="utf-8" ?>
<texts>
<text><![CDATA[ <p>Vai kaut reizi esi</p>]]></text>
</texts>
====================================
Code:
var xmlTexts:XML = new XML();
xmlTexts.ignoreWhite = true;
xmlTexts.onLoad = function(ok) {
if (ok) {
var varText = this.firstChild.firstChild;
mvcText1.txt.html = true;
mvcText1.txt.htmlText = new String(varText);
//mvcText1.txt.htmlText = "<p> this is text </p><p> this is text </p><p> this is text </p>";;
trace("HTML set on "+mvcText1.txt.html);
}
};
xmlTexts.load("texts.xml");
Clear Stage And Clear Class Values?
I'm working with this tutorial to create a quiz, but modifying it to load the data from XML: Create a Quiz Application Using AS3 Classes
I would like to put a retry button at the end that would clear all previously set values and clear all the display objects that I've added to the stage and basically start the file over again as if it was the first time. Is this possible?
I would think there's an easy way since it is using external class files... I hope it doesn't require a lot of manual Remove Child At and clearing variable and array values.
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
|