Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] Textfield Issue



Hi all,

im working on a project that involves some tweening of background panels and textfields

what i try to do is first when a user klicks some button.. a backgroundpanel tweens (scale), and after the scaling finished there will be some text displayed.. right now my textfield (created on runtime) scales with the backpanel so the text may become invisible (see example files)

What do i need to do to get the text in a fixed (readeble size)?????

the included file contains a working (concept)version of the site im working on... due to its concept stage there will be a lot of useless rubbish in the fla library.. sorry for that

thanx



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-07-2007, 06:52 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Textfield Issue .... Is It A Bug ?
I have a issue. I hope some has a solution. I have a textfield in flash i can write text on it. but when i press CTRL+J a new hidden character is add to it as " NEWLINE " i as i am checking a string so if i have right answer in the text field and i press ctrl+j and then check the answer it give result as wrong answer.

if anyone knows how to remove that charter or restrict it.

Plz tell me ..

TextField.restrict Issue
OK, This is what I'm doing:

I have a variable, which could be a word or a sentence, and textfield created with createTextField.

Say, for example, "The dog sleeps." My problem is with capital letters vs lower case letters.

What I want to do, is to restrict the input to only one letter at a time in the variable. For example, first I want to restrict it to only the capital "T", then only the "h", then "e", and so on.

I basically have this working, but for some reason, theTextField.restrict actionscript acts goofy. When it is restricted to capital "T", for example, and I type "t" in lowercase, it enters it in as capital, ignoring the need for the shift key. I want it so that the shift key is required to enter the capital letter.

The sentence must remain a modifiable variable, so I don't want to hardcode letters. Like I said, I have it working except for this.

Below is a simple script to help explain my point:

createTextField("mytext", 1, 10, 10, 530, 100);
Selection.setFocus("mytext");
mytext.variable = "input";
mytext.background = true;
mytext.type = "input";
mytext.restrict = "A";
mytext.multiline = true;
myformat = new TextFormat();
myformat.size = 35;
myformat.font = "Arial";
mytext.setNewTextFormat(myformat);

Notice it's restricted to a capital "A", but if you press a lowercase "a", it automatically converts it to uppercase, with the need for the shift key. It has the same issue with the lowercase to uppercase. Any help is greatly appreciated.

Thanks.

JEBoothjr

TextField Cursor Issue
Hi all,

What I'm trying to accomplish is this:
- user has a small text field and needs to enter text,
- while the text is being entered I want the the TextField to stay the same size
- when text reaches the right boundary of the TextField i want text newly entered character to be at the right boundary(by default it goes beyond the boundary and becomes invisible) and the rest of the text shift left.

Idea, anyone?

TextField.StyleSheet() Issue
Hello,

does any of you face problems using TextField.StyleSheet() ?
I'm populating one textarea with some text, but it does not became editable, and I'm sure it has something to do with the StyleSheet.

Any sugestion?

Thanks

Help.. Font/textfield Issue
im having a problem with the text areas in my site.
everything is loaded dynamically... and im using pixel fonts... they are set to 4-points, and im able to view them correctly.. but others can not. the site is designed for 1024x768 and we are using the same res.. what could the problem be?


any ideas... would be greatly appreciated...

thank you.

Textfield Getfocus Issue
Hi there

This is what I want to do:

I have an onscreen keyboard created in flash that when you touch the buttons inputs text into text fields - i.e. name, email address etc (this will be used on a kiosk touchscreen).

My issue is that I have three textfields on the stage and I need the keyboard buttons to recognise which textfield the user is in so it will input the text into the correct textfieds.

Basically what I'm wanting to say is "if the focus is on this field, type letters into it", but my scripting is not very advanced. Am I right in thinking I'll need a getFocus and an if Statement?

Any help would be much appreciated!

TextField AutoResize Issue?
Hello to everyone.
Sorry if this has been treated before but I searched through the threads but I haven't found nothing about this.

Please have a look at the code below (I just create a TextField auto-resizing and I put some text in it):



ActionScript Code:
package{  import flash.display.MovieClip;  import flash.text.TextField;  import flash.text.TextFieldAutoSize;   public class WeirdBehaviour extends MovieClip{    // A long string    private var sText:String =      "Lorem ipsum causae adversarium per no, est ipsum numquam suscipiantur eu."+      "Prima affert exerci vix in, usu in eleifend pericula, est no odio diam vocent.";    // Pointer to the TextField that I will create    var txt:TextField = null;    public function WeirdBehaviour():void{      // 1) I create the TextField      txt = new TextField();      // 2) I set width and height:      // height set at 0 because I can't tell how high it would be after the resize      // and I don't want its heigth at 100 (that is the default value)      txt.width = 300;      txt.height = 0;      // 3) I set the autoSize in order to resize it and the wordwrap to true      txt.autoSize = TextFieldAutoSize.CENTER;      txt.wordWrap = true;      // 4) I set the text      txt.text = sText;      // 5) I add it to the display      addChild(txt)      // 6) the trace result is really weird!      trace(txt.height);      trace(txt.height);    }  }}



The weird thing is the output of the two trace:
19 (first trace)
49 (second trace)

But if I comment the line "txt.height = 0;" all works fine.

Also... without commenting the line but by setting:
txt.height = 4;
it works fine!

Instead with:
txt.height = 3; (or 2 or 1)
it doesn't work

Where am I wrong? Is this a known issue?
Thanks in advance

Help.. Font/textfield Issue
im having a problem with the text areas in my site.
everything is loaded dynamically... and im using pixel fonts... they are set to 4-points, and im able to view them correctly.. but others can not. the site is designed for 1024x768 and we are using the same res.. what could the problem be?


any ideas... would be greatly appreciated...

thank you.

TextField Scrolling Issue
Well, there's lots of tutorials on how to make a textfield scroll, but How do you keep one from scrolling?

I have a htmlText enabled textfield and I need to figure out how to keep it from scrolling. I've been playing with it for a bit and can't seem to come up with a viable solution.

Any help would be appreciated.

I want it to:

Not allow the user to type beyond the end of the textfield. I can't just set a maxChar, because of the different size and type possibilities for the text.

And I want it to not scroll at all.

Thanks

Tooltip TextField Depth Issue
Hello,

I have a set of buttons, created at runtime, that each have a tooltip-style mouseover -- when you mouseover the button a TextField appears above it with the button's title.

It works fine except for the fact that some of the time the TextField sits underneath all the other buttons, so its text is obscured. Other times, it sits above the buttons. I've tried playing around with the depth, but that doesn't seem to be it.

Any ideas?

[F8] Textfield In A Movieclip Depth Issue
Hi,
I am dynamically creating textfields in movieclips which works perfectly fine until I want to add multiple textfields via a for loop. So I'm thinking it must be a depth issue but I am not positive. Here's some of my code.


Code:
total = 6;
for (i=0;i<total;i++){
//create textobject and format attributes for entries
var entryTextFormat = new TextFormat();
entryTextFormat.font = "Helvetica";
entryTextFormat.size = 16;

// create entry textfileds and mc's
// create empty movieclip
_root.createEmptyMovieClip("mc"+i, this.getNextHighestDepth());
_root.mc._x = Math.round(Math.random()*300);
_root.mc._y = Math.round(Math.random()*300);
//create textfield inside of MC and set attributes
_root.mc.createTextField("txt+i",this.getNextHighestDepth(),0,0,500,400);
_root.mc.txt.embedFonts = true;
_root.mc.txt.text = userEntry[i];
_root.mc.txt.setTextFormat(entryTextFormat);
}


With the for loop it shows nothing. What am I doing wrong? Thanks in advance.

Also if I get delete the "+i" in the _root.createEmptyMovieClip("mc"+i, this.getNextHighestDepth()); line -- it will show the 6th entry.

Textfield Issue: AddEventListener And RemoveChild
Hi all,
I was hoping someone could help me with an issue I'm having with a concept using a dynamic text field, with an attached event listener.
Overall; the project is a video player, that reads XML from a URL, and then can play all of the videos defined in the XML. Other info includes, artist, production type, date, format, and a few others.

In short; I have created a class that builds the menu from XML.
This menu is a series of hyper links, both to the actual media files as designated by it's title, and also to criteria, as mentioned above (which then sorts, filters and redisplays the content in the menu.

When creating the menu object from within flash, I am passing references to the "xml" & "css" objects, and the "mc" instance for attaching, to the constructor method.

The problem is that I can't seem to create the menu using the methods (or main class constructor) in such a way, that a simple function, actually receives the event from the attached event listener. Further; there is some weird behavior, when I select a link, and then re-open the menu - the text is a bit smaller, and line spacing is less than before (the css styles are still incumbent though) . weird.

I have tried to set-up the text field and define the css in the main class constructor (which is where I get the strange behavior with the text).
I have also tried building everything as a public function (object method), and the text all works perfectly, but neither attempt at attaching the event listener seems to work.

Further; given that the only method that seems to give me "unaltered" text markup, is to build everything as a public function, when I want to close the menu, I need to remove the scrollbar, and text field instances from the "mc", that was passed to the function as a reference. When I do this, after I have opened and closed the menu once, the second time, I get the following error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

Can anyone suggest the best way to structure this concept?

TIA


Below is the code in flash that sets up the objects. (entire code at end of this post)


Code:
var _video_object:nixVideo = new nixVideo();
addChildAt(_video_object, 1);

var _xml_object:nixXML = new nixXML("http://xxxxx.net:81/video_store/content/media_data.xml");
var _css_object:nixLoader = new nixLoader("css/nixCSS.css");
var _menu_object:nixMMenu = new nixMMenu(_xml_object, _css_object, root.menu_instance.content_fields);
var _button_object:nixVidBttn = new nixVidBttn(play_button, stop_button, pause_button, _video_object);
addChild(_button_object);
_button_object.pressStart();






Below is the class as detailed:


Code:
package {

import flash.display.Sprite;
import flash.text.*;
import flash.geom.*;
import flash.events.*;
import fl.controls.UIScrollBar;


public class nixMMenu extends Sprite {


protected var _xml:Object;

private var _css:Object;
privatevar _css_data:StyleSheet;
protected var _target_mc:Object;
private var _text_field:TextField;
private var _v_scroll:UIScrollBar;
protected var _toggle_flag:Boolean = false;



// Main Class Constructor
public function nixMMenu ( _xml_obj:Object, _css_obj:Object, _target_mc_obj:Object ):void {

_xml = _xml_obj;
_css=_css_obj;
_target_mc=_target_mc_obj;




_text_field= new TextField();
_text_field.addEventListener(TextEvent.LINK, onMenuClick);

//_text_field.alpha= .5;
_text_field.textColor= 0xDDFFDD;
_text_field.border = false;
_text_field.borderColor = 0xFFFFFF;
_text_field.multiline = true;
_text_field.wordWrap= true;
_text_field.background = false;
_text_field.backgroundColor = 0xDDDDDD;
_text_field.wordWrap= false;
//_text_field.autoSize = TextFieldAutoSize.LEFT;
_text_field.width= 255;
_text_field.height= 230;
_text_field.scrollRect = new Rectangle(0, 0, 300, 400);

_text_field.x= -1;
_text_field.y = -5;



_v_scroll= new UIScrollBar();

_v_scroll.direction = "vertical";
_v_scroll.setSize ( _text_field.width, _text_field.height - 0 );

_v_scroll.move ( _text_field.x + _text_field.width + 0, _text_field.y + 3 );
_target_mc.addChild ( _v_scroll );
_v_scroll.scrollTarget = _text_field;




} // End Main Class Constructor







//_________ PRIVATE & PROTECTED FUNCTIONS _________//




protected function buildMenuData():Array {

var _custom_array:Array = new Array();
var _xml_data:XML = _xml.getXML();

for (var _video_item:String in _xml_data.file) {
_custom_array.push({
title:_xml_data.file[_video_item].title,
type:_xml_data.file[_video_item].type,
genre:_xml_data.file[_video_item].genre,
format:_xml_data.file[_video_item].format,
date:_xml_data.file[_video_item].date,
duration:_xml_data.file[_video_item].duration,
filename:_xml_data.file[_video_item].data.filename });

}
return _custom_array;
}


protected function returnDataArray():void {
var i:int;
var _menu_array:Array = new Array();
_menu_array = buildMenuData()();

trace(_menu_array.length);

for ( i=0; i < _menu_array.length; i++ ) {
for (var _item:String in _menu_array[i]) {
trace (_menu_array[i][_item]);
}

}

}


protected function onMenuClick(event:TextEvent):void {
trace (event);
trace("something");
}



//_________ PUBLIC FUNCTIONS _________//





public function openMenu ( _menu_instance:Object, _pos:int ):void {



var_menu_data:Array= buildMenuData();
var _textz:String= "";

// Add Text Field to Menu Movie Clip
_target_mc.addChild ( _text_field );

_css_data= _css.getCSS();
_text_field.styleSheet = _css_data;

trace (_css_data.text);
_menu_instance.x = _pos;



//Add Scroll Bar To Text Field



for (i=0; i < _menu_data.length; i++) {
//trace ( _menu_data[i].title);
//for (var _item:String in _menu_array[i]) {
//_textz = _textz + '<img src="images/video.gif">';

_textz += '<span class="title">' + _menu_data[i].title + "</span>"
+ ' <a href="' + i + '">' + '<span class="play">' + "[PLAY]" + "</span>"
+ "</a>" + "<br>";


_textz += '<a href="' + i + ":" + _menu_data[i].type + '">' + _menu_data[i].type + "</a> / ";
_textz += '<a href="' + i + ":" + _menu_data[i].type + '">' + _menu_data[i].genre + "</a> / ";
_textz += '<a href="' + i + ":" + _menu_data[i].type + '">' + _menu_data[i].format + "</a> / ";
_textz += '<a href="' + i + ":" + _menu_data[i].type + '">' + _menu_data[i].date + "</a>";
//_textz += '<a href="' + i + ":" + _menu_data[i].type + '">' + _menu_data[i].title + "</a>";
//_textz += '<img src="images/video.gif" align="right"> ';
_textz += "<br>";
_text_field.htmlText = _textz;
}
}




public function closeMenu ( _menu_instance:Object, _pos:int ):void {
_target_mc.removeChild( _text_field );
_target_mc.removeChild ( _v_scroll );

_menu_instance.x = _pos;

//_text_field.text = "";

}





}// End Class Definition


}// End Package Definition

Textfield In A Movieclip Depth Issue
Hi,
I am dynamically creating textfields in movieclips which works perfectly fine until I want to add multiple textfields via a for loop. So I'm thinking it must be a depth issue but I am not positive. Here's some of my code.


Code:
for (i=0;i<total;i++){
//create textobject and format attributes for entries
var entryTextFormat = new TextFormat();
entryTextFormat.font = "Helvetica";
entryTextFormat.size = 16;

// create entry textfileds and mc's
// create empty movieclip
_root.createEmptyMovieClip("mc"+i, this.getNextHighestDepth());
_root.mc._x = Math.round(Math.random()*300);
_root.mc._y = Math.round(Math.random()*300);
//create textfield inside of MC and set attributes
_root.mc.createTextField("txt"+i,this.getNextHighestDepth(),0,0,500,400);
_root.mc.txt.embedFonts = true;
_root.mc.txt.text = userEntry[i];
_root.mc.txt.setTextFormat(entryTextFormat);
}
With the for loop it shows nothing. What am I doing wrong? Thanks in advance.

Odd Html Img Tag, Textfield And Embed Issue.
Hey people ,

Has anyone noticed this before:

When you dynamicly assign some html text with an img tag to a textfield with embedded fonts and autosize to true, the textfield' height gets super inflated.....? It's almost 2 or 3 times as heigh as the height of the text should make it.

It only happens when I embed the fonts, so I guess it's not a html tag issue. And it doesn't happen when the img tag is the first line of the html text somehow...

This is really eating me up, the scrollbar gets totally distorted because of it, so strange.

Any of you dealt with this before .

Images Within TextField (inline Issue)
Hi all,

Using a stylesheet and textfield, I know I can take some XML and create some styles text with rollovers and different fonts styles / sizes.
I've been trying to get this to work and have 2 issues, the first being quite minor.

The first issue is that if I wrap the XML data in CDATA, it's blank, although if I trace everything, it's there.
Taht's a minor issue at the moment though:

My major issue comes with this:
If I want to have some icons like smileys in a string of text, how do I get the images to follow inline?
I have everything set up correctly (as correctly as I think it should be and have read), but the text always breaks if there's an image.
If I change the CSS to inline, rather than block there's still no difference.

A solution I've thought of could be to scrap the stylesheet method and just leave the space where the icon would go blank.
Then use textwidth / character index and attach the icon graphic at the point found, but that would be quite a mission to calculate.

Anyway, here's the stuff I've got at the moment (attached all in zip file, but class codes below as well for a quick check )

Anybody have some suggestions?
Is this impossible?

Main class (document class)
Code:

package Smiley {
   
   import flash.text.TextField;
   import flash.display.MovieClip;
   
   public class Main extends MovieClip {
      
      private var __txt : TextField;
      
      public function Main() {
         
         __txt = this["txt"];
         __txt.background = true;
         __txt.multiline = true;
         
         new Style( __txt );
         new XMLData();
      }
   }
}


Style class
Code:

package Smiley {
   
   import flash.text.TextField;   
   import flash.events.Event;
   import flash.events.HTTPStatusEvent;
   import flash.events.IOErrorEvent;
   import flash.events.SecurityErrorEvent;
   import flash.net.URLLoader;
   import flash.net.URLRequest;
   import flash.text.StyleSheet;
   
   public class Style {
      
      private var __ss : StyleSheet;
      private var __txt : TextField;
      private static var __loader : URLLoader;
      
      public function Style( t : TextField ) {
         
         __txt = t;
         __ss = new StyleSheet();
         
         // set listeners to handle CSS loading
         __loader = new URLLoader();
         __loader.addEventListener( Event.COMPLETE, onLoaded);
         __loader.addEventListener( IOErrorEvent.IO_ERROR, handleIOError );
         __loader.addEventListener( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus );
         __loader.addEventListener( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError );
      }
      
      
      public static function loadStyles() : void {
         __loader.load( new URLRequest("example.css") );
      }
      
      
      private function onLoaded( e : Event ) : void {
         trace("CSS: onLoaded");
         __ss.parseCSS(__loader.data);
         parseStyle();
      }
      private function handleHttpStatus( e : HTTPStatusEvent ) : void {
         trace("CSS: HTTPStatusEvent");
      }
      private function handleIOError( e : IOErrorEvent ) : void {
         trace("CSS: IOErrorEvent");
      }
      private function handleSecurityError( e : SecurityErrorEvent ) : void {
         trace("CSS: SecurityErrorEvent");
      }
      
      private function parseStyle() : void {
         __txt.styleSheet = __ss;
         __txt.htmlText = XMLData.xml;
      }
   }
}


XMLData class
Code:

package Smiley {
   
   import flash.events.*;
   import flash.net.URLLoader;
   import flash.net.URLRequest;
   
   public class XMLData {
      
      public static var xml : XML;
      
      private var __loader : URLLoader;
      
      public function XMLData() {
         
         // set listeners to handle xml loading
         __loader = new URLLoader();
         __loader.addEventListener( Event.COMPLETE, onLoaded);
         __loader.addEventListener( IOErrorEvent.IO_ERROR, handleIOError );
         __loader.addEventListener( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus );
         __loader.addEventListener( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError );
         
         // initialise by loading the xml
         __loader.load( new URLRequest("example.xml") );
      }
      
      private function onLoaded( e : Event ) : void {
         trace("XML: onLoaded");
         xml = new XML(e.target.data);
         Style.loadStyles();
      }
      private function handleHttpStatus( e : HTTPStatusEvent ) : void {
         trace("XML: HTTPStatusEvent");
      }
      private function handleIOError( e : IOErrorEvent ) : void {
         trace("XML: IOErrorEvent");
      }
      private function handleSecurityError( e : SecurityErrorEvent ) : void {
         trace("XML: SecurityErrorEvent");
      }
   }
}


Example.css
Code:

myText {
   font-weight:normal;
   color:#000000;
   display:block;
}


Example.xml
Code:

<?xml version="1.0"?>
   <myStyleText>
      <myText>This is some text, <img src="smiley.gif" width="19" height="19" vspace="-5" hspace="0" border="0" /> which should not break.</myText>
      <myText><![CDATA[This is some text, <img src="smiley.gif" width="19" height="19" vspace="-5" hspace="0" border="0" /> which should not break.]]></myText>
   </myStyleText>

Importing Text Into Dynamic Textfield Issue?
im using loadvariables to import text from a text file into a dynamic textfield.
it formats as expected on my my local site but when i put those same files on the web... the formatting changes...line spacing opens up...as if it were double spaced or something...i cant figure out why this is happening...any suggestions would be muchly appreciated!
(yes i've embedded the font in the dynamic textfield)

[MX04] Dynamic Textfield Issue When Compressing Swf
hi!
I have a template of mine (to publish a flash5 file) where I can embed a full font, including bold and italic styles, using two dynamic textfield (one for the plain font style, the other for bold and italic; both of them with the options to render html and to embed Uppercase, Lowercase, Numerals, Punctuation and some characters more: éèìòàù£$€). I want to use this template in a work where I don't have any swf player restrictions, so I would export it in flash7 settings and add "compress file" which reduces my file size to 180kb (from 280kb of the uncompressed version).
the problem is, once I compress the file some characters are not rendered (like òàùèéì)
is there any known solution for this or will I have to give up compressing the swf (then it works ok)??
thanks!

TextField And Dynamically Embedded Fonts Issue
I have an app that dynamically loads fonts at runtime. Most of my TextFields look perfectly fine, but a few of them don't display the text properly. On these, the text is displayed on top of the TextField, as if the top border were the baseline. What's more, when they are multi-line TextFields the text does not wrap (wordWrap is set to true). The strange thing is that there is no difference that I can see between the TextFields that work and the ones that don't. In fact, it is the same code that generates these TextFields (they are also dynamic).

When I set embedFonts to false it works fine, just with the wrong font, of course... so I believe it has something to do with this.

TextField Text Change Issue Flash8
I am having a strange issue..
I have a textField that expands it´s height to fit the text.
I have observed something when I change the text and the textField expands to fit several lines, if I trace it´s height it returns the height of one line textField if I trace the height again it returns the correct height.

why?
trace actions are inside the same method that changes the text just after the line that change the text propertie of the textField.
if I move one of these trace actions inside another method and remove the other trace action when it trace the height it also traces the height belonging to one line height, but if I put the two of them one traces the one line size and in the next one the correct one.

always both methods are called one after the other from another method.

ideas?

TextFormat An "input" TextField Issue
Hi, I've created a new CS3 AS3 project that's default except for a Document class called BoxTest that has the code attached below. When I run it, "Hello World is displayed as I expect, however if I click in front of the first letter and start typing, none of the formatting is applied. Further, if I select the text programmatically (uncommment the lines indicated below), no formatting is applied.

Is it just me? Have I missed something obvious? Is it a bug? Any help appreciated.

Thanks, Paul.







Attach Code

package script
{
import flash.display.MovieClip;
import flash.text.*;

public class BoxTest extends MovieClip
{
var lbl:TextField = new TextField();
var fmt:TextFormat = new TextFormat();

public function BoxTest()
{
fmt.size = 30;
lbl.type = "input";
lbl.border = true;
lbl.width = 250;
lbl.height = 60;
lbl.text = "Hello World";
lbl.setTextFormat(fmt);

/*uncomment the lines below to
highlight and set focus.
lbl.setSelection(0,11);
stage.focus = lbl;*/

addChild(lbl);
}
}
}

























Edited: 02/11/2008 at 08:40:58 AM by SoCentral2

Loading Text & JPG Nito TextField Makes Textfield White
Hi guys !

Does anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why.

If you have any clues... I'd be really thankful

The AS I'm using:

_target.container.t.html = true
_target.container.t.condenseWhite = true
_target.container.t.autoSize = "left";
_target.container.t.htmlText = _data.texto

The String ( &HTML ):

"Text lorem ipsum bla bla ..... <img style='WIDTH: 154px; HEIGHT: 59px' height='298' width='856' alt='' src='http://www.spacilong.com/arq/img/AlcatelLucent_Hor_2col_sm.jpg' />

Textfield Woes, How To Anti-Alias A Dynamic Textfield?
this is driving me nuts, even if i have it marked so that my dynamic textfield is anti aliased, it still looks as if its text is aliased. And if i simply make that textfield Static, the text all of a sudden looks amazingly crisp and anti aliased.

How can i fix this?! I am attempting to load xml data into my text fields but its wasted if the text looks like crap..

So can anyone enlighten me on how to do this? i tried searching Flashs help, all i came out with was "Textfield._quality" but i do not understand what the description means exactly.. And i tried coding my textfield to _quality = "BEST";, with no avail.

Please help, i'v seen other websites with what i am sure is dynamically loaded fields, and smooth looking text... so what gives?

Thanks!

[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.

I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.

I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.

Anyone got a better idea?

Cheers
Paul

[textfield] How To Check If Input Text Is More Than Textfield Height?
Hi guys, Is there a way to check if the text that has been input into the textfield is more than the height of the textfield.

I have set the scrollbar hidden and it will become unhidden once the text is greater the the textfield height.

I did try to count the input text and set the visiblity of the scrollbar against that count. Unfortunatly this is unreliable.

Anyone got a better idea?

Cheers
Paul

Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,

I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.

Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!

thanks!

After Killing The Focus On A Textfield, The Textfield Remains Selected. Why ?
Hi.
I have a serious problem with the deselecting text when I kill the focus on a textfield.
to see better what I am trying to say, please clcick this link: http://www.eurogaz.ro/rring/expert/

Link In Dynamic Textfield To Jump To Section Of Same Textfield
Howdy all,

I know you've all seen this before - you are on a website and you click a link and you stay on the same page but jump down to a different section of the page. Like an FAQ page or something where all the questions are listed above but you click on one and jumps down to the answer below.

Is it possible to do this in a dynamic (scrollable) textfield with externally loaded text files in Flash? I don't have DW and I know that there are limited html tags available but if anyone knows an easy way to do this please let me know!

thanks!

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help

Passing Data Form A Textfield To Another Textfield
ok, how can i grab/store information from a specific textfield instance in scene1 and pass it over to another textfield instance in scene2??

need help, its been bugging me for dayz! <:O

[F8] Input Textfield Inside A Dynamic Textfield?
Hi,

Is it possible to place an input textfield inside a dynamic textfield?

I'd like to replace the variable, this.nTotal, below with an input textfield.
Is there some way to do this?

this.txtComplete.text = "There are " + this.nTotal + " pages in " + this.sGirlName + "'s book.";

Thanks!

Textfield In ScrollPane > Textfield Only Accessible With Clicking Twice
hi!

i have a scrollPane on the stage which contains an editable textfield.
unfortunately i can only access the textfield in the pane when i click on it twice. it seems that the first click goes for the activation of the pane and then comes the textfield.

does anybody have an idea how to solve that problem?


// Text Field
var myTextField:TextField = new TextField();
myTextField.text = "Please insert text";
myTextField.selectable = true;
myTextField.type = TextFieldType.INPUT ;

// ScrollPane
var myScrollPane:ScrollPane = new ScrollPane();
myScrollPane.source = myTextField;
addChild(myScrollPane);

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

Return TextField From Extended TextField Class
Hi

I'm trying to return a TextField from a class and then display it on stage... but I'm having problem to get it to show up on stage?

Help appreciated!

TFCreator.as:


Code:

import flash.display.*;
import flash.text.*;

public class TFCreator extends TextField
{

// TextField
private var tf:TextField;

// Properties
private var txt:String;
private var instancename:String;
private var color:Number;
private var autosize:String;
private var multilinee:Boolean;
private var wordwrap:Boolean;

// Default TextFormat
private var dfrmt:TextFormat;
private var dfrmt_font:String;
private var dfrmt_color:Number;
private var dfrmt_size:Number;

// External TextFormat
private var efrmt:TextFormat;

public function TFCreator(txt:String = "Text", instancename:String = "Instance", color:Number = 0x333333, autosize:String = "LEFT", multilinee:Boolean = false, wordwrap:Boolean = false, dfrmt_font:String = "Arial", dfrmt_size:Number = 11, dfrmt_color:Number = 0x333333):void
{

// Init Properties
this.txt = txt;
this.instancename = instancename;
this.color = color;
this.autosize = autosize;
this.multilinee = multilinee;
this.wordwrap = wordwrap;

// Init Default Textformat
this.dfrmt_font = dfrmt_font;
this.dfrmt_size = dfrmt_size;
this.dfrmt_color = dfrmt_color;

// Create TextField
createTextfield();

}

private function createTextfield():TextField
{

// New TextField
this.tf = new TextField();

// Set Default TextFormat
setDefaultTextformat();

// Set Properties
this.tf.text = this.txt;
this.tf.name = this.instancename;
this.tf.textColor = this.color;
setAutosize(this.autosize);
setMultiline(this.multilinee);
setWordwrap(this.wordwrap);

trace("Textfield created");

// Add TextField to Displaylist
//addChild(this.tf);
return this.tf;

}

// Getters & Setters......

}
}
and test on timeline:


Code:

import TFCreator;

var ttxt:String = "Halloooo?";

var t1:TFCreator = new TFCreator(ttxt,"inst1",0x666666,"LEFT",false,false,"Arial",13,0x333333);
addChild(t1);
t1.x = 200;
t1.y = 300;
//t1.selectable = false;
t1.setText("Baaaaa");
trace(t1.getText());
//t1.setAutosize("CENTER");
trace(t1.getAutosize());
trace(t1);
getChildByName("inst1");
It seems to work ok it just wont show up on stage.

Masking Dynamic Textfield When The Textfield Has A Stylesheet
ok... i have a movieClip containing dynamic textfields, which i'm trying to mask. the textfields are linked to a stylesheet. i understand that, for the masking to work, i have to embed the font. so i've placed the font in the library, given it a linkage name and set embedFonts = true for the dynamic textfields.

what do i do next? and does the fact that i'm embeding the font override the effect of the stylesheet?

(sorry if i sound confused over this. that's because i am.)

thanks in advance for any help


||| O ^ | + O ¬

TextField: Can We Embed HTML In Textfield?
Hello all,

I know that textfield can embed HTML like:

Code:
createTextField("noteText", 1, 100, 100, 300, 30);
noteText.type = "dynamic";
noteText.wordWrap = true;
noteText.border = true;
noteText.html = true;
noteText.htmlText = '<font color="#FF0000">This is HTML</font>';
I wonder if we embed button, HTML input field int Flash textfield?

Code:
noteText.htmlText = '<input name="txtTest" type="text">';
Thanks,

Create Textfield With New Textfield Variable?
flash MX 2004 professional
--------------------------

anyone know if it's possible to create a dynamic textfield AND specify not only an instance name but also a textfield variable?

thx
eve

Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.

I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use
code: textField.autosize="left"
This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using
code:
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
nextY += Math.ceil (holder['news' + i]._height) + 2;

this is fine...
But when i use
code: textField.autosize="left"
nextY retains it's orginal height even though some of the news stories have made for higher textfields.

I thought i could pull the height from the previuosly created news holder
code:
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}

But this still returns the intial height

Here is the complete code
code:
for (i = 0; i < this.newsCount; i++) {
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];
holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];
holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];
nextY += Math.ceil (holder['news' + i]._height) + 2;
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
}
unloadMovie (dtLoader);
viser._visible = 0;
}

Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.

