Re: [Flashcoders] Object registerClass

2006-11-14 Thread el oskitar
I will try to explain this: first, apoligizes for my bloody english, :P i want to build one menu from XML source like this. item label=Nuevo clase = bm_New/ i know the process for linking clases to a symbol in the library, but i don't wanna to have multiples copys of symbols with different

Re: [Flashcoders] Object registerClass

2006-11-14 Thread Hans Wichman
Hi, just a small note: var a:String, will NOT guarantee that a is actually a string. for example: var arr:Array = [_root.createEmptyMovieClip(test, 0)]; var str:String = arr[0]; trace( typeof (str)); will compile just fine and trace movieclip greetz JC On 11/14/06, el oskitar [EMAIL

[Flashcoders] Undefined value

2006-11-14 Thread Laurent CUCHET
How can I do to send an empty var if there is nothing ? I always get ³reliure=undefined² and I need an empty var Thank you very much var reliure_var; if (_global.pie_glo !== || _global.pie_glo !== undefined) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else {

RE: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?

2006-11-14 Thread Ben Smeets
Oe, I'm liking this one very much. More background would be greatly appreciated :D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Seb L Sent: maandag 13 november 2006 11:33 To: Flashcoders mailing list Subject: Re: [Flashcoders] Faking 3D perspective

RE: [Flashcoders] Italic text being chopped

2006-11-14 Thread Trevor Burton
What font are you using? I've had a similar issue with ascenders in the past rather than descenders but turned out to be a dodgy font. T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: 14 November 2006 10:49 To: Flashcoders Subject:

RE: [Flashcoders] Text Field Manipulation/Effect ...

2006-11-14 Thread Ben Smeets
Might be getting you wrong, but I think you are almost there already? Instead of using the clip to manipulate the scale of the text, how about trying to manipulate the TextFormat.letterSpacing? I haven't tested it, but I think it should do the trick? Cheers, Ben -Original Message-

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Martin Wood-Mitrovski
did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize with their type information intact. PR Durand wrote: Hi there! using localConnection seems to totally untype an object, right? ___

[Flashcoders] Italic text being chopped

2006-11-14 Thread Adrian Lynch
My ps, qs, gs, ys and js are having their tails chopped off when made italic in a static text field. I've played about with the line spacing and indenting but to no avail. I thought it would be a simple fix but nothing I'm doing is working. Any ideas? Thanks Adrian

[Flashcoders] Weird movie corruption

2006-11-14 Thread Chris Akins
Greetings, all. I've been working on an interactive quiz for a while now, and it's working correctly, except that some parts of it break after making a call to any JavaScript function. I've been trying fruitlessly to debug this for a small eternity now, and I've finally run out of ideas. Could

[Flashcoders] Remoting blank requests

2006-11-14 Thread Janis Radins
Hey! I'm in a process of exploring why my remoting data feeds get slow somtimes. Therefore i installed Service Capture and started to look what it does and found out that there are blank requests before real request with proper data. I believe this might confuse my app, since any data request

Re: [Flashcoders] odd _alpha arithmetic

2006-11-14 Thread Seb L
It's because _alpha is stored internally at 255 levels, so it's the dodgy floating point accuracy and conversion from the internal value to a percentage that causes the inconsistency. If it causes problems, I usually have a separate value for storing the current alpha. myClip =

[Flashcoders] Best hardware for Flash

2006-11-14 Thread Joe Cutting
Hello, I'm looking into specifying hardware for running Flash projector based kiosks. The aim is to get the best possible Flash performance while avoiding spending money on technology that isn't going to make any difference. Given that the usual performance benchmarks don't really apply to

RE: [Flashcoders] Italic text being chopped

2006-11-14 Thread Adrian Lynch
Cheers T. It's verdana, 11, bitmap text (no anti-alias). I'm stuck with this due to brand guidelines. Any other ideas? Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Trevor Burton Sent: 14 November 2006 11:31 To: 'Flashcoders mailing list'

Re: [Flashcoders] Weird movie corruption

2006-11-14 Thread Seb L
A couple of things to try... I've recently been getting VERY unpredictable results with JS/AS communication and I realised that security settings seem to be a bit weird... so the first thing to try is uploading it to a web server and see if it still happens there. Secondly, I would delete all

Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?

2006-11-14 Thread Jake Prime
Hi Seb Seconded. If you find the time I'd love to read that blog. Jake On 14/11/06, Ben Smeets [EMAIL PROTECTED] wrote: Oe, I'm liking this one very much. More background would be greatly appreciated :D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

[Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Hi there! using localConnection seems to totally untype an object, right? so I use in a sending swf: var myObj:MyType = new MyType(); // then filling object with values I send my object to another swf via localConnection and in my receiving method in my receiving swf : trace (myObj

RE: [Flashcoders] Italic text being chopped

2006-11-14 Thread Trevor Burton
If it's Verdana then I doubt it's the font - my problem was with Channel 4's custom font (you'd think they'd have spent some money getting someone to create it correctly). If it's only descenders getting cropped then have you tried outlining your text boxes to see if there's anything going on

RE: [Flashcoders] Italic text being chopped

2006-11-14 Thread Adrian Lynch
This is just a static text field. I changed it to dynamic and had a play about with it's text format but no joy just yet. Adrian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Trevor Burton Sent: 14 November 2006 11:57 To: 'Flashcoders mailing list'

[Flashcoders] upcasting causes overridden superclasses methods to be called

2006-11-14 Thread Matt Garland
I was hunting a bug when I found this out: class SuperClass { public function init() { trace (superclass init); } } class SubClass extends SuperClass{ public override function init(){ trace (subclass init); } } if you create a subclass instances and cast it (or type its variable) to the

Re: [Flashcoders] Italic text being chopped

2006-11-14 Thread Ian Thomas
Probably irrelevant - the only time I've had that happen was just something really silly - the text field was too short for the font size. :-) Ian On 11/14/06, Adrian Lynch [EMAIL PROTECTED] wrote: This is just a static text field. I changed it to dynamic and had a play about with it's text

RE: [Flashcoders] Italic text being chopped

2006-11-14 Thread Adrian Lynch
Thanks, tried that, still no joy. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ian Thomas Sent: 14 November 2006 13:31 To: Flashcoders mailing list Subject: Re: [Flashcoders] Italic text being chopped Probably irrelevant - the only time I've had that

Re: [Flashcoders] Undefined value

2006-11-14 Thread Dave Mennenoh
You have an incorrect not equal: !== There's just one equal sign: != Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription

[Flashcoders] odd _alpha arithmetic

2006-11-14 Thread Andreas R
myClip = _root.createEmptyMovieClip(appClip,1); myClip.modifier = 5; myClip.onEnterFrame = function(){ this._alpha-=this.modifier; trace(this._alpha); } Why is that trace outputting uneven decimals, not integers? - A ___

RE: [Flashcoders] odd _alpha arithmetic

2006-11-14 Thread Mendelsohn, Michael
I asked this question once. Check out the archives of my post: http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2002-December/055 709.html - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Remoting blank requests

2006-11-14 Thread Ned Perry
Sorry Brain must be addled. Will definitely bring it in first thing tomorrow...promise.. Ned -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: 14 November 2006 11:29 To: Flashcoders mailing list Subject: [Flashcoders] Remoting blank

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Martin Wood-Mitrovski
Object.registerClass is used to register types for a variety of purposes, shared objects, local connections and remoting apart from the MC / class link usage. Did you register the class at both ends? and are you sure its compiled into both movies? check this post from the archive

RE: [Flashcoders] [AS3] Instantiating Dynamic Classes

2006-11-14 Thread Geoffrey Williams
Something like this: import flash.utils.getDefinitionByName; var class : Class = getDefinitionByName (clip_ + variable) as Class; var mc : MovieClip = MovieClip (new Class ()); addChildAt (mc, depth); Not tested. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Hi Martin thanks for your answer... No I didn't, cause I thought it was deprecated since we could use classes... I'll try this. Thanks once more... PiR Martin Wood-Mitrovski a écrit : did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize

Re: [Flashcoders] Remoting blank requests

2006-11-14 Thread Muzak
If I'm not mistaken, blank/empty calls are made to either create a connection or check if the service exists. I'm not 100% sure about that though. regards, Muzak - Original Message - From: Janis Radins [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com

[Flashcoders] Widescreen displays

2006-11-14 Thread eric dolecki
In the age of widescreen television and flat panels, is anyone on this list deploying fullscreen stuff that is flexible in its display? I'm just curious and was about to roll up a little class to handle the 2 aspect ratios. - e. ___

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Nope... it seems that object.registerClass remains a link between AS1 class and a movieClip... I can't get my object pass through the localConnection... :( ++ PiR PR Durand a écrit : Hi Martin thanks for your answer... No I didn't, cause I thought it was deprecated since we could use

[Flashcoders] Re: weird movie corruption

2006-11-14 Thread Chris Akins
RESOLVED! This turned out to be a problem with Flash Player 9. When I rolled back to 8r22, everything worked beautifully. A bug report has been filed with this example; thanks for reading. -Chris Akins ___ Flashcoders@chattyfig.figleaf.com To change

[Flashcoders] [AS3] Instantiating Dynamic Classes

2006-11-14 Thread James Marsden
Hi all, How is it possible to do the equivalent of this in Flash 9 AS 3: var mc = _root.attachMovie(clip_ + variable, variable, depth); I realise attachMovie doesn't exist and you have to instantiate a class, but how do you do dynamically choose the class name? Thanks, James

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Mark Winterhalder
can't understand... any explaination please? Just guessing, I haven't tried anything like this with localConnection, but it seems to be the same like with local SharedObjects: If you have MyClass in both SWFs, and send an instance 'foo' to the other, try to set foo.__proto__ =

Re: [Flashcoders] Undefined value

2006-11-14 Thread Claus Wahlers
You have an incorrect not equal: !== There's just one equal sign: != !== strict inequality operator expression1 !== expression2 Tests for the exact opposite of the strict equality (===) operator. The strict inequality operator performs the same as the inequality operator except that

Re: [Flashcoders] Faking 3D perspective of a 2D map in Flash 8..?

2006-11-14 Thread Seb L
OK it's on my list, but I'm not sure when that'll be... I have a whole lot of 3D tutorials to prepare for Flash on the Beach first... But I have an rss if you want to be the first to see... http://sebleedelisle.com/?feed=rss2 cheers Seb Lee-Delisle http://sebleedelisle.com On 14/11/06, Jake

RE: [Flashcoders] Undefined value

2006-11-14 Thread jim
!== is strict inequality, it tests for the exact opposite of the strict equality (===) operator. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Mennenoh Sent: 14 November 2006 16:52 To: Flashcoders mailing list Subject: Re: [Flashcoders] Undefined

Re: [Flashcoders] Remoting blank requests

2006-11-14 Thread Janis Radins
i have sutch suspiction as well, but in that case how come theres nothing like that on IE ? doesnt make sence 2006/11/14, Muzak [EMAIL PROTECTED]: If I'm not mistaken, blank/empty calls are made to either create a connection or check if the service exists. I'm not 100% sure about that though.

Re: [Flashcoders] Undefined value

2006-11-14 Thread Jake Prime
On 14/11/06, Laurent CUCHET [EMAIL PROTECTED] wrote: var reliure_var; if (_global.pie_glo !== || _global.pie_glo !== undefined) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } I can see two

Re: [Flashcoders] upcasting causes overridden superclasses methods to be called

2006-11-14 Thread Hans Wichman
Hi, running your example shows: subclass init, as it should. public override function init(){ trace (subclass init); } whats the override keyword doing there? greetz JC On 11/14/06, Matt Garland [EMAIL PROTECTED] wrote: I was hunting a bug when I found this out: class SuperClass { public

Re: [Flashcoders] Undefined value

2006-11-14 Thread Dave Mennenoh
!== is strict inequality, it tests for the exact opposite of the strict equality (===) operator. My bad... I guess I never use the strict operators... Sorry. Dave - Head Developer www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/

Re: [Flashcoders] Undefined value

2006-11-14 Thread slangeberg
'undefined' is not a string. Try: var reliure_var; if ( _global.pie_glo _global.pie_glo != ) { reliure_var = reliure=+_global.pie_glo; var_glo.text = reliure_var; } else { reliure_var = ³²; var_glo.text = reliure_var; } On 11/14/06, Laurent CUCHET [EMAIL PROTECTED] wrote: How can I

[Flashcoders] quick actionscript question

2006-11-14 Thread eric walton 9 / edub9 Edub9
Hello anyone know the actionscript for a button that will control a video fast forward and rewind button that forwards and rewinds in a smooth transition? I want to use it with an existing scrubber that is working. The buttons are working but at present they only go back or foreard based on 1 or

[Flashcoders] quick actionscript question

2006-11-14 Thread eric walton 9 / edub9 Edub9
Hello anyone know the actionscript for a button that will control a video fast forward and rewind button that forwards and rewinds in a smooth transition? I want to use it with an existing scrubber that is working. The buttons are working but at present they only go back or foreard based on 1 or

RE: [Flashcoders] quick actionscript question

2006-11-14 Thread Mike Keesey
The problem is in how the FLVs are encoded. You have to encode with keyframes on every frame. Once that's done, they should scroll fine (although backwards is generaly chunkier than forwards). ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL

[Flashcoders] flash button not working in firefox when over an iframe

2006-11-14 Thread Dominico Savio
I've got this problem for the last couple days and could not figure out why. The problem is when I have an iframe underneath a swf file, and any flash buttons over the iframe area not working at all. And this problem only occurs in FF. You can download the sample bug here:

[Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Lori Hutchek
Okay im in the middle of reading AS3 Cookbook, and Essential AS3. And i'm having some trouble grasping the concept of the main class file {as in the root package for the program you are constructing}, both books talk about this. But are they talking about constructing applications using

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Mike Keesey
In the Flash 9 Public Alpha, it's under Publish Settings Flash ActionScript Settings Document class ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Lori Hutchek Sent: Tuesday, November 14, 2006 11:24 AM To:

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Paul Steven
Is Essential AS3 book out yet? I cant see it on Amazon.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lori Hutchek Sent: 14 November 2006 19:24 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Letting go of AS2 for AS3 Okay im in the

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Jim Armstrong
Rough cuts are available, http://www.moock.org/blog/archives/000203.html regards, - ji\m/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven Sent: Tuesday, November 14, 2006 2:00 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders]

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Steven Sacks | BLITZ
In the Flash 9 Public Alpha, it's under Publish Settings Flash ActionScript Settings Document class Or if you have nothing selected it's in the properties panel Or you can use Flash Develop or Flex Builder 2. ___

RE: [Flashcoders] Letting go of AS2 for AS3

2006-11-14 Thread Lori Hutchek
The rough cuts version is definitely worth the purchase, its only like 6 chapters but so much better written then the cookbook. Especially the Display API chapter in essential. From: Paul Steven [EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 3:01 PM

[Flashcoders] Complex objects in a DataProvider

2006-11-14 Thread John Mark Hawley
I'm about to go ape over this, and strongly suspect I'm missing an easy fix. I have an Array of complex objects which I want to display in a DataGrid. I assign the array to the DataGrid's dataProvider. As expected, the properties of the complex objects appear in the DataGrid. However, what I

Re: [Flashcoders] Complex objects in a DataProvider

2006-11-14 Thread R�kos Attila
JMH However, what I want is to be able to see the results of certain JMH method calls on the objects in my dataProvider. Is there some way JMH to accomplish this feat without going berserk? Why don't you use getter properties in your objects or DataGridColumn.labelFunction? Attila

Re: [Flashcoders] Remoting bytesLoaded/bytesTotal

2006-11-14 Thread l u c h y x
How big can be a resulset if you didn't do the query, or open a file or wherever you do on the server side? You can show a indeterminate progress bar. When result come back remove It. On 11/13/06, Yehia Shouman [EMAIL PROTECTED] wrote: If there's a way for the server people to add a content

Re: [Flashcoders] upcasting causes overridden superclasses methods to be called

2006-11-14 Thread Peter Hall
I assume this is AS3 in Flash AS3 preview? I tried your example code and it worked as expected, even when I instantiated Subclass by a variable reference to the class. I have a feeling you have made some mistake in your code... if not, could you send a complete example, that we can just paste

[Flashcoders] Strange XML problems

2006-11-14 Thread bruce
Hi, 1. I have a main flash file which loads external SWF's when a particular tab is clicked on. This main file is embedded in an HTML page. All the data is coming through the XML file, including the fields that need to be populated in the SWF's loaded externally. 2. I've assigned a global

[Flashcoders] Select area in plot and pass selection to function

2006-11-14 Thread Wolfgang Borgon
Hi, I'm trying to have flash plot some data and then allow the user to select an area in the plot, press a button corresponding to some function, and then pass the user selected coordinates to that function.I'd like the selection to be done much like a rectangular select box in standard

[Flashcoders] HELP!!! Eventdispatcher and firefox bug????

2006-11-14 Thread moveup
I've come across something for the first time... at first I thought it was my code but... My application loads xml, then dispatches a build event to another class which attaches clips from my library. The application ALWAYS works if i launch the swf directly. The application also ALWYAS

Re: [Flashcoders] Best hardware for Flash

2006-11-14 Thread 赵洪日
i'm very interest in this , i want to detailed understand this!!! 赵洪日 2006-11-15 发件人: Joe Cutting 发送时间: 2006-11-14 18:59:55 收件人: flashcoders@chattyfig.figleaf.com 抄送: 主题: [Flashcoders] Best hardware for Flash Hello, I'm looking into specifying hardware for running Flash projector

RE: [Flashcoders] HELP!!! Eventdispatcher and firefox bug????

2006-11-14 Thread Mike Keesey
Ot sounds like it has to do with asynchronous events happening in different orders. Try this--when the XML loads, set a loaded flag on the dispatcher to true and then dispatch a load event. Your listeners should: 1) Check if loaded is true. 2) If so, proceed. 3) If not, listen for the load event.

Re: [Flashcoders] HELP!!! Eventdispatcher and firefox bug????

2006-11-14 Thread Josh Santangelo
I've run into something similar where events fire differently in different circumstances. In my case it was the sound.load event, and the problem was I was calling .load just before adding the listener. Switching it to add the listener before calling load (which is the more sensible way of

[Flashcoders] RE:upcasting

2006-11-14 Thread Matt Garland
Whoops! I didn't actually run this test code, just abstracted from my problem and spat it out. I guess my buttons are not instantiated like I thought they were. I'll take another look. Thanks JC--override must be applied to any protected or public method that is overridden in a subclass,

[Flashcoders] hi-lighting an item in the list component won't work for me.

2006-11-14 Thread Carl Welch
Hi all, I am trying to dynamically set a particular item in the list component, but it does not seem to work at all. Here's what I'm using: songList_lb.selectedIndex = myTrack_Pos+1; songList_lb.dispatchEvent({type:change, target:songList_lb}); Any ideas? Thanks! -- Carl Welch

Re: [Flashcoders] Weird movie corruption

2006-11-14 Thread John VanHorn
ive found that when i use ExternalInterface to call a JS alert, that my movie will often hang. I get the JS alert like i should, no JS errorsit just locks up the swf. without having the time to dig deeper, i found a quick fix, and called the alert with a setTimeout, like this:

[Flashcoders] displaying in html text field

2006-11-14 Thread Alan Queen
I have a textfield with html turned on. There is a case where I need to actually show a less than () sign in the text field itself... but assigning it dynamically just hides anything after the ... any ideas? example: var text:String = 1 2; this.tfTest.htmlText = text; this will only

Re: [Flashcoders] displaying in html text field

2006-11-14 Thread Adrian Ionut Beschea
You need to use : var text:String = '1 lt; 2' this.tfTest.htmlText = text; lt; stands for gt; stands for Alan Queen [EMAIL PROTECTED] wrote: I have a textfield with html turned on. There is a case where I need to actually show a less than () sign in the text field itself... but assigning