Renders As Square In Dynamic HtmlText Field
So I an into a little problem with the spacing of my links, I found that if I just add a at the end of the link everything spaced out correctly. But now I get a square instead of just a space. I have tried embedding the font and making the text field htmlText. I have attached a diagram to show what I am talking about.
Thanks, D
FlashKit > Flash Help > Actionscript 3.0
Posted on: 06-09-2008, 06:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic HTML Textfield Renders Blank With Embedded Font
OK, here's the problem:
I want to create paragraphs in a flash movie using dynamic textfields, with HTML formatting. It mostly does the job, but when I set the Textfields to embedFonts = true (so that the text format is the same as the static text in the movie) the text fails to render and I am left with blank boxes. Here's the function I am using:
code:
function createDynamicTemplate() {
_root.createEmptyMovieClip("pageTemplate", 100)
_root.pageTemplate._x = bounds.left;
_root.pageTemplate._y = bounds.top;
var paras = _root.tuts[_root.currentTutorial.name].Body["Page"+_root.currentTutorial.page].attributes.Paragraphs;
var tf = _root.subTitle.subTitle.getTextFormat(1, 2)
for (var i = 0; i<paras; i++) {
var str = checkForTags(_root.tuts[_root.currentTutorial.name].Body["Page"+_root.currentTutorial.page]["Paragraph"+(i+1)][_root.language]);
_root.pageTemplate.createTextField("paraTxt" + (i+1), i + 100, 0, 0, 470, 10)
_root.pageTemplate["paraTxt" + (i+1)]._x = 0
_root.pageTemplate["paraTxt" + (i+1)]._y = _root.pageTemplate["paraTxt"+(i)]._height + 20
_root.pageTemplate["paraTxt" + (i+1)].type = "dynamic"
_root.pageTemplate["paraTxt" + (i+1)].html = true
_root.pageTemplate["paraTxt" + (i+1)].autoSize = true
_root.pageTemplate["paraTxt" + (i+1)].multiline = true
_root.pageTemplate["paraTxt" + (i+1)].wordWrap = true
_root.pageTemplate["paraTxt" + (i+1)].setTextFormat(tf);
_root.pageTemplate["paraTxt" + (i+1)].htmlText = str;
_root.pageTemplate["paraTxt" + (i+1)].embedFonts = true
}
}
The textFormat I use is taken from a dynamic text box (with embedded fonts) already in the movie. If I comment out the "_root.pageTemplate["paraTxt" + (i+1)].embedFonts = true" line then the text shows but obviously not with the required font.
Any ideas how to fix this or is it a known bug?
Cheers for any help.
Non Square Text Field?
Can you make a text field that isn't a square? I'm trying to wrap some text around an image.
+ And % In HTMLtext Field
Okie, feeling stupid,
what do i need to do to display + and % symbols in a html text field,
Thanks,
Chi
How To Display < And > In Htmltext Field?
That's my question... When I use < and > symbols in Flash MX, whatever is between becomes a tag and disappears.
Flash MX's HTML field doesn't seem to recognize < or > like Flash 5 did...
So how do I make it work???
Thanks
-J
EmbedFont And HtmlText On The Same Field ?
Hello,
Its' not difficult to define a textFormat on one line with all the properties in the constructeur, or property by property - appart that it's better to not define the Bold property if you want to use it in your htmlText.
It looks that we can still add the CSS to define some other aspects ot the field, if needed - but that's not part of the subject (!).
Then if we specify the html property of the TexField to true and if we insert the text in the HtmlText property, we can use the html tags (some of them, at least !) which affect the content of the Text directly.
My problem is that I need to use the TextFormat because the police I use is embedded - No choice ... in that case I cannot use the hltmTags anymore : there are not recognized ... unless I'm doing a basic mistake that I can't find by myself : can you have a look please ?!
For this example, a police called "FFF Harmony" is embedded in the author environnment, :
Code:
_root.createTextField('blabla', 10, 10, 10, 300, 120) ;
var myText : TextField =_root['blabla'] ;
myText.html=true ;
myText.htmlText='Today isMonday <b>Monday is bold</b>' ;
myText.background=true ;
myText.backgroundColor=0xBBAACC ;
// if you comment this line and the other one, everything is ok
//myText.embedFonts=true ;
var myFormat:TextFormat = new TextFormat();
// If you activate this line, there will be "Monday is bold" but all the line will be bolded
// myFormat.bold = false;
myFormat.font = "FFF Harmony";
myFormat.size = 12;
myFormat.leftMargin = 3 ;
myFormat.align= "left";
//
myText.setTextFormat(myFormat);
Thank you by advance
Formatting HtmlText Field With XML Content
Hello once again everyone,
Within a movie clip I have several text fields, all of which are populated from an XML file. I'm attempting to format some of the fields based on the status of other XML line items. This population function exists in a loop. It basically looks like this:
ActionScript Code:
if(xmlList.Highlight[b] == xmlList.itemID[b]){
_mc.itemName.htmlText = '<b>'+xmlList.itemName[b]+'</b>';
} else {
_mc.itemName.htmlText = xmlList.itemName[b];
}
I have all the fields populating, but the text is not formatted properly, i.e. not displaying bold text when selected for highlighting by the XML file. I'm not entirely sure what I'm doing wrong...
Can you help? Thanks in advance as always!
Dinamic Text Field As HtmlText
Hi,
I got a dinamic text field using htmltext = <some xml feed>
but on this feed i got
£
’
and others
any idea how can i get it to render properly?
Thanks
rS
Text Flow In HtmlText Field
I am pulling in content from Wordpress to an htmlText field that contains both images and text. The default behavior for the image tag in an htmlText field is for it to align to the left of the text so that the text may wrap around it.
I do not want this to happen and cannot for the life of me determine how to stop it from happening. As it stands now, the content Flash is receiving is a paragraph of text, a new line, an image tag, a new line, and another paragraph of text. It places the image to the left and the text to the right of the image.
Can anyone help? Relevant declarations are below.
Quote:
var blogContent:TextField;
var blogContentFormat:StyleSheet = new StyleSheet();
var newLineDetector:RegExp = new RegExp("u000A", "g");
blogContentFormat.setStyle("body", {fontFamily:'Georgia', fontSize:'12px', color:'#666666'});
blogContent = new TextField();
blogContent.embedFonts = true;
blogContent.styleSheet = blogContentFormat;
blogContent.htmlText = "<p>" + body + "</p>";
blogContent.multiline = true;
blogContent.autoSize = TextFieldAutoSize.LEFT;
blogContent.wordWrap = true;
blogContent.width = 555;
blogContent.htmlText = (blogContent.htmlText).replace(newLineDetector, "");
blogContent.y = titleTxt.height + 20;
trace(blogContent.htmlText);
Putting An ACTION On A <p> Or And <a> In A HTMLText Field
Hi everyone,
I'm building a long scrolling dynamic text field like this...
artistlist.htmlText="<P><A HREF='http://www.cnn.com'>"+arrArtist[i]+"</A></P>"+artistlist.htmlText;
But I'd like to call ACTIONSCRIPT from each of the lines in my text field - rather than an HREF like in my example. Does anyone know if this is possible inside a dynamic text field? Or do I have to make dynamic buttons and put them inside a scrollpane?
Cheers for any help you can give me,
Sarah
£ Sign Not Displaying In HtmlText Field, Even When Embeddded
for some reason my £ signs are not coming across correctly. Have tried embedding this character as well, but still will not come through. I am using verdana font, and I'm not sure why the £ sign is dropping off. It shows in the trace statement, but as soon as I try to display it Nada. Any ideas what would cause this??
Font Problem While Creating HtmlText Field With Actionscript
Hi,
1. When creating htmlText field on the stage there is no problem with UTF-8 fonts.
- a. create htmlText field on the stage
- b. fill this field with all the characters you are going to use
- c. enter your font name in the Properties dialog box
- d. in properties dialog box click Embed button and choose Auto Fill button, this will populate an internal window with all the unique characters entered in step b.
- e. that's it and it works!
(Step d. will ensure Flash swf file with all those out of the range characters to be visible)
2. When creating htmlText field with actionscript on the fly there is a problem with step d. as described above. How to do it while creating htmlText field with actionscript?
Does anybody know?
Open New Window (using Javascript) With HtmlText Text Field Not Working - Weird.
I really hope someone has a minute to help me figure this out. First, I really hate popping up new windows, and I hate relying on javascript, but lets just imagine this is something I have to do.
Ok, so all I really want to do is open a new javascript window from within my Flash file. To do this, I'm calling a function in flash which calls the javascript function in the html file.
It's really weird. When I call the flash function with a button, it runs the flash function which runs the javascript function which opens the window - even with Safari and Firefox popups blocked.
When I call the flash function with the htmlText text field, it calls the Flash function which calls the javascript function, but the window is blocked by the popup blocker.
This seems very strange to me. How does the browser know the differnence? Has anyone found a way to open a new window using an htmlText field which won't trigger a pop-up blocker?
Attached are my test files. And here's my testing link:
Many, many thanks,
Josh Knight
Here's the AS code:
Here's my testing page
Attach Code
//
// Try opening a window with a button. Calls a function in flash, which calls a javascript function in the HTML
//
open_with_button.onRelease = function() {
launch("from_button");
};
//
// Try opening a window with an html text box <a href="..."> Calls a function in flash which call a javascript function in the HTML
//
launch_with_html_text.htmlText = "<a href="asfunction:launch,from_html_text ">Open a new window with htmlText text field</a>";
//
function launch(passed_parameter) {
getURL("javascript:launch('http://www.seven-seventeen.com/')");
as_function_check.text = passed_parameter+" Flash function ran. Should launch window"; // Checks which
}
//
as_function_check.text = "What was just pushed";
/////////////////////////////////// THE JAVASCRIPT FUNCTION IN THE HTML PAGE /////////////////////////////////
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function launch(page) {
alert('HTML Javscript ran, should launch new window');
OpenWin = this.open(page);
}
// End -->
</SCRIPT>
Loading External HTML To HtmlText Field Doesn't Work Properly If The Text Is Not BOLD
I have two textboxes. Both are set as HTML.
The first one has a routine inside the Flash file itself, to fill it up with a list of dates and event names.
This first one generates links that go something like this:
HTML Code:
<a href="asfunction:_root.fillHomeTextBox,load_demo.php">
And when these links are clicked, the load_demo.php contents are properly loaded, and fills the second HTML textbox via the fillHomeTextBox function (I suspect it's not necessary but I'll paste that function here anyway):
ActionScript Code:
fillHomeTextBox = function(url) {
myData2 = new LoadVars();
myData2.onLoad = function(){
trace(this.content);
_root.pages001.page_home.block1.homeTextBox.htmlText = this.content;
};
myData2.load(url);
}
My question is that I cannot get non-bold text to load. It seems like text is only recognized if wrapped inside
HTML Code:
<b> </b>
tags.
I will paste one example of code that works (generated by load_demo.php) that works, and what doesn't work (which I want to work, as I don't want everything in bold).
ALL IN BOLD - Works (I've upcased --here-- the relevant "B" tags for ease of spotting for comparison with the bit of code right after this next one):
Code:
content=<b><font size='25px'>Quinta 13/Set</font><br><font size='20px'>Monsieur Pelota</font></b><br><br><B><font size='12px'><img width='100' height='100' src='dddf3b4.jpg' align='left' hspace='5' vspace='5'>André Soares starts his adventure as a dj in 1998 (...)</font></B>
WITHOUT BOLD IN THE LAST BIT - Stops working (for that part, keeps displaying the first part of text, and the picture):
Code:
content=<b><font size='25px'>Quinta 13/Set</font><br><font size='20px'>Monsieur Pelota</font></b><br><br><font size='12px'><img width='100' height='100' src='dddf3b4.jpg' align='left' hspace='5' vspace='5'>André Soares starts his adventure as a dj in 1998 (...)</font>
I've tried to use SPAN, P... but nothing works. B for some reason, does. This is with Flash 8 and AS 2, by the way.
I am really lost with this, it's been more than 24 hours and I haven't found a solution yet.
Any help is immensely appreciated!
-Ricardo
How Do You Make A Dynamic Square
Hi everyone,
Quick question. How might one go about making the following effect. A user can specify the dimensions of a box (width and height), and the movie clip which is a square to begin with automatically animates to the adjusted size. Any help and insight would be much appreciated. Thanks
Don
Hovering Square - Dynamic Animation
I'm trying to animate squares so that they look like they are floating above the page and casting shadows.
I need them to move randomly left-right and up-down, by a few pixels (they mustn't move to far from their original starting position).
All I can get at the moment is a jerky movement - it needs to be smooth.
Can anyone help?
HTML-code In Dynamic Text-square
Hey!
Is it possible to get html-code in a textfile that is linked to a dynamic textsquare in a flash-movie, to execute as code, not just be displayed as pure text?
.....................I T C A N ' T B E D O N E...................
I know this can be done but I must have the syntax wrong. How do I have a button with a goto and play frame label action with the frame label as a variable. I have forward and back buttons and I want to code them once with a _level0.here +1 or -1. _level0.here is my variable that I reset at every frame label which are labeled with numbers. Here is what my back button looks like:
on(release) {
back = String (_level0.here-1);
gotoAndPlay (back);
}
Thank you to anyone who can help.
 
My static text box is replaciing double spacing with  . I am using device fonts. I am trying to indent to create a bulleted list, however it isn't working for me because of the " ." (it's not showing up in my thread...it's only showinbg as a space!!!!!!)
I've tried to change the boxes to dynamic text fields but it won't let me have different colored sentences, title, etc. The text is all the same.
Does anyone know how to fix this? Why would this be happening?
Thanks for nay help!
HtmlText Img Dynamic Src
I am trying to load an image in an textfield in my flash movie. I am using the htmlText property to load the <img tag.
I am having an issue when trying to load an image from a dynamic src. I keep getting this error:
Error opening URL 'http://IMAGEDOMAIN?Z=300x250&s=74784&t=2'
Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.
The htmlText would look like this:
<img src='http://IMAGEDOMAIN?Z=300x250&s=74784&t=2' border='0'>
Can I not point to a script in the image tag when using htmlText of a textfield?
Does anyone have any suggestions on a better way to do this?
thanks for your help.
Event.target.data Won't Show In HtmlText Field Although It Does As "trace"
Something a little weird is happening to me. I'm pulling some data from php and flash actually receives it in this form
Code:
trace("comments: " + event.target.data["comments"]);
outputs:
comments: <img src='img.jpg' align='left'/> by Harissa<br><br>A wide range of possibilities. Feel the freedom in your hands. Gift of imagination and creativity.<br><br>
However, this does not show up in my htmlText textfield. If I take this piece of code and paste it as my htmlText = "" it does output everything properly, including the image. But as soon as I try this:
Code:
comment_txt.htmlText = event.target.data["comments"];
I get nothing in there.
Thanks for your help.
Dynamic HtmlText Isn't Working
About as simple as can be...
var t = new TextField();
addChild(t);
t.htmlText = "Hello<br> World";
This does not display the line break...p tags also don't work. However, <b> tags do...do I need to initialize something?
Help With HtmlText From Dynamic File
Before you flame please know that I have searched for the answer and can't find a good exaple.
anyway I have a dynamic text box that I'm loading html formated text in from a txt file (news.txt) ... all works fine and <img> shows up .... only problem is that I can't get this one link
<a href ="http://www.memphisrap.com/community/modules.php?name=News_Home&file=article&sid=1324" target="_blank"><i>(read more)</i></a>
to display properly .... as a matter of fact it doesn't show at all .... but when I change the text file to
<a href ="http://www.memphisrap.com/" target="_blank"><i>(read more)</i></a>
th
it works fine ... but I need the first link to work as it points to a specif article
Dynamic HtmlText Leading Possible?
Ok, I´ve searched this forum, but I couldn´t find any answer to my problem.
I have a movie that creates an empty text field.
ActionScript Code:
txt.html = true;
txt.multiline = true;
txt.wordWrap = true;
txt.condenseWhite = true;
txt.autoSize = "left";
txt.selectable = false;
txt.embedFonts = true;
How can I change it´s leading (line spacing)?
I´ve tried:
ActionScript Code:
var my_fmt:TextFormat = new TextFormat();
my_fmt.leading = 20;
txt.setTextFormat(my_fmt);
...with no luck...
How Do I Cut A Square Out Of A Larger Square Using Actionscript
I want to use actionscript to draw a square in a larger square that appears as a hole or window in the larger square. I know how to use AS to draw a square, but I can not seem to find a way to cut one square out of another. Does anyone know how to do this?
Showing In Netscape
When publishing my movie from Flash MX to Flash 5, everything goes smoothly. Enter the rendering on Netscape. Wherever I have used a double space character in a text field it replaces the second with an as if I were looking at the HTML source.
Anyone have an idea what to do?
Thanks,
jadik
Showing In Netscape
When publishing my movie from Flash MX to Flash 5, everything goes smoothly. Enter the rendering on Netscape: Wherever I have used a double space (space character twice) in a text field it replaces the second with an as if I were looking at the HTML source.
Anyone have an idea what to do?
Thanks,
jadik
Flash MX 2004 +
Hi basically I've got a Flash 6 (v1.0 actionscript) and want to publish it as Flash 7 Actionscript v 2.0
Whole thing seems to work fine except I have a function which splits strings up by space character - and each word in the string is then made into a hyperlink and concatenated to a textformat tag.
The whole generated html is then applied to a html text field and is displayed accordingly however I used :-
Code:
txt += ' ';
in my original version to add space between hyperlinks now however this does not work and there are no space between my hyperlinks - tried " " this doesnt work either.
Is there a special tag for nbsp in 7 or is it not supported??
Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.
using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.
here's the fla if i haven't been clear.
thanks for any/all help,
josh
Input Field Multiline> When Dynamic Multil Field Shows That Data From Mysql But No Wr
Hi,
A form with an input field that is multiline and called "description" send data to a MySql database (PHP).
Another Flash page contains a dynamic field that is also multiline and that displays the content entered in the form.
This dynamic field has a vertical scrollbar.
The problem is that the content displayed in the dynamic field DOESN'T wrap at all (the dynamic field is but on MULTILINE) and so you miss all the text that is larger than the dynamic field.
How can I fix this?
Thanks in advance.
Kerning, Dynamic Textfield, And Htmltext
I am trying to fix the kerning on some text, grabbed from a database, that is loaded into a dynamic text field.
Here is sort of what I have:
Code:
var message:String = new String();
message = "The spacing is getting <b>messed up</b> when I have <b>bolded</b> text within my string.";
txtMessage.html = true;
txtMessage.htmlText = message;
txtMessage.embedFonts = true;
var fmtItems:TextFormat = new TextFormat();
fmtItems.kerning = true;
fmtItems.font = "Verdana";
txtMessage.setTextFormat(fmtItems);
This should work, but I'm not having any luck. Has anybody else been able to figure out what is going on here? Is this a Flash bug and if so will it be fixed in Flash 9 or whatever the next version is called?
Thanks for the help.
Jason
Dynamic HtmlText - Textwrap Around Images
Hi,
I have a dynamic text field that is having html text into it but when it does the text wraps awkwardly around it (only a line of one character wide shows). Is there a way to put padding on the image or something else that would force the text below the image? Here is where i am having the problem: http://jeffhirsch.net/RSS/
Thanks
Dynamic Text - Htmltext Dans <img> Tag
Hi everyone,
I'm trying to do something which could be very simple, but which is actually a pain in the ***...
I have a dynamic text which gets htmltext.
So far, everything is ok.
But, I try to load pictures dynamically in this text, with the <img> tag
and I would like the text to continue below the picture instead of wrapping the picture like it does.
I can't imagine that the only way of doing that is to put <br> tags, as many as the height of the picture loaded.
It would indeed be very inconvenient as my text and my pictures come dynamically from a database and I don't know their height.
Thanks a lot to all of you who read this and tried to help
Emilie
Dynamic Text, Masking And HtmlText
Last edited by JimTester : 2007-03-13 at 04:43.
This isn't just another dynamic text masking question! I have tried so many variations of this problem. It's either impossible or I've just been unlucky.
What's the crack here?
I'm pulling data in from an XML file (as you do)....and 'binding' it to a dynamic text thingy-me-jig with "render text as HTML" selected. No problem here.
I have a stylesheet included so I can style the text nicely....No problems here either.
In fact there's no problem at all if I use the built in Flash UIScrollbar component.
The problem occurs where I try to write my own scroller which includes a mask. Am I correct in thinking that you can't mask dynamic text that is output using myText.htmlText = "<span class='title'>My Title</span>" ?
If you can then I'd like to see proof as I have tried every combination of embedding, not embedding masking using setMask etc.....Please HeLPPPPP!!
I have tried embedding fonts (where the option exists) (there is no option to embed fonts when I choose _sans).
Cheers
James
Dynamic HtmlText Will Not Work Correctly
htmlText is not working, the text is not html text formated, other formating works though. is there some syntax error which i am missing? thanks alot
ActionScript Code:
function draw_news(nz_width:Number, nz_height:Number, nz_x:Number, nz_y:Number, nz_font:String, nz_size:Number) {
// define the text format
ref.news_fmt = new TextFormat();
ref.news_fmt.htmlText = true;
ref.news_fmt.multiline = true;
ref.news_fmt.font = nz_font;
ref.news_fmt.size = nz_size;
//----------
var d = _root.getNextHighestDepth();
ref.createEmptyMovieClip("news_mc", d);
ref.news_mc.createTextField("news_txt", d, nz_x, nz_y, nz_width, nz_height);
ref.news_mc.news_txt.multiline = true;
ref.news_mc.news_txt.wordWrap = true;
ref.news_mc.news_txt.setNewTextFormat(news_fmt);
};
Firefox Renders Flash In Odd Way
Can anyone tell me why my latest version of firefox 1.0.2 (the otherwise super browser) has started moving some of my swfs around the page.
I confess I have a thing for 16:9 javascripted popups to display my flash websites but recently some of them have started disappearing in the fire fox browser and jumping to the right making it difficult to see parts of the sites.
Has this happened to you and have you a work around for it?
All help gratefully received,
Cheers
jon 8o)
Embedded Fonts, Tabs And
I have an XML file thats being pulled into Flash and having the HTML text displayed. I load in a css file and set all my text fields to the css style sheet.
to get anything with a "tab" to work, I would replace all tabs with a ~t in the XML file and then do a replace in flash with " " for every instance of ~t it found...
this worked, until I told the text field to embed the fonts..
now it won't work, I can't get anything more than one space, no tabs, nothing.
I even created a class in the css file that had a padding of 300px and told all ~t to have a <span class='tabs'></span> but it didn't do anything (put it to 300 to see if the effect worked, and tried padding-left first..)
so is there ANY way to get more than one space after embedding fonts and using htmlText on a textfield?
Asp Database Field Loaded Into Dynamic Text Field -HELP
Hi all,
after much trial and error and still having troubles i thought i would ask people that maybe know what there doing.
Im using Flash 8 pro, and have placed textarea component on stage and gave it an instantce name, need to pull a single record from a record database using asp.
This is my approach but if there is an even easier way let me know.
I have created the following pages.
webpage.asp (end result web page that shows the text field to user)
script.asp( asp script that sends data back/forth to flash
i used the FlashVars param to pass a variable into the flash movie.
variable is named auto_num. im using this to then pass it back out of flash to filter the recordset.
then on the flash movie.swf. all on root level. i have the following code
var text_value; //(this is the value sent back from asp page string)
//not sure if i needed to declare it but did anyways.
var_sender = new LoadVars();
myData = new LoadVars();
var_sender.auto_number = auto_num //(auto_num is loaded flashvars param)
myData.onLoad = function() {
my_text_1.text = this.text_value
};
myData.sendAndLoad("http://www.********.com/script.asp", myData ,"POST");
on the script page i have a record set that filters for form variable named auto_number. all of code is in asp. I call a response.write to write the text_value back to the flash movie.
here is the heart of the script.asp code. not showing the record set filtering stuff.
<% Dim text_value
text_value = "text_value="&(Recordset1.Fields.Item("long_des"). Value)
response.write(text_value)
%>
but i get undefined and can never get the variables to load into the flash movie. i want to export as flash player 6 or 7. what am i doing wrong here?
So in a nutshell, i have an asp page that shows a record and would like to display the long description field of that record in a flash dynamic text box.
I can make it work by passing the entire long description from record set within the flashvars param but that seems like a real clunky way to do it pasing that much text within the flashvars param.
Does anyone know of simple database connectivity kits that extend flash for the semi-programmer guys?
Show All And 100% Renders Jpgs Diff...
I have imported some pixel arts saved as gifs into flash. I then put them inside moviclips to act as the design for the button. When I test out the movie in Flash, the lines of the gif sort of becomes jagged at some areas. But when i right click and choose "show all". it renders correctly. How can i solve this problem?
LoadMovie Renders Site Inoperable
Okay, when a viewer clicks contact, the main text box scrolls out, then scrolls back in then loads the contents.
But for some reason when I try to load a movie into an MC on the _root timeline, the movie loads in the bottom right corner then renders my site useless.
Here's the code
PHP Code:
if (_global.id == "contactUS") {
_root.textScroller.main._x = 1200;
_root.textScroller.line._visible = false;
_root.textScroller.dragger._visible = false;
loadMovie("contact.swf", _root.contactMC);
trace("it worked again");
stop();
}
any ideas?
thanks
HTML Tags In Xml Renders Incorrect
I have some HTML formatted text saved in XML which I load into Flash. The XML node loads fine and looks like this:
Quote:
<tekst id="0" name="info"><p>this is a test</p><p>this is the second line.</p></tekst>
But when I access this node's childNodes it looks like this:
Quote:
<p>this is a test</p>,<p>this is the second line.</p>
A comma has been added between the two paragraphs and also shows up in the text box that is rendered as html. Hope someone can help me solve this very annoying problem.
XML file is saved as UTF-8 and ignoreWhite is set to true. Let me also mention that I have not been able to use <b></b> in the formatting either. Text between the b's just disappear. Same with <i>.
|