I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use

ActionScript Code:
textField.autosize="left"
This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using

ActionScript Code:
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
nextY += Math.ceil (holder['news' + i]._height) + 2;
this is fine...
But when i use

ActionScript Code:
textField.autosize="left"
nextY retains it's orginal height even though some of the news stories have made for higher textfields.

I thought i could pull the height from the previuosly created news holder

ActionScript Code:
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}
But this still returns the intial height

Here is the complete code

ActionScript Code:
for (i = 0; i < this.newsCount; i++) {
    holder.attachMovie ("newsMc", "news" + i, i);
    holder['news' + i]._y = nextY;
    holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];
    holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];
    holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];
    nextY += Math.ceil (holder['news' + i]._height) + 2;
    if (i > 0) {
        j = i - 1;
        trace (j + " text height=" + holder['news' + j].newsStory._height);
        if (holder['news' + j].newsStory._height > 184) {
            nextY += Math.ceil (holder['news' + j]._height) + 2;
        } else {
            nextY += Math.ceil (holder['news' + j]._height) + 2;
            trace ("nextY=" + nextY);
        }
    }
    unloadMovie (dtLoader);
    viser._visible = 0;
}

TextField.multiline Or TextField.wordWrap
i know TextField.multiline.
actually, i don't know what is difference if the text's multiline is true.

