Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Paul Chang
Thanks Keith. That worked. On Jun 20, 2007, at 9:29 PM, keith wrote: Maybe this will help the coerce: for (var i:int=0;iparent.numChildren;i++) { if(parent.getChildAt(i) is LiquidObject){ trace(LiquidObject (parent.getChildAt(i)).selected); } } -- Keith H -- Paul Chang wrote: Hello,

[Flashcoders] Adobe Interface.. (was: Flash CS3 over 400 MB! and 25 minutes to install!)

2007-06-21 Thread Stan Vassilev | FM
Please also have a meeting on the entire Adobe Interface concept. Maybe you're aware of those things internally, but I want to let you know that they're quite visible on the outside too: the Flash Authoring's implementation of Adobe's interface is patched in on top of the old GUI (and Flash

Re: [Flashcoders] Does FLEX have web services?

2007-06-21 Thread Amir T Rocker
Hi, well yes, i havent used a WebService component, but the WebService class. Flex / AS3 supports a mxml component as well as a AS3 class - of course:) for the remoting - I have used amfphp as well as openamf in the last two years - its robust and fast - its a lot faster than Webservices.

Re: [Flashcoders] converting .mov to .flv

2007-06-21 Thread Amir T Rocker
you can use a) sorenson squeeze b) flash flv encoder just google for it and you might even get freeware amir Am 05:11 PM 6/15/2007 schrieben Sie: Hello, I'm looking for an easy, inexpensive way to convert my .mov QuickTime movies ( 2 to 10 minutes long) to .flv in order for me to put them on

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Amir T Rocker
Hi, i experienced the same behaviour using this type of cast var somVar = Caster( Castee ); sometimes it works and sometimes it doesnt ... I tried to use the 'as' operator and that suddenly works where above coed failed. var someVar = list.getItemAt( i ) as TypeToCast; I hope maybe that

[Flashcoders] onChanged and carriage return

2007-06-21 Thread Danny Kodicek
I've got a text field that is listening for onChanged events. For some reason, it's not getting some of these events when they're carriage returns: a : get the event return : no event a: another event return : no event return : get the event a : get the event return : no event That is: it misses

Re: [Flashcoders] Flash Development on PC vs Mac

2007-06-21 Thread Jim Robson
Thanks guys! To everyone who responded to this post with your own first-hand knowledge and experience - I appreciate the info very much. I learned a lot. -Jim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

[Flashcoders] patching MM classes for mtasc

2007-06-21 Thread quinrou .
Hi all, I tried to patch the MM classes to work with MTASC but I haven't been successful. I was wondering if anyone managed to do it and if they could provide me with the patched set? Many thanks ___ Flashcoders@chattyfig.figleaf.com To change your

[Flashcoders] Any prefs for loading XML?

2007-06-21 Thread Dave Burnett
Hi all, first post. I'm a long-time AW developer and have integrated Flash into that, but not done much ground-up Flash dev, so I know just enough to be dangerous. Scenario: LMS takes a couple parameters, generates an XML structure and launches Flash piece to consume it. Question: What's

[Flashcoders] as3 mask leaks scale of hidden area!

2007-06-21 Thread dave matthews
hi All, Working with Flash_cs3_as3 trying to position a content_holder hard coded on the timeline, it is structured like this: content_holder.frame.mask.loadtarget.loadedClip When checking the scaleX/Y of the content_holder object it is showing the larger scale of the loadedClip that is

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Muzak
You should always use the new as operator. This article might help: http://www.darronschall.com/weblog/archives/000211.cfm regards, Muzak - Original Message - From: Amir T Rocker [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, June 21, 2007 11:39 AM Subject:

Re: [Flashcoders] patching MM classes for mtasc

2007-06-21 Thread Muzak
http://www.google.com/search?hl=enq=mtasc+mm+classes - Original Message - From: quinrou . [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, June 21, 2007 1:31 PM Subject: [Flashcoders] patching MM classes for mtasc Hi all, I tried to

Re: [Flashcoders] Re: Asynchronous ExternalInterface Calls From Javascript, possible?

2007-06-21 Thread elibol
Hmm, I think it checks for the crossdomain.xml file when the webservice attempts to load/connect. Simple access to a file on a remote (sub)domain is not allowed. On 6/20/07, jason vancleave [EMAIL PROTECTED] wrote: Seth Green seth.m.green at gmail.com writes: It turns out that the

Re: [Flashcoders] patching MM classes for mtasc

2007-06-21 Thread Hans Wichman
Hi, i think there is some license issues preventing folks from redistributing them, since they wudnt put us through the patching process if it wasnt:) I download swc extract from osflash and simply extracted every class i could find from the components, that solved my problems. It gave me a

Re: [Flashcoders] Any prefs for loading XML?

2007-06-21 Thread elibol
Best practice would have it load via an XML object. I haven't coded in as2 for a while, but I believe the code is something like: import mx.utils.Delegate; var xml:XML = new XML(); xml.load(./location/doc.xml); xml.onLoad = Delegate.create(this, onLoad); function onLoad(success:Boolean){

