Issue With TextArea
Textarea not displaying images
KirupaForum > Flash > ActionScript 3.0
Posted on: 06-23-2008, 08:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
TextArea Abd SetTextFormat Issue
Hi again
I drag a textArea component into the stage.
Then I would like to change the font size with this code:
Code:
var newFormat = new TextFormat();
newFormat.color = 0xFF0000;
newFormat.size = 18;
myTextArea.setTextFormat(newFormat);
Here is the compiler error:
1061: Call to a possibly undefined method setTextFormat through a reference with static type fl.controls:TextArea.
Any Clue ?
TextArea Scroll Issue
Hello,
I'm having this irritating problem and i hope someone can help me. I have this text area in which i'm dynamically adding sprites into (a list of users), but it won't scroll, the sprites just go down out of border o.o i'm using the txtArea.addChild(sprite) code line, it is wrong?
if i add text into the text area it scrolls just fine.
Please help.
thanks ^^
TextArea Scrollbar Issue
Has anyone encountered this issue with the TextArea component where by clicking the up arrow first, the text becomes selected and jumps to the maximum vertical position?
It only happens when the movie is first loaded, and only if the user releases the up arrow on the scrollbar prior to using the other buttons on the scrollbar.
An example occurs here, where this gentleman has a workaround to a similar issue regarding TextAreas
http://oddhammer.com/index.php/site/comments/textarea_scroll_jumping/
Any help would be really appreciated,
thanks,
dave
TextArea And ScrollBar Issue
Hi there fellow Kirupians!
I've been working on a little something that loads external HTML files via XML into a TextArea and it works great. I've been able to delete the background of the TextArea with TextArea.background = false; But now I want the borders to dissapear too. Any ideas?
I'm using the TextArea component because if I make a normal textarea with the texttool, it won't show a scrollbar if the text is too big. Does anyone know why? I can't seem to customize the scrollbar of the TextArea component 'cause it doesn't show up in the library. I do know how to customize a regular scrollbar component, but is it possible to only let it show if the text in the textarea it refers to is to large?
PS: I'm using Flash MX 2004 Professional
TextArea Issue[MX04]
Spent yesterday afternoon working on this one, so I decided to try it with the straight-out-of-the-dictionary stuff in a new movie to see if it could work.
That failed, of course. Here's what I started with:
Code:
function MyFunc(arg){
trace ("You clicked me! Argument was "+arg);
}
myTextField.htmlText ="<A HREF="asfunction:MyFunc,Foo ">Click Me!</A>";
This works super for a dynamic text box, but I want it to work in a textArea.
Here's what I did:
Code:
function MyFunc(arg){
trace ("You clicked me! Argument was "+arg);
}
myTextArea.text ="<A HREF="asfunction:MyFunc,Foo ">Click Me!</A>";
and I set the textArea to html:true (lazy, didn't do it in actionscript, crucify me later)...
So, where am I botching it?
The text renders fine, but when I click the link, I get diddly in the output window. If I change it to a standard web link like "www.yahoo.com"), it'll launch a browser window.
Code:
myTextArea.text ="<A HREF='http://www.yahoo.com'>Click Me!</A>";
Arrg!
Wait, that gives me an idea. For the next version, Macromedia should call it ARRGshunScript.
Any help's appreciated. Thanks!
TextArea And ScrollBar Issue
Hi there fellow Kirupians!
I've been working on a little something that loads external HTML files via XML into a TextArea and it works great. I've been able to delete the background of the TextArea with TextArea.background = false; But now I want the borders to dissapear too. Any ideas?
I'm using the TextArea component because if I make a normal textarea with the texttool, it won't show a scrollbar if the text is too big. Does anyone know why? I can't seem to customize the scrollbar of the TextArea component 'cause it doesn't show up in the library. I do know how to customize a regular scrollbar component, but is it possible to only let it show if the text in the textarea it refers to is to large?
PS: I'm using Flash MX 2004 Professional
TextArea Issue[MX04]
Spent yesterday afternoon working on this one, so I decided to try it with the straight-out-of-the-dictionary stuff in a new movie to see if it could work.
That failed, of course. Here's what I started with:
Code:
function MyFunc(arg){
trace ("You clicked me! Argument was "+arg);
}
myTextField.htmlText ="<A HREF="asfunction:MyFunc,Foo ">Click Me!</A>";
This works super for a dynamic text box, but I want it to work in a textArea.
Here's what I did:
Code:
function MyFunc(arg){
trace ("You clicked me! Argument was "+arg);
}
myTextArea.text ="<A HREF="asfunction:MyFunc,Foo ">Click Me!</A>";
and I set the textArea to html:true (lazy, didn't do it in actionscript, crucify me later)...
So, where am I botching it?
The text renders fine, but when I click the link, I get diddly in the output window. If I change it to a standard web link like "www.yahoo.com"), it'll launch a browser window.
Code:
myTextArea.text ="<A HREF='http://www.yahoo.com'>Click Me!</A>";
Arrg!
Wait, that gives me an idea. For the next version, Macromedia should call it ARRGshunScript.
Any help's appreciated. Thanks!
Help With TextArea Component Calling Javascript From Link In TextArea
Can anyone help me?
I have a TextArea Component that gets populated from a XML. I have the text with links and I want to be able to click on the link and call my javascript on my page. Can I do this? of what will I need to do to accomplish this. if you can provide an example that would be great.
Thanks in advanced
[CS3] Still Having Clock Time Zone Issue---and Dynamic Text Box Issue
I'm trying to do a clock that displays another time zone. The problem I'm having is that instead of running on a 12 hour clock, its on a 24hr one.
any insight as to how I can change the time?
Currently the clock is displaying
23:00p-Jul.22
I want it to display 11:00p-Jul.22
var dayText:String;
var dateText:String;
var monthText:String;
var AmPm:String;
_root.onEnterFrame = function() {
var myDateate = new Date();
//var sec:Number = myDate.getSeconds();
var min:Number = myDate.getMinutes();
var hour:Number = myDate.getHours();
var day:Number = myDate.getDay();
var date:Number = myDate.getDate();
var month:Number = myDate.getMonth();
//var year:Number = myDate.getFullYear();
//sec = sec<10 ? "0"+sec : sec;
min = min<10 ? "0"+min : min;
//AM/PM
if (hour>12) {
hour = hour-12;
AmPm = "p";
} else {
AmPm = "a";
}
//day
if(date == 1 || date == 21 || date == 31) {
dateText = date+"";
} else if(date == 2 || date == 22) {
dateText = date+"";
} else if(date == 3 || date == 23) {
dateText = date+"";
} else {
dateText = date+"";
}
//month
if (month == 0) {
monthText = "jan";
} else if (month == 1) {
monthText = "feb";
} else if (month == 2) {
monthText = "mar";
} else if (month == 3) {
monthText = "apr";
} else if (month == 4) {
monthText = "may";
} else if (month == 5) {
monthText = "jun";
} else if (month == 6) {
monthText = "jul";
} else if (month == 7) {
monthText = "aug";
} else if (month == 8) {
monthText = "sep";
} else if (month == 9) {
monthText = "oct";
} else if (month == 10) {
monthText = "nov";
} else if (month == 11) {
monthText = "dec";
}
//display
dateDisplay.text = hour+":"+min+ AmPm + "-" + monthText+"."+ dateText;
};
BG Of TextArea In MX Pro
Hi,
does anyone know how to rip out the Back ground and borders of a text area...but still keep the scroller alive??
thanks,
morgan
TextArea
DOES ANYONE know ANYTHING about the new TextArea in MX Pro??
I love the scroller on it...but CAN'T turn the friggin background OFF!! Anyone??
Anyone??
Anyone??
Beuller??
Will Some One Please Help Me With The TextArea
What do i have to do to get my textarea box to load a MC named "hometext"
Can the text area load Movie clips. How else are you suposed to enter text? There has to be an easier way.
All i need is a text box that is scrollable to display on my homepage. no pics, just text.
And also how come my scroll pane when i try that just shows up as a box with no text when i have the right instance name loaded.
Please help i am pulling out hair over here.
John
TextArea
So I just got Flash MX 2004 Professional... I was starting to mess around with the added components. I wanted to use the TextArea box in one of my sites that I used the ScrollBar for... So when I open up a new document and just move over the TextArea and play the movie I can see the text box if I put something in the text I can also see that. So I get all excited and try to do the exact same thing in my customers site and nothing! You can even see the textarea. Argh! Has anyone ever come across this?
TextArea
This is driving me nuts, never really worked with components before so I was hoping someone could help me out. How do I target an external .txt file to be displayed in a TextArea component?
Any good tutorials on how to modify and use components?
Textarea And Xml
I'm using a text document saved as an XML file to import text into my textarea, but it's not reading HTML code too easily, sometimes it does, sometimes it doesn't...could I not use an HTML document and import it into the textarea?
Textarea And Xml
i have a text area and the action script
Code:
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
news = new XML();
news.ignoreWhite = true;
news.load("news.xml");
news.onLoad = function(success)
{
if(success)
{
myText.text = news;
}
}
but when i publish it and view it just with the flash player, or explorer, when i move the scroll bar it highlights everything in the text area and wont unhighlight
my xml file is
[HTML]<news>
<p>December 5th</p>
<p>*************************************</p>
<p>Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah and so on till it starts to scroll..</p>
</news>
[/HTML]
TextArea Help
I'm trying to control the background color of the TextArea - either a color which I set or make it transparent.
I could use some direction - here is what I'm experimenting with now:
Code:
package
{
import flash.display.*;
import flash.text.*;
import fl.controls.*;
public class OpaqueTest extends Sprite
{
public function OpaqueTest ()
{
var text_fp:TextArea;
text_fp = new TextArea ();
addChild (text_fp);
text_fp.htmlText = "<b>Hello World</b>";
text_fp.width = 100;
text_fp.height = 100;
text_fp.x = 100;
text_fp.y = 100;
//text_fp.visible = false;
text_fp.opaqueBackground = 0x00ff00;
//text_fp.textField.background = false;
}
}
}
Thanks
Using CSS With TextArea
Hi there,
I am wondering if I can use external CSS with TextArea Component.
I succeed to apply CSS with Textfield Object, but I can't use CSS with TextArea component. The reason I want to use TextArea component is, it can create scrollbar automatically.
If somebody know how to solve this proble, please let me know!
Thanks,
TextArea Help
Hi all i am doing a chat using flash AS3 (a rather simple one) inserting and reading from database . im using textArea to display the message read from the database . Problem is how can i display a new row for show instead of setting the text like (instancename.text = "xxxX")
so a simple one how to make sure that the newly read message can be displayed into a NEW row in a textArea...?
any help will be greatly appreciated . thank you xD
arhhh i solved it xD using :
var asd : String = chatOutPut_txt.text;
chatOutPut_txt.text = asd + "
" + e.data.toString();
CSS In A TextArea
has anyone been successful in getting font-size in css file to affect text in a textArea in MX 2004 pro??
I get the CSS in...and I can apply it to a textField....But I can't get it to apply to a textArea.
thoughts??
thanks
Xml And Textarea
Hi,
Im loading xml into a text area and then loading the .swf with the text area into the main .swf. I turned off the border and the background of the textarea and everything in the .swf where the text area actually exists is fine. But when I load the text area .swf into the main .swf and the xml text shows up, when i select it this funny green border appears around the text area. If i move my mouse off the text area and click, the border dissapears, but this does not happen in the .swf where the text area originally is created.
TextArea Help Please...
Hey guys,
I'm hoping someone can help me. I've been trying to figure this out for some time now and am finally giving up and begging for help! I've tried searching this all over the place, but with no luck. My problem is pretty simple, I just can't seem to make it work.
I have a textarea that loads into a movieclip. The textarea has a border I need to get rid of. Also, I need to know how to set the background color of the textarea or at least make it transparent. I've found several different ways to do this, but none of them will work. When I try to put the actionscript in myself, I get an error
saying an OnClipEvent handler is needed. I'm not sure what to do here. Can someone post the exact script I need to make this work? I've seen TextArea.border_mc._visible = "false";,
but I don't know what goes before this! The same with TextArea.setStyle("backgroundColor", "#ffffcc"); (I may have gotten these two wrong just now, I'm doing it off the top of my head, but I had cut and pasted the code directly into Flash from where I had found it!) I've tried substituting my instance name for textarea, but that didn't work either.
Please help, I'm lost!
Textarea And TAB Key
Hello,
Does anyone know of a way to make the TAB key function as it would in a text editor instead of as a navigation control in a flash movie?
I have a V2 textarea component I would like to act as an HTML code editing tool. Any time someone goes to tab in their code for cosmetic reasons, it jumps to the next tabbable component.
Things I've tried:
1) Making the textarea the only tabbable component using tabEnabled = true / tabEnabled = false on all components; as well as setting the tabindex on the textarea to 1 while all others are blank (almost works -- but the textarea loses focus and you can't detect where the carat was)
2) Catching the keydown event using Key.TAB (almost works -- again, the textarea loses focus and you no longer know where to put the TAB)
Any suggestions / solutions would be greatly appreciated.
- Regards
Img In A Textarea
hallo people
i'm in a trouble with displaying images in my texarea. i mean that i can show the image but it does not appears in the same line on my text, it appears in the next line.
how can i resolve this problem
thanks
TextArea
in Flash's help it says to use a TextArea you need to import fl.controls.TextArea but when I do, it says 1172: Definition fl.controls:TextArea could not be found.
TextArea CSS
Hi
I am trying to add CSS to a TextArea component in AS3. I know this can't be done easily with myTextarea.styleSheet so was wondering what the best way is? I've read articles about overriding the default draw function but most didn't have clear instructions on how to implement them.
My TextArea is dynamically added.
Cheers
TextArea Help Please...
Hey guys,
I'm hoping someone can help me. I've been trying to figure this out for some time now and am finally giving up and begging for help! I've tried searching this all over the place, but with no luck. My problem is pretty simple, I just can't seem to make it work.
I have a textarea that loads into a movieclip. The textarea has a border I need to get rid of. Also, I need to know how to set the background color of the textarea or at least make it transparent. I've found several different ways to do this, but none of them will work. When I try to put the actionscript in myself, I get an error
saying an OnClipEvent handler is needed. I'm not sure what to do here. Can someone post the exact script I need to make this work? I've seen TextArea.border_mc._visible = "false";,
but I don't know what goes before this! The same with TextArea.setStyle("backgroundColor", "#ffffcc"); (I may have gotten these two wrong just now, I'm doing it off the top of my head, but I had cut and pasted the code directly into Flash from where I had found it!) I've tried substituting my instance name for textarea, but that didn't work either.
Please help, I'm lost!
Textarea And TAB Key
Hello,
Does anyone know of a way to make the TAB key function as it would in a text editor instead of as a navigation control in a flash movie?
I have a V2 textarea component I would like to act as an HTML code editing tool. Any time someone goes to tab in their code for cosmetic reasons, it jumps to the next tabbable component.
Things I've tried:
1) Making the textarea the only tabbable component using tabEnabled = true / tabEnabled = false on all components; as well as setting the tabindex on the textarea to 1 while all others are blank (almost works -- but the textarea loses focus and you can't detect where the carat was)
2) Catching the keydown event using Key.TAB (almost works -- again, the textarea loses focus and you no longer know where to put the TAB)
Any suggestions / solutions would be greatly appreciated.
- Regards
Help With TextArea
Ok, so I've read up on the TextArea class in Livedocs, and i've been looking at XML explanations and their implementation into Flash for about a week. I've tried this EXACT code on another Flash document, except on the main stage instead of embedded inside of a separate movie clip, and it worked perfectly.
Can anyone explain why the text won't display in the TextArea? Does it have something to do with it being inside of a movieclip and that being placed on the Main Stage?
(By the way, proxy.xml is just a copy of the xml produced by my CFM proxy for easier usage, in case you were wondering. :wink: )
Here's the code:
Code:
var blogtext:mx.controls.TextArea;
blogtext.html = true;
blogtext.embedFonts = false;
var blog_xml:XML = new XML();
blog_xml.ignoreWhite = true;
blog_xml.onLoad = function(success){
if (success) showblog(this);
else {
blogtext.text="The blog failed to load";
trace("The blog failed to load.")
}
}
blog_xml.load("proxy.xml")
function showblog(blog_xml){
var blog = blog_xml.firstChild.firstChild.childNodes;
for(var i=0; i<blog.length; i++){
if(blog[i].nodeName == "item"){
var blogs = blog[i];
var titles:Array = blogs.firstChild.firstChild.nodeValue;
var links:Array = blogs.childNodes[1].firstChild.nodeValue;
var desc:Array = blogs.childNodes[2].firstChild.nodeValue;
blogtext.text += "<headline><a href='"+
links+"' target='_blank'>"+titles+
"</a></headline><br /><br />"+
desc+"<br /><br />";
}
}
}
Dynamic Textarea
I everybody
i'm working on a dynamic textbox in Flash 5 and i load
properly the text. i'v created a button to enable scrolling
on (rollOver){
toto.scroll = toto.scroll+1
}
But in order to scroll several times you have to move your mouve several times on it.
I can't figure out how to tell flash that, if the mouse stays on the button, then continue scrolling, it would be
smoother for the user.
Thanks alot for your help
How Do I Edit A Textarea
I would like to just tint all of the halo's themes buttons and such a bit for my site, in essence skinning them. What would be the best way to do this. I've messed around a bit with the theme thing but not having much luck there.
My also is there anyway to have a dynamic textarea that will scroll if needed but have a non white background? If so how?
Thanks
Firehawk
TextArea Formatting
Can anyone PLEAAAASE tell me how to format a textArea in 2004 pro??
I'm pulling text in through an XML doc and the textArea is formatted for HTML text. What I really want to do is, create a different default color for the text besides black. So if I don't define the text Color in a tag in my xml, it will just always be that default color. Or if anyone knows how to change the textAreas default color with a stylesheet. Anyone??
I've tried myTextArea.setStyle("color", 0xFFFFFF);
and it only works for non-html text
thanks,
TextArea...what The Heck?
Is it just me or is this new textArea component difficult to use? Does anyone know how to load a simple XML file into a textArea component and have it scroll??
TextArea Not Showing Up
I have a textarea on a frame that is displaying some HTML formatted text (that I typed in). It shows up fine in flash, yet when I publish it, there is nothing there (i.e. there is no box, or text).
TextArea Component
I was able to disable the borders of the textArea component using the
following action script
textArea.setStyle("borderStyle", "none");
But this created a new problem. Now when I select the text or hi the
scroll bar I get agreen "glow" or highlite where the borders would be.
Anybody have any suggestions
...may you see that on http://www.agenciax.com/clientes/lima_netto/ , when this load click on "escritorio" button on top menu in portuguese version.
TextArea Component
I have a dynamic textArea component. When I load new text into it, the scrollbar stays where-ever it was last positioned - is there a way to make it return to the top everytime? Does it ususally return to the top for everyone else?
Thanks
Jessica
TextArea Problems
Posted this the other day but nobody seemed to have any solutions so I'll try again. I have been setting up my TextArea, and have this:
myText.setStyle("backgroundColor","0x996633");
myText.setStyle("fontFamily","Monotype Corsiva");
Background colour changes fine, but I have been struggling with changing the font for days now. I don't know whether this is the wrong way of doing it, or that it just doesn't recognise "Monotype Corsiva."
Help appreciated.
A TextArea With TextFields ?
is it possible to first create a textArea (which has automatic scrolling), then send textfields via ActionScript?
i am asking it this way, cuz i will populate the textFields with data as they are created dynamically with ActionScript.
i am looking at the following class definition, but i don't know if i can do what i want to do.
can anyone input there 2 cents worth? i have included the class definition below:
Code:
UIObject.createObject()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.createObject(linkageName, instanceName, depth, initObject)
Parameters
linkageName A string indicating the linkage identifier of a symbol in the library.
instanceName A string indicating the instance name of the new instance.
depth A number indicating the depth of the new instance.
initObject An object containing initialization properties for the new instance.
Returns
A UIObject object that is an instance of the symbol.
Description
Method; creates a subobject on an object. This method is generally used only by component developers or advanced developers.
Example
The following example creates a CheckBox instance on the form object:
form.createObject("CheckBox", "sym1", 0);
thx
Hector
Textarea Component
Hi
I have a movie that contains a textarea component. I am loadind in text from a database via php.
If I run the movie on its own it works perfect. But if I load it into an empty movie clip or a level the scroll bar goes erratic and for some reason when you click on the scroll bar the text inside gets selected.
I have tried to use a plain textbox but cannot get the text formatted using html as with the textarea, code below.
var lv = new LoadVars();
lv.onLoad = function(ok) {
if (ok) {
var i = 0;
while (this["id" + i] != undefined) {
noticeboard_txt.text +="<br><br><br><b><u>"+this["titles"+i]+"</u><br><br></b>" +this["news"+i]+"<br>" +"<b>"+this["author"+i]+"<br>"+this["date"+i];
i++
}
}
}
lv.load("noticeboard.php");
// Make background color transparent
noticeboard_txt.depthChild0._alpha=0
Thanks for any help.
Loadmovie And Textarea
hello,
I built a movie clip (biography.swf) with a dynamic text area, on frame 1 there's this action:
_root.textArea = loadVariablesNum("fileText.txt", 0,"POST");
when I test this movie everything goes well.
Then I built main movie (main.swf), which has a movie clip target (its instance name is target) and a button which should load biography.swf in order to show what is written on fileText.txt
this is the actionscript code I wrote:
on(release)
{
loadMovie("biography.swf",_root.target);
}
when I check main.swf and I click, the movie biography.swf is loaded but the textArea is empty.
how have I to load textFile.txt?
thanks a lot
TextArea Properties
Is it possible to change the background colour of a TextArea component? If so it would save me some time in re-inventing some of its features. I'm looking to import an html file into flash, as well as use a css sheet.
Thanks in advance
From ASP To Flash Textarea
I have search around here a little and find someone that have almost same problem that I have and have help from other.
I have try but never get that too work :-(
I have a flash.
Inside the flash I have a textarea (txtread) and a textinput (txtwrite).
I even have a button (cmdsend)
I have a script that send text from txtwrite to a ASP page that go to a database.
PHP Code:
cmdsend.onRelease = function () {
l=new LoadVars();
l.z = txtwrite.text;
l.sendAndLoad("test.asp", l, "POST");
}
That I like my flash to do is this.
When a person press the button cmdsend the flash send txtwrite to ASP and ASP go to a database. (that work)
and same time I like the textarea txtread update from the database through ASP page.
I even whant my textarea to update every 3 sec and pick information from the ASP page and the database
I have one the ASP page the text
PHP Code:
txtread=hello every body
and I have even try
PHP Code:
&txtread=hello every body
I use Flash 2004 MX and Actionscript 2.0
Can someone help me plz
TextArea Component
Hi,
I was just wondering if it is possible to load a .txt file into a TextArea component? I 've tried this:
Code:
loadtextContent = new LoadVars();
loadtextContent.load("Bio.txt");
this.BioText.text = loadtextContent;
but it doesn't work. Could anyone help?
Thanks
Jay
TextArea Componnent BUG ==HELP==
I'm proceeding a simple task here, insert HTML content in a TextArea component including a simple Button component and a MC.
First, I've imported TextArea and Button comps to my library.
Put TextArea at Stage and name it as "txtDescription".
Next step, write down some code:
Code:
txtDescription.html = true;
var textHtml = "";
textHtml += "test line..............<BR/>";
textHtml += "<img src="Button" id="button_mc"><br/>";
textHtml += "test line..............<BR/>";
textHtml += "<img src="ball" id="ball_mc">";
txtDescription.text = textHtml;
_lavel0.txtDescription.label.button_mc.label = "Test";
trace(_lavel0.txtDescription.label.button_mc.label);
It was supposed to work fine, but a very strange BUG came along...
See odd result and source file here:
Meet the BUG!
Source Code Here
What's Wrong (TextArea)?
I am testing Studio 8 (Flash Pro) trial version
I can not seem to get my html text loaded into textarea component.
TextArea name = text_box
Html = true
The beginning text in text file is "text_box=" (i use this in flash 5 and works fine)
Code:
Code:
var mytext:LoadVars = new LoadVars();
mytext.onLoad = function(success:Boolean) {
if (success) {
text_box.Text = mytext;
} else {
trace("Error loading/parsing LoadVars.");
}
};
mytext.load("weblog.txt");
My "weblog.txt" is located in same folder as swf.
What is wrong?
I was so use to doing ... "loadvariablenum("weblog.txt", 0)"
Why is it so much more complicated.
Am I doing this right?
|