i used to set text wordWrap is true without multiline

INPUT TextField Within An HTML TextField Via <img>
I'm trying to extend an HTML TextField to include an INPUT TextField control as an <img> tag. This I can do. The problem is that mouse and keyboard events are not being seen by the inner TextField. I created a test case to demonstrate the situation. My guess is that <img> tags are treated like AS2 events and because the outer TextField is trapping text events, they are not propagated to the inner TextField. Is there anyway around this problem? Mouse events to other DisplayObjects work fine. I'm using Flash CS3.

The test case contains two classes. TextImgTest is the document class for TextImgTest.fla. TestImg implements the <img> loaded by TestImgTest. To run this. Just create an empty TextImgTest.fla and set the document class to TextImgTest. Then publish and run.







Attach Code

package
{
import flash.display.MovieClip;
import flash.events.TimerEvent;
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import flash.text.StyleSheet;
import flash.utils.Timer;
import TestImg;

public class TextImgTest extends MovieClip
{
public var textField: TextField;
public var styleSheet: StyleSheet;
public var img: TestImg;
public var timer: Timer;

public function TextImgTest(): void
{
// render directly
img = new TestImg();
addChild(img);
// render within a TextField as an <img> tag.
styleSheet = new StyleSheet();
styleSheet.setStyle("p", {fontFamily:"sans-serif", fontSize:"10"});
textField = new TextField();
textField.styleSheet = styleSheet;
textField.multiline = true;
textField.autoSize = TextFieldAutoSize.LEFT;
textField.wordWrap = true;
textField.border = true;
textField.borderColor = 0x0000FF;
textField.background = true;
textField.backgroundColor = 0xFFCCFF;
textField.width = 190;
textField.x = 5;
textField.y = 120;
textField.htmlText = "<p>TextField with an <img src='TestMsg' id='rmk'> tag:<br><img src='TestImg' id='rmk'></p>"
addChild(textField);
textField.selectable = true;
textField.mouseEnabled = true;
// Give it a little time to render then get a reference to it.
timer = new Timer(3000, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimeout);
timer.start();
}

public function onTimeout(evt: TimerEvent): void
{
var freeText: TestImg = textField.getImageReference("rmk") as TestImg;
freeText.tField.mouseEnabled = true;
freeText.tField.selectable = true;
freeText.tField.appendText(" Got ImageReference for 'rmk'.");
}
}
}
===================================================
package
{
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.display.Sprite;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextField;
import flash.text.TextFieldType;

public class TestImg extends MovieClip
{
static public const MSG_WIDTH: int = 170;
static public const MSG_HEIGHT: int = 100;
static public const MSG_MARGIN: int = 8;

public var tFmt: TextFormat;
public var tField: TextField;
public var sBut: SimpleButton;

public function TestImg(): void
{
super();
this.tabEnabled = false;
this.mouseEnabled = false;
// Show this MovieClip
with (this.graphics)
{
clear();
beginFill(0x9999FF);
drawRect(0, 0, MSG_WIDTH, MSG_HEIGHT);
endFill();
}
// Show the INPUT TextField within it.
tFmt = new TextFormat("_sans", 10, 0x000000, true, false,
false, null, null,
TextFormatAlign.LEFT);
tField = new TextField();
tField.type = TextFieldType.INPUT;
tField.height = MSG_HEIGHT - 2*MSG_MARGIN - 16;
tField.defaultTextFormat = tFmt;
tField.multiline = true;
tField.wordWrap = true;
tField.width = MSG_WIDTH - 2*MSG_MARGIN;
tField.border = true;
tField.borderColor = 0xFF0000;
tField.background = true;
tField.backgroundColor = 0xFFEECC;
tField.x = MSG_MARGIN;
tField.y = MSG_MARGIN;
tField.text = "TestImg MovieClip containing an INPUT TextField.";
this.addChild(tField);
tField.selectable = true;
tField.mouseEnabled = true;
// Show the button within this MovieClip
var butGraphics1: Sprite = new Sprite();
with (butGraphics1.graphics)
{
lineStyle(1, 0x000000);
beginFill(0xFF0000);
drawRect(0, 0, 32, 16);
endFill();
}
var butGraphics2: Sprite = new Sprite();
with (butGraphics2.graphics)
{
lineStyle(1, 0x000000);
beginFill(0x00FF00);
drawRect(0, 0, 32, 16);
endFill();
}
sBut = new SimpleButton();
sBut.upState = butGraphics1;
sBut.overState = butGraphics2;
sBut.downState = butGraphics1;
sBut.hitTestState = butGraphics2;
sBut.x = MSG_MARGIN;
sBut.y = MSG_HEIGHT - MSG_MARGIN - 16;
this.addChild(sBut);
}

}
}