RE: [Flashcoders] onChanged and carriage return

2007-06-21 Thread Pete Miller
Are you testing this within the IDE? Just a guess, but perhaps you need to ControlDisable Keyboard Shortcuts -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Danny Kodicek Sent: Thursday, June 21, 2007 7:11 AM To:

RE: [Flashcoders] onChanged and carriage return

2007-06-21 Thread Danny Kodicek
Are you testing this within the IDE? Just a guess, but perhaps you need to ControlDisable Keyboard Shortcuts It's a good idea, but I don't think that's it - the key press is getting through fine, it's just that the onChanged isn't happening. I've hacked a solution by setting a flag in the

Re: [Flashcoders] Re: Asynchronous ExternalInterface Calls From Javascript, possible?

2007-06-21 Thread jtgxbass
I suspect the first call delay is to do with flash getting a wsdl file (if its a SOAP service). Once it has the wsdl, it needs not d/load it again. On 6/21/07, elibol [EMAIL PROTECTED] wrote: Hmm, I think it checks for the crossdomain.xml file when the webservice attempts to load/connect.

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread khair
Thanks too! This works more elegantly for me too. --Keith H-- You should always use the new as operator. This article might help: http://www.darronschall.com/weblog/archives/000211.cfm regards, Muzak - Original Message - From: Amir T Rocker [EMAIL PROTECTED] To:

[Flashcoders] URLRequest caching XML problems AS3

2007-06-21 Thread Chris Tague
Hi people, I'm trying to load XML data from an RFID reader via HTTP(the reader has a webserver on it), if i use the xml.load method in CS2 it works absolutely fine. But trying to rewrite the code in CS3, i have come across what seems to be a caching problem, although there is something weird

Re: [Flashcoders] Re: Asynchronous ExternalInterface Calls From Javascript, possible?

2007-06-21 Thread Seth Green
yeah, that may very well be it. jtgxbass wrote: I suspect the first call delay is to do with flash getting a wsdl file (if its a SOAP service). Once it has the wsdl, it needs not d/load it again. On 6/21/07, elibol [EMAIL PROTECTED] wrote: Hmm, I think it checks for the crossdomain.xml file

Re: [Flashcoders] Mouse Velocity?

2007-06-21 Thread Ron Wheeler
Would you not eliminate the whole problem by keeping track of the time that the previous position was taken along with its coordinates and use that to calculate the time between the readings and divide that into the distance? Then you do not care if the set interval or on enter frame come at

Re: [Flashcoders] Mouse Velocity?

2007-06-21 Thread Joshua Sera
Well yeah. If you're doing a verlet integration-style thing where all you store about a particle is it's last position, and it's current position, and you're not using a constant time step, you have to do that. Storing the last 5 updates is a seperate thing. This is just to overcome the

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Paul Chang
Thanks for this reference. I performed a simple test and it works. However, for my particular example, I receive an error. var liquidObject:LiquidObject = parent.getChildAt(i) as LiquidObject; assigns null to liquidObject. The only thing that has worked for me so far is: if

[Flashcoders] Mouse Velocity?

