Re: [Flashcoders] using a function twice

2007-05-18 Thread Allandt Bik-Elliott (Receptacle)
aha - thanks for seeing the wood for the trees :D On 17 May 2007, at 22:26, [EMAIL PROTECTED] wrote: On 17/05/2007 22:07, Allandt Bik-Elliott (Receptacle) wrote: because the thisBackground function isn't picking up the correct values (but keeping the older ones), it is overwriting the

Re: [Flashcoders] Can I read XML before it is loaded?

2007-05-18 Thread Alistair Colling
Thanks Danny, I think you're right, the XML Object is pretty fast and if it is going to take a while to load then storing the ID somewhere else and checking that file is probably the best way to approach this. Cheers everyone! Ali On 15 May 2007, at 15:45, Danny Kodicek wrote: Hi there, I

[Flashcoders] flash and USB port

2007-05-18 Thread quinrou .
Hi all, I was wondering if anyone knew how can Flash 8 or 9 can access the USB port? Would I need to use a third party software such as ZInc or mProjector? I had a look at Zinc and mProjector and it looks like none of them are supporting USB. Does anyone know which application would do that?

RE: [Flashcoders] flash and USB port

2007-05-18 Thread Pedro Furtado
Usb is like a serial port. So zinc does support it, dunno about mProjector. Try it with hyperterminal. hth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of quinrou . Sent: sexta-feira, 18 de Maio de 2007 10:41 To: Flashcoders mailing list Subject:

[Flashcoders] Embed the image in the swf

2007-05-18 Thread Sumeet Kumar
Hi All I m stuck at a point in my project. The output of the application is in swf file. The user uploads the image in the application How can I embed that image at run time (and not load) in swf for a desktop solution? Any idea would be a great help. Regards Sumeet kumar

Re: [Flashcoders] FLV CuePoints - discrepancies between CuePoint time and actual time

2007-05-18 Thread Jon Bradley
How are you inserting the cue points? If you are not embedding the cue points directly into the file, then your callback will only happen on the previous, closest key frame. Also, Sorenson has had issues in the past with mis-aligned cue points and keyframes. I stopped using it altogether a

[Flashcoders] Natural Docs and ActionScript advice needed

2007-05-18 Thread Wayne McManus
Hi guys, I'm looking at documenting code with Natural Docs for the first time, so I'd appreciate it if anyone had any tips or advice regarding how to get this done effectively. I've done a quick initial runthrough and found it's duplicated all my properties within the Summary section, so that's

Re: [Flashcoders] Local Connection / Intel Mac bug??

2007-05-18 Thread Alan Queen
confirmed.. same issue here.. I found it trying to get a mProjector exe with embedded universal plugin to talk to a director app which obviously uses the rosetta emulation.. On 5/17/07, Andy Herrman [EMAIL PROTECTED] wrote: Is your situation the same as Jeff's? Specifically, is one SWF

Re: [Flashcoders] swfs in pdfs

2007-05-18 Thread nik crosina
Hi, My initial goal was really to find out if swf in pdf is a feasible product to offer to our clients, after my boss seems to think it is particularly sexy. After doing a bit of research I have to say that while it does seem to work, I am still not entirely clear how to create properly, and

[Flashcoders] can you use antiAliasType in a global setStyle?

2007-05-18 Thread Allandt Bik-Elliott (Receptacle)
like _global.styles.TextArea.setStyle(embedFonts,true); _global.styles.TextArea.setStyle(antiAliasType, normal); doesn't seem to be working for me also, i don't think it is possible but i'll ask anyway - is it possible to have anti-alias'd type in a text area with non-alias'd type? cheers

[Flashcoders] How to set button event listeners within a class

