Make Dynamic text non-clickable
Hi Guys,
I need to learn how to make dynamic text non-clickable, like
those in loaders. Any Ideas...?
Thanks in Advance
you mean non-selectable. :)
you'll find this option in the properties panel. with the
text tool selected (or with a text-box selected on the stage)
search the properties panel for a button showing 'Ab' where 'b'
looks like it was selected. that's the button controlling if the
text is selectable or not.
got it? (i can post you a screenshot if you can't find it) ;)
adam
Similar Messages
-
How do I make dynamic text look static while the HMTL tagging is enabled?
Hi all,
I am using flash 8 with AS 2.0.
I have a dynamic text field where I am setting it's text value through a variable. Now, I need this dynamic text field content to look like static font on runtime. I tried embedding the text field but that makes my file so heavy and most importantly, it disables the HTML tagging on the text field.
Please suggest me on how to make a dynamic text field content look static on runtime while the HTML tagging is enabled and working fine.
Thanks.I am sorry. But the attachment was not intended for what you
thought my friend.
It was there so that there are no confusions for what I mean by look of dynamic and static text fields. -
Rotate Dynamic text and make dynamic text go vertical
Hello
I am working on a visual customizer flash app in actionscript 2.0. Looking for good tutorials or examples of how to rotate dynamic text as well as how to make it vertical. Currently all the dynamic embedded text changes colors and size.
Any help would be greatly appreciated. Thank you.distribute each character to a textfield and arrange the textfields to suit your needs.
-
Flash dynamic text in captivate errors
Hello all,
Has anyone experienced any issues when using a dynamic text
field in flash, then importing the swf file into captivate? I am
using actionscript to populate a few dynamic text fields in flash.
I am then publishing the swf and importing the swf into captivate.
Once I do this, none of my text appears! When I launch the swf in
explorer and the flash authoring environment, it works fine. I have
tried turning off the 508 compliance, eliminated all captivate
animations/transitions, made sure that the frame rates are matched
between flash / captivate (although not likely the prob), using a
basic arial font Nothing works!!! anyone have any possible
solutions? Here is a link to the swf that I am working with (tried
other flash files with 'dynamic' text, none of them work).
http://kplearning.com/project_testing/flashTesting/table1_wCanvas.swf
(swf file)
http://kplearning.com/project_testing/flashTesting/table1_wCanvas.zip
(working file)
Thanks in advance for any help!
MikeHi Deb
This falls into that "odd" or "grey area" category and is
likely the reason you haven't seen anyone reply. I say "odd" or
"grey area", because you are now beyond the realm of pure Captivate
behavior and have entered the realm of where you are now blending
Captivate with other Flash output in an effort to try and achieve
something unique. And there is absolutely nothing wrong with this.
Personally, I would encourage it, as you never know what you will
discover to create a neat effect.
However, having said that, you are now dabbling in something
that perhaps nobody else has yet tried. I'm no Flash expert just
yet, but I'm beginning to work on those skills. From what I DO
understand about blending Captivate with Flash, I believe Captivate
only likes and easily works with
Flash 6 output and
Actionscript 1. Anything newer and it likely won't work. I'm
unsure if Flash 6 output is even possible to create, where you can
call an external text file. For all I know at this stage, it could
be a Flash 7 or Flash 8 only feature.
Assuming this was something that was part of the feature set
for Flash 6, if you are using Flash 7 or 8 to create the Flash
file, perhaps try publishing in the earlier format?
Hopefully this helps... Rick -
To make the dynamic text eg. & GV_VALUE& non-editable in text modules
Hi Experts,
My requirement is to make the dynamic text in the text modules non-editable i.e, static text can be edited by the user but dynamic text should be made non-editable. Could you please help me out in doing this.
Regards,
Payal GHi Amrendra,
The reason why it gets read only its because you are deleting the object thus the binding becomes null (because the object is gone!!!). So if you don't want it to be gone, it needs to refers to anything but null. So, if once you delete the object you expect it to remain editable then you can do:
- Instead binding the inputText to the VO, bind it to some other variable (in a bean or in a binding variable) and do the logic to update the VO when required OR
- Once you delete the row, Execute a CreateInsert operation from your VO. This will allow you to create a new Row (which is going to have all values blank) but at least the binding wont be null and your input text wont get read only.
Maybe if you share in more details what is what you want to achieve in term of why do you expect the input text to remain editable (can you create a new row??)
Regards -
How to make a dynamic text be SMS by fl2.1
Now ,I know use " getURL("sms:"+telnumber) "to send sms to a
specified no.,but how to make a dynamic text be the sms content.?
Many thx!:Ciao,
this should work:
smstxt = "ciao, happy holidays";
telnum = "1234567890";
getURL("sms:"+telnum+"?body="+smstext);
body is a keyword.
Alessandro -
How to make links in dynamic text?
Hi All,
I need to know how to make links in dynamic text. I have
created a
table to hold the dynamic copy, and the copy is added through
a CMS page
that I created. This Admin page is accessed through a
browser, and I
don't know how to attach a link to selected text within a
browser. Can
anyone point the way? It's probably so easy I'll feel dumb.
Thanks,
Brett"Brett" <[email protected]> wrote in message
news:fpf7j6$23m$[email protected]..
> Thanks Hunter,
>
> Yes, I suppose a legend on the admin page would provide
a solution. And
> ultimately, if the client doesn't feel confident doing
writing the HTML
> they would have to pay me to do it for them. OK, that
works for me.
The only other thing might be to use something like FCK (or
one of the many
others... ContentSeed, I think is one Murray mentions often)
for the CMS,
that would give an easier option for the end user. WebAssist
has an
FCK-based plug-in called iRite that can give a more
wordprocessing-like feel
to the field (i.e., they could just highlight the text and
then click a
button to add the link). -
How to make Dynamically Shortened Text With "Show More"
Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages or ASP.NET ?
example like these paragraphs
Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.Moved to the main Dreamweaver support forum.
There are several ways you could approach this. Here's one you might try:
Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
<script>
var first = document.getElementById('first'),
more = document.getElementById('more'),
trigger = document.createElement('span');
trigger.id = 'trigger';
trigger.innerHTML = 'Show less';
first.appendChild(trigger);
function toggleDiv() {
var state = more.className,
text = trigger.innerHTML;
more.className = (state == 'open') ? 'closed' : 'open';
trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
toggleDiv();
if (trigger.addEventListener) {
trigger.addEventListener('click', toggleDiv, false);
} else if (trigger.attachEvent) {
trigger.attachEvent('onclick', toggleDiv);
} else {
trigger.onclick = toggleDiv;
</script>
This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
You also need to create the following style rules for the various elements:
<style>
#trigger {
text-decoration: underline;
color: blue;
cursor: pointer;
#more {
transition: ease-out .7s;
overflow: hidden;
#more p:first-child {
margin-top: 0;
#more.closed {
height: 0;
-webkit-transform: translateY(-600px);
transform: translateY(-600px);
#more.open {
-webkit-transform: translateY(0);
transform: translateY(0);
max-height: 600px;
#more + p {
margin-top: 0;
</style>
This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier. -
I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad....
Please Help me.
I want to make a numpad of my own from which i can set the text but i want the user to tap in between the text..You seem to stop the while loop to run the following code, then the program ends. Are you running this using the "continuous run" button????
You need one big while loop containing the acquisition, then you build up the history data in a shift register. Clicking "save" will save the data, but not stop the loop.
Why did you place a time-control in the FOR loop??? This is just post-processing so it should just do it without any delays. I don't understand the logic in the FOR loop. You are appending arrays, but then you delete the first element at each iteraction constantly trimming data from the beginning of the appended array. Then you autoindex at the output tunnel heavily duplicating all data. Ths make s no sense!
Can you explain how you want you data saved?
Message Edited by altenbach on 12-16-2005 11:20 AM
LabVIEW Champion . Do more with less code and in less time . -
HOW TO MAKE ITEM UPDATABLE/NON-UPDATABLE DYNAMICALLY
Hi ,
I have a form with tabular layout on a multi record lock .
From shows 20 records at a time and there is a scroll bar to scroll down .There is an item "flag" in the block which is not visible in the form with values "Y" or "N" .
I need to make some text items in the record updatable when that record has "flag" ="Y" .Documentation say's we need to use set_item_instance_property to do that .
I tried it in when-new-record-instance,pre-query and key-exeqry triggers with no luck .
I would really appreciate if you could give me the following info
1) How to loop through each record in a block to check value of "flag"
2) Which trigger to use and level form,block etc .
Thanks,Ram,
Thanks for the update . Now it works . Another problem though ...
My form displays 20 records at a time and I have a scroll bar .
I need to change the background of Item to white when it is updatable and gary when it is not updatable .
I've created a visual attribute and was using it with set_item_instance_property like this ..
declare
last_rec number;
begin
last_record;
last_rec := :system.cursor_record;
first_record;
for i in 1 .. last_rec
loop
if :ANNUAL_FUNDS.flag != 'Y' then
begin
Set_Item_Instance_Property( 'EXP_FUNDS', CURRENT_RECORD, UPDATE_ALLOWED , PROPERTY_FALSE);
Set_Item_Instance_Property( 'EXP_FUNDS', CURRENT_RECORD, VISUAL_ATTRIBUTE, 'VI_UPDATE');
end;
end if;
if :system.last_record = 'TRUE' or i = last_rec then
exit;
else
next_record;
end if;
end loop;
FIRST_RECORD;
end;
When I took out the loop the way you've mentioned
it's changing the background color of the item for the record in which cursor is in . Users want to look at the screen in a glance and go directly to the item which is updatable .
Is there any way we can loop through all records once and change properties in one shot ?
Sorry to bother you,
Asha -
Make text non-selectable?
I looked for a property for text objects similar to the one
for datagrids that will make the text un-selectable but so far
don't see it.
Is there a way to prevent the user from selecting text in an
mx:Text container?
Some stupid people try to drag-select type before they read
it,and this can force Flex to "scroll" text out of the window if
the drag too far. So I want to prevent their error altogether.
Thanks.Never mind, found it. I was looking in styles not properties.
Doh! -
Cannot use text:TextField with dynamic text in 3.2
Hi,<br /><br />I have a multi-lang app which uses English LTR and Hebrew-Arabic RTL.<br />I am using a properties file for each language, and I get the<br />right item using resourceManager getString.<br /><br />Until 3.2 I had to reverse the order of the words in each item when using<br />Hebrew (or Arabic for that matter).<br /><br />In 3.2 with the new Text layout framework, this is not needed (MAJOR IMPROVEMENT) but I cannot get it to work with dynamic text only static text.<br /><br />of course all works great if I upgarde to flex 4.0, and use the textBox component, but I do not want to do that, so late in the development phase of the application.<br /><br />Here is a small mxml which shows the problem:<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"<br /> xmlns:TryComps="appComponents.*" xmlns:text="flash.text.*"><br /> <mx:Style source="css/flashTypeStyles.css"/> <br /> <mx:Script><br /> <br /> import mx.resources.ResourceManager;<br /> <br /> </mx:Script><br /> <mx:Label text="Using text:TextField FIXED : THIS WORKS"/><br /> <!-- some text in hebrew if you dont see it you probably dont have it insalled --><br /> <text:TextField text="עברית כותבים מימין לשמאל"/><br /> <mx:Label text="Using text:TextField DYNAMIC : THIS DOES NOT WORK"/><br /> <text:TextField text="{resourceManager.getString(Locales.LOCALE_BUNDLE,'BI_DIRECTIONAL_TEXT')}"/><br /> <br /></mx:Application><br /><br />Any one has an idea ???<br />The 'BI_DIRECTIONAL_TEXT' is an entry in the property file which has the same value as the static text above.<br /><br />The run time error I get is : <br />TypeError: Error #2007: Parameter text must be non-null.<br /><br />Thanks<br /><br />Eli7
If you look thru the TextField class in the help documents you will find all of the properties you can manipulate. One property is the wordWrap property which will keep you text from going off the side of the textfield. Another is multiline which will allow the textfield to have more than one line. And another is the autoSize property which will make your textfield adjust to fit the amount of text loaded into it.
-
ok i am at the last part of my project. it worked all well and reads all text fields from a text file as seen on :
http://www.myblueranch.com/index2.html
now i am trying to get the same thing working from MYSQL.
Notice that the text file i used for index2.html is called
www.myblueranch.com/trees1.txt
and it was a direct copy/paste from the php page that gave the results from the MYSQL query. (the php query page is:)
www.myblueranch.com/flash_names.php
The problem is i am getting an error in
www.myblueranch.com/index.html
which uses the php to get the text for the dynamic fields.
I get the following error:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at final_fla::MainTimeline/onDataLoad()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
my flash movie has 113 buttons called button_1 --> button_113 and 113 dynamic text fields tcname_1-->tcname_113
my AC3 code is the following:
// button links: to all buttons to open in iframe 'tdes'
// link corrosponds to button number
// i have 113 buttons.
for(var i:int=1;i<=130;i++){
if(this["button_"+i]){
this["button_"+i].addEventListener(MouseEvent.CLICK,f);
function f(e:MouseEvent):void{
var n:String=e.currentTarget.name.split("_")[1];
navigateToURL(new URLRequest("ranch.php?id="+n),"tdes");
// end of button links
//Create the URLLOader instance
var myLoader:URLLoader = new URLLoader()
//the data will come as URL-encoded variables
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
//Load using an URLRequest, even beeing local
myLoader.load(new URLRequest("flash_names.php"))
//onLoad handler listener
myLoader.addEventListener(Event.COMPLETE, onDataLoad)
//Error handling
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError)
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError)
//Could be an error or just a message
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus)
//add a listener for the complete event
function onDataLoad(evt:Event){
trace(evt.target.data.cant);
for(var i:uint=1; i<evt.target.data.cant; i++){
this["tcname_"+i].text = evt.target.data["tcname_"+i]
this["tcname_"+i].autoSize="left"
this["tcname_"+i].multiline = true;
this["tcname_"+i].wordWrap = true;
this["tcname_"+i].width = 70;http://forums.adobe.com/post!input.jspa?container=2066&containerType=14
this["tcname_"+i].visible = false;
this["button_"+i].addEventListener(MouseEvent.ROLL_OVER, buttonover);
this["button_"+i].addEventListener(MouseEvent.ROLL_OUT, buttonout);
trace(i);
// ON ROLLOVER make text field visible and change color
function buttonover(e:Event){
var tf:TextField=TextField(this["tcname_"+e.currentTarget.name.split("_") [1]]);
trace (tf.name);
tf.visible = true;
tf.textColor=0xff0000;
// ON ROLLOVER make change color and make invisible
function buttonout(e:Event){
var tf:TextField=TextField(this["tcname_"+e.currentTarget.name.split("_") [1]]);
tf.textColor=0x000000;
tf.visible = false;
//error callbacks
function onIOError(evt:IOErrorEvent){
trace("IOError: "+evt.text)
function onHTTPStatus(evt:HTTPStatusEvent){
trace("HTTPStatus: "+evt.status)
function onSecurityError(evt:SecurityErrorEvent){
trace("SecurityError: "+evt.text)Kenneth this created another problem:
1- i changed the code of the php to make it look like:
&tcname_1=Cherokee SweetGum&tcname_2=cedar&tcname_3=cedar&cant=3
and now i get this error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at flash.net::URLLoader/onComplete()
Also when i do that even when i load from a textfile (i.e. not from MYSQL through php) i see no text at all!!
2- Where did you want me to put these trace lines? if i put them in the end of my ac3 script i get this compile error:
Scene 1, Layer 'Layer 1', Frame 1, Line 97
1120: Access of undefined property evt.
did i do something wrong? -
Using Dynamic Text to tell a Hyperlink where to go.
So I am having a little trouble on my site, and this community seems like a good place to go for help, and I am sure someone out here can help me.
I have a webpage that uses dynamic text and images, and it serves as my user profile page. I know the database and all of that stuff is set up correctly because all of the dynamic text shows up as it should.
Here is the problem I am having. I have an area where a user will be able to view files he has uploaded, and click on the name of a file to view it.
The way I have it set up, is the clickable text is dynamic text from the server, called uploadname1. I want to make this text into a link, that sends them to the file stored as fileupload1.
Here is my code that I thought should do it.
"<a href="<?php echo $row_Recordset1['fileupload1']; ?>"/><?php echo $row_Recordset1['uploadname1']; ?></a>" (minus the quotes of course)
The text underlines and changes the color as it should, but it is not clickable. Can someone out there help me?
Tyler<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Profile - NoteScoop</title>
<style type="text/css">
body {
background-image: url(../bgg.jpg);
background-repeat: no-repeat;
color: #FFF;
#bio {
font-family: Tahoma, Geneva, sans-serif;
height: 213px;
width: 460px;
left: 404px;
top: 53px;
position: absolute;
#editlink {
font-family: Tahoma, Geneva, sans-serif;
color: #FFF;
position: absolute;
height: 40px;
width: 80px;
left: 178px;
top: 677px;
a:link {
color: #FFFBF0;
a:visited {
color: #FFFBF0;
a:hover {
color: #FFFBF0;
a:active {
color: #FFFBF0;
#photo {
position: absolute;
height: 220px;
width: 205px;
left: 121px;
top: 70px;
#submit {
font-family: Tahoma, Geneva, sans-serif;
color: #FFFbf0;
left: 290px;
top: 25px;
position: absolute;
width: 59px;
#about {
position: absolute;
height: 25px;
width: 90px;
left: 128px;
top: 25px;
font-family: Tahoma, Geneva, sans-serif;
color: #FFFbf0;
#abouthead {
position: absolute;
height: 25px;
width: 48px;
left: 466px;
top: 25px;
font-family: Tahoma, Geneva, sans-serif;
color: #FFFbf0;
#contact {
font-family: Tahoma, Geneva, sans-serif;
color: #fffbf0;
position: absolute;
height: 25px;
width: 85px;
left: 616px;
top: 25px;
#blog {
font-family: Tahoma, Geneva, sans-serif;
color: #fffbf0;
position: absolute;
height: 25px;
width: 33px;
left: 792px;
top: 25px;
#notes {
font-family:Tahoma, Geneva, sans-serif;
color: #fffbf0;
position: absolute;
height: 84px;
width: 460px;
left: 425px;
top: 510px;
#friends {
font-family: Tahoma, Geneva, sans-serif;
color: #fffbf0;
position: absolute;
left: 421px;
top: 278px;
width: 460px;
#uploader {
font-family: Tahoma, Geneva, sans-serif;
position: absolute;
height: 53px;
width: 460px;
left: 543px;
top: 645px;
#groups {
font-family: Tahoma, Geneva, sans-serif;
position: absolute;
height: 354px;
width: 292px;
left: 80px;
top: 366px;
#ad1 {
position: absolute;
height: 220px;
width: 205px;
left: -40px;
top: 38px;
#sponsored {
font-family: Tahoma, Geneva, sans-serif;
color: #000;
position: absolute;
height: 22px;
width: 122px;
left: 958px;
top: 69px;
</style>
</head>
<body>
<div class="sponsored" id="sponsored">
<div class="ad1" id="ad1"><a href="http://www.xfactordesigns.com"><img src="xfactor_designs_badge.jpg" /></a></div>
Sponsored Links
</div>
<div class="groups" id="groups">
<p>Study Halls, a feature which we are waiting to bring out until it is fully ready, will change the way you study forever. </p>
<p>Study Halls will allow you to create a worldwide network of people in the same class, school, or major as you.</p>
<p>Study Halls will contain useful note listings, chatrooms, tutors and more! </p>
<p>We look forward to being able to open these to you soon!</p>
</div>
<div class="uploader" id="uploader">
<form id="form3" name="form3" enctype="multipart/form-data" method="post" action="">
<input type="file" name="upload" id="upload" />
</form>
</div>
<div class="notes" id="notes"><a href="az.doc"/>tester</a></div>
<div class="blog" id="blog"><a href="http://www.quincycreations.com">Blog</a></div>
<div class="contact" id="contact"><a href="contact.php">Contact</a></div>
<div class="photo" id="photo"><img src="profilephotos/twhite.jpg" alt="UserPhoto" width="205" height="220" /></div>
<div class="abouthead" id="abouthead"><a href="About.php">About</a></div>
<div class="submit" id="submit"><a href="Submit.php">Submit</a></div>
<div class="editlink" id="editlink"><a href="editprofile.php">Edit Profile</a></div>
<div class="about" id="about"><a href="classes.php">Subjects</a></div>
<div class="bio " id="bio">
<form id="form1" name="form1" method="post" action="">
<p><h3>Tyler White</h3>
</p>
<p>College: Xavier University of Louisiana </p>
<p>Major: Mathematics</p>
<p>Not only am I the creator of NoteScoop, but I am also a college student. I study Mathematics and am doing research in Differential Equations. When I am not doing work or math, I am spending time with my wonderful girlfriend, most likely on Minecraft.</p>
<p> </p>
<p> </p>
</form>
</div>
<div class="friends" id="friends">
<form id="form2" name="form2" method="post" action="">
<p> </p>
<table width="460" height="147" border="o">
<tr>
<th width="146" height="141" scope="row"><img src="profilephotos/paminaprofile.jpg" width="104" height="107" /></th>
<td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
<td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
</form>
</div>
</body>
</html> -
I have created a RSS feed viewer, parsing the RSS feed with
actionscript 3.0 and viewed on the stage in dynamic text boxes. The
text in these dynamic boxes is scripted to link to web addresses
contained in the RSS feeds in the same node as the text being
displayed. So far so good. Now I need the text in these boxes to
act as if they were HTML links and show an underline and color
change when rolled over and clicked on. Help. Attached is my code.The trick with the help files is to realize that everything
is organized by classes. So if you want to do something with
text...
Open the help files and select the ActionScript 3.0 drop
down. Then from that list Expand the Actionscript 3.0 language
reference and the All Classes section. Next scroll down to the "T"
section and start looking.
The ones that seem interesting to me for what you were
looking for are TextField and TextFormat. Even if you don't know
exactly what you need those seem like they would have something to
do with text and how it looks.
Then start looking through the entries for each of those
sections. Everything that can be done with text is in there. So
after looking at TextField I didn't see anything about making an
underline or even how to change the color. But I did see a method
called setTextFormat()
So next I check out the documentation on the TextFormat class
and sure enough there is an underline property.
Great, so by this point I've figured out how to make some
TextFormats and then use the setTextFormat() method to apply them.
So next you've got to figure out how to apply the different formats
when I want them.
Things that happen at certain times are events, so anything
that you want to happen now, not then -- or I suppose then, not
now! -- will require an event. So again it is something about
events. So I'll go back to the textfield class and see what kind of
events there are. At first glance you might think that TextFields
only have 4 events -- change, link, scroll, textInput -- and that
none of them seem to be what you would want. Now this is the tricky
part...
At the top of the events section in the documentation there
is a little arrow for "Show inherited events." So going down that
list you will find that TextFields get a lot of events from
inheritance. Sure enough reading down the list I see mouseOver and
(this is important) finishing the list I also see a rollOver. They
both seem promising. Always read the entire list. There are many
times when there are two similar things and if you stop at the
first you might miss out.
Anyways, I hope that this helps you see how the process can
work. The Flash help files are actually pretty awesome and helpful,
but you have to know how to work them. You will very seldom find
the answer by searching or find a fully formed answer to your
specific needs.
Break it down into the classes you think you might need. Then
look for the properties, methods, and events you might need. Most
of them have fairly straight forward names the should suggest what
they might be for. And then follow the hyper links to related
classes than their methods, properties, and events.
PS: I just noticed your second problem. So do the same thing.
So notice that if you look through the TextField class there isn't
anything that lets you chop a string or cut it up or anything. But
notice the text property of the TextField class. That is what shows
in a textfield. And notice that it takes a String.
If you didn't know it a String is some text. You would never
find the String class if you didn't know that techy word, but by
noticing how often it is mentioned in the TextField class you could
get there.
So next look at the String class. What methods and properties
do you need for what you want to do?
The length property might tell you when a String is too long.
And the methods substr() and substring() seem promising to
cut up part of a String.
Finally adding an ellipsis at the end might be hard to figure
out if you don't know the trick. Fortunately you only need to read
the methods to the "c" or concat(). Fancy talk for putting strings
together. Always read the entry to the end. There you will see a
link for "See Also Concatenating Strings." That will show you that
you can easily use a plus sign to add strings together -- just like
addition.
Maybe you are looking for
-
Problem With Logging in to Palm website
Here is a problem I posted to another topic but it belongs here under browser questions. When I try to open the Palm Inc. website, the various parts of the site seem to overlay earch other. It's as if the page were cut up and dropped onto my screen,
-
How to insert multile records at a time in same db table
Hi All, I want to insert more than one record in db-tabe.As ADF-Form /ADF-Creation form will insert only one record at time is there any way to insert multiple records using ADF-Table Thanks in Advance Regards RHY
-
SIGBUS with -Xincgx/-Xconcgc for JDK 1.5 on multi-CPU system
Hi, I've been having trouble with random crashes using 1.5.0_03 up to _07 on Solaris and Linux (x86), especially on multi-CPU hosts. This is for a Web server (Tomcat 4.1.x), where CMS has been wonderful in avoiding the sometimes-horrible (multi-minut
-
How to drag and drop file between maximized windows in Awesome WM ?
Hello, I am newbie to awesome WM. I am a web developer and usually need to edit files after downloading from FTP. I am using filezilla for FTP and sulblime text 2 for coding. How can I drag file from filezilla and drop into sublime window for editing
-
Hello all, I've an applet that contains a button. I open a JFrame on its click event. However, the frame doesn't destroy even if i've closed the applet's browser window sometimes. Could anybody tell why is this happening and how could i remove this?