Dynamic Text Field On Angle?
I am trying to use a dynamic text field on an angle but it does not render it in the swf file.
If I set the angle of the text field to 0 it renders correctly.
Has anyone managed to render a dynamic text field on an angle?
Thanks in advance
FlashKit > Flash Help > Flash MX
Posted on: 07-30-2004, 09:45 AM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamic Text On An Angle
Hi
I have a dynamic text box reading from a text file.
All works fine, but I would like it to be on an angle - I'm aware you can't do alpha effects etc on dynamic text but was hoping to just have it on a slight angle (like the writing running down a hill).
Is this doable at all?
Thanks
Helen
View Replies !
View Related
Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
Your help/advice would be greatly appreciated,
-Scott
View Replies !
View Related
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
View Replies !
View Related
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?
View Replies !
View Related
Input Text Field To Dynamic Text Field
Ok, I have an input text field with a variable name of "enter", and a dynamic text field with a variable name of "display". I also have a button on the stage. I want it so that when you press the button, it checks what the user has put into the input text field, and if it is valid it will display a certain message in the dynamic text field.
For example:
If the user types in "hydrogen" and then clicks the button, I want the dynamic text field to display the letter H. Likewise, if the user types in "oxygen" and then clicks the button, I want the dynamic text field to display the letter O. And finally, if the user types in something that is not specified in the code, it will just display "Not Valid".
I tried doing this with an on(release) action and then some if statements, but nomatter what I typed in it would always display H. I'm probably overlooking something simple, but nonetheless, I need help. Thanks
View Replies !
View Related
[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.
PHP Code:
for(i=0; i<=4; i++) {
if(_root["order_"+ q][i] == 0) {
["order_"+ i]text = "First";
trace("first");
} else if (_root["order_"+ q][i] == 1) {
["order_"+ i]text = "Second";
trace("Second");
} else if (_root["order_"+ q][i] == 2) {
["order_"+ i]text = "Third";
trace("Third");
} else if (_root["order_"+ q][i] == 3) {
["order_"+ i]text = "Fourth";
trace("Fourth");
} else if (_root["order_"+ q][i] == 4) {
["order_"+ i]text = "Fifth";
trace("Fifth");
}
}
basically I want to do this -
PHP Code:
order_0.text = "First";
So how can I change this line to work as expected?
PHP Code:
["order_"+ i]text = "First";
EDIT- The instance names for the dynamic text fields are set
Thanks
View Replies !
View Related
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
View Replies !
View Related
Dynamic Text Field Receiving Dynamic Variables...
or something like that . . .
This is my problem: I'm generating _global variables via XML. Each variable represents different types of copy, of varying lengths. For Example:
_global.introduction = xmlDoc_xml.firstChild.firstChild.nodeValue;
_global.body = xmlDoc_xml.firstChild.firstChild.firstChild.nodeVa lue;
_global.summary = xmlDoc_xml.firstChild.firstChild.firstChild.firstC hild.nodeValue;
I want to create ONE text field, with scrolling, that will act as a template to house all types of content. I've assigned a variable that equals "content" to this text field. . . My problem is, I can't get the text field variable (content) to dynamically swap for the global variable (_global.introduction) in order to display the proper content.
This seems simple, but something's not working for me. Any thoughts? . . . BIG thanks in advance!
View Replies !
View Related
Dynamic Text Field And Dynamic Xml Field
Good evening,
After days of debugging, I find myself cornered by identifying the absence of content in a dynamic xml field.
I am trying to build a function that will move the playhead to a new frame "waiting" when the field is undefined. When the field is populated, the playhead will move to an active frame "vote".
I have attempted several variations on the following code and nothing has worked as of yet.
if (_root.mc_xml.b1v.text=="") {
trace("waiting");
} else if {
trace("vote");
}
// never got it to print anything but vote
There are five possible strings that can dynamically populate b1v from the xml: "Aye", "Nay", "Abstain", "Absent", "NP".
When the vote is complete the xml nodes and their children disappear and flash sees the xml text field as undefined.
What is the correct AS to target or check for null or undefined?
is null
=null
!=null
=undefined
is undefined
!=undefined
I just need a boolean answer. Please someone release me from this loop.
Thanks
View Replies !
View Related
How To Stop Text Floating To Right Side Of An Image Inside A Dynamic Text Field
Hi
I have dynamic text field that loads in a txt file containing
html formatted text including an embedded image.
When I test the movie the text that should appear bellow
the image, instead, runs down the right side of the image.
I have tried adding various html attributes including -
Code:
<br clear="all"><img src="image.gif" /><br >
I have also tried attaching a style sheet and appying the
following class -
Code:
img.allClear {
clear: all;
}
and also redefining the image tag -
Code:
img {
clear: all;
}
None of witch have worked.
Can someone help with this please.
Regards Mydogmax
View Replies !
View Related
Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!
View Replies !
View Related
Button Function - Load Text File To Dynamic Text Field
Hey again,
okay straight into it. I have a few button named b1 b2 b3 and so on. Now these buttons i want to load a text file into a dynamic text field called myText. Now the text files which will be loaded contain html tags, so i want to have that property set.
Now current I have home.text loading into myText automically on swf loading. But when I click any of the buttons the text file won't change over.
Now my menu is seperate to the body. I have 3 swf files, one called base.swf, nav.swf and body.swf. Base.swf loads nav and body onto it.
here is what i have as the script.
Frame1 - body.swf
_root.onData = function(){
myText.html = true;
myText.htmltext = _root.myInfo;
}
loadVariables("home.txt", _root);
loadMovie("scratchy.swf", logo);
Frame1 - nav.swf - gigsbut (button)
on (release) {
loadVariables("gigs.txt", _root.body);
}
can anyone help point out where I am going wrong. I have a feeling I am not targeting the text field right from the button. If you could help point me in the right direction rather then give me the answer that would be good as I would learn better from that. Thanks
Wolfie
PS - Let me know if you want or need more info. Am happy to post it up.
View Replies !
View Related
Using Buttons To Change The Text File A Dynamic Text Field Loads?
I have a text field that loads text from a text document which works great for the news section of my site. However, is there a way I can keep that same text field and change it's content based on what button is pressed? For instance, if someone is viewing the "news" section of my site, and then they click on the "links" button, can I unload news.txt and load links.txt into that text field?
View Replies !
View Related
Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.
This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?
My stylesheet does not specify any font family.
Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?
Here's my actionscript:
PHP Code:
stop();
import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;
var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');
Here is my stylesheet:
Code:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}
.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}
a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}
View Replies !
View Related
Resizing Dynamic Text Field & Maintaining Text Font Properties
I have created a dynamic text field and have specified the height and width in the property inspector. The font is set at Verdana, 12, multiline. After searching these forums I also clicked the Character button and set it to embed font outlines for all characters.
My problem is that when I try to type or paste text into the field it is stretched to fit the field dimensions. I just want to preserve the Verdana 12.
Any help is greatly appreciated.
View Replies !
View Related
Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.
This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?
My stylesheet does not specify any font family.
Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?
Attach Code
//Here's my actionscript:
stop();
import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;
var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');
//Here is my stylesheet:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}
.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}
a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}
View Replies !
View Related
Help With Dynamic Text Field Being Populated From A Button On Same Stage Using Text Files...
I am using the following code:
var ImportsText = "Imports";
Imports.addEventListener(MouseEvent.CLICK,doClick);
function doClick(evt:MouseEvent):void {
List.text = ImportsText;
}
This will generate the word Imports on my List.text dynamic text field.
I have a list of 30 things that need to go in the place of the word imports, one each per line.
Is there a way for me to create a text file and load it instead?
So I have button1 which loads the text from the text file text1.txt and puts it in Last.text
and so button2 loads the text from the text file text2.txt and it is put in last.text
and so on.
Would like the text files to be able to have some formating that is translated to the Last.text
I am very new to AS3.0 so please bar with me. I think I am almost understanding what I need to do but I need a push in the right direction.
Thanks allot in advance.
Tamer Z
View Replies !
View Related
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
View Replies !
View Related
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
View Replies !
View Related
Select Text File From Dropdown List, Content To Show In Swf Dynamic Text Field
I have a php page where there is a form with a dropdown list of all text files in my site. The name of the dropdown is $filename.
The action script in my swf is this:
loadVariablesNum("<?PHP echo $filename; ?>", 0);
but I get nothing. It displays correctly when I replace
<?PHP echo $filename; ?> with the actual value of $filename, for example:
loadVariablesNum("ui_websites.txt", 0);
Any ideas what I'm doing wrong?
View Replies !
View Related
Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.
Thanks
View Replies !
View Related
Dynamic Text Field - Dynamic Size
Hi all
I am trying to do a tooltip that loads a var from database into
a dynamic text field
This I want to customize with a backgrund movie
pls see my illustration!
Because I dont want to have a static size of the background movie
I hope there is a way to make it scale to the textfield
All Ideas welcome
Have a Nice day
Flemming
View Replies !
View Related
Resising A Dynamic Text Field Depending On The Amount Of Text...
Hi all...
I have a flash movie reading a xml file...
i m getting a list of questions and their respective answers...i d like to load those answers into a Mc that contains a dynamic text field ...
the question is:
how can i "resize" (add lines) my dynamic text field depending on the amout of text - i tried getting maxscroll and resizing but that only makes it bigger and doesnt add any additional lines like i d like it to...
thanx 4 ur help
View Replies !
View Related
Loss Of Text Formatting When Using Dynamic Text Field & Scroller
Hi all,
Using MX...
Another small problemo im having is when i format text in my dynamic text field and attch the scroller component to it, in preview mode i lose all the text format and it goes to the first text format it encounters and uses that for everything else in the dynamic text box.
Im not actually loading any text into the dynamic text box, im just using it with static text, so i can use the scroller component.(as i understand it, you can only attach the scroller component to a dynamic text box ??)
Why am i losing my text format AND is there a better way to have a scrolling text field when i just want to use static text...???
Thanks guys..hope thats not too confusing
Cheers
View Replies !
View Related
Using Text File For Dynamic Text Field From External Domain
I have a .SWF file on a (we'll say original.com, for reference purposes)... I have a dynamic text file in that .SWF file, which is currently loading a text file using the loadVariables function. I would like the movie to start loading the text file from another server, which we'll call new.com, for reference purposes.
I'm told that Flash will not load files from external domains, but is that it - end of story? Is there any way I can somehow get this to work?
I know some stuff about PHP, so maybe that'll help?
Any help would be greatly appreciated... Thanks.
View Replies !
View Related
Can Text Loaded From Variable Be Scrolled In A Dynamic Text Field ?
Simple problem here.
I put a dynamic text field on the stage. Added a scroll bar component and filled in the values in the parameter box. I typed lots of text directly into the text field, and it scrolled well. So far, so good.
Now I wanted to load that text from an external file, did the necessary action script und assigned the text to a variable, added this variable to the dynamic text field parameters.
Now the text field shows as much of the text as fits in it, but the text can not be scrolled any more. The rest of the text is just cut off.
Why the **** ???
And - can it be made scrollable somehow?
And if not - why the **** not ???
View Replies !
View Related
Loading Text Into Dynamic Text Field With Full Justify - Can It Be Done
Hi!
Trying to load in text into a dynamic text field that is html formatted and "full" justify the text.
Cant seem to full justfiy the text.
"full justify": spreads text out to fill up a whole line by automatically setting the spacing between words.
1)
I have tried using html formatting to align the text: <p align="justify"></p>
justify isnt accepted by flash
2)
set the text field in flash to full justify
works fine if text inputted into the dynamic text field before compiling
But if text is loaded in, then the formatting is lost.
Anyone got any ideas how to do this?
I'm thinking of using php's GD lib to create a jpg using text retrieved from a database with the text fully formatted in the jpg image and loading in the jpg image, but then I lose my html formatting.
any other solutions? or have I overlooked something here?
cheers
xiang
View Replies !
View Related
Determining Number Of Lines Of Text In A Dynamic Text Field
I'm working on a movie that has a large number of dynamic text fields in it, which are being fed data from .xml sources.
The width of the dynamic text fields are set and cannot be changed, and I need is to find a way to determine how many lines tall each text field will need to be to fit it's data. If I were using a monospaced font this could be done pretty easily, but it has to use a non-monospaced font since the look of the piece is critical.
So.. is there any way to determine when Flash uses a linefeed within a dynamic text field? Or any way to find out how many lines have been filled with text after it's been populated with data?
Thank you.
View Replies !
View Related
Dynamic Text Field In My Custom Component Shows No Text In SWF
Flash MX 2004 on MAC platform (not professional version)
------------------------------------------------------------------------
Hi,
I created a custom component in Flash MX 2004, which has two custom text fields defined by variables and one link defined by a variable also (3 variables total).
When I publish my movie, one of the text fields in each instance of my component on the stage is always empty (the same one) ...does anyone have any idea why?
It doesn't make sense to me that i have it working for one text field and not for the other....I don't THINK that I am doing anything differently between them...?
I have uploaded my small FLA here:
http://www.lucid-life.com/my_component.fla.zip
Can anyone help?......
Thanks,
Cheska
View Replies !
View Related
[MX04] Dynamic Text Field Not Displaying Text (NOT EMBEDDED)
Hello,
I am working on a Flash portfolio website for myself. I have several dynamic text boxes that display information about the various pieces in my portfolio. The text content of these boxes is loaded from external .txt files. The text fields are set to use "_sans" font and there is NO font embedding.
Recently, while working, I tested the site and noticed that my text boxes were no long displaying data. Through testing the problem I was able to determine that the data is being loaded from the external .txt files and into the correct variables, however, the text is not "appearing" in the text fields at run time.
I tried placing a new dynamic text box on the _root of the movie and writing the following code on the first frame of the ROOT timeline:
Code:
_root.myTest_text.text = "this is a test"
the dynamic text field (with instance name "myTest_text") again appeared blank at runtime. As before, the font was set to _sans and NO embedding was taking place.
I tried the same text box and the same code in the clean, empty file and it worked fine.
Has anyone encountered this problem? Is it a bug? Will I need to rebuild the file from scratch?
If anyone has any assistance or advice to offer I would appreciate it.
Thank you!
View Replies !
View Related
Dynamic Text Field In My Custom Component Shows No Text In SWF
HI,
I created a custom component in Flash MX 2004, which has two custom text fields defined by variables and one link defined by a variable also (3 variables total).
When I publish my movie, one of the text fields in each instance of my component on the stage is always empty (the same one) ...does anyone have any idea why?
It doesn't make sense to me that i have it working for one text field and not for the other....I don't THINK that I am doing anything differently between them...?
I have uploaded my small FLA here:
http://www.lucid-life.com/my_component.fla.zip
thanks in advance of any help..
Cheska
View Replies !
View Related
Loading Text Files With Hyperlinks Into Dynamic Text Field
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Apply Typed Text To A Dynamic Text Field Without Selecting It
I'm trying to make a Dos like flash application, although I'm finding the problem where the cursor in DOS is different the the vertical one in regular text fields like on internet browsers. My attempt was to have an invisible movie clip that said...
onClipEvent (enterframe) {
if (Key.isDown(97)) {
_root.dos = _root.dos + "a"; }
if (Key.isDown(98)) {
_root.dos = _root.dos + "b"; } //...
and etc. But this isn't working, I always get capitcal characters. Is there a more appropriate way to confront this problem? If anyone knows how, please help me :)
View Replies !
View Related
Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:
var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};
var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");
Here is a sample of the text file code:
&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="
View Replies !
View Related
Can't Access Dynamic Text>properties>var (text Input Field) In AS3
Hello,
I got VB to put text in a dynamic text field I created in actionscript 2 but can't get it to work with as3. The difference being that in as2 I can draw a dynamic text field on the stage name the instance 'testField' in properties and then there is a var: text box also in properties where I can add a variable name 'testVar.' As3 won't let me access that var:text box in properties. Why is this? For some reason VB needs both the instance name 'testField' and also the variable name 'testVar.' How do I set the variable name in as3 for a dynamic text field? Is the var:text box in properties to give the dynamic text field a variable name in as2?
Thank you if you can help me clear this up! If something in my questions does not make sense please ask me!
View Replies !
View Related
Problem Loading Text Into Rotated Dynamic Text Field
Hi there
With help from Stratification, I've sorted out my previous problem, but alas it grew into a more insidious and tedious mire. Especially, I am sure, for people who know what theyre doing: I'm still rather daunted by Actionscript.
SO, I'm trying to load a text file, one.txt, into a dynamic text field. Simple enough, but this time I wanted to have the field rotated to a specific angle, and this requirement defeats my meagre knowledge. I've got a rotated dynamic text field, but I can only fill it with text typed into the actionscript (I don't know the term for this) as opposed to loaded from an external text file.
Strat kindly gave me the following code:
stop();
loadText = new LoadVars();
loadText.onData = function(src:String) {
if(src != undefined){
my_txt.text = src;
}
else{
trace("Woops, didn't load");
}
}
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "verd";
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
my_txt.wordWrap = true;
my_txt.embedFonts = true;
//If this text is what we see then something didn't happen correctly.
my_txt.text = "Not Loaded";
my_txt.setTextFormat(my_fmt);
my_txt._rotation = 45;
//Now that everything is set up, load our text
loadText.load("one.txt");
But when I try it, the "Not Loaded" text appears, so something went wrong, and it's beyond me to see what.
If anybody can offer any help I'd really appreciate it.
Cheers!
N
View Replies !
View Related
|