RE: [Flashcoders] Cairngorm 2.0 tutorials
http://labs.adobe.com/wiki/index.php/Cairngorm Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 3:56 PM To: Flashcoders mailing list Subject: [Flashcoders] Cairngorm 2.0 tutorials Hi All, Can someone please direct me to a tutorial on Cairngorm 2.0 with Flex 2.0 Builder? I looked and googled but came with nothing. I'm talking about a step to step kinda thing. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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] Cairngorm 2.0 tutorials
Give us some credit, mate :) been there before. Did you see any step by step tutorial there? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Tuesday, August 08, 2006 9:10 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials http://labs.adobe.com/wiki/index.php/Cairngorm Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 3:56 PM To: Flashcoders mailing list Subject: [Flashcoders] Cairngorm 2.0 tutorials Hi All, Can someone please direct me to a tutorial on Cairngorm 2.0 with Flex 2.0 Builder? I looked and googled but came with nothing. I'm talking about a step to step kinda thing. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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] Cairngorm 2.0 tutorials
Maaate.. Everything is there, that's it. There is plenty there and it covers about all it's got to offer, so far. Did you dig into their blogs. Dude. http://weblogs.macromedia.com/auhlmann/archives/2006/07/cairngorm_2_for_1.cf m Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 4:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials Give us some credit, mate :) been there before. Did you see any step by step tutorial there? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Tuesday, August 08, 2006 9:10 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials http://labs.adobe.com/wiki/index.php/Cairngorm Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 3:56 PM To: Flashcoders mailing list Subject: [Flashcoders] Cairngorm 2.0 tutorials Hi All, Can someone please direct me to a tutorial on Cairngorm 2.0 with Flex 2.0 Builder? I looked and googled but came with nothing. I'm talking about a step to step kinda thing. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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] Cairngorm 2.0 tutorials
As Bjorn suggested: http://labs.adobe.com/wiki/index.php/Cairngorm (how come Adobe is using PHP btw) Have a read through this very good article. After I studied the article I had a look at Jesse Warden's Cairngorm 2 web service example. http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html Then I created a couple of Cairngorm sample applications. Once you got the hang of it you don't want to go back... Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 4:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials Give us some credit, mate :) been there before. Did you see any step by step tutorial there? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Tuesday, August 08, 2006 9:10 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials http://labs.adobe.com/wiki/index.php/Cairngorm Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 3:56 PM To: Flashcoders mailing list Subject: [Flashcoders] Cairngorm 2.0 tutorials Hi All, Can someone please direct me to a tutorial on Cairngorm 2.0 with Flex 2.0 Builder? I looked and googled but came with nothing. I'm talking about a step to step kinda thing. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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] Cairngorm 2.0 tutorials
Alex Uhlmann has some good sample applications using Cairngorm 2 here: http://weblogs.macromedia.com/auhlmann/archives/2006/07/cairngorm_2_for_1.cf m#more Cheers, Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robin Burrer Sent: 08 August 2006 07:37 To: Flashcoders mailing list Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials As Bjorn suggested: http://labs.adobe.com/wiki/index.php/Cairngorm (how come Adobe is using PHP btw) Have a read through this very good article. After I studied the article I had a look at Jesse Warden's Cairngorm 2 web service example. http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html Then I created a couple of Cairngorm sample applications. Once you got the hang of it you don't want to go back... Robin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 4:14 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials Give us some credit, mate :) been there before. Did you see any step by step tutorial there? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Tuesday, August 08, 2006 9:10 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Cairngorm 2.0 tutorials http://labs.adobe.com/wiki/index.php/Cairngorm Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matti Bar-Zeev Sent: Tuesday, 8 August 2006 3:56 PM To: Flashcoders mailing list Subject: [Flashcoders] Cairngorm 2.0 tutorials Hi All, Can someone please direct me to a tutorial on Cairngorm 2.0 with Flex 2.0 Builder? I looked and googled but came with nothing. I'm talking about a step to step kinda thing. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ ___ 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] 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,
[Flashcoders] A working ComboBox with skinning options?
I'm looking for a working combox which can be easily skinned. We've bought the MCOM componentset.. but it's heavily underdocumented. I can't get the content of the combobox skinned. I don't want to use the MX components beceause they mess up my depths. Does anyone know a good skinnable comboBox? Thanks -- Robin Bultot Woedend! e: [EMAIL PROTECTED] i: http://www.woedend.nl ___ 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] Specifying constructors in interfaces
I'm not too familiar with interfaces, but is there a way i can specify that an implementing class constructor must be structured a specific way? Such as if its a multiuser app it would require one and only one argument, being the netconnection instance? - Andreas ___ 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] some event model questions
I've run into a situation where i have two UI elements listening to one another. Is this bad form? - 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
Re: [Flashcoders] A working ComboBox with skinning options?
Why don't wrap your own it's only a text field + listbox and a button, where the listbox is made visible when you click on the toggle button. ___ 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 know I'm late to the game on this, but maybe this might save you time? http://www.flashtexteditor.com/in.php I just used it on a site, and it worked perfectly. It couldn't have been a better use of time/money ;) hth, jpg On 8/8/06, Giles Taylor [EMAIL PROTECTED] wrote: 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;
RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion
Sorry, this is going back in the thread, but I originally said it had to be Flash 7. This tool requires Flash 8 according to the site. Looks like a great tool though, thanks! 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: Tuesday, August 08, 2006 8:28 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion I know I'm late to the game on this, but maybe this might save you time? http://www.flashtexteditor.com/in.php I just used it on a site, and it worked perfectly. It couldn't have been a better use of time/money ;) hth, jpg On 8/8/06, Giles Taylor [EMAIL PROTECTED] wrote: 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
[Flashcoders] MC Reference path vs actual path
inputField = this.createEmptyMovieClip(chat_input,1); then, with keyboard focus on that movieclip: trace(Selection.getFocus()); trace(inputField); outputs: _level0.chat_input; _level0.inputField; A) this makes Selection.getFocus() *awkward* in OOP. B) I wasn't aware that the reference returned by createEmptyMovieClip and other functions returning references had a stage path that COEXISTS with the actual MC path? Is it just me or does this seem more than a little bit retarded? - Andreas ___ 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
that's not true, it works in Flash 7 just fine - I JUST tried it and I know that I've read that in the docs somewhere as well. On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: Sorry, this is going back in the thread, but I originally said it had to be Flash 7. This tool requires Flash 8 according to the site. Looks like a great tool though, thanks! 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: Tuesday, August 08, 2006 8:28 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion I know I'm late to the game on this, but maybe this might save you time? http://www.flashtexteditor.com/in.php I just used it on a site, and it worked perfectly. It couldn't have been a better use of time/money ;) hth, jpg On 8/8/06, Giles Taylor [EMAIL PROTECTED] wrote: 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
Re: [Flashcoders] MC Reference path vs actual path
inputField is a property of the object/movieclip it was created in. chat_input is the physical existance of the movieclip you're referencing with inputField. It doesn't seem retarded to me. You *may* want that separation for a reason some day down the line. I personally name then the same thing when it's referenced localy (in the same object): var inputField:MovieClip = this.createEmptyMovieClip(inputField, this.getNextHighestDepth()); createEmptyMovieClip returns a MovieClip reference for you to use. Imagine if you created that movieclip in some other timeline/MovieClip. With that returned reference, you wouldn't really care where the movieclip lived, just as long as you had a reference to it. hth, On 8/8/06, Andreas Rønning [EMAIL PROTECTED] wrote: -- [ JPG ] ___ 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
Well that's cool then! This is the kind of tool I was looking for. Thanks! 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: Tuesday, August 08, 2006 8:41 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion that's not true, it works in Flash 7 just fine - I JUST tried it and I know that I've read that in the docs somewhere as well. On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: Sorry, this is going back in the thread, but I originally said it had to be Flash 7. This tool requires Flash 8 according to the site. Looks like a great tool though, thanks! 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: Tuesday, August 08, 2006 8:28 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion I know I'm late to the game on this, but maybe this might save you time? http://www.flashtexteditor.com/in.php I just used it on a site, and it worked perfectly. It couldn't have been a better use of time/money ;) hth, jpg On 8/8/06, Giles Taylor [EMAIL PROTECTED] wrote: 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]
[Flashcoders] LoadMovie library
Hi, I looked on the internet and did not find the answer. I read a few times can't be done What I want to do is load movieclips in my main.swf from a library.swf and put those movieclips on the root or put movieclips from the root in the controller of my loadmovie. Secondly I want to add a movieclip who is in my main.swf library to the controller_mc. But this is not possible. I also try to put a movieclip which I loaded from the library.swf to the root. But also that is not possible. I cannot make use of the shared library because the name of the library.swf should be dynamic. Here is the code: Where I load a circle mc from the library.swf into the controller_mc. This works. Where I load a circleRoot mc from the library of the current swf to the controller_mc. This does not work. Where I load a circle mc from the library.swf onto the current root. This also does not work. this.createEmptyMovieClip(controller_mc, 1); var libMovie = library.swf; controller_mc.loadMovie(libMovie); this.onEnterFrame = function(){ var tLoaded, tBytes; tLoaded = controller_mc.getBytesLoaded(); tBytes = controller_mc.getBytesTotal(); var percentage = int(tLoaded*100/tBytes); if (isNaN(tBytes) || tBytes 4) return; if (tLoaded/tBytes = 1) { delete this.onEnterFrame; //attach circle from library.swf to controller_mc in the main.swf controller_mc.attachMovie(circle, circle_mc, controller_mc.getNextHighestDepth()); //OK //attach circleRoot from main.swf library to controller_mc in the main.swf controller_mc.attachMovie(circleRoot, circle2_mc, , controller_mc.getNextHighestDepth()); //NOT OK //attach circle from library.swf to the root of my main.swf _root. attachMovie circle, circle_mc, _root.getNextHighestDepth()); //NOT OK } } Is there perhaps an other way to load external movieclips from an other swf (library.swf) onto the root of the main.swf? Thx, Bart ___ 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
that's not true, it works in Flash 7 just fine - I JUST tried it and I know that I've read that in the docs somewhere as well. How does the filebrowsing work with this component in the Flash 7 player? Does it not use the file browsing capabilities of Flash 8 and uses Javascript in an HTML window instead? Or does it rely on something like PHP? 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: Tuesday, August 08, 2006 8:41 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion that's not true, it works in Flash 7 just fine - I JUST tried it and I know that I've read that in the docs somewhere as well. On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: Sorry, this is going back in the thread, but I originally said it had to be Flash 7. This tool requires Flash 8 according to the site. Looks like a great tool though, thanks! 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: Tuesday, August 08, 2006 8:28 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion I know I'm late to the game on this, but maybe this might save you time? http://www.flashtexteditor.com/in.php I just used it on a site, and it worked perfectly. It couldn't have been a better use of time/money ;) hth, jpg On 8/8/06, Giles Taylor [EMAIL PROTECTED] wrote: 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
RE: [Flashcoders] Invalid gateway URL
I am looking for actually detecting it in the program. I have a couple of components that use remoting and people always seem to not place the proper remoting URL into the inspectable property. This leaves us with a lot of the component doesn't work Wade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Arnold Sent: Wednesday, August 02, 2006 2:56 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Invalid gateway URL I was wondering if there is a way to capture the error that happens when you do not have a proper gateway URL for flash remoting. Flash just traces out that it can not open the url. Is there a way to do this or should I try and use getURL before I run the remoting service? Thanks; Wade ___ 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 - follow onquestion
that's a good question: To allow easy server file browsing and direct upload of images (flash player 8 required) the component has built-in FileBrowser. php/Apache and .NET files needed for backend are included The author is very responsive, you should email him directly. I'm sure he has some solutions. On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: -- [ JPG ] ___ 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
Thanks John. Hmmm... yeah, I'm always leery when using third party stuff - b/c it may seem to work great at first, but then the boss wants more features that the product doesn't have. Or there are some unknown limitations. I might just roll my own - I have something going already. Plus, if it says Flash 8 required, I'm thinking even if I write him, it's gonna be Flash 8 required. I have to support Flash 7 unfortunately. But I'll still check into this further. Another problem: I tried downloading a demo from them, but even after I registered, I was never e-mailed a password, and it's been 45 minutes now. :( I tried to re-register, but it said my e-mail address was already in their database. So I tried getting a password reminder sent to me, but that never arrived either and that was 20 minutes ago. The author is very responsive, you should email him directly. I'm sure he has some solutions. I bcc:'ed him on this - thanks for the tip. 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: Tuesday, August 08, 2006 9:43 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion that's a good question: To allow easy server file browsing and direct upload of images (flash player 8 required) the component has built-in FileBrowser. php/Apache and .NET files needed for backend are included The author is very responsive, you should email him directly. I'm sure he has some solutions. On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: -- [ JPG ] ___ 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] LoadMovie library
First of all, try MovieClipLoader to load your swf's.. If you don't want to use a runtime shared library, then I'd suggest making each movieclip you want to load at runtime a separate swf. You can export MovieClips directly from your library. also, as long as it is set to export for actionscript, you can attach any MC you want, to any other MC you want at runtime. On Aug 8, 2006, at 9:01 AM, Bart Albrecht wrote: Hi, I looked on the internet and did not find the answer. I read a few times can't be done What I want to do is load movieclips in my main.swf from a library.swf and put those movieclips on the root or put movieclips from the root in the controller of my loadmovie. Secondly I want to add a movieclip who is in my main.swf library to the controller_mc. But this is not possible. I also try to put a movieclip which I loaded from the library.swf to the root. But also that is not possible. I cannot make use of the shared library because the name of the library.swf should be dynamic. Here is the code: Where I load a circle mc from the library.swf into the controller_mc. This works. Where I load a circleRoot mc from the library of the current swf to the controller_mc. This does not work. Where I load a circle mc from the library.swf onto the current root. This also does not work. this.createEmptyMovieClip(controller_mc, 1); var libMovie = library.swf; controller_mc.loadMovie(libMovie); this.onEnterFrame = function(){ var tLoaded, tBytes; tLoaded = controller_mc.getBytesLoaded(); tBytes = controller_mc.getBytesTotal(); var percentage = int(tLoaded*100/tBytes); if (isNaN(tBytes) || tBytes 4) return; if (tLoaded/tBytes = 1) { delete this.onEnterFrame; //attach circle from library.swf to controller_mc in the main.swf controller_mc.attachMovie(circle, circle_mc, controller_mc.getNextHighestDepth()); //OK //attach circleRoot from main.swf library to controller_mc in the main.swf controller_mc.attachMovie(circleRoot, circle2_mc, , controller_mc.getNextHighestDepth()); //NOT OK //attach circle from library.swf to the root of my main.swf _root. attachMovie circle, circle_mc, _root.getNextHighestDepth()); //NOT OK } } Is there perhaps an other way to load external movieclips from an other swf (library.swf) onto the root of the main.swf? Thx, Bart ___ 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] Specifying constructors in interfaces
Interesting question, I don't think so because every class constructor needs to be named like the class. So how would you define a constructor in an interface in this case?: public class Example implements IExample{ public funtion Example(){ } } public class Example2 implements IExample{ public funtion Example2(){ } } public interface IExample{ //constructor name? } On 8/8/06, Andreas Rønning [EMAIL PROTECTED] wrote: I'm not too familiar with interfaces, but is there a way i can specify that an implementing class constructor must be structured a specific way? Such as if its a multiuser app it would require one and only one argument, being the netconnection instance? - Andreas ___ 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 - follow onquestion
sure thing Jason, I've got the light version here, so if you don't get it through the proper channels soon enough, just let me know On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: Thanks John. Hmmm... yeah, I'm always leery when using third party stuff - b/c it may seem to work great at first, but then the boss wants more features that the product doesn't have. Or there are some unknown limitations. I might just roll my own - I have something going already. Plus, if it says Flash 8 required, I'm thinking even if I write him, it's gonna be Flash 8 required. I have to support Flash 7 unfortunately. But I'll still check into this further. Another problem: I tried downloading a demo from them, but even after I registered, I was never e-mailed a password, and it's been 45 minutes now. :( I tried to re-register, but it said my e-mail address was already in their database. So I tried getting a password reminder sent to me, but that never arrived either and that was 20 minutes ago. The author is very responsive, you should email him directly. I'm sure he has some solutions. I bcc:'ed him on this - thanks for the tip. 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: Tuesday, August 08, 2006 9:43 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion that's a good question: To allow easy server file browsing and direct upload of images (flash player 8 required) the component has built-in FileBrowser. php/Apache and .NET files needed for backend are included The author is very responsive, you should email him directly. I'm sure he has some solutions. On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: -- [ JPG ] ___ 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 -- [ JPG ] ___ 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] Madobe certified professional - still recommend?
Hello List, I´m thinking about becoming a certifed Macromedia(?) Flash MX04 Developer, but I wonder if this qualification is still of any worth, what do you think? Have you profited in any way from your certification? Is there anything in the pipeline for Flash 8/9 or will there ever be? Flash MX04 certified sounds a bit outdated IMHO,... Thanks for any and all thoughts, André ___ 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] how to set the root directory - swf vs html?
Hi, My HTML and my flash movie live in 2 different directories. So when I work in the flash IDE my swf can load all its assets but when I try to use that same swf via its HTML page the swf can't find its assets. Because it now has its root as the html root. I am pretty sure there's a work around to define the swf directory as the root not the html. thanks seb ___ 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] LoadMovie library
Thx for your reaction. Unfortunately a shared library for each movieclip, would result in over 1000 swf's and this all for just calling some movieclips from an external library, is overkill I think. I hope there is still a better way for doing this. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Bedar Sent: dinsdag 8 augustus 2006 16:20 To: Flashcoders mailing list Subject: Re: [Flashcoders] LoadMovie library First of all, try MovieClipLoader to load your swf's.. If you don't want to use a runtime shared library, then I'd suggest making each movieclip you want to load at runtime a separate swf. You can export MovieClips directly from your library. also, as long as it is set to export for actionscript, you can attach any MC you want, to any other MC you want at runtime. On Aug 8, 2006, at 9:01 AM, Bart Albrecht wrote: Hi, I looked on the internet and did not find the answer. I read a few times can't be done What I want to do is load movieclips in my main.swf from a library.swf and put those movieclips on the root or put movieclips from the root in the controller of my loadmovie. Secondly I want to add a movieclip who is in my main.swf library to the controller_mc. But this is not possible. I also try to put a movieclip which I loaded from the library.swf to the root. But also that is not possible. I cannot make use of the shared library because the name of the library.swf should be dynamic. Here is the code: Where I load a circle mc from the library.swf into the controller_mc. This works. Where I load a circleRoot mc from the library of the current swf to the controller_mc. This does not work. Where I load a circle mc from the library.swf onto the current root. This also does not work. this.createEmptyMovieClip(controller_mc, 1); var libMovie = library.swf; controller_mc.loadMovie(libMovie); this.onEnterFrame = function(){ var tLoaded, tBytes; tLoaded = controller_mc.getBytesLoaded(); tBytes = controller_mc.getBytesTotal(); var percentage = int(tLoaded*100/tBytes); if (isNaN(tBytes) || tBytes 4) return; if (tLoaded/tBytes = 1) { delete this.onEnterFrame; //attach circle from library.swf to controller_mc in the main.swf controller_mc.attachMovie(circle, circle_mc, controller_mc.getNextHighestDepth()); //OK //attach circleRoot from main.swf library to controller_mc in the main.swf controller_mc.attachMovie(circleRoot, circle2_mc, , controller_mc.getNextHighestDepth()); //NOT OK //attach circle from library.swf to the root of my main.swf _root. attachMovie circle, circle_mc, _root.getNextHighestDepth()); //NOT OK } } Is there perhaps an other way to load external movieclips from an other swf (library.swf) onto the root of the main.swf? Thx, Bart ___ 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] how to set the root directory - swf vs html?
this is why i don't like putting my swf and html in different directories... try using the base attribute On Aug 8, 2006, at 11:04 AM, quinrou . wrote: Hi, My HTML and my flash movie live in 2 different directories. So when I work in the flash IDE my swf can load all its assets but when I try to use that same swf via its HTML page the swf can't find its assets. Because it now has its root as the html root. I am pretty sure there's a work around to define the swf directory as the root not the html. thanks seb ___ 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] how to set the root directory - swf vs html?
swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf(/)) + /; then use this variable to load your data: loadMovie(swfFolder + image.jpg); Peace Chris quinrou . wrote: Hi, My HTML and my flash movie live in 2 different directories. So when I work in the flash IDE my swf can load all its assets but when I try to use that same swf via its HTML page the swf can't find its assets. Because it now has its root as the html root. I am pretty sure there's a work around to define the swf directory as the root not the html. thanks seb ___ 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] how to set the root directory - swf vs html?
quinrou . wrote: Hi, My HTML and my flash movie live in 2 different directories. So when I work in the flash IDE my swf can load all its assets but when I try to use that same swf via its HTML page the swf can't find its assets. Because it now has its root as the html root. I am pretty sure there's a work around to define the swf directory as the root not the html. thanks seb ___ 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] Possible Challenge: AS 3.0 Compiler :)
It would be great to have the specs for AS3 just to modify current swfs in other ways (not necessarily compile from scratch). Obfuscation comes to mind ... Someone will do really well with an AS3 compiler ... so, who wants to start an AS3 compiler in AS3?! I'd be interested. Tyler On 8/6/06, SWF Coder [EMAIL PROTECTED] wrote: Can flex compiler run inside the Flash 9 plugin? No Way! No need to be snappy. I didn't understand. I suppose you could write it using the new byte array stuff, but I don't understand why it would be of any use to anyone. If you want something compiled it would make a lot more sense to get a serverside language to call the compiler. It makes more sense as an interpretur to execute some scripts on the client-side. I wonder if there is a parser generator that could be used with AS3? Anyway, what the new byte array has to do with it? Possibly for geek points? A compiler is a lot of work. If you have time to kill, why not spend it on something worthwhile. Not if you used a parser generator. Plus, it's fun ;) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] LoadMovie library
How about if you loadMovie your entire Library SWF into your main SWF, then access your library files via mainSWF.librarySWF.libraryAsset syntax? Not sure, but you may have to create instances of your library asset on the stage and name them properly... -Naz DISCLAIMER: This Message may contain confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you received this message in error please notify your Mail Administrator and delete this message immediately. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of GMA New Media, Inc. ___ 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 on question
have you tried using the unescape function?.something like this: test_txt.replaceSel(unescape(img src=\mountains.jpg\ width=\350\ height=\120\ /)); That doesn't seem to work. Still shows as: lt;img src=quot;mountains.jpgquot; width=quot;350quot; height=quot;120quot; /gt; Thanks though. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of John VanHorn Sent: Monday, August 07, 2006 8:43 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question On 8/7/06, Merrill, Jason [EMAIL PROTECTED] wrote: 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 ___ 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 - 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: [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
[Flashcoders] quotes in XML
Hello all, I have an XML parsing question that I've been trying to solve for a little while now and I can't get it to work. I have a PHP script that loads text from an SQL db, formats it in an XML string and sends this string back to Flash using the LoadVars.sendAndLoad(script.php) function. This text that I send can be pretty much anything, including quotes and brackets and I cannot get Flash to read the XML properly. I tried encoding the string as ASCII characters ( becomes #34;) or using XML encoding ( becomes quot;), but since both these encodings use the ampersand () and since LoadVars returns variables in the MIME format, the ampersand is interpreted as the split between 2 variables. Right now, I managed to get the XML string intact to Flash using url-encoding ( becomes %22), but Flash automatically decodes these symbols and I get an error when I create an XML object using the string. Is there a way to re-encode the string before creating an XML tree from it? Is there a better way to do what I am trying to do? Thanks for the help! -- Elie Zananiri http://www.prisonerjohn.com http://www.digital-spa.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] quotes in XML
Character substitution, perhaps? Use pipes | perhaps. Then, in Flash... myLoadedString.split(|).join(\); ___ 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] ExternalInterface, embed tag and IE
Vishal Kapur wrote of difficulty in persuading Microsoft Internet Explorer for Windows to accept messages from Adobe Flash Player when the HTML markup IE ate contained only an EMBED tag, no OBJECT: In terms of why I can't use an object tag, I should have clarified that I do not have control over the HTML source. Not sure why they third-party that did develop the HTML chose to use embed, but the guess is that it's a little bit less code to get cross-browser compatibility (instead of using object with an embed sub-tag). There may be a way around this, but I think you may have to use the OBJECT tag to get that browser to function that way. Background: Browsers and their extensions have been able to communicate for years. Unfortunately, different browsers offered different mechanisms for host/guest communication. Microsoft offered ActiveX Scripting for its Windows browser. This lets ActiveX Controls talk to the host. ActiveX Controls are documented as being invoked with the OBJECT tag. Recent versions of IE have added the ability to guess which extension to invoke from filenames, which is why EMBED alone can often make the content display. But I don't know that Microsoft documents what range of functionality they support when controls are invoked this way... I think the rationale may have been to support Netscape Plugins rather than just ActiveX Controls, but like I've said, I don't see the browser makers document to this level of detail. If the client wants communication between the browser and its extensions, then they may need to set the markup in the way that browser expects. Wish I had a happier answer, and there may be a way to trick a particular version of Internet Explorer to do as you wish here, but that's all I've got on this type of issue at this time. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. ___ 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] quotes in XML
Thanks, that worked! I actually XML-encoded the string in PHP using pipes instead of ampersands and then converted the pipes back to ampersand in Flash once the string was received. The conversion from XML-encoding to regular characters is done automatically. ** in PHP: $string = pipe_encode($string); echo sentStr=.$string.; function pipe_encode($str) { $encoded = ; // encode each character one at a time for ($i=0; $i strlen($str); $i++) { $currChar = substr($str, $i, 1); switch ($currChar) { case '': $encoded .= |lt;; break; case '': $encoded .= |gt;; break; case '': $encoded .= |amp;; break; case '\'': $encoded .= |apos;; break; case '': $encoded .= |quot;; break; default: $encoded .= $currChar; } } return $encoded; } in Flash: var myXML:XML = new XML(loadedString.split(|).join()); ** On 8/8/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Character substitution, perhaps? Use pipes | perhaps. Then, in Flash... myLoadedString.split(|).join(\); ___ 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 -- Elie Zananiri http://www.prisonerjohn.com http://www.digital-spa.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] quotes in XML
Hi, try this: ?php echo sentStr=.rawurlencode($string).; ? Flash: unescape(string); Regards, Sebastian Wichmann -Ursprüngliche Nachricht- Von: Elie Zananiri [EMAIL PROTECTED] An: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Gesendet: Dienstag, 8. August 2006 20:28 Betreff: Re: [Flashcoders] quotes in XML Thanks, that worked! I actually XML-encoded the string in PHP using pipes instead of ampersands and then converted the pipes back to ampersand in Flash once the string was received. The conversion from XML-encoding to regular characters is done automatically. ** in PHP: $string = pipe_encode($string); echo sentStr=.$string.; function pipe_encode($str) { $encoded = ; // encode each character one at a time for ($i=0; $i strlen($str); $i++) { $currChar = substr($str, $i, 1); switch ($currChar) { case '': $encoded .= |lt;; break; case '': $encoded .= |gt;; break; case '': $encoded .= |amp;; break; case '\'': $encoded .= |apos;; break; case '': $encoded .= |quot;; break; default: $encoded .= $currChar; } } return $encoded; } in Flash: var myXML:XML = new XML(loadedString.split(|).join()); ** On 8/8/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: Character substitution, perhaps? Use pipes | perhaps. Then, in Flash... myLoadedString.split(|).join(\); ___ 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 -- Elie Zananiri http://www.prisonerjohn.com http://www.digital-spa.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] quotes in XML
I actually XML-encoded the string in PHP using pipes instead of ampersands and then converted the pipes back to ampersand in Flash once the string was received. The conversion from XML-encoding to regular characters is done automatically. Another solution would be to use the XML object in Flash, and either XML encode the data or use the CDATA block in the XML. It would be more robust and flexible, not to mention more compatible with other client and server technologies. 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
Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question
http://mirror1.cvsdude.com/trac/osflash/red5/browser/java/server/trunk/swf/DEV_Source/classes/com/blitzagency/data/DecodeHTML.as This is what I use for that Jason, hope that helps JG On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: have you tried using the unescape function?.something like this: test_txt.replaceSel(unescape(img src=\mountains.jpg\ width=\350\ height=\120\ /)); That doesn't seem to work. Still shows as: lt;img src=quot;mountains.jpgquot; width=quot;350quot; height=quot;120quot; /gt; Thanks though. Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of John VanHorn Sent: Monday, August 07, 2006 8:43 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question On 8/7/06, Merrill, Jason [EMAIL PROTECTED] wrote: 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 ___ 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 -- [ JPG ] ___ 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] Scrollpane issue
We're having an odd issue with the ScrollPane component included with Flash 8 Pro. Testing on Flash Player 9. The scrollpane content contains a textfield that loads HTML Text from an XML document. The text displays correctly, but when scrolling, weird things happen. Using the mouse wheel, the top couple of lines of text get lost underneath an image until you scroll back up to the top. If you scroll with the scrollpane's up and down buttons, the text on the very bottom of the content clip is never shown...it doesn't scroll far enough. It seems the only reliable way to scroll is to drag the scrollbar up and down, but I can't expect users to do this. Is this just an issue with Flash Player 9, am I doing something wrong, or is the ScrollPane just buggy? To see the problem, click on Rooms/Reservations, then Sussex. http://128.177.1.30/NEW/main.html Thanks, Randy Tinfow IMAGE PLANT ___ 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 on question
John, Thanks - yes, that class works, thanks for the link. But unfortunately, it appears it is the Textfield.replaceSel() function which encodes it upon display - so I would have to then parse through the textfield and find the encoded string, then decode it using that class, and put it back in the textfield - what a hassle! Is there another method to insert HTML tags into a textField besides replaceSel() which won't encode it? At this point, especially since I need to be able to allow the user to remove the tag as well, I think I'm just better off keeping the image separate from the HTML in a movieClip. Would seem to be much easier and less bug-prone. Thanks for the link though, I'm sure I can use than class in the future. I added it to my package library. 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: Tuesday, August 08, 2006 3:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question http://mirror1.cvsdude.com/trac/osflash/red5/browser/java/server/trunk /swf/ DEV_Source/classes/com/blitzagency/data/DecodeHTML.as This is what I use for that Jason, hope that helps JG ___ 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] Vanishing Accordion Labels
Has anyone encountered vanishing Accordion Labels? Comment out the loadMovie and the labels appear on the accordion as expected. Uncomment the loadMovie and the labels disappear... Here's the AS...imports and var declarations omitted for brevity //Import Controls/Containers/Classes/Packages import mx.controls.*; import mx.containers.Accordion; import mx.core.View; //The user interface components private var shopping_acc:Accordion; // Create Cart Data Grid shopping_acc = container_mc.createClassObject(Accordion, shopping_acc, depth++); //Set Size shopping_acc.setSize(150, 415) //Create Accordion Children var cart_obj:Object = shopping_acc.createChild(View, cart, {label:Shopping Cart, icon: cartIcon}); var options_obj:Object = shopping_acc.createChild(View, options, {label:Stuff You're Configuring, icon: wrenchIcon}); //Load cart_obj.loadMovie(wgShoppingCartView.swf); options_obj.loadMovie(wgSelectedOptionsView.swf); Sincerely, Matthew Simpson Senior U.I. Engineer SmartEquip Inc. 203.604.1309 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. ___ 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] HTML in XML
I'm having a very weird problem and I'm hoping it's something simple that I'm overlooking. I have an xml document similar to this: news newsitem date=8/5/2006 headline=Some headlineBody of the news article. a href=http://www.google.com;Google/a More body of the article/newsitem newsitem date=8/1/2006 headline=Another headlineBody of the second article/newsitem /news The problem I'm having is that on the first article where the link is, flash is seeing that as the end of the first node and then it skips to the next one. I'm looping over the nodes in news and using this code: trace(newsNode.childNodes[i].firstChild.nodeValue); and all I would see for the first record is Body of the news article and then it goes on to the next one. A client is maintaining news through a flat xml file and wants to be able to add links. Am I missing something simple? Is there something else I need to do? Please help. John Burns ___ 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] HTML in XML
Hi John, The actual internal structure of the XML comes out as follows: news +-- newsitem |+-- TEXT NODE (Body of the news article.) |+-- a | | +-- TEXT NODE (Google) |+-- TEXT NODE (More body of the news article.) +-- newsitem etc. (I hope the formatting comes out) As you can see, you have to iterate through all the children of newsitem, rather than just using the firstchild. An alternative strategy would be to surround the body of the news item (including the anchor tags) with a CDATA section (look it up in any decent XML format reference) which would mean that all of the body would be treated as one node - as one string - and your anchor tags would be passed through the parser in the way I think you want. HTH, Ian On 8/8/06, Burns, John D [EMAIL PROTECTED] wrote: I'm having a very weird problem and I'm hoping it's something simple that I'm overlooking. I have an xml document similar to this: news newsitem date=8/5/2006 headline=Some headlineBody of the news article. a href=http://www.google.com;Google/a More body of the article/newsitem newsitem date=8/1/2006 headline=Another headlineBody of the second article/newsitem /news The problem I'm having is that on the first article where the link is, flash is seeing that as the end of the first node and then it skips to the next one. I'm looping over the nodes in news and using this code: trace(newsNode.childNodes[i].firstChild.nodeValue); and all I would see for the first record is Body of the news article and then it goes on to the next one. A client is maintaining news through a flat xml file and wants to be able to add links. Am I missing something simple? Is there something else I need to do? Please help. John Burns ___ 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] how to set the root directory - swf vs html?
swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf(/)) + /; That looks familiar. ;) Jason Merrill Bank of America Learning Organization Effectiveness - Technology Solutions -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chris Hill Sent: Tuesday, August 08, 2006 11:25 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] how to set the root directory - swf vs html? swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf(/)) + /; then use this variable to load your data: loadMovie(swfFolder + image.jpg); Peace Chris quinrou . wrote: Hi, My HTML and my flash movie live in 2 different directories. So when I work in the flash IDE my swf can load all its assets but when I try to use that same swf via its HTML page the swf can't find its assets. Because it now has its root as the html root. I am pretty sure there's a work around to define the swf directory as the root not the html. thanks seb ___ 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] png load queue
I'm having a weird issue where my flash player is performing very very slowly wile loading a queue of png files. Everything is smooth before and after, but during the load it is super choppy (especially on a mac). I am loading in sequence up to 100 png files - if that makes a difference. Any idea why this may be happenening? Help! ___ 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] Uncompress a gzipped file
I'm writing a program that processes a huge 4MB binary file in Flash 9. Thing is, if I compress it (specifically with gzip) I can lower the size to 1.67MB. My problem is that I can't uncompress it using ByteArray's uncompress() feature on the gzipped file. The documentation for compress() says that it uses zlib compression. Zlib is a compression library that is based on gzip. The even use the same algorithim, DEFLATE. I'm sure there's a way to do this. Does anybody have any ideas? Since they're roughly the same it seems like all you'd need is to change some header values, but I can't find anything myself. ___ 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 on question
yeah I'm afraid I've not been following along closely enough, not sure what replaceSel() does or how it does it, but sounds like you're on top of it ;) let me know how it finaly works out, JG On 8/8/06, Merrill, Jason [EMAIL PROTECTED] wrote: John, Thanks - yes, that class works, thanks for the link. But unfortunately, it appears it is the Textfield.replaceSel() function which encodes it upon display - so I would have to then parse through the textfield and find the encoded string, then decode it using that class, and put it back in the textfield - what a hassle! Is there another method to insert HTML tags into a textField besides replaceSel() which won't encode it? At this point, especially since I need to be able to allow the user to remove the tag as well, I think I'm just better off keeping the image separate from the HTML in a movieClip. Would seem to be much easier and less bug-prone. Thanks for the link though, I'm sure I can use than class in the future. I added it to my package library. 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: Tuesday, August 08, 2006 3:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow on question http://mirror1.cvsdude.com/trac/osflash/red5/browser/java/server/trunk /swf/ DEV_Source/classes/com/blitzagency/data/DecodeHTML.as This is what I use for that Jason, hope that helps JG ___ 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 -- [ JPG ] ___ 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] Accessing a Flash frame label
Hey Flashcoders, How can I access a specific frame label in a Flash movie from an HTML link? It would look something like this: a href = http://www.mydomain.com/myMovie.swf?label='here'Click me/a where here is the frame label in the SWF. Thanks -- -- Jeff ___ 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] Accessing a Flash frame label
frame labels become numeric when published to SWF, so you wouldn't be able to do that. However, you could always send in a specific variable value, and have a function in the SWF look at it, and target the mc you want. On 8/8/06, Jeff Hindman [EMAIL PROTECTED] wrote: Hey Flashcoders, How can I access a specific frame label in a Flash movie from an HTML link? It would look something like this: a href = http://www.mydomain.com/myMovie.swf?label='here'Click me/a where here is the frame label in the SWF. Thanks -- -- Jeff ___ 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] Accessing a Flash frame label
Make sure, however, that the targeted frame is loaded before calling it within Flash -- otherwise, the function will fail and nothing will happen. - Marc At 04:42 PM 8/8/2006, you wrote: frame labels become numeric when published to SWF, so you wouldn't be able to do that. However, you could always send in a specific variable value, and have a function in the SWF look at it, and target the mc you want. On 8/8/06, Jeff Hindman [EMAIL PROTECTED] wrote: Hey Flashcoders, How can I access a specific frame label in a Flash movie from an HTML link? It would look something like this: a href = http://www.mydomain.com/myMovie.swf?label='here'Click me/a where here is the frame label in the SWF. Thanks -- -- Jeff ___ 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] CakePHP (CakeAMFPHP) ValueObjects
I´ve been using CakePHP through CakeAMFPHP with great success lately. However, on my last projects with Cake and Flash, I haven´t used Value Objects. My next project is a big one and so the use of VO´s really be something important but I just don´t know where to start. Some questions I would like to ask: - Has anyone managed to use the AMFPHP VO´s feature with CakeAMFPHP out of the box? - How does Cake associations relate to VO´s? How would you handle it? Thanks in advance, Marcelo. ___ 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] quotes in XML
On 8/8/06, Elie Zananiri [EMAIL PROTECTED] wrote: Hello all, I have an XML parsing question that I've been trying to solve for a little while now and I can't get it to work. I have a PHP script that loads text from an SQL db, formats it in an XML string and sends this string back to Flash using the LoadVars.sendAndLoad(script.php) function. This text that I send can be pretty much anything, including quotes and brackets and I cannot get Flash to read the XML properly. Wait...is there any particular reason you are using LoadVars instead of the XML class? I think simply using XML instead would solve your problem, without any funny hacks. -David R ___ 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] How to secure actionscript code from reverse engineering
There are several apps out there that claim to protect swfs, I haven't tried any of them extensivly, but many appear to work. Try searching for them. Off the top of my head, I can think of swfencrypt, secureswf, MT's Obfu (mtasc.org/obfu). -David R On 8/8/06, Santhakumar K [EMAIL PROTECTED] wrote: flashcoders, we developing one application that communicate from mobile to pc. mobile version is developed in j2me. pc version i am developing in flashplayer 7 which should also runs on linux environment. For j2me they having protection method to jumble class files from reverse engineering. but i dont no how to protect my swf from reverse engineering (eg. actionscript viewer). thats why companies afraid to develop secure applications in flash. please inform me any other method to protect from reverse engineering. Regards, Santhakumar K Chennai India http://www.santhakumar.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] Invalid gateway URL
Perhaps when your compent loads, have it call a remote method like ping or test or something, and if that method is not successful, show an error saying can't connect to gateway -David R On 8/8/06, Wade Arnold [EMAIL PROTECTED] wrote: I am looking for actually detecting it in the program. I have a couple of components that use remoting and people always seem to not place the proper remoting URL into the inspectable property. This leaves us with a lot of the component doesn't work Wade -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wade Arnold Sent: Wednesday, August 02, 2006 2:56 PM To: 'Flashcoders mailing list' Subject: [Flashcoders] Invalid gateway URL I was wondering if there is a way to capture the error that happens when you do not have a proper gateway URL for flash remoting. Flash just traces out that it can not open the url. Is there a way to do this or should I try and use getURL before I run the remoting service? Thanks; Wade ___ 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] HTML in XML
As you can see, you have to iterate through all the children of newsitem, rather than just using the firstchild. newsNode.childNodes[i].firstChild.nodeValue.toString() should work also, since it would render the node and all of its children as a string. 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
Re: [Flashcoders] How to secure actionscript code from reverse engineering
David, I tried http://www.kindisoft.com and http://www.genable.com. If I chang all identifier in swf using those appllication, new generated swf is not running. is there is limitation to change the identifer like we may not change identifier of the imported classess. I dont know upto what level these softwares will protect and generate. Regards, santhakumar On 8/9/06, David Rorex [EMAIL PROTECTED] wrote: There are several apps out there that claim to protect swfs, I haven't tried any of them extensivly, but many appear to work. Try searching for them. Off the top of my head, I can think of swfencrypt, secureswf, MT's Obfu (mtasc.org/obfu). -David R On 8/8/06, Santhakumar K [EMAIL PROTECTED] wrote: flashcoders, we developing one application that communicate from mobile to pc. mobile version is developed in j2me. pc version i am developing in flashplayer 7 which should also runs on linux environment. For j2me they having protection method to jumble class files from reverse engineering. but i dont no how to protect my swf from reverse engineering (eg. actionscript viewer). thats why companies afraid to develop secure applications in flash. please inform me any other method to protect from reverse engineering. Regards, Santhakumar K Chennai India http://www.santhakumar.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 -- Santhakumar KChennai Indiahttp://www22.brinkster.com/zkumar/main.html ___ 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