[ac-mx-04]duplicate A Textfield OR Doing A Textfield With Outlines.
Either I want code to duplicate a textfiled OR...
To do a textfield that that font outlines on "§!"#¤%&/()=?`@£${[]}¨^~'*-_.:,;<>|qwertyuiopåasdfg hjklöäzxcvbnmQWERTYUIOPÅASDFGHJKLÖÄZXCVBNM01234567 89"
And some others settings:
font: fixed_v01
color: white
align: left
size: 8
selectable: NO
render as html: yes

Can someone help me with this?

Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.
I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use

ActionScript Code:
textField.autosize="left"



This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using

ActionScript Code:
</p>
<p>holder.attachMovie ("newsMc", "news" + i, i);</p>
<p>holder['news' + i]._y = nextY;</p>
<p>nextY += Math.ceil (holder['news' + i]._height) + 2;</p>
<p>



this is fine...
But when i use

ActionScript Code:
textField.autosize="left"



nextY retains it's orginal height even though some of the news stories have made for higher textfields.
I thought i could pull the height from the previuosly created news holder

ActionScript Code:
</p>
<p>if (i > 0) {</p>
<p>j = i - 1;</p>
<p>trace (j + " text height=" + holder['news' + j].newsStory._height);</p>
<p>if (holder['news' + j].newsStory._height > 184) {</p>
<p>nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p>} else {</p>
<p>nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p>trace ("nextY=" + nextY);</p>
<p>}</p>
<p>



But this still returns the intial height
Here is the complete code

ActionScript Code:
</p>
<p>for (i = 0; i < this.newsCount; i++) {</p>
<p> holder.attachMovie ("newsMc", "news" + i, i);</p>
<p> holder['news' + i]._y = nextY;</p>
<p> holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];</p>
<p> holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];</p>
<p> holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];</p>
<p> nextY += Math.ceil (holder['news' + i]._height) + 2;</p>
<p> if (i > 0) {</p>
<p> j = i - 1;</p>
<p> trace (j + " text height=" + holder['news' + j].newsStory._height);</p>
<p> if (holder['news' + j].newsStory._height > 184) {</p>
<p> nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p> } else {</p>
<p> nextY += Math.ceil (holder['news' + j]._height) + 2;</p>
<p> trace ("nextY=" + nextY);</p>
<p> }</p>
<p> }</p>
<p> unloadMovie (dtLoader);</p>
<p> viser._visible = 0;</p>
<p>}</p>
<p>

