RE: [Flashcoders] Flash CS3 UI Bug
Steven Sacks, it's sounds like I'll have to keep up my funky flash workey properly rain dance, or maybe it's the weekly sacrifices ;) I seem to remember a bunch of bugs that were very system specific (no rhyme or reason) when flash 8 came out! Macromedia had real problems reproducing them. Have you tried other CS3 products to see if it affects them as well or if it's just flash? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: 06 September 2007 18:49 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Flash CS3 UI Bug Nice to know I'm not alone in experiencing this buggy behavior. Giles Taylor, consider yourself lucky that you don't have the bug. By the way, I have a brand spankin new clean install of Windows XP SP2 here. Flash was installed right after the OS was and the bug appeared immediately. So, it isn't some OS artifact here. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash CS3 UI Bug
Must just be your retarded ass bullcrap install ;) Mine works lovely. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: 05 September 2007 22:03 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Flash CS3 UI Bug Lord knows I'm the last guy to complain about something on Flashcoders *wink* but this is ridiculous. Why are the panels in Flash CS3 (Windows) set to always on top? When I test movie in Flash, the test movie window goes BEHIND ALL PANELS? If this is intentional, who's the genius at Adobe who came up with this retarded ass bullcrap? I thought Adobe was trying to improve the UI not break it. FIX IT. /rant ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] XML for course delivery
This was set-up a while ago: http://osflash.org/edumatic but has been silent for a while. Maybe your system could help inject some life back into it??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ron Wheeler Sent: 03 July 2007 16:34 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] XML for course delivery I just wanted to let you know that we have a course delivery application that we wrote about 4 years ago in Flash using XML to control the delivery of material. It uses a few XML files to control the flow. The first is a company file that controls skinning for different customers (logos, colours, etc.). It also controls administrative behaviour that is common to all courses for that company (logon required, format of usernames for validation, where to find the list of valid users-if required, administrator's e-mail for sending out test results, etc.) Each course is controlled by a chapter file that lists each chapter and tells the system where to find the chapter assets. This helps partition the course assets into manageable chunks. Our courses tend to be long with 2 to 5 chapters each with 30-80 slides(pages). Chapters may be created in parallel so it also helps keep the integrators from stepping on each other's toes. The main file (pages file) controls the delivery of content. Each slide (page) has a basic structure that is the same for all types of pages. Pages are identified as content, test - formative(immediate feedback) or summative (exam), control pages(dummy pages that signal something like chapter end). Simple pages look a bit like your proposed structure (except for duration - we get that from the sound file). For more interesting interaction, a page can call up a template which is run as a sub-function and accesses its own custom datastructure which is stored as a sub-node under the main page node. This is used to implement tests (multiple choice, matching, custom flash interactions, etc.) or slides with timed appearance of bullets and images. This allows us to make courses that look like custom timeline animations just by putting information in XML that says at 10 seconds into the narration show this picture(jpg or swf), and at 15 seconds display this text in 14 point Arial, green and bold and at 25 second replace the image with this one. The test templates can communicate their final test results back to the main flow which builds up a history that can be sent to the administrator at the end of the test. This returning XML structure includes the grade and the text that the test generated which typically describes what happened in a wrong answer. The main flow has no idea about the information, its only job is to save it and produce a final e-mail. The e-mail is sent through our server so that the person only needs HTTP access through their company firewall and does not even need e-mail on their PC - greatly simplifies administration; the student can work from work or home without .having to do any setup. We use XML internally to pass information around between objects. XML is easy to parse and whole sub-nodes can be easily extracted and sent to another object without knowing what is in it. This tends to make each object much simpler and less dependent on its friends. It has been used for all sorts of courses in French and English. We are selling an Explosives Technician's pre-course that we did for the RCMP. It is also used by Canadian Forces to train IEDD specialists. We have done a few technical courses in the petrochemical area including Pumps, Steam Traps, Work Permits and a ISO-14001 Awareness course. We have done a course on Public Participation for municipal managers and elected officials. It is very flexible in a wide variety of application areas. It has proven to be extremely robust in the field running over LAN, off of CD-ROM and over the Internet through an LMS. It can be run as a SCORM compliant content. I am not a big fan of SCORM but ??? We are thinking about making it open source, if there is some interest. We have also done another application involving a medium sized database stored in XML delivered on standalone CD-ROM which allowed first responders to quickly find information and photos about the Personal Protective Equipment used by all first responders in the city. (from gas masks to sun-screen). We have never had any problems with XML with any recent version of Flash so I think that you will be OK. Ron ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription
RE: [Flashcoders] How do I get rid of enhanced stroke?
Just ignore them! They are just warnings that you will lose the enhanced stroke effects and the swf will work fine. Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alistair Colling Sent: 13 June 2007 16:02 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] How do I get rid of enhanced stroke? Hi there, I've received some graphics in an FLA from a designer and they use enhanced stroke. I need to get rid of this as I'm publishing to Flash Player 6 and I am getting compiler errors because of this. I've tried doing this by breaking the images apart but the enhanced stroke still remains. Converting the image to a bitmap looks bad as the image has diagonal lines . Any suggestions on how to do this very gratefully received, Thanks! Ali ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Superscript Subscript in Dynamic Text Fields
No it hasn't! ;( Please make sure you fill out the wish form: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform as there is talk of rebuilding the text engine for player 10. ;) Currently I think the best way round it is by creating custom superscript and subscript fonts that get embedded (although I've not done it myself). Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JP Sent: 18 April 2007 11:03 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Superscript Subscript in Dynamic Text Fields Hi, I have a very large medical project that requires for me to load dynamic text through XML for a series of text fields. I know that there is an issue with displaying Superscript Subscript characters in Flash player 8. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=1959eceb Being Medical, the text is littered with this type of text formatting. I'm still authoring in Flash 8. (I try to avoid upgrades during a project and I'd hoped to wait for upgrade till AFTER i finished.) BUT... Does anyone know if this issue has been fixed in Flash 9 ? Thanks, Jay ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] TextField._width and advanced antialias issue
Hi All, I've got a weird problem going on with my textfields. All is ok (see: notCut-off.jpg) until I use the _width property (reading, not writing) at which point the text is getting chopped off at the end (see: cut-off.jpg). I have found that if I don't set antiAliasType = advanced then _width doesn't cause any problems, but the text looks bad! Any ideas? //CODE var unitButtonTextFeild_tf:TextField = unitButton_mc.createTextField(unitButtonTextFeild_tf, 1, 15, 5, 10, 5); unitButtonTextFeild_tf.wordWrap = false; unitButtonTextFeild_tf.multiline = false; unitButtonTextFeild_tf.autoSize = left; unitButtonTextFeild_tf.background = false; unitButtonTextFeild_tf.border = true; unitButtonTextFeild_tf.selectable = false; unitButtonTextFeild_tf.embedFonts = true; unitButtonTextFeild_tf.setNewTextFormat(unitButtonText_fmt); unitButtonTextFeild_tf.antiAliasType = advanced; unitButtonTextFeild_tf.gridFitType = pixel; unitButtonTextFeild_tf.text = unitsList[n].subTitle; var bgWidth:Number = unitButtonTextFeild_tf._width + 25; var unitButtonBG_mc:MovieClip = unitButton_mc.createEmptyMovieClip(unitButtonBG_mc + n, 0); unitButtonBG_mc.beginFill(0xFF, 100); unitButtonBG_mc.moveTo(0, 0); unitButtonBG_mc.lineTo(bgWidth, 0); unitButtonBG_mc.lineTo(bgWidth, 30); unitButtonBG_mc.lineTo(0, 30); unitButtonBG_mc.lineTo(0, 0); unitButtonBG_mc.endFill(); //END CODE ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Center align multiline textfield?
Have you centred the text using TextFormat.align? Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perdue, Blake Sent: 10 October 2006 16:26 To: Flashcoders mailing list Subject: [Flashcoders] Center align multiline textfield? I'm trying to get a multiline textfield to be center aligned. Here's the code: this.createTextField('subhead',20,1,435,434,200); with (this.subhead) { html=true; embedFonts=true; selectable=false; wordWrap=true; multiline=true; autosize='center'; htmlText='font face=KnockoutHTF51Middleweight size=16 color=#ffSI.com\'s Peter King says T.O. is going to explode before long, but Dallas is tough enough to survive./font'; } The autosize seems to only work for single line textfields, not multiline. Anyone know how to accomplish this? Thanks. Blake Perdue | 212.522.1292 | AIM: blakepCNN ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Rendering flash 8 to video
You could use some screen capture software (there are lots, but for example: http://www.techsmith.com/camtasia.asp) to capture the swf area as you play it back. A lot cheaper than Director ;) Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alias(tm) Sent: 03 October 2006 11:48 To: Flashcoders mailing list Subject: [Flashcoders] Rendering flash 8 to video Hi guys, Every so often, this question comes up, and I've never really gotten a satisfactory answer. So... I have a flash movie. I want to render it out to a video file, but of course I want to have all the timelines playing correctly and all the transparencies/filters properly rendered, etc. so save as... really won't cut it. As I understand, the only way to do this is to export via director. Is this still the case? And if so, does whatever version of director that is still in existence support flash 8? Anyone got any leads on this? Thanks in advance, Alias ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Selection class makes me want to kick someone in theface
Hi Andreas, I've got round this in the past by getting the selection when it is made rather than when the button is pushed. Something like (you may need to fiddle with the scopes): richText_txt.onMouseDown = function(){ if((this._parent._xmouse this._x) (this._parent._xmouse (this._x + this._width)) (this._parent._ymouse this._y) (this._parent._ymouse (this._y + this._height))){ ref.selecting = true; } }; richText_txt.onMouseUp = function(){ if(ref.selecting == true){ //Store the selection info at this point!!! } ref.selecting = false; }; Hope that helps, Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: 02 October 2006 12:13 To: Flashcoders mailing list Subject: [Flashcoders] Selection class makes me want to kick someone in theface ...which is, i gather, somewhat of a general consensus. I'm working on a tablet pc application that requires the user to be able to select text and transfer this text to other parts of the application. The ideal way is as such: 1. The user makes a selection from *any selectable text field* 2. A button appears near the selected text 3. The user taps the button 4. The selected text is copied to a buffer 5. The selection is cleared 6. An event is broadcast Now my problem is, this is what happens: 1. The user makes a selection 2. A button appears near the selected text 3. The user taps the button 4. The text field loses focus, launching Selection.onSetFocus, which checks if the current selection, now null, is an editable textfield. Naturally, null is not, so the button becomes hidden. 5. The user releases the now invisible button 6. Selection.onSetFocus gathers that the new selection is null, and uh, returns focus to the text field, which retains its selection. 7. Now that the textfield, which is valid in terms of this purpose, the button is shown again. Hmm.. Infinite cycle. Not cool. The big issue here is that Selection.onSetFocus is called prior to MovieClip.onPress. This basically means there's no way i can make changes to the current selection before onSetFocus is called. With this in mind: How the bloody hell is it possible to make changes to a selection with a button? The more i kick this horse around, the more contrived the AS looks, and it's becoming seriously demoralizing. Any input is appreciated. - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] DECODE XML Encoded Characters?
Those are html encodings. If you put them into an HTML textField as is they will work fine (if that is what you are after). Escape and unescape deal with URL encoding which is a different thing. If you want the html encoding to turn into the actual characters then I don't think flash can do it without you writing your own parser. Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning Sent: 25 September 2006 16:16 To: Flashcoders mailing list Subject: [Flashcoders] DECODE XML Encoded Characters? Alright, what am I doing wrong? I have tried over and over to decode an XML string, but Flash won't decode it. The XML is returning special Characters (') encoded. I have tried to use escape, unescape, encode, decode and I can't get anything to convert the encoded text to its character representation. Here is the node: ConfigParamValueSpecial Characters - amp; quot; apos; lt; gt; /ConfigParamValue var str:String = String(XPath.selectNodes(MyXML_cs.getResults(), //ConfigParamValue/text())[0]); I've tried: trace(A: + escape(str));// Special Character - amp; quot; apos; lt; gt; trace(B: + unescape(str)); // Special Character - amp; quot; apos; lt; gt; trace(C: + decode(str));// Special%20Character%20%2D%20%26amp%3B%20%20%26quot%3B%20%20%26apos%3B%20 %20%26lt%3B%20%20%26gt%3B%20%20 trace(D: + encode(str));// Special Character - amp; quot; apos; lt; gt; I'd greatly appreciate if someone could let me know how to decode this text! Thank you! Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] OOP methodology and flash. I'm loosing my faith...
http://en.wikipedia.org/wiki/Polymorphism_(computer_science) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't Kruis Sent: 25 August 2006 14:14 To: Flashcoders mailing list Subject: Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith... well, I get Interfaces, but thanks for explaining :). I just don't think actionscript, or java, has any polymorphism, since the definition of that is, in my opinion, a class having more than one parent class (ie, can extend 2 or more classes), which isn't the case. So I don't understand why people who are explaining oop in actionscript talk about polymorphism, because it just isn't there :), but perhaps I'm wrong. cheers, -Meinte ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion
I did it by getting the index in the textField, as you described, then looping through every character in the html and counting the characters that are not in tags. When (number of characters not in tags) == (the index in the textfield) then you have your index in the html. Mmm, nice! ;) Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 09 August 2006 19:15 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion You have to take out all the html, amend it (using html) and then re-assign it all to the textfield. Ok, but even doing that, you would have to use something like Selection.getCaretIndex() to know where in the Textfield you are so you can insert the IMG tag in the right place, but that wouldn't seem to work because in the tests I did it Selection.getCaretIndex() gives you the position in the string shown as it is in the textfield, not the HTML code. So the index # is way off because of the hidden HTML tags are counted. How would you know where in the HTML code (not in the rendered HTML) the user placed their caret so you can insert the IMG tag? Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Giles Taylor Sent: Wednesday, August 09, 2006 12:25 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion Yes, but you should be writing to the .htmlText property not the .text property as that will then keep all the styling in place via html code. You have to take out all the html, amend it (using html) and then re-assign it all to the textfield. Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 09 August 2006 16:36 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion To insert an image you need to process the text as text. So you first Yes, I understand that, :) but in doing that: since writing to the text property of a TextField object destroys any custom formatting associated with the field (i.e. the interal style profiles), [you] have to use the TextField.replaceSel() function (p. 889 in Moock's ASDG for FlashMX). So with your TextFormat destroyed, you've sacrificed the user's ability to continue to format the text in order to add an image. At least, that's how I understand it. TextFormat does not have IMG as an available style. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Marcelo Volmaro Sent: Wednesday, August 09, 2006 11:02 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion To insert an image you need to process the text as text. So you first need to get the html text (textfield.htmlText), insert the image using string functions and then re-insert the text into the textfield. Because you know where the cursor is in the textfield text but not in the html text, you need to insert some kind of marker at the cursor position, and then replace that marker inside the html text with the img tag. That will do the trick. On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason [EMAIL PROTECTED] wrote: OK - follow me here for a fun mental exercise: I think the major issue I'm running into with this is the TextFormat class relies on the text field's visual formatting described by the Flash Players internal style profiles. And since the TextFormat class does not support an IMG tag, I cannot use TextFormat to insert an image, I have to insert the IMG tag as a string. AND SO since writing to the text property of a TextField object destroys any custom formatting associated with the field (i.e. the interal style profiles), I have to use the TextField.replaceSel() function (p. 889 in Moock's ASDG for FlashMX). AND since the replaceSel() function encodes the IMG markup, you can't have it render the image! So it seems to be a catch-22 and I'm screwed using TextFormat and trying to let the user also add an inline image. Unless someone knows otherwise, I am going to have to use a movieClip container instead of an IMG tag. That will not be ideal, but it might fly for this project. I really wish they would make the HTML editing capabilities of Flash better, but it doesn't look like that will happen any time soon. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of John Grden Sent: Wednesday, August 09, 2006 9:04 AM To: Flashcoders mailing list
RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion
I would have thought (i.e. I've not tried it) that once the image is in the textfield that users could just select/delete it as though it where just another piece of text??? Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 08 August 2006 17:38 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion You could scan through the textfield.htmlText value (i.e. the code) and relate the selection index in the rendered output to the actual index in the code, then insert your image code in the textfield.htmlText. I have done this previously (for a different reason) by just running two counters as I looped through each character in the code, one counter counts every character and the other ignores characters that are part of a tag. Thanks Giles. That is what I was trying to avoid, especially since I need to give the user editing capability - so they can add and remove the tag at any time when editing the text. Could get messy real quick and be bug-prone. I think I might opt instead for keeping images out of the HTML altogether, and just use a MovieClip they load content into and position. It won't allow the text to wrap around the image, but oh well. Thanks for the many responses! Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Giles Taylor Sent: Tuesday, August 08, 2006 4:41 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion I think that replaceSel() acts on the rendered output rather than the code, so it thinks that you want to actually display the text that you entered rather than adding it to the code (hope that makes sense!) You could scan through the textfield.htmlText value (i.e. the code) and relate the selection index in the rendered output to the actual index in the code, then insert your image code in the textfield.htmlText. I have done this previously (for a different reason) by just running two counters as I looped through each character in the code, one counter counts every character and the other ignores characters that are part of a tag. Bit of a pain, but I hope it helps, Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 07 August 2006 23:25 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion Oh, and to follow up with some further information: It seems to only encode those HTML entities when I use TextField.replaceSel(). If I just add the img tag string on to the htmltext field value, it works: //works: test_txt.htmlText += img src=\mountains.jpg\ width=\350\ height=\120\ /; //fails - shows literal text, and encodes entities: test_txt.replaceSel(img src=\mountains.jpg\ width=\350\ height=\120\ /); Am I left with splitting the string in two, inserting the img tag, and re-assembling the string? Or is there a way to get replaceSel() to work with HTML tags? Thanks, Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, August 07, 2006 5:55 PM To: Flashcoders mailing list Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question Getting back to this question I had back on Aug 1, thanks for the ideas. I've built a basic HTML text editor in Flash using the TextFormat class. Since I need to save the resulting HTML string back to a database, it works great. However, now I need to insert images into the HTML - which isn't supported by the TextFormat class. So I was thinking I could just insert an img tag string into the textField using TextField.replaceSel(), like this: test_txt.replaceSel(img src=\mountains.jpg\ width=\350\ height=\120\ /); So that part works fine, but when I re-render the textField, the image does not show (doesn't render as HTML), it shows the literal img scr=...etc. characters in the textField (even though it is an HTML textfield). I thought maybe I needed to re-render the textfield, so I left the frame and then jumped back to it, and it still shows the literal HTML. So in testing the value of the html TextField, I found the and \ characters I inserted have been changed to encoded entities in the HTML string: lt;img src=quot;mountains.jpgquot; width=quot;350quot; height=quot;120quot; /gt; Why is that and how can I fix this? It would be pretty messy to use the XML object to decode those entities - why are they getting rendered that way in the first place? Thanks, Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From
RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion
I know you are trying to avoid it, but I think the only way to go is to get those counters counting and insert the raw code into the textfields htmlText property. And, yes it really does suck!! (don't get me started on superscript and subscript ;) Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 09 August 2006 15:10 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion OK - follow me here for a fun mental exercise: I think the major issue I'm running into with this is the TextFormat class relies on the text field's visual formatting described by the Flash Players internal style profiles. And since the TextFormat class does not support an IMG tag, I cannot use TextFormat to insert an image, I have to insert the IMG tag as a string. AND SO since writing to the text property of a TextField object destroys any custom formatting associated with the field (i.e. the interal style profiles), I have to use the TextField.replaceSel() function (p. 889 in Moock's ASDG for FlashMX). AND since the replaceSel() function encodes the IMG markup, you can't have it render the image! So it seems to be a catch-22 and I'm screwed using TextFormat and trying to let the user also add an inline image. Unless someone knows otherwise, I am going to have to use a movieClip container instead of an IMG tag. That will not be ideal, but it might fly for this project. I really wish they would make the HTML editing capabilities of Flash better, but it doesn't look like that will happen any time soon. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion
Yes, but you should be writing to the .htmlText property not the .text property as that will then keep all the styling in place via html code. You have to take out all the html, amend it (using html) and then re-assign it all to the textfield. Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 09 August 2006 16:36 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion To insert an image you need to process the text as text. So you first Yes, I understand that, :) but in doing that: since writing to the text property of a TextField object destroys any custom formatting associated with the field (i.e. the interal style profiles), [you] have to use the TextField.replaceSel() function (p. 889 in Moock's ASDG for FlashMX). So with your TextFormat destroyed, you've sacrificed the user's ability to continue to format the text in order to add an image. At least, that's how I understand it. TextFormat does not have IMG as an available style. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Marcelo Volmaro Sent: Wednesday, August 09, 2006 11:02 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion To insert an image you need to process the text as text. So you first need to get the html text (textfield.htmlText), insert the image using string functions and then re-insert the text into the textfield. Because you know where the cursor is in the textfield text but not in the html text, you need to insert some kind of marker at the cursor position, and then replace that marker inside the html text with the img tag. That will do the trick. On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason [EMAIL PROTECTED] wrote: OK - follow me here for a fun mental exercise: I think the major issue I'm running into with this is the TextFormat class relies on the text field's visual formatting described by the Flash Players internal style profiles. And since the TextFormat class does not support an IMG tag, I cannot use TextFormat to insert an image, I have to insert the IMG tag as a string. AND SO since writing to the text property of a TextField object destroys any custom formatting associated with the field (i.e. the interal style profiles), I have to use the TextField.replaceSel() function (p. 889 in Moock's ASDG for FlashMX). AND since the replaceSel() function encodes the IMG markup, you can't have it render the image! So it seems to be a catch-22 and I'm screwed using TextFormat and trying to let the user also add an inline image. Unless someone knows otherwise, I am going to have to use a movieClip container instead of an IMG tag. That will not be ideal, but it might fly for this project. I really wish they would make the HTML editing capabilities of Flash better, but it doesn't look like that will happen any time soon. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of John Grden Sent: Wednesday, August 09, 2006 9:04 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion Sorry if you guys already covered this, but is it possible to use SWF's instead of bitmaps? the image tag supports loading of SWF's, and I would think you *could* (meaning, I've not tried it) include onRelease method that handles the removal of said SWF? On 8/9/06, Merrill, Jason [EMAIL PROTECTED] wrote: I would have thought (i.e. I've not tried it) that once the image is in the textfield that users could just select/delete it as though it where just another piece of text??? Nope - well, kind of, that's only partially true. You cannot select the picture itself, but if you select the space character where the image tag is invisibly located and delete that, the IMG tag gets deleted as well, thus removing the picture. So you can do it, but it's not intuitive to the user on how to find that space and do that, especially if they forgot where they put it. But it would be really nice if it were true that you could select the picture directly. Unless someone knows otherwise, but this is what appears to be the case in my tests. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Giles Taylor Sent: Wednesday, August 09, 2006 4:28 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion I would have thought (i.e. I've not tried
RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion
I think that replaceSel() acts on the rendered output rather than the code, so it thinks that you want to actually display the text that you entered rather than adding it to the code (hope that makes sense!) You could scan through the textfield.htmlText value (i.e. the code) and relate the selection index in the rendered output to the actual index in the code, then insert your image code in the textfield.htmlText. I have done this previously (for a different reason) by just running two counters as I looped through each character in the code, one counter counts every character and the other ignores characters that are part of a tag. Bit of a pain, but I hope it helps, Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 07 August 2006 23:25 To: Flashcoders mailing list Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion Oh, and to follow up with some further information: It seems to only encode those HTML entities when I use TextField.replaceSel(). If I just add the img tag string on to the htmltext field value, it works: //works: test_txt.htmlText += img src=\mountains.jpg\ width=\350\ height=\120\ /; //fails - shows literal text, and encodes entities: test_txt.replaceSel(img src=\mountains.jpg\ width=\350\ height=\120\ /); Am I left with splitting the string in two, inserting the img tag, and re-assembling the string? Or is there a way to get replaceSel() to work with HTML tags? Thanks, Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Monday, August 07, 2006 5:55 PM To: Flashcoders mailing list Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question Getting back to this question I had back on Aug 1, thanks for the ideas. I've built a basic HTML text editor in Flash using the TextFormat class. Since I need to save the resulting HTML string back to a database, it works great. However, now I need to insert images into the HTML - which isn't supported by the TextFormat class. So I was thinking I could just insert an img tag string into the textField using TextField.replaceSel(), like this: test_txt.replaceSel(img src=\mountains.jpg\ width=\350\ height=\120\ /); So that part works fine, but when I re-render the textField, the image does not show (doesn't render as HTML), it shows the literal img scr=...etc. characters in the textField (even though it is an HTML textfield). I thought maybe I needed to re-render the textfield, so I left the frame and then jumped back to it, and it still shows the literal HTML. So in testing the value of the html TextField, I found the and \ characters I inserted have been changed to encoded entities in the HTML string: lt;img src=quot;mountains.jpgquot; width=quot;350quot; height=quot;120quot; /gt; Why is that and how can I fix this? It would be pretty messy to use the XML object to decode those entities - why are they getting rendered that way in the first place? Thanks, Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of James Booth Sent: Tuesday, August 01, 2006 10:43 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash? I just did exactly this, a couple of days ago. I created a class that can apply any kind of supported HTML formatting. The idea seemed daunting at first, but the class is relatively small. You can assign/remove textfields that it should watch. I don't have it here with me right now, but here's the basics: It doesn't use replaceText at all. I have a switch statement for the various textformat options (some are Boolean (bold, italic, etc) and some have arguments (leading, size, etc). When the textfield has focus use an interval to get the beginIndex and endIndex. You can clear the interval onkillFocus. Then in your setFormat function Public function setFormat (type, arg):Void { var temp_fmt:TextFormat = currentField.getTextFormat(beginIndex, endIndex); switch (type) { case bold: case italic: case underline: //etc... { temp_fmt[type] = temp_fmt[type] == false ? true : false; break; } case leading: case align: case size: //etc... { temp_fmt[type] = arg; break; } } currentField.setTextFormat(beginIndex, endIndex, temp_fmt); } This should give you a head start. - James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, August 01,
RE: [Flashcoders] New to the list - got a question
Why not use: var myMovie_mc:MovieClip = attachMovie(itemDivider, newItemDividerName ,x); Then you can set the properties by doing: myMovie_mc._x = nextItemDivider ; Giles P.S. Best to stick to one subject name for each question on the list because the list archive will then be able to tie the discussion together when searching -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Sent: 02 August 2006 13:45 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] New to the list - got a question Hi All, I'm new to the list, so appologies if I don't get the posting right on this - but I have a question. I'm trying to load in a set of XML data, manipulate it and then get it to display on the stage. So far so good on the first two fronts - I can get the data in and get everything I want out of it. Now the amount of XML is dynamic, so I have pushed the needed data into an array. For example. XML: xml data item/item /data data item/item /data /xml The amount of data elements is dynamic (and there is a lot of other rubbish in the XML) so I've pushed all the data elements into an array. So far, so good, I can cycle through the array and access the XML elements using Xpath. The problem is - for each data element, I want to create a new instance of a MovieClip on the stage (thats already created in the library) and set varaibles inside it, and change it's X and Y positions. No problems creating it - but I can't access the MovieClip! Because the data is dymanic, I need to be able to create x amount of MovieClips. So I'm using the following code to do this: //For each Data Element in the Array (x = 0; x numDataElementsInArray; x++) { var newItemDividerName:String = itemDividerStageRecord +x; attachMovie(itemDivider, newItemDividerName ,x); //Now this all works, a newMovieClip is created on the stage (for as many elements as I have), 10 at the moment } Now the problem is - I then can't access the MovieClip dynamically. Basically I want to be able to access it by the variable name i've just assigned it. For example - I now have (when it is published), 10 elements on level0, named itemDividerStageRecord0-9. So I want to set their cords. So what i've been doing is: _root._level0.newItemDividerName._x = nextItemDivider; //nextItemDivider is a Number which does increment And thats not working at all - nothing is changing. I've traced it down to the name I'm using to access it - if in the same loop I put: _root._level0.itemDividerStageRecord6._x = nextItemDivider; That works for one MovieClip (obviously). But I want to be able to access each MovieClip dynamically. Is there any way to do this? I want to pass the instance name the varaible when setting the cord, not use the absolute element name newitemDividerName. Please let me know if this is confusing, I can explain better! Cheers. -Jon- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] WSIWYG HTML text editor in Flash?
You want to be using the TextFormat class. If you use it on an htmlTextField then flash does all the html coding for you; much easier! Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 01 August 2006 15:11 To: Flashcoders mailing list Subject: [Flashcoders] WSIWYG HTML text editor in Flash? Two related questions. In a nutshell, trying to make a WSIWYG HTML text editor for Flash 7. Question 1: Has anyone created an HTML text editor component or class of some kind in Flash? Basically, having a textfield containing a paragraph of text the user can apply bold, size, font, etc. to - I assume it would use something like: textfield.replaceText(Selection.getBeginIndex(),Selection.getEndIndex(), theNewString) or something to that effect. So to my second question, I was able to get the above working, but the html Textfield would not apply the new HTML tags, it would show them literally when replaceText was used. Initially, I set the text with textField.htmlText = myText and renders fine with the bolding, but textField.replaceText() seems to not allow the textfield to show the bold tags applied - it shows the literal tag. Any ideas? Basically, would like to create a WSIWYG HTML text editor (flash 7), but from what I read in the archives, it's a lot harder than it sounds and maybe not even possible in Flash right now, but I don't want to give up too early. It seems that all the basic methods are available, there are just some quirks to work out with the Textfield class. Thanks, Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Array Empowerment
How about setting it up on www.osflash.org? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: 26 July 2006 23:04 To: Flashcoders mailing list Subject: RE: [Flashcoders] Array Empowerment It's not done yet. I've identified some bugs in certain functions and I'm also optimizing it still with everyone's help. Don't want to jump the gun too quick until it's absolutely ready. :) I think once it's ready, though, SVN would be a great place to keep this open source project. BLITZ | Steven Sacks - 310-551-0200 x209 -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chris Hill Sent: Wednesday, July 26, 2006 2:56 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Array Empowerment Done! :D http://ubergeek.tv/XArray/XArray.as I'll put it up there from now on instead of spamming people's inboxes more. -C Steven Sacks | BLITZ wrote: Chris, You rock! How about calling it PowerArray or XArray instead. :) -Steven BLITZ | Steven Sacks - 310-551-0200 x209 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Fjax... does this seem ridiculous to anyone else?
Doesn't work with Opera 9! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryanm Sent: 23 June 2006 09:35 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Fjax... does this seem ridiculous to anyone else? http://www.fjax.net/ ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Flash coders content degrading
RTFM: http://www.osflash.org/flashcoders/etiquette ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] PPC SWF2EXE
http://www.antmobile.com/ http://www.handsmart.com But I've not used them so I don't know if they are any good Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester Sent: 26 April 2006 14:52 To: Flashcoders mailing list Subject: RE: [Flashcoders] PPC SWF2EXE Tbh, I think XAMLON will miss the boat. By the time they release a version 1 product, Microsoft will have a solid footing. I rememeber not so long ago that there was a company with a product called Handypack or something similar that did this, but I can't find their site. Lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Mountain Sent: 26 April 2006 14:41 To: Flashcoders mailing list Subject: RE: [Flashcoders] PPC SWF2EXE Wow - talk about on topic, I just came out of a meeting about this very subject. Apparently XAMLON will publish to ppc - but the beta is now closed M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee McColl-Sylvester Sent: 26 April 2006 14:46 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] PPC SWF2EXE Wow, acronyms gallore. Hey all. Does anyone know of a good SWF2EXE for the PPC other than MDM's? Thanks, Lee ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Text editor - Selection trouble.
I got round this this by adding a mouse listener to the textField and checking onMouseDown that the mouse was pressed within the text area, if it was then onRelease gets the selection (getCaret(), getBeginIndex() getEndIndex()) and stores it in variables so it can be recalled later. This allows you to set the selection up again after a styling button has been released, so the user doesn't have to re-select to apply some more styling (maybe they want it bold italic). It also allows you to setup a function to check the styling of selected text and automatically put toggle buttons into the correct state (if bold text is selected the bold button goes to the down state). It all depends how far you want to take your quite simple text editor ;) Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magnus Askenbäck Sent: 12 April 2006 14:13 To: Flashcoders mailing list Subject: Re: [Flashcoders] Text editor - Selection trouble. Tack Johan, that worked like a charm! =) .m Johan Karlsson wrote: If I remember correctly using onRelease or even onPress is to late and the selection is already gone. To store the selection indexes you need to use the onMouseDown event. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnus Askenbäck Sent: den 12 april 2006 14:47 To: Flashcoders mailing list Subject: [Flashcoders] Text editor - Selection trouble. Hi all, I'm trying to build a quite simple text editor in f8 and are currently having some problems with the Selecton class. If anyone can give me some pointers it would be much apreciated. Problem is that whenever I try to use my buttons I loose focus of the textField and the Selection doesn't trigger. Like so: boldButton.onRelease = function () { my_txt.setTextFormat(Selection.getBeginIndex(), Selection.getEndIndex(), arialBold); } Selection.getBeginIndex() and Selection.getEndIndex() only returns -1 And if someone has a live exemple (with code) that would be awesome. A component is not an option tho. Tnx .magnus ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- *MAGNUS ASKENBÄCK | AD NORMA COMMUNICATION AB* T. +46 31 748 88 15 M. +46 736 79 48 97 [EMAIL PROTECTED] www.norma.se -- It is better to fail in originality than to succeed in imitation. » Herman Melville (1819 - 1891) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] As2 Event Broadcasting for fp 6.0.0.0 [was: 6.0]
Yep, you are right!!! That will teach me for RTFM! ;) Thanks for the help, Giles -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: 06 February 2006 11:34 To: Flashcoders mailing list Subject: Re: [Flashcoders] As2 Event Broadcasting for fp 6.0.0.0 [was: 6.0] On 2/6/06, Giles Taylor [EMAIL PROTECTED] wrote: Sorry, should have said that I need it for fp 6.0.0.0 (rather than 6.0). EventDispatcher is 6.0.79.0. I believe it should work as is, because the full source of the EventDispatcher class is included in the mx classes. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ 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] As2 Event Broadcasting for fp 6.0
Hi All, I'm trying to figure out the best way to do events in as2 published for fp6.0. Something like Brandon Halls EventBroadcaster would be perfect, but in as2 obviously. Does anybody have any ideas? BTW: I'm trying to stay away from AsBroadcaster/ASBroadcaster, if pos. Cheers, Giles ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders