Re: [Flashcoders] AS3 - why no properties in interfaces?

2006-07-05 Thread Hans Wichman
Hi Marijan, it might depend on what your constants are. For example imagine you had an interface Shape, with a method setLineType. You could have setLineType (type:String) (eg dashed), or setLineType (type:Number) (eg 0, 2 ,5). With public constants you could have the Shape interface declare vars

[Flashcoders] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Hi, I'm trying to pass a sting variable (var teamName:String) to a dynamic text field nested inside a couple of layers of MCs. The path is correct because the text field is being changed by the variable, but the string itself is corrupted or something because the variable's contents seems to be

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Chris Velevitch
Sounds like restrict is not null. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Chris, thanks for your speedy reply (I guess that if I was going to get a reply at 8.30 in the morning UK time it would have been from Australia!) Like I said in my initial post, I'm completely new to Actionscript (and all of Flash, really) and so your response, whilst I am sure it is the correct

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Ian Thomas
One possibility might be that you're using an embedded font, but haven't embedded all the characters in that font. HTH, Ian On 7/5/06, Rick Lecoat [EMAIL PROTECTED] wrote: Hi, I'm trying to pass a sting variable (var teamName:String) to a dynamic text field nested inside a couple of layers

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Adrian Park
This sounds to me like what happens if you embed a certain set of characters in the field but then pass it a String including characters you haven't explicitly embedded. I'm guessing you may have pasted a string into the Include these characters: field in the Character Embedding window? If so,

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Chris Velevitch
There's an attibute on TextField called restrict. It takes a regular expression of all the characters that are allowed to be entered into the field. Try setting it to null. Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread NEILHIGHLEY . COM
textfield has a retrict value that acts as a filter. Chris is saying that it may have a value in there already, probably something with the following letters: M J O E as the Executive is being filtered down to only e's as the other letters are not in the filter. btw, what is output when you

[Flashcoders] BitmapData and security.allowDomain

2006-07-05 Thread INK .
Hi, List! There is an issue with loading an extermal JPEGs form a remote server. It seems to be a bug. I am loading a JPG image to a movie clip and cloning it using Bitmap.draw(input_mc). (SWF is hosted on domain A, JPG hosted on domain B.) In this case loaded JPEG behaves exactly as an SWF

[Flashcoders] Bypassing File Download Dialog

2006-07-05 Thread Aasim Momin
Hi, I want to develop a CD-Based course which requires that I open some word docs kept in a folder on the CD. Every time I click the button to open the file a security dialog pops up asking if I want to Open/Save/Cancel the file. I don't want this to pop-up on my user's machine and default it to

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Ian and Adrian; You hit the nail on the head; it was indeed a lack of embedded characters and my own stupid fault because whilst I *had* embedded the characters for the intended usage (uppercase only) I neglected to stick to those when I was running my trouble shooting tests, and included