[ac-mx-04]duplicate A Textfield OR Doing A Textfield With Outlines.
Either I want code to duplicate a textfiled OR...
To do a textfield that that font outlines on "§!"#¤%&/()=?`@£${[]}¨^~'*-_.:,;<>|qwertyuiopåasdfg hjklöäzxcvbnmQWERTYUIOPÅASDFGHJKLÖÄZXCVBNM01234567 89"
And some others settings:
font: fixed_v01
color: white
align: left
size: 8
selectable: NO
render as html: yes

Can someone help me with this?

Cant Get Textfield Height From AutoSized Textfield
Afternoon guys.

I am creating a new nwe3s blogger. Instead of relying on a scrollbar to scroll the news story i thought i would use

ActionScript Code:
textField.autosize="left"

This works fine...
At present i am loading x amount of news into flash at any one time. I am placing the news story underneath each other using

ActionScript Code:
holder.attachMovie ("newsMc", "news" + i, i);
holder['news' + i]._y = nextY;
nextY += Math.ceil (holder['news' + i]._height) + 2;

this is fine...
But when i use

ActionScript Code:
textField.autosize="left"

nextY retains it's orginal height even though some of the news stories have made for higher textfields.

I thought i could pull the height from the previuosly created news holder

ActionScript Code:
if (i > 0) {
j = i - 1;
trace (j + " text height=" + holder['news' + j].newsStory._height);
if (holder['news' + j].newsStory._height > 184) {
nextY += Math.ceil (holder['news' + j]._height) + 2;
} else {
nextY += Math.ceil (holder['news' + j]._height) + 2;
trace ("nextY=" + nextY);
}

But this still returns the intial height

Here is the complete code

ActionScript Code:
for (i = 0; i < this.newsCount; i++) {
    holder.attachMovie ("newsMc", "news" + i, i);
    holder['news' + i]._y = nextY;
    holder['news' + i].newsTitle.text = this['news' + i + 'newsTitle'];
    holder['news' + i].newsDate.text = "Submitted: " + this['news' + i + 'newsDate'];
    holder['news' + i].newsStory.htmlText = this['news' + i + 'newsStory'];
    nextY += Math.ceil (holder['news' + i]._height) + 2;
    if (i > 0) {
        j = i - 1;
        trace (j + " text height=" + holder['news' + j].newsStory._height);
        if (holder['news' + j].newsStory._height > 184) {
            nextY += Math.ceil (holder['news' + j]._height) + 2;
        } else {
            nextY += Math.ceil (holder['news' + j]._height) + 2;
            trace ("nextY=" + nextY);
        }
    }
    unloadMovie (dtLoader);
    viser._visible = 0;
}

[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;
};

Complex Audio Issue..or Maybe Just Syntax Issue
what's up peoples. I'm building a new site for my studio and having some audio issues i can't explain very well, so here goes:

I've got an external .swf successfully loading into _level6 of my project with it's own audio. and from reading thse forums, i know that if i want to control the audio independently of other audio, i need to attach the sound object to a seperate movieclip, which i'm doing and I can control the audio just fine. However, when i click to load in a dynamic image into a dynamicly loaded movieClip, the volume button no longer works. Both the soundobject's mc and the dynamic mc's are being loaded into the nextHighestDepth() so i don't think one is kicking out the other. Here's what i've got:

Code to attach the soundObject when the section starts:

Code:
this.createEmptyMovieClip("soundstage6",this.getNextHighestDepth());
work_sound = new Sound(soundstage6);
work_sound.attachSound("myaudiofile");
work_sound.start(0, 999);
Code to control the volume:

Code:
this.testVol.onPress = function () {
this._parent.work_sound.setVolume(0);
}
Code that loads in my dynamic images:

Code:
this.testLoad.onPress = function () {
_root.attachMovie("infoClip", "infoClip", this.getNextHighestDepth(), {_alpha:0, _x:491.1, _y:193.9});
}
that testLoad button does severl other things when clicked, but when i comment out that particular line of code, the volume control button contines to work. I'm sure this has something to do with the fact that all of this is occuring on _level6 but i have no idea why or how to fix it!!!

Anybody have any ideas? Sorry for the long and complex explination!!

Mac Textinput Issue + New Player Fullscreen Issue
Please inform me if I am a total idiot,... but it appears that holding down backspace while in a TextInput on a mac will only delete one character rather than deleting chars as long as the button is held down. I have tried making the simplest project consisting of only a base sprite and a textinput, and it fails (i thought i may have been preventing the event from bubbling or something.) I tested the movie on PC and holding down backspace works fine. Is this a known issue? and so I just have to extend textInput?...

Also, it seems like when coming back from fullscreen in a swf embedded on a page causes some flickering of the swf content upon resizing the browser window, 3 people I know have also encountered this problem.

Thanks for any help,

Chris Laan

Button Issue In Flash - Program Issue
all of a sudden when i create a button and place it on stage i cant click it to drag it, scale or whatever...instead when i hover over it it behaves as in a compiled swf file (cursor changes into a hand,...).
How can i change that to the way it was? Anyone had this problem before? It is becoming really irritating.

Copyright © 2005-08 www.BigResource.com, All rights reserved