[Flashcoders] RegEx

2010-08-30 Thread Karl DeSaulniers
Hello, Thought this might be of interest to anyone needing RegEx for almost anything. http://www.owasp.org/index.php/OWASP_Validation_Regex_Repository Looks like a good resource for code ideas. Karl DeSaulniers Design Drumm http://designdrumm.com ___

[Flashcoders] Database Centric with Flash Builder 4 and Without the Flex Framework

2010-08-30 Thread ITSCO
Hello, I have a simple question regarding the latest Flash Builder 4. Based on viewing some recent demos, I am aware the latest Flash Builder 4 has some quick solutions for generating data server connections with the click of a button. Is it possible to build a database application, e.g.

Re: [Flashcoders] Database Centric with Flash Builder 4 and Without the Flex Framework

2010-08-30 Thread Dave Watts
> I have a simple question regarding the latest Flash Builder  4. > Based on viewing some recent demos, I am aware the latest Flash  Builder 4 > has some quick solutions for generating data server connections with  the > click of a button. > Is it possible to build a database application, e.g. PHP

[Flashcoders] Accessing .fla var

2010-08-30 Thread Lehr, Theodore
How would I access a variable in my .fla from a .as? I just want to do something like: var++; from the .as where the var lives in the .fla.. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listin

Re: [Flashcoders] Accessing .fla var

2010-08-30 Thread Eric E. Dolecki
I think you may need to reword your question with more detail. What exactly is your setup? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Mon, Aug 30, 2010 at 12:58 PM, Lehr, Theodore wrote: > How would I access

RE: [Flashcoders] Accessing .fla var

2010-08-30 Thread Lehr, Theodore
In my .fla I have: var countF:int=0; then in the library I have a mc with linkage to an .as file In that .as file, I want to be able to: countF++; hope that makes sense. From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfi

Re: [Flashcoders] Accessing .fla var

2010-08-30 Thread Eric E. Dolecki
Why wouldn't you increment countF when you instantiate your mc? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Mon, Aug 30, 2010 at 1:14 PM, Lehr, Theodore wrote: > In my .fla I have: > > var countF:int=0; > > t

RE: [Flashcoders] Accessing .fla var

2010-08-30 Thread Lehr, Theodore
because it does not always get incremented... I guess I could though - but I am trying to have all the code together in the .as From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki

Re: [Flashcoders] Accessing .fla var

2010-08-30 Thread Henrik Andersson
Lehr, Theodore skriver: In my .fla I have: var countF:int=0; then in the library I have a mc with linkage to an .as file In that .as file, I want to be able to: countF++; Main timeline |>frame 1 |___>variable |___>instance of symbol |_>Symbol |_>as

[Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
Hi. :) Does anyone know of a way to get the beginning and ending index of a link within a TextField? I want the indexes of the beginning and ending of the text that makes up the link. For example if I pass the following HTML text into the TextField: [p]Lorem ipsum [a href="event:block1"]do

Re: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Henrik Andersson
Andrew Murphy skriver: Hi. :) Does anyone know of a way to get the beginning and ending index of a link within a TextField? I want the indexes of the beginning and ending of the text that makes up the link. For example if I pass the following HTML text into the TextField: [p]Lorem ipsum

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Mattheis, Erik (MIN-WSW)
This might give you some ideas on accomplishing what you needs to do -use split().join(): http://troyworks.com/blog/2008/03/14/flash-textfield-actionscript-hyperlink-in-as30/ _ _ _ Erik Mattheis Senior Web Developer Minneapolis T  952 346 6610 C 612 377 2272 Weber Shandwick Advocacy starts he

RE: [Flashcoders] Accessing .fla var

2010-08-30 Thread Lehr, Theodore
I am thinking I need a custom event in the .as and then listen for it in the .fla From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki [edole...@gmail.com] Sent: Monday, August 30, 2

Re: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Nathan Mynarcik
You will have to cull out what you want: **Psuedo Code** var stuff:String = "[a href="event:block1"]dolor sit[/a]"; stuff.substr(stuff.indexOf("[a href="event:block1"]"), stuff.indexOf("[/a]")); Nathan Mynarcik nat...@mynarcik.com 254.749.2525 www.mynarcik.com On Mon, Aug 30, 2010 at 1:46 P

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
Hello. :) Thank you, but this script doesn't appear to return the beginning and ending indexes of the link. -- Andrew Murphy Interactive Media Developer amur...@delvinia.com Delvinia 370 King Street West, 5th Floor, Box 4 Toronto Canada M5V 1J9 P (416) 364-1455 ex

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
Hi. :) Mirror regions sound like they might do the job, but I'm limited to working with the v9 plug-in. (Sorry.. I should have mentioned that in my first email.) I'm not certain what you mean by using multiple content elements. The effect I'm looking for is that when the user clicks on a link t

Re: [Flashcoders] Accessing .fla var

2010-08-30 Thread jonathan howe
You need to dispatch the event after your F instance is added to the stage. Right now the order of operations is like this: 1. instantiate root class 2. instantiate F 3. dispatch event from F 4. add listener to F 5. add F to root class display hierarchy Obviously 4 and 5 need to be done before #3

RE: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Cor
Thanks Karl -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 30 augustus 2010 2:45 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after re

RE: [Flashcoders] Link text indexes in a TextField

2010-08-30 Thread Andrew Murphy
Hello. :) Thank you, but I think that will give me the link's text from within the "htmlText" property of the TextField. What I need are the beginning and ending indexes of the link within the "text" property of the TextField. That is, after the HTML has been rendered into the displayed text.

Re: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Karl DeSaulniers
That do the trick? Karl Sent from losPhone On Aug 30, 2010, at 1:43 PM, "Cor" wrote: Thanks Karl -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 30 a

RE: [Flashcoders] Accessing .fla var

2010-08-30 Thread Lehr, Theodore
So now I am trying this: in .fla: var countF:int=0; function incCountF(e:Event):void { countF++; } for .. { var newF:MDot = new MDot(); newF.addEventListener("increaseF",incCountF); addChild(newF); } then in the .as I have: package { [Event(name="increaseF")];

RE: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Cor
No, unfortunatly not... -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 30 augustus 2010 21:11 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize pa

Re: [Flashcoders] Datagrid problem after resize page

2010-08-30 Thread Karl DeSaulniers
Hey Cor, Its a long shot, but can you load the grid into a mc that has the scale9 on it? Also, how are you styling the text? In css? or a textbox with a font assigned to it? Sorry haven't worked with grids too much. Seems to me that if your using css, the line hight of your font stays at th