RE: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Danny Kodicek
Chris: Thanks for elaborating on the restrict issue. Looks like I won't need to explore it just yet, but it's good to know about. (Since I'm very new to the Flash/Actionscript thing and am learning 'on the job' with a project deadline looming I'm being pragmatic and just learning the bits of

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread janosch
Danny Kodicek schrieb: Chris: Thanks for elaborating on the restrict issue. Looks like I won't need to explore it just yet, but it's good to know about. (Since I'm very new to the Flash/Actionscript thing and am learning 'on the job' with a project deadline looming I'm being pragmatic and just

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Adrian Park
Glad to be of help Rick. On the font embedding thing v. the font being installed on your machine, I'm pretty sure that if you specify a font but don't embed any characters then Flash will use the installed font but if you embed then Flash will only look to the embedded characters for display and

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Meinte van't Kruis
I'm not sure if it's entirely impossible to assign one class to multiple movieclips, but if that's true than the easiest way to overcome that problem is make a baseclass 'Country' and have Brazil extends Country. You still have the silly task of assigning all your countries to a different class,

RE: [Flashcoders] AS3 - why no properties in interfaces?

2006-07-05 Thread Marijan Miličević
Hi Hans, as I see it, I am not interested into dashed stuff of a shape, only thing I am interested in is what can I do with it... so, I could paint my shape with a brush or draw a line, up to me to decide and shouldn't be exposed by my interface.. for example: interface Shape { void

[Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Marcelo de Moraes Serpa
I´ve been trying to find the holy grail of Shared Fonts but with no success. I then decided I just wanted it to work. I´ve have done this way: - Packing all the fonts I´m using in my application in a separate SWF, setting them to Export For Runtime Sharing and also to Export for AS. - Loading

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Marcos Neves
You got the point. But this silly task wasn´t needed on flash 8. That´s the point. Should it be on flash 9? I don´t think so. Isn´t this the time to ask Adobe to include this feature? But I need help from others developers to show that this feature is essential. On 7/5/06, Meinte van't Kruis

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread jcarlos
But wouldn´t be easier to have composition over extension ? if you have one generic class that has the country movieclip like an property of this class class Country { var mcCountry: MovieClip; var nameCountry:String; function Country( mc: MovieClip, name:String) {

Re: [Flashcoders] Bypassing File Download Dialog

2006-07-05 Thread Muzak
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14280 - Original Message - From: Aasim Momin [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, July 05, 2006 11:20 AM Subject: [Flashcoders] Bypassing File Download Dialog Hi,

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Adrian Park
I'm not sure this is really a 'feature' that is missing since the problem really boils down to OOP theory. For example, it could be argued that it is incorrect for the country class to extend MovieClip since a country *is not* a MovieClip but, rather, *uses* a MovieClip for display. By this

Re: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Iv
Hello Marcelo, http://www.sharedfonts.com/eng/faq.html#include -- Ivan Dembicki [EMAIL PROTECTED] || http://www.design.ru ___

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Marcos Neves
Look at this flash http://adi.idr.org.br/tpl/adi/mapa.tpl.php Did you see that every movieClips have different shapes, but the same behavior. Your suggestion is to drag a Country MovieClip inside each Country and use it to take control of the parent clip? On 7/5/06, jcarlos [EMAIL PROTECTED]

Re: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Iv
Hello Marcelo, - you need to separate problems. in first step don't use sharing. when your app will work fine you can start sharing your fonts. MdMS In sum, I╢ve been through a hard time trying to get this shared font thing MdMS to work with TextFields. With v2 components I got it to work

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Back again. Well, I *thought* it was working... What do you guys make of a situation where a movie works in Test Movie but not from the web server? Here's the deal: variable1:String populates textField1 (initial value = ) variable2:String populates textField2 (initial value = )

[Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Mendelsohn, Michael
Hi list... The embedFonts line seems to prevent the setTextFormat line from working. What am I missing? The font univ is in the library, and its linkage is univ. Thanks, - Michael M. private function createSlideWatcher():Void { var tf:TextFormat = new TextFormat();

Re: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Weyert de Boer
Fonts and Flash on the Mac I am going nuts. Troublesome. ___ 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

[Flashcoders] Weird include problem.

2006-07-05 Thread kariminal
Flash 8 Proffesional... This is strange, I have an #include init.as, and I get an **Error** Scene=loading, layer=script, frame=2:Error opening include file init.as: File not found. init.as IS in the same folder as the FLA, and I am all confused.?... Any ideas?... Thanks... Karim...

[Flashcoders] Please help shed lights on this font issue

2006-07-05 Thread Weyert de Boer
Hello! I have a movieclip which I attach in a container movieclip when I change the htmlText-property of this movieclip. I would like to know why I would need to change the textfield in the movieclip to the fontstyle bold, and italic to be able to use the i-tag. I have embedded the font in

Re: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Julien Vignali
Try using setNewTextFormat() instead.. Mendelsohn, Michael a écrit : Hi list... The embedFonts line seems to prevent the setTextFormat line from working. What am I missing? The font univ is in the library, and its linkage is univ. Thanks, - Michael M. private function

Re: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Rick Lecoat
Call off the hounds, I've solved it. it turns out that when the a nested movie clip called the variables it called them from one nesting level up, and I'd coded that as _root.variable. Flash was fine with that in testing, but the browser plugin didn't like it. Once I'd changed the path to

RE: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Stacey Mulcahy
Try setting your textFormat after you apply the text. Also, I try to make sure the linkage name of the font is the same as the actual font for the purpose that its easier to read and self descriptive. Order of operation does matter for this kinda thing, you have to embed fonts before setting

RE: [Flashcoders] weirdness passing string to text field

2006-07-05 Thread Stacey Mulcahy
How are the variables being generated and set? Are you getting those values from external source such as xml or text file? I haven't followed the thread... sorry. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Lecoat Sent: Wednesday, July 05, 2006

Re: [Flashcoders] Please help shed lights on this font issue

2006-07-05 Thread Weyert de Boer
I also would love to know why textfield work nicely when you test the movie inside the Flash IDE via Ctrl-Enter/Apple-Enter but when you check the movie inside a browser such as Firefox the textfield is blank or only show parts of the defined text. I am using the htmlText mode of the textfield

Re: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Marcelo de Moraes Serpa
Order of operation does matter for this kinda thing, you have to embed fonts before setting the text and set the textFormat after, I believe. For example, I know this works: Hmmm... Maybe that´s the reason why I´m having inconsistencies... oh Flash programming and it´s little hidden

[Flashcoders] JPEG compression for PNG details

2006-07-05 Thread Nikolaj Selvik
Hi all, Wondering if someone here could provide or point me in the direction of details on the inner workings of jpeg compression for png images in the swf format? I am particularly interested in how the alpha channel in the PNG is translated and stored. Thanks! Nick

RE: [Flashcoders] Weird include problem.

2006-07-05 Thread Danny Kodicek
Flash 8 Proffesional... This is strange, I have an #include init.as, and I get an **Error** Scene=loading, layer=script, frame=2:Error opening include file init.as: File not found. init.as IS in the same folder as the FLA, and I am all confused.?... Any ideas?... Is your movie set

Re: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Marcelo de Moraes Serpa
Thanks for the article Iv. I guess the way I´m doing is right as I don´t need this kind of control over what characters I would need to embbed. I´ll test when I get home, but I guess this issue is happening becouse I´m not setting the embedFonts property in the right place. On 7/5/06, Weyert de

RE: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Mendelsohn, Michael
Hi all... Thanks for the responses. It was indeed a case of setNewTextFormat. I just don't get why that AS term exists. Thanks! - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Weird include problem.

2006-07-05 Thread kariminal
AS2, but I just figgured it out. As expected I was the problem, the file was named init.as.as and hide estensions for known file types was checked in Explorer. Hmmm... Thanks anyway... karim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Danny

Re: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Marcelo de Moraes Serpa
just don't get why that AS term exists. Neither do I On 7/5/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Hi all... Thanks for the responses. It was indeed a case of setNewTextFormat. I just don't get why that AS term exists. Thanks! - MM

Re: [Flashcoders] JPEG compression for PNG details

2006-07-05 Thread Zeh Fernando
Wondering if someone here could provide or point me in the direction of details on the inner workings of jpeg compression for png images in the swf format? I am particularly interested in how the alpha channel in the PNG is translated and stored. When you import a PNG image with an alpha

Re: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Andreas Rønning
Because it allows you to use several different text formats along one text string. Especially useful for a chat program, where you'd like the user's name to be in a different text style than his chat output. - A Marcelo de Moraes Serpa wrote: just don't get why that AS term exists.

Re: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Marcelo de Moraes Serpa
But couldn´t I just set a new TextFormat using the setTextFormat() method? On 7/5/06, Andreas Rønning [EMAIL PROTECTED] wrote: Because it allows you to use several different text formats along one text string. Especially useful for a chat program, where you'd like the user's name to be in a

RE: [Flashcoders] JPEG compression for PNG details

2006-07-05 Thread Nikolaj Selvik
Thank you! Exactly the verification I needed. Perhaps I could ask for a recommendation when it comes to a PNG to SWF batch converter as well? Seems to be quite a few out there. Thanks again. Nick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zeh

Re: [Flashcoders] embedFonts vs. setTextFormat

2006-07-05 Thread Ian Thomas
That would affect all the text currently in the field. Ian On 7/5/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: But couldn´t I just set a new TextFormat using the setTextFormat() method? On 7/5/06, Andreas Rønning [EMAIL PROTECTED] wrote: Because it allows you to use several

[Flashcoders] XML Menu

2006-07-05 Thread Jose Maria Barros
Hi..anyone can give me a nice tutorial to make a menu like this in XML? http://www.coolfocus.com/relocate.asp?page=flash/examples/xpanel/index.asp thx in advance ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Marcos Neves
AS3 is really mature now, what is excellent! But there´s no reason to didn´t support it. Let´s think from other point of view. Each sprite on the flash screen, is an instance of some class. Flash ide is locking together View+Behavior, so I can´t have two differents Views with the same behavior.

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Meinte van't Kruis
I draw my Countrys as movieclips without classes. Then create a MovieClip with a Country class and put inside each movieClip (Composition). Inside Country class, I have access to the parent display object using the parent property and do something like an Adapter pattern. Ever heard of KISS ?

Re: [Flashcoders] Delegate and [self] Argument

2006-07-05 Thread Jeff Jonez
Thanks for your reply Steve. I modified the original class to do exactly what you suggested with such a third parameter. You also mention, This was added mainly for the purpose of making it easy to remove event listeners without having to keep an external reference to the delegate functions that

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Johannes Nel
KISS is not inheritance over composition. KISS is the reverse. rule of thumb always compose rather than extend so that it will be simple later on to change things. On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: I draw my Countrys as movieclips without classes. Then create a MovieClip

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Meinte van't Kruis
no I meant kiss=keep it simple stupid On 7/5/06, Johannes Nel [EMAIL PROTECTED] wrote: KISS is not inheritance over composition. KISS is the reverse. rule of thumb always compose rather than extend so that it will be simple later on to change things. On 7/5/06, Meinte van't Kruis [EMAIL

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Johannes Nel
i know exactly what the acronym means, i disagree with your idea of what is simple. On 7/5/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: no I meant kiss=keep it simple stupid On 7/5/06, Johannes Nel [EMAIL PROTECTED] wrote: KISS is not inheritance over composition. KISS is the reverse.

Re: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Marcelo de Moraes Serpa
The swf I´m loading is a v7 swf and the host is v8. Could that be causing some this issue? On 7/5/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Thanks for the article Iv. I guess the way I´m doing is right as I don´t need this kind of control over what characters I would need to embbed.

Re: [Flashcoders] Re: Programmatically instantiating a class thatextends MovieClip

2006-07-05 Thread Tyler Wright
There's a really light class called Prototype which is free to download at http://codext.com/code/9. It does the same thing except with full constructor support. It also has a really simple/clean API: mc = createEmptyMovieClip(mc, 1); Prototype.makeInstanceof(mc, MyMovieClipClass); thats it!

Re: [Flashcoders] Tabbed Browsing support? htmlText, contextMenu, Javascript?

2006-07-05 Thread Tyler Wright
Note: For those from Adobe that read this list ... With IE7's release and it's support for tabbed browsing, if Flash Player provides no support for opening links in tabs it will be increasing apparent that Flash Player is essentially unaware of tabbed browers.) I believe JavaScript is also

RE: [Flashcoders] Re: Programmatically instantiating a classthatextends MovieClip

2006-07-05 Thread Bernard Visscher
Nice! Didn't know that one :) -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Tyler Wright Verzonden: woensdag 5 juli 2006 17:47 Aan: Flashcoders mailing list Onderwerp: Re: [Flashcoders] Re: Programmatically instantiating a classthatextends

Re: [Flashcoders] euro symbol fight

2006-07-05 Thread David Rorex
How about 'escaping' the text before you send to amfphp, and 'unescaping' the text after you recieve it back? escaping = turning all non-standard characters into things like %12%34%56 unescaping = reverse of above process -David R On 7/4/06, Gabriel [EMAIL PROTECTED] wrote: thanks Serge yes,

Re: [Flashcoders] euro symbol fight

2006-07-05 Thread Gabriel
Is a good idea, but I cannot do that because, most of the data I get, I retrieve it from the database directly trough the ORM (pear), so I can't touch the data. the way it comes is: DB-ORM-my_flash_service.php-AMFPHP gateway-myApp.swf any idea? thanks! GaB David Rorex wrote: How about

Re[2]: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Iv
Hello Marcelo, MdMS The swf I╢m loading is a v7 swf and the host is v8. Could that be causing MdMS some this issue? http://www.sharedfonts.com/eng/faq.html - a bit info about it in the first question. -- Ivan Dembicki

Re: [Flashcoders] AS3 - Missing

2006-07-05 Thread Adrian Park
This article explains in some detail what we're trying to say. http://www.javaworld.com/javaworld/jw-11-1998/jw-11-techniques-p2.html In the spirit of KISS, you could skim through most of it (but ensure you get the difference between Inheritance and Composition) then read the stuff at the end

Re: Re[2]: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Marcelo de Moraes Serpa
Hello Iv, thanks again for the reply. This article talks about version 7 loading v. 6. The host SWF is v8, the loaded one is v7, the library SWF is v8. But I think it´s the same situation after all. I will make some more tests later. Thanks, Marcelo. On 7/5/06, Iv [EMAIL PROTECTED] wrote:

Re: Re[2]: [Flashcoders] Shared Fonts puzzle (hell)

2006-07-05 Thread Marcelo de Moraes Serpa
Hmmm.. further reading this faq, I´ve saw the question about the static text fields. I´m actually using some static textfields that use the same shared font, configured via the flash ide. The only difference is that I don´t use SFM, and the faq relates to SFM... Could that be causing these

RE: [Flashcoders] LocalConnection to multiple swfs

2006-07-05 Thread Steven Sacks | BLITZ
Hey Danny, LocalConnection is one-way communication. So if you need to send and receive, you need two LocalConnections. In addition, a movie can only have one receiver LocalConnection open at a time, but can transmit on as many LocalConnection channels as you like. So, you can have multiple

RE: [Flashcoders] LocalConnection to multiple swfs

2006-07-05 Thread Steven Sacks | BLITZ
So, you can have multiple swfs listening to a single swf, but you cannot have a single swf listen to multiple swfs. The best analogy I can think of is a radio station. A radio station can transmit its signal to all its listeners. But, the radio station can only receive calls from one listener

RE: [Flashcoders] LocalConnection to multiple swfs

2006-07-05 Thread Steven Sacks | BLITZ
The dispatcher doesn't need to know it's a unique ID. It just sends a unique ID which is then picked up by the listener. So, let's say you have 5 swfs listening to channel Rock. They all want to hear Rock, but they also need to hear advertising to their local area. So, you would pass a unique

RE: [Flashcoders] Tabbed Browsing support? htmlText, contextMenu, Javascript?

2006-07-05 Thread Steven Sacks | BLITZ
This thread might be of use to you: http://my.opera.com/userjs/forums/topic.dml?id=125641 Did a google search: http://www.google.com/search?q=open+link+in+new+tab+javascript B