2007-06-21 Thread Sergei Nikiforovski
interval is Ok, quick fix: var MouseX; var MouseY; setInterval( determineVelocity, 20 ); function determineVelocity():Void { var newMouseX:Number = _root._xmouse; var newMouseY:Number = _root._ymouse; var deltaX = Math.abs(MouseX - newMouseX) var deltaY = Math.abs(MouseY -

Re: [Flashcoders] patching MM classes for mtasc

2007-06-21 Thread quinrou .
can u provide a link to that swc - i haven't managed to find it on the osflash.org site? thanks On 6/21/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, i think there is some license issues preventing folks from redistributing them, since they wudnt put us through the patching process if it

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread elibol
As I understand, each child attempts to access their siblings via the parent. What triggers the children to access their siblings? On 6/21/07, Paul Chang [EMAIL PROTECTED] wrote: Thanks for this reference. I performed a simple test and it works. However, for my particular example, I receive

Re: [Flashcoders] Mouse Velocity?

2007-06-21 Thread eric e. dolecki
good stuff guys, thanks ;) On 6/21/07, Sergei Nikiforovski [EMAIL PROTECTED] wrote: interval is Ok, quick fix: var MouseX; var MouseY; setInterval( determineVelocity, 20 ); function determineVelocity():Void { var newMouseX:Number = _root._xmouse; var newMouseY:Number = _root._ymouse;

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Muzak
Since you're looping through the parent's children, not all children might be LiquidObject instances. Which is why it works when you check if it is a LiquidObject if (parent.getChildAt(i) is LiquidObject) The following will indeed work, because casting like that is allowed: if

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Paul Chang
First, scratch my hypothesis about problems occurring within the class itself. To answer your question, a mouse event (MOUSE_UP) on the particular LiquidObject prompts it to access its siblings. On Jun 21, 2007, at 11:21 AM, elibol wrote: As I understand, each child attempts to access

[Flashcoders] Combo Box Component Errors

2007-06-21 Thread Lord, Susan Ms. (CONTR)
Hi there, I am having a unique problem using the combo box component. When I run the file on its own, it works great, but when I load the swf into my main file it stops working. Now to eliminate possibilities for other errors I created 2 files to test this and removed all other programming and

RE: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Daniel Thompson
You should always use the new as operator. I disagree. If you want the TypeError thrown, because you're going to catch it, then it can be handy. I use both methods of casting and I like the choice. (I do agree that I wish it were (LiquidObject)child instead of LiquidObject(child)... but I'm

[Flashcoders] FileReference

2007-06-21 Thread Paul Chang
I was happy to see a FileReference Class finally in Flash so that the upload of basic files could be accomplished without the use of backend scripts. However, I want to use FileReference in a slightly different way and I feel like it should be possible but can't quite get there. Here's

Re: [Flashcoders] Type Coercion Failed: Odd behavior.

2007-06-21 Thread Muzak
When using the as operator, you can check for null. quote Evaluates whether an expression specified by the first operand is a member of the data type specified by the second operand. If the first operand is a member of the data type, the result is the first operand. Otherwise, the result is

Re: [Flashcoders] FileReference

2007-06-21 Thread Nick Johnston
Paul, FileReference allows for the upload and download of files. You first have to upload the file (with use of a backend script (PHP or whatever). Once the file is uploaded you can use the FileReference's download() method to download the file. You should then be able to open the file and

[Flashcoders] wmode transparent, disappearing cs3 components and Firefox

2007-06-21 Thread Kevin Newman
Hello all, Has anyone else experienced a problem with using CS3 components along with wmode transparent? I tried that recently, and the CS3 widget I was using (List) simply will not show up if wmode is set to transparent in Firefox (Firefox 2.0.0.4 on Windows - opaque works fine). So the

RE: [Flashcoders] FileReference

2007-06-21 Thread Merrill, Jason
I don't think you can access the contents, but you should know where the file is uploaded to on your server, and thus, with the selected filename from FileReference, you know the filename and thus along with Flash's ._url property, all the info about the URL you need. Jason Merrill Bank of

Re: [Flashcoders] FileReference

2007-06-21 Thread Muzak
The file has to be uploaded to your server first, so your assumption that you don't need a backend script isn't correct. You don't have direct acces to files through a FileReference instance, for security reasons. So after the user has selected the file using FileReference.browse(), you have

[Flashcoders] as3 make weird anchor point go away - how

2007-06-21 Thread dave matthews
please help, Using ASS_3 make a symbol, use it... do stuff. A new center point appears out of now where for the symbol. realigning everything in the symbol stack does not fix it! Can't cut it out, delete it, paste new symbol after delete, doesn't go away when symbol is edited in new

[Flashcoders] attachMovie fails on embedded clip in a movie, why?

2007-06-21 Thread Chris Bell
Hi Flash Friends, attachMovie works on a clip that is inside a clip that has been loaded by attachMovie but fails on a clip that is inside a clip loaded with loadMovie. This should be so easy, but it is simply not working. I'd appreciate any tips pointing me to the part that I don't

Re: [Flashcoders] Combo Box Component Errors

2007-06-21 Thread Andy Herrman
I responded to your direct e-mail with a more detailed explanation, but for the benefit of the list: The way to fix this is to either do: this._lockroot = true; at the top of the AS code in the SWF that contains the combo boxes, or do: loadedMovie._lockroot = true; in the loader movie, where

Re: [Flashcoders] wmode transparent, disappearing cs3 components and Firefox

2007-06-21 Thread Will McHenry
We've had a lot of problems with Firefox/wmode = transparent/flash combinations. Don't know how relevant this is or how you're placing the .swf in the page, but we've found this to be an issue when using the CSS style overflow:

Re: [Flashcoders] FileReference

2007-06-21 Thread Muzak
Newer versions of the Flash Player allow you to send back a response when the upload has finished. This can be used to send back the actual path and filename of the uploaded file. Retrieving the initial filename is not always sufficient. Often you will have to rename the file on the server to

[Flashcoders] Generic Funky Flash Math

2007-06-21 Thread Mendizabal
This post is for a friend. Can anyone explain the output below? TIA function checkAvailability(obj:Object):Boolean { var hours:Number= time.hrs; var minutes:Number= time.mins; var seconds:Number=

Re: [Flashcoders] Generic Funky Flash Math

2007-06-21 Thread Latcho
yep it does what you read in the trace. what is your question. Mendizabal wrote: This post is for a friend. Can anyone explain the output below? TIA function checkAvailability(obj:Object):Boolean { var hours:Number= time.hrs; var minutes:Number