[Flashcoders] RegEx
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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Database Centric with Flash Builder 4 and Without the Flex Framework
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. PHP and MySQL with pure Action script 3.0 and the latest Flash Builder 4 aforementioned feature, without using the Flex framework? Thanks, Daniel A. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Database Centric with Flash Builder 4 and Without the Flex Framework
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 and MySQL with pure Action script 3.0 and the latest Flash Builder 4 aforementioned feature, without using the Flex framework? The remoting classes are part of the Flex framework, so I don't think so. You can build Flex applications just using AS 3 without MXML, but they'd still require the Flex class library. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Accessing .fla var
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...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki [edole...@gmail.com] Sent: Monday, August 30, 2010 1:11 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 ted_l...@federal.dell.comwrote: 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/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing .fla var
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 ted_l...@federal.dell.comwrote: 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...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki [ edole...@gmail.com] Sent: Monday, August 30, 2010 1:11 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 ted_l...@federal.dell.comwrote: 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/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Accessing .fla var
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 [edole...@gmail.com] Sent: Monday, August 30, 2010 1:34 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 ted_l...@federal.dell.comwrote: 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...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki [ edole...@gmail.com] Sent: Monday, August 30, 2010 1:11 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 ted_l...@federal.dell.comwrote: 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/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing .fla var
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 |_assigned class |_code to access the variable DocumentClass(parent).var++ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Link text indexes in a TextField
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]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. ( ps: I used square brackets in the example HTML text rather than angle brackets to try avoiding issues with the list's mailer, which doesn't like HTML code in emails. ) -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Link text indexes in a TextField
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 [a href=event:block1]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. Are you sure that you need the positions? The flash.text.engine package has this nifty thing called mirror regions, perhaps they are useful here? Or perhaps you just need multiple content elements? It is hard to help when you don't know the purpose. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Link text indexes in a TextField
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 here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Murphy Sent: Monday, August 30, 2010 12:47 PM To: 'Flash Coders List' Subject: [Flashcoders] Link text indexes in a TextField 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]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. ( ps: I used square brackets in the example HTML text rather than angle brackets to try avoiding issues with the list's mailer, which doesn't like HTML code in emails. ) -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Accessing .fla var
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, 2010 1:11 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 ted_l...@federal.dell.comwrote: 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/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Link text indexes in a TextField
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 PM, Andrew Murphy amur...@delvinia.com wrote: 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]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. ( ps: I used square brackets in the example HTML text rather than angle brackets to try avoiding issues with the list's mailer, which doesn't like HTML code in emails. ) -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Link text indexes in a TextField
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 ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik (MIN-WSW) Sent: August 30, 2010 14:23 pm To: Flash Coders List Subject: RE: [Flashcoders] Link text indexes in a TextField 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 here. PRWeek Global Agency Report Card 2009 - Gold Medal Winner The Holmes Report Global Agency of the Year PR News Agency of the Year -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Andrew Murphy Sent: Monday, August 30, 2010 12:47 PM To: 'Flash Coders List' Subject: [Flashcoders] Link text indexes in a TextField 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]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. ( ps: I used square brackets in the example HTML text rather than angle brackets to try avoiding issues with the list's mailer, which doesn't like HTML code in emails. ) -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Link text indexes in a TextField
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 the Flash draws a highlight around the link's text and passes the beginning and ending indexes of that text to another function. I really do need the beginning and ending indexes. -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson Sent: August 30, 2010 14:15 pm To: Flash Coders List Subject: Re: [Flashcoders] Link text indexes in a TextField 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 [a href=event:block1]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. Are you sure that you need the positions? The flash.text.engine package has this nifty thing called mirror regions, perhaps they are useful here? Or perhaps you just need multiple content elements? It is hard to help when you don't know the purpose. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Accessing .fla var
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. So you'll want to add an ADDED_TO_STAGE listener in F and then dispatch the event in that listener callback. -jonathan On Mon, Aug 30, 2010 at 11:31 AM, Lehr, Theodore ted_l...@federal.dell.comwrote: 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)]; public function ... { var e:Event = new Event(increaseF); dispatchEvent(e); } } for some reason I think my listener is not catching it From: flashcoders-boun...@chattyfig.figleaf.com [ flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [ he...@henke37.cjb.net] Sent: Monday, August 30, 2010 1:43 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 |_assigned class |_code to access the variable DocumentClass(parent).var++ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- -jonathan howe ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Datagrid problem after resize page
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 resize page Redemption. :) http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/ Best, Karl On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote: I do apologize, I just realized that was a silverlight forum. NM Karl On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote: Got one more. Have you looked into the events SizeChagned and LayoutUpdated? I found someone talking about it here. http://forums.silverlight.net/forums/p/19987/275301.aspx Very last comment on the post has some code that it is used in. They are trying to autosize columns, but you may be able to translate these events to help with your problem. JAT Best, Karl On Aug 29, 2010, at 6:52 AM, Cor wrote: Thanks again, Karl, But I can't seem to find something like columnStretch but instead for columns I need it for rows. Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 23:40 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page This might help. http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/ controls/DataGrid.html But I am thinking you have already seen this. Sorry I am not much more help. Just had some time to google for ya. :) Best, Karl On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote: Ah.. did not see this email. Karl On Aug 28, 2010, at 8:14 AM, Cor wrote: I have looked at this: http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/ #section1 but there is nothing about my issue. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 12:37 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Is this what you are looking for? http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ display/DisplayObject.html#scale9Grid Best, Karl On Aug 28, 2010, at 5:29 AM, Cor wrote: Hi List, I have used a datagrid which looks OK when the page is viewed in its original dimensions. But if a user has a bigger resolution I scale my flash to that size. And then my datagrid looks bad: http://www.codobyte.com/!problem/datagrid.gif I want to keep the scaling part, so how can I adjust the text in the datagrid after the app is resized? Any help is appreciated! TIA, regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing
RE: [Flashcoders] Link text indexes in a TextField
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. I've thought of finding the index of the TextEvent's text property (ie: block1) within the htmlText property of the TextField and using that to determine the indexes, but those indexes would be relative to the TextField's htmlText property, rather than it's text property. -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik Sent: August 30, 2010 14:35 pm To: Flash Coders List Subject: Re: [Flashcoders] Link text indexes in a TextField 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 PM, Andrew Murphy amur...@delvinia.com wrote: 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]dolor sit[/a] amet.[/p] What I want is the beginning and ending indexes of the dolor sit text when the user clicks on it. The TextEvent.LINK event passes out the value of the href within the link text (ie: block1), which isn't terribly useful in this case. ( ps: I used square brackets in the example HTML text rather than angle brackets to try avoiding issues with the list's mailer, which doesn't like HTML code in emails. ) -- 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 ext. 232 F (416) 364-9830 W www.delvinia.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Datagrid problem after resize page
That do the trick? Karl Sent from losPhone On Aug 30, 2010, at 1:43 PM, Cor c...@chello.nl 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 augustus 2010 2:45 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Redemption. :) http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/ Best, Karl On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote: I do apologize, I just realized that was a silverlight forum. NM Karl On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote: Got one more. Have you looked into the events SizeChagned and LayoutUpdated? I found someone talking about it here. http://forums.silverlight.net/forums/p/19987/275301.aspx Very last comment on the post has some code that it is used in. They are trying to autosize columns, but you may be able to translate these events to help with your problem. JAT Best, Karl On Aug 29, 2010, at 6:52 AM, Cor wrote: Thanks again, Karl, But I can't seem to find something like columnStretch but instead for columns I need it for rows. Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 23:40 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page This might help. http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/ controls/DataGrid.html But I am thinking you have already seen this. Sorry I am not much more help. Just had some time to google for ya. :) Best, Karl On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote: Ah.. did not see this email. Karl On Aug 28, 2010, at 8:14 AM, Cor wrote: I have looked at this: http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/ #section1 but there is nothing about my issue. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 12:37 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Is this what you are looking for? http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ display/DisplayObject.html#scale9Grid Best, Karl On Aug 28, 2010, at 5:29 AM, Cor wrote: Hi List, I have used a datagrid which looks OK when the page is viewed in its original dimensions. But if a user has a bigger resolution I scale my flash to that size. And then my datagrid looks bad: http://www.codobyte.com/!problem/datagrid.gif I want to keep the scaling part, so how can I adjust the text in the datagrid after the app is resized? Any help is appreciated! TIA, regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list
RE: [Flashcoders] Accessing .fla var
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)]; public function ... { var e:Event = new Event(increaseF); dispatchEvent(e); } } for some reason I think my listener is not catching it From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [he...@henke37.cjb.net] Sent: Monday, August 30, 2010 1:43 PM To: Flash Coders List Subject: Re: [Flashcoders] Accessing .fla var 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 |_assigned class |_code to access the variable DocumentClass(parent).var++ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Datagrid problem after resize page
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 page That do the trick? Karl Sent from losPhone On Aug 30, 2010, at 1:43 PM, Cor c...@chello.nl 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 augustus 2010 2:45 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Redemption. :) http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/ Best, Karl On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote: I do apologize, I just realized that was a silverlight forum. NM Karl On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote: Got one more. Have you looked into the events SizeChagned and LayoutUpdated? I found someone talking about it here. http://forums.silverlight.net/forums/p/19987/275301.aspx Very last comment on the post has some code that it is used in. They are trying to autosize columns, but you may be able to translate these events to help with your problem. JAT Best, Karl On Aug 29, 2010, at 6:52 AM, Cor wrote: Thanks again, Karl, But I can't seem to find something like columnStretch but instead for columns I need it for rows. Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 23:40 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page This might help. http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/ controls/DataGrid.html But I am thinking you have already seen this. Sorry I am not much more help. Just had some time to google for ya. :) Best, Karl On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote: Ah.. did not see this email. Karl On Aug 28, 2010, at 8:14 AM, Cor wrote: I have looked at this: http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/ #section1 but there is nothing about my issue. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 12:37 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Is this what you are looking for? http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ display/DisplayObject.html#scale9Grid Best, Karl On Aug 28, 2010, at 5:29 AM, Cor wrote: Hi List, I have used a datagrid which looks OK when the page is viewed in its original dimensions. But if a user has a bigger resolution I scale my flash to that size. And then my datagrid looks bad: http://www.codobyte.com/!problem/datagrid.gif I want to keep the scaling part, so how can I adjust the text in the datagrid after the app is resized? Any help is appreciated! TIA, regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] Datagrid problem after resize page
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 the set pt but the text doesn't when it is sized up. thus it is actually there, but because the scale is not set to an whole number or non decimal number, you get that cutoff of the bottom of your text for whatever reason, I don't know, I think its a bug personally.. If your using css, maybe set the line height to be inherited or absolute or a pt larger than it is currently set? Or make your grid scale in whole numbers? Well, I'm all reached out. GL Karl On Aug 30, 2010, at 5:14 PM, Cor wrote: 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 page That do the trick? Karl Sent from losPhone On Aug 30, 2010, at 1:43 PM, Cor c...@chello.nl 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 augustus 2010 2:45 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Redemption. :) http://www.rareviewblog.com/2009/01/21/flash-as3-grid-sorting/ Best, Karl On Aug 29, 2010, at 7:40 PM, Karl DeSaulniers wrote: I do apologize, I just realized that was a silverlight forum. NM Karl On Aug 29, 2010, at 7:29 PM, Karl DeSaulniers wrote: Got one more. Have you looked into the events SizeChagned and LayoutUpdated? I found someone talking about it here. http://forums.silverlight.net/forums/p/19987/275301.aspx Very last comment on the post has some code that it is used in. They are trying to autosize columns, but you may be able to translate these events to help with your problem. JAT Best, Karl On Aug 29, 2010, at 6:52 AM, Cor wrote: Thanks again, Karl, But I can't seem to find something like columnStretch but instead for columns I need it for rows. Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 23:40 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page This might help. http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/ controls/DataGrid.html But I am thinking you have already seen this. Sorry I am not much more help. Just had some time to google for ya. :) Best, Karl On Aug 28, 2010, at 4:33 PM, Karl DeSaulniers wrote: Ah.. did not see this email. Karl On Aug 28, 2010, at 8:14 AM, Cor wrote: I have looked at this: http://www.adobe.com/devnet/flash/quickstart/datagrid_pt1/ #section1 but there is nothing about my issue. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 28 augustus 2010 12:37 To: Flash Coders List Subject: Re: [Flashcoders] Datagrid problem after resize page Is this what you are looking for? http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ display/DisplayObject.html#scale9Grid Best, Karl On Aug 28, 2010, at 5:29 AM, Cor wrote: Hi List, I have used a datagrid which looks OK when the page is viewed in its original dimensions. But if a user has a bigger resolution I scale my flash to that size. And then my datagrid looks bad: http://www.codobyte.com/!problem/datagrid.gif I want to keep the scaling part, so how can I adjust the text in the datagrid after the app is resized? Any help is appreciated! TIA, regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3096 - datum van uitgifte: 08/26/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm