Re: [Flashcoders] Resrict number of lines input textfield

2006-12-20 Thread shang liang
You can check textfield.maxscroll On 12/20/06, Danny Kodicek [EMAIL PROTECTED] wrote: Hi all, I need to restrict user input to a certain number of lines in a textfield. Flash 8, AS2. After an extensive search something like this showed up: //txtFld is obviously the TextField, n is the

Re: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread shang liang
I love mc_tween! http://hosted.zeh.com.br/mctween/ -- /* Bored, sometimes. */ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by

Re: [Flashcoders] passing parameters to function on context menu

2006-12-08 Thread shang liang
var cm:ContextMenu=new ContextMenu(cmHandler); function cmHandler(){ trace(menu open); } var item1=new ContextMenuItem(item 1, itemHandler); item1.value=1; cm.customItems.push(item1); function itemHandler(obj, item){ trace(item value: +item.value); } this.menu=cm; On 12/8/06,

Re: [Flashcoders] FLV video and How did they do it?

2006-12-08 Thread shang liang
Myth bustered! There's no special effect or complicated streaming from FMS. I downloaded it's flv file and put in my flash. If you scale the video 50%, or anything less than 100%, you will get the aliased effect (are u sure it's an effect?), if you scale it back to 100%, the thing shows normal.

Re: [Flashcoders] Random between, with sticklers

2006-12-05 Thread shang liang
yup, you are correct. No point of setting two ranges, plus 1 or minus 1 is good enough. Thanks. On 12/5/06, Danny Kodicek [EMAIL PROTECTED] wrote: I thought of something. function randomRange( min, max, currNum):Number { if(Math.random()0.5){ max=currNum; }else{

Re: [Flashcoders] Extracting file details

2006-12-05 Thread shang liang
http://www.phpclasses.org/browse/package/1653.html On 12/6/06, Helmut Granda [EMAIL PROTECTED] wrote: Maybe this is not the right list but I thought I would give it a shot. Is there anyway to get file details like FPS, BG Color and such from a SWF? with flash or with PHP? TIA for any ideas...

Re: [Flashcoders] Screensavers...

2006-12-04 Thread shang liang
I use screentime. It's not free but quite some features and it supports mac too. On 12/4/06, John Hattan [EMAIL PROTECTED] wrote: I've done screensavers with Screenweaver and had good luck. The one thing that puts it ahead of Zinc for screensavers is that you can set up an SWF file to appear as

Re: [Flashcoders] RE: Keyboard accessibility and sliders

2006-12-04 Thread shang liang
I think you can use onKillFocus and onSetFocus. When onSetFocus. Your key listners always update the current focus scrollbar (e.g. set a reference as currScrollbar) when onSetFocus, currScrollbar=this On 12/5/06, Dave Wood [EMAIL PROTECTED] wrote: Hi Dan Thanks for your comments. The use of

Re: [Flashcoders] Random between, with sticklers

2006-12-04 Thread shang liang
I thought of something. function randomRange( min, max, currNum):Number { if(Math.random()0.5){ max=currNum; }else{ min=currNum; } return Math.round(Math.random()*(max-min))+min; }; On 12/5/06, eric dolecki [EMAIL PROTECTED] wrote: I'd like to get a random number between

Re: [Flashcoders] perspective texture mapping

2006-12-01 Thread shang liang
Not sure whether you've seen this. http://www.flashsandy.org/ On 11/30/06, Boon Chew [EMAIL PROTECTED] wrote: I am investigating the different ways one can implement or simulate perspective texture mapping both using Flash 8 API (e.g. with bitmapdata) and without using Flash 8 API (without

Re: [Flashcoders] TextInput receive focus with flashing cursor?

2006-11-24 Thread shang liang
I checked the javascript method before. Only works in IE and there's no work around found for Firefox. You have to play some trick to the user. Ask them to click at it first. On 11/24/06, Miguel Angel Sánchez [EMAIL PROTECTED] wrote: Flash movie has to have the focus to display the flashing

Re: [Flashcoders] connecting excel spread sheet to Flash

2006-11-22 Thread shang liang
I have just done something like that. I used excel save as xml method. One thing you need to notice is that, this line ?mso-application progid=Excel.Sheet? gives some problem. use this code to solve it, http://www.daniweb.com/techtalkforums/thread37915.html Hope this helps. On 11/22/06, nik

Re: [Flashcoders] I have a flash question for you.

2006-11-21 Thread shang liang
In Flash API, it has these 3 lines for fscommand: None of the commands described in the table are available in web players. All of the commands are available in stand-alone applications, such as projectors. Only allowscale and exec are available in test-movie players. I guess the catchallkeys