2007-05-18 Thread Alistair Colling
Hey, thanks for checking this. I am writing a class where the onRelease event of the button is handled within the class. This is so I can make a class that can be reused across re-skinned FLAs just by passing the button instance to the class (so I don't need to assign a method of the class

RE: [Flashcoders] How to set button event listeners within a class

2007-05-18 Thread Merrill, Jason
You need to use Delegate to keep your scope within the class: import mx.utils.Delegate class MyClass { //stuff private function setActions():Void { myButton.onRelease = Delegate.create(this, myOnRelaseHandler) } private function

Re: [Flashcoders] How to set button event listeners within a class

2007-05-18 Thread R�kos Attila
Use some kind of delegation (e.g. mx.utils.Delegate). (off: using this is not required in AS2 classes) sendBtn.onRelease = mx.utils.Delegate.create(this, sendHandler); Attila ___ Flashcoders@chattyfig.figleaf.com To change your subscription options

RE: [Flashcoders] can you use antiAliasType in a global setStyle?

2007-05-18 Thread Merrill, Jason
also, i don't think it is possible but i'll ask anyway - is it possible to have anti-alias'd type in a text area with non-alias'd type? Not in the same text area, no. Pretty sure anyway. Text areas have an aliased property which is for the entire text area, not individual characters, and the

Re: [Flashcoders] flash and USB port

2007-05-18 Thread Joe Lister
Director can almost certainly access USB ports, probably via an Xtra (director plugin). Perhaps you could embed your flash in a Director movie? You would have to do some Lingo coding to access act as a bridge between the USB and flash, but these days there is a pretty good set of Lingo

RE: [Flashcoders] How to set button event listeners within a class

2007-05-18 Thread David Ngo
You would only use super() if you're extending. It sounds like he was using composition, but thinking of inheritance. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Friday, May 18, 2007 11:48 AM To:

[Flashcoders] vertical scrollbars on TextArea component

2007-05-18 Thread Allandt Bik-Elliott (Receptacle)
also, when i bring my type into my TextArea, the scrollbars (which are set to vScrollPolicy = auto) flash on for a second before disappearing when they're not needed is there any way of stopping this? thanks in advance a On 18 May 2007, at 16:28, Allandt Bik-Elliott (Receptacle) wrote:

RE: [Flashcoders] swfs in pdfs

2007-05-18 Thread Dave Watts
My thinking is that if this would work as well as ti seems to look, people would use it a lot more. I have the feeling that swf in PDF - while not mutually exclusive - they technologies that are use in two different ways. PDF is still a mainstay of print quality material (so I send you a

Re: [Flashcoders] AS3 Mouse suggestions?

2007-05-18 Thread Charles Parcell
I would separate the players character from the explicit mouseX and mouseY. I think the two previous posters ideas are both good, but on their own they are not complete. You need to apply a vector motion to the character as well as a speed variable. Build a vector that starts at the current

Re: [Flashcoders][solved]can you use antiAliasType in a global setStyle?

2007-05-18 Thread Allandt Bik-Elliott (Receptacle)
thought so - thanks for the confirmation i've found out that i wasn't getting anti-aliased text because i'd aliased it when i'd created the font so that's sorted too ;) On 18 May 2007, at 16:44, Merrill, Jason wrote: also, i don't think it is possible but i'll ask anyway - is it

Re: [Flashcoders] How to set button event listeners within a class

2007-05-18 Thread Alistair Colling
Thanks Merril and Rakos for yr quick responses that is brilliant :) I'll have a shot of this on Monday. Have a great weekend :) Ali On 18 May 2007, at 16:57, Rákos Attila wrote: Use some kind of delegation (e.g. mx.utils.Delegate). (off: using this is not required in AS2 classes)

RE: [Flashcoders] German subtext ...

2007-05-18 Thread Dave Watts
Did anyone else receive a german email after posting to flashcoders today? Yes, it was an autoresponder. I've unsubscribed the offending address. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our

Re: [Flashcoders] flash and USB port

2007-05-18 Thread quinrou .
Joe, i thought about that I also fund a xtra for doing so too but, i would rather avoid using Director. Pedro, I have been checking out Zinc and it has a COMPort class which I beleive is I/O communication. when I did a quick test to check whether it could detect some USB device, I only got

Re: SPAM-LOW: Re: [Flashcoders] flash and USB port

2007-05-18 Thread Derek Vadneau
A USB device isn't connected to a port. It is assigned a drive letter and is a removable drive on the computer. You access it like you would access any local resource. You don't need a 3rd party tool to do this, but you do need to be running in the local or trusted sandbox. You can't access a

[Flashcoders] regular expressions in Flash8?

2007-05-18 Thread BOYD SPEER
can we now use regularexpressions in Flash8 to manipulate strings? I need to replace all instances of /descr with /descr using actionscript.. but.. some instances of /descr already exist and I do not want to change those if possible. thanks for any insights. -Boyd

Re: [Flashcoders] Dynamic E4X

2007-05-18 Thread Amir T Rocker
hi, isnt it some like: trace( [EMAIL PROTECTED] ); i think :) Am 01:57 AM 5/17/2007 schrieben Sie: The as3 examples for XML show the following: var node:String = zip; trace(employees.employee[0].address[node]); // 98765 What I'd like to do is something like this: var node:String = zip;

RE: [Flashcoders] regular expressions in Flash8?

2007-05-18 Thread Merrill, Jason
can we now use regularexpressions in Flash8 to manipulate strings? Yes, there are some regular expression classes floating out there for AS2/pre-Flash 9 people, have you googled those? Sorry I can't be more help than that. Jason Merrill Bank of America GTO Learning Leadership Development

Re: [Flashcoders] regular expressions in Flash8?

2007-05-18 Thread Juan Carlos Anorga
well... you can't really use regular expressions in flash8 unless you let javascript in the browser do it for you. I don't think you need regexp to solve your problem though. I think you could just do this: var txt:String = test/descr /descr; // replace /descr with /descr txt =

[Flashcoders] how to access custom TitleBackground (skinTitleBackground) of Window

2007-05-18 Thread Andrew Sinning
I've created a TitleBackground movieClip by following the instructions in the MX04 online help To set the title of an Window component to a custom movie clip symbol (below). Now I'd like to make a call to a function inside of that clip or access properties within that clip directly. The window

RE: [Flashcoders] regular expressions in Flash8?

2007-05-18 Thread Keith Reinfeld
// replace /descr with /descr txt = txt.split('/descr').join('/descr'); Then // replace /descr with /descr txt = txt.split('/descr').join('/descr'); -Keith http://keithreinfeld.home.comcast.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

[Flashcoders] Re: FLV CuePoints - discrepancies between CuePoint time and actual time [updated]

2007-05-18 Thread Martin Tremblay
I used Flash Encoder 8 instead of Sorenzon Squeeze and now my cuepoint are perfectly synchronized. Unfortunately even using similar parameters the quality of the flv is better with Sorenzon Squeeze. In Sorenzon Squeeze, the cuepoint get called exactly 1 1/3 of seconds before. Martin Tremblay lvl

[Flashcoders] Easy game in flash

2007-05-18 Thread Pedro Kostelec
hi flash coders First of all scuse me for my English I'm quite new in flash and I want to create a game like this one in this website: http://www.teagames.com/games/tgmotocross3/play.php of course not so complicated, bcouse it would be my 1st flash file I was trying to do a motorbike riding on

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Helmut Granda
Hi Pedro, Take a look at this tutorial for a little more advanced collision detection http://www.kirupa.com/developer/actionscript/advanced_collision.htm Hope this helps. -h On 5/18/07, Pedro Kostelec [EMAIL PROTECTED] wrote: hi flash coders First of all scuse me for my English I'm quite

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Joshua Sera
That game's actually not as simple as you might think, unless you already have the math background (verlet integration/swept circle hit tests/camera or viewport systems) to replicate what this game does. If you don't already know the math/algorithms for what I'm talking about, you'll want to

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Helmut Granda
I figured as much but he did commented that he wanted to do a similar game but not as complicated. So learning on how to do collision detection should be a good start :) On 5/18/07, Joshua Sera [EMAIL PROTECTED] wrote: That game's actually not as simple as you might think, unless you already

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Pedro Kostelec
Actually, I'm not looking to make a so complicated game like this one. I just want to learn some good basics in doing games. So, if anyone know any tutorial for a similar or easier game it'll be ok, too. I'm not looking to work with alorithms, becouse I don't know very well what is that (I'm just

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Pedro Kostelec
I'm able to use the hittest function for collision detection like in the exemple thet you gave me. 1. I have used a hitTest function which make the bike return of 3 px in the opposite way it touched the ground, but in make the bike keep jumping, because the bike y position is set to +5. So

Re: [Flashcoders] how to access custom TitleBackground(skinTitleBackground) of Window

2007-05-18 Thread Muzak
If for some reason you want to put your own title textfield in the header, you'll need to have a movieclip (instance name 'title_mc') that contains a textfield (instance name 'text') inside your custom TitleBackground. Woops.. that's incorrect.. You need to have a textfield named title_mc

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread gareth gwyther
Research path finding and that game has some serious math functions in it. A simple game is this one http://andojung.com/game/copter/copter.swf To make this just have on variable for speed speed =10 an on mouse movement for control this._y += speed. a code for when the mouse is up and down

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Muzak
have a look at http://www.cove.org/flade/ http://www.cove.org/ape/ - Original Message - From: Pedro Kostelec [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, May 18, 2007 10:54 PM Subject: [Flashcoders] Easy game in flash hi flash coders First of all scuse me

Re: [Flashcoders] Easy game in flash

2007-05-18 Thread Joshua Sera
--- gareth gwyther [EMAIL PROTECTED] wrote: btw Apps are easy to create. Games are evil in comparison. They're both hard, but in different ways. Apps have a low, almost linear learning curve, but the time axis is huge. Games have a steep curve, but once you have the math down, you can kick

AW: AW: [Flashcoders] - Array memory performance

2007-05-18 Thread Cristo @ Cryzto
Thanx fort he answer, it was very helpful. The main thing was that in C++ you don't have a GC, now that I know Flash has one, the rest is just fine :-) I now realised what crap I wrote on that push(z)-line... gosh!!! Even in C++ I would have got an error by the compiler! Thnx a lot!