Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling

2009-07-05 Thread Tony Fouts
Andrew, You might also want to check out this link: http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/ It does a great job of illustrating the difference between MOUSE_OVER and ROLL_OVER. Tony http://www.lifelinewebsolutions.com On Sun, Jul 5,

[Flashcoders] AS3 onMetaData

2009-06-30 Thread Andrew Sinning
What types of objects other than FLV videos have metaData that triggers the onMetaData event? In AS3, why is the onMetaData event handled differently than all the other events? I.e., why can't it be used with addEventListener? ___ Flashcoders

Re: [Flashcoders] AS3: Inserting text into textInput field via code... can't do it?

2009-05-06 Thread Kenneth Kawamoto
You should be able to set the text of a TextFieldType.INPUT type TextField using text property as you are doing. Kenneth Kawamoto http://www.materiaprima.co.uk/ Carl Welch wrote: Hi, I need to place some text into a input text field - the user needs to be able to edit some text (from a

[Flashcoders] AS3: Inserting text into textInput field via code... can't do it?

2009-05-05 Thread Carl Welch
Hi, I need to place some text into a input text field - the user needs to be able to edit some text (from a database) and submit it back to a database. So far, though, I've been unable to pass any vars to the input textfield like this: datatext.text = database_vars; do I need to handle

Re: [Flashcoders] AS3 Papervision Question

2009-05-01 Thread Glen Pike
Hi, You would probably have to roll your own for this: You could make up your own 3D object out of planes and assign different material to each plane. Or render a large bitmap of all your movieclips and use that as a material. Not 100% on this - just a suggestion... Glen

Re: [Flashcoders] AS3 Papervision Question

2009-04-30 Thread Omar Fouad
No one? On Sun, Apr 26, 2009 at 8:49 AM, Omar Fouad omarfouad@gmail.com wrote: So there is a way to apply multiple movieClips, or material to a sphere? On Sun, Apr 26, 2009 at 8:41 AM, Christoffer Enedahl christof...@enedahl.com wrote: That site is not using papervision, it's using

Re: [Flashcoders] AS3 Loader() stupidity

2009-04-26 Thread Omar Fouad
: [Flashcoders] AS3 Loader() stupidity Paul, try to localize your error. Pull this code out and put it in a separate swf and see if that is still happening. I'm assuming that your assetLoader is a class variable. Doesn't look like anything from here is an issue. You don't have a custom

[Flashcoders] AS3 - How do I apply a function to a dynamically generated movieClip?

2009-04-26 Thread Carl Welch
Hi Guys, I just realized I can't apply functions to MC's like I did with AS2. I am creating a bunch of movieclips from some data I get from an xml file. I wanted to create a rollover state for each of the mc's, nothing fancy. Would some kind soul give me a nudge in the right direction?

Re: [Flashcoders] AS3 - How do I apply a function to a dynamically generated movieClip?

2009-04-26 Thread Jer Brand
Try this: function f_rollon(evt:MouseEvent) { evt.currentTarget.BG_Clickon.alpha = .1; } Jer On Sun, Apr 26, 2009 at 4:10 AM, Carl Welch carlwelchdes...@gmail.comwrote: function f_rollon(evt:MouseEvent){ // Back in AS2, I would have used this instead of

Re: [Flashcoders] AS3 Loader() stupidity

2009-04-26 Thread Paul Andrews
flashcoders@chattyfig.figleaf.com Sent: Sunday, April 26, 2009 9:23 AM Subject: Re: [Flashcoders] AS3 Loader() stupidity Try to trace out what's in assets[i].assetPath inside the loop and see what is returning. i also suggest to create the loader variable inside the loop. for (var :uint = 0

[Flashcoders] AS3 Papervision Question

2009-04-25 Thread Omar Fouad
Hi all, I am wondering if I can create a 3D object in papervision, as a movieClip, and apply it as a material to a Sphere, like, for example some piramids placed on the Sphere. Another thing, If I would let each piramid on the sphere to have a specific click event, in this case I think that each

Re: [Flashcoders] AS3 Papervision Question

2009-04-25 Thread Christoffer Enedahl
That site is not using papervision, it's using prerendered clips, which is used celeverly with rotation. I havn't tried using a viewpoint as a material, but I think it should work, performance might be an issue though. /Christoffer Omar Fouad skrev: Hi all, I am wondering if I can create a

Re: [Flashcoders] AS3 Papervision Question

2009-04-25 Thread Omar Fouad
So there is a way to apply multiple movieClips, or material to a sphere? On Sun, Apr 26, 2009 at 8:41 AM, Christoffer Enedahl christof...@enedahl.com wrote: That site is not using papervision, it's using prerendered clips, which is used celeverly with rotation. I havn't tried using a

[Flashcoders] AS3 Loader() stupidity

2009-04-20 Thread Paul Andrews
I have: assetLoader =new Loader(); var urlreq:URLRequest = new URLRequest(assets[i].assetPath); assetLoader.load(urlreq); I get: TypeError: Error #1006: load is not a function. at runtime. I've seen some stuff about this to do with nested swfs, but can't quite figure out the circumstances

Re: [Flashcoders] AS3 Loader() stupidity

2009-04-20 Thread Gregory Boland
Paul, try to localize your error. Pull this code out and put it in a separate swf and see if that is still happening. I'm assuming that your assetLoader is a class variable. Doesn't look like anything from here is an issue. You don't have a custom Loader class that is interfering with the

Re: [Flashcoders] AS3 Loader() stupidity

2009-04-20 Thread Paul Andrews
- Original Message - From: Gregory Boland breakfastcof...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, April 20, 2009 4:36 PM Subject: Re: [Flashcoders] AS3 Loader() stupidity Paul, try to localize your error. Pull this code out and put

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-13 Thread Alexander Farber
That's a great response, thank you On Sun, Apr 12, 2009 at 10:14 PM, Juan Pablo Califano califa010.flashcod...@gmail.com wrote: The problem is that, while static initializer blocks look like their counterparts in Java, they have a little but important difference. Even though you use curly

[Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Alexander Farber
Hello, I have a static initializer in my class and it works ok: private static var BLACK:TextFormat = new TextFormat('Arial', 24, 0x00, true); private static var RED:TextFormat = new TextFormat('Arial', 24, 0xFF, true); // place 1 closer to 0 in the 10 string {

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Alexander Farber
On Sun, Apr 12, 2009 at 11:46 AM, Karl DeSaulniers k...@designdrumm.com wrote: //for (var i:uint = 0; i 10; i++) for (var i:int = 0; i 10; i++) Nope this doesn't change anything and also { var i:int; for (var i:int = 0; i 10; i++) trace(i); } won't work Regards

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Alexander Farber
Oops a typo: On Sun, Apr 12, 2009 at 11:58 AM, Alexander Farber alexander.far...@gmail.com wrote: Nope this doesn't change anything and also {      var i:int;      for (i = 0; i 10; i++)            trace(i); } won't work ___ Flashcoders

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Karl DeSaulniers
Maybe try just: { var i:int; for (i = 0; i 10; i++) trace(i); } no need to declare the var part twice on the same variable. Karl DeSaulniers Design Drumm http://designdrumm.com On Apr 12, 2009, at 4:58 AM, Alexander Farber wrote: On Sun, Apr 12, 2009 at 11:46 AM,

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Karl DeSaulniers
or dont delare the :int part and just put i=0 I'm just guessing now.. sry Karl DeSaulniers Design Drumm http://designdrumm.com On Apr 12, 2009, at 4:58 AM, Alexander Farber wrote: On Sun, Apr 12, 2009 at 11:46 AM, Karl DeSaulniers k...@designdrumm.com wrote: //for (var i:uint = 0; i 10;

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Karl DeSaulniers
I am not a AS3 coder, but shouldn't this part be like this? //for (var i:uint = 0; i 10; i++) for (var i:int = 0; i 10; i++) Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Juan Pablo Califano
The problem is that, while static initializer blocks look like their counterparts in Java, they have a little but important difference. Even though you use curly braces, you're not creating a new scope. In AS, scope is either class / global or local (to a function or method). So, you cannot

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Zeh Fernando
Many thanks for the in-depth reply, Juan. I learned something today. Zeh On Sun, Apr 12, 2009 at 5:14 PM, Juan Pablo Califano califa010.flashcod...@gmail.com wrote: The problem is that, while static initializer blocks look like their counterparts in Java, they have a little but important

Re: [Flashcoders] AS3: for-loop in a static initializer - Access of undefined property i

2009-04-12 Thread Juan Pablo Califano
No worries, Zeh. I'm glad it was of use. Cheers Juan Pablo Califano 2009/4/12 Zeh Fernando z...@zehfernando.com Many thanks for the in-depth reply, Juan. I learned something today. Zeh On Sun, Apr 12, 2009 at 5:14 PM, Juan Pablo Califano califa010.flashcod...@gmail.com wrote: The

[Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Alexander Farber
Hello, does anybody please have an idea, why would this code: private function handleComplete(event:Event):void { var urlvars:URLVariables = event.target.data; .. if (urlvars.bids != null urlvars.bids != 0) { trace(urlvars.bids); .

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Glen Pike
the null is maybe a string if it's from url variables. Alexander Farber wrote: Hello, does anybody please have an idea, why would this code: private function handleComplete(event:Event):void { var urlvars:URLVariables = event.target.data; .. if (urlvars.bids != null

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Ian Thomas
No, null==null in AS3. I suspect that your url variable bids contains the string null, sent from the server-side. HTH, Ian On Thu, Apr 9, 2009 at 2:13 PM, Alexander Farber alexander.far...@gmail.com wrote: Hello, does anybody please have an idea, why would this code: private function

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Muzak
List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 09, 2009 3:13 PM Subject: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids);still prints null? Hello, does anybody please have an idea, why would this code: private function handleComplete(event:Event):void { var

Re: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids); still prints null?

2009-04-09 Thread Romuald Quantin
!= urlvars.bids != 0) regards, Muzak - Original Message - From: Alexander Farber alexander.far...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thursday, April 09, 2009 3:13 PM Subject: [Flashcoders] AS3: if (urlvars.bids != null) trace(urlvars.bids);still prints

[Flashcoders] as3 rollover rolloff issue..

2009-04-02 Thread Preston Parris
So basically I have a bunch of thumbnail images set up in a grid form, each is the same movieclip just multiple instances of it. This movie clip has a rollover and rolloff state that basically scales the image up, this is done with external as that loops through and creates the event listeners for

Re: [Flashcoders] as3 rollover rolloff issue..

2009-04-02 Thread jonathan howe
Preston, There are two possible issues: 1. The scaled image is overlapping other scaled images and messing up your chain of events fired 2. The tween method you are using to scale is not being properly terminated and restarted/triggered. (How are you scaling the images?) I would start by

[Flashcoders] AS3: How to check if an URLVariables contains a field?

2009-03-31 Thread Alexander Farber
Hello, I have the following function called repeatedly: private function handleComplete(event:Event):void { var urlvars:URLVariables = event.target.data; . if (urlvars.lobby) { . } else if (urlvars.bids) {

RE: [Flashcoders] AS3 Object reference

2009-03-30 Thread TS
Sent: Saturday, March 28, 2009 7:50 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Object reference There's no _width in AS3.. it's width. Array access notation should work fine: photoStrip_mc[thumbnail + i + _mc].width; As a sidenote, you're better off storing references in an array

Re: [Flashcoders] AS3 Object reference

2009-03-30 Thread Taka Kojima
- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Muzak Sent: Saturday, March 28, 2009 7:50 PM To: Flash Coders List Subject: Re: [Flashcoders] AS3 Object reference There's no _width in AS3.. it's width. Array access notation

[Flashcoders] AS3 - have a problem parsing my data from JSON

2009-03-30 Thread Carl Welch
Hi, I'm having a difficult time pulling data out of some JSON I'm currently working with. The following script is something that I found online using Adobe's corelib to parse the JSON, but the sample JSON the guy used was really basic. The one I'm working with has a few levels. For

[Flashcoders] AS3 Object reference

2009-03-28 Thread TS
Trying to cylec through some objects. This doesn't seem to work in AS3 as it does in AS2. Is there an equivalent in AS3? photoStrip_mc[thumbnail + i + _mc]._width Thanks ahead, T ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] AS3 Object reference

2009-03-28 Thread Paul Andrews
Apart from anything else, AS3 MovieClips don't have a _width property - it's now width. Paul - Original Message - From: TS sunnrun...@gmail.com To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com Sent: Sunday, March 29, 2009 2:09 AM Subject: [Flashcoders] AS3 Object reference

Re: [Flashcoders] AS3 Object reference

2009-03-28 Thread Karl DeSaulniers
I am not at my computer, so that is just a guess. :) Sent from losPhone On Mar 28, 2009, at 8:09 PM, TS sunnrun...@gmail.com wrote: Trying to cylec through some objects. This doesn't seem to work in AS3 as it does in AS2. Is there an equivalent in AS3? photoStrip_mc[thumbnail + i +

Re: [Flashcoders] AS3 Object reference

2009-03-28 Thread Karl DeSaulniers
Try this: photoStrip_mc[thumbnail + I]_mc._width Sent from losPhone On Mar 28, 2009, at 8:09 PM, TS sunnrun...@gmail.com wrote: Trying to cylec through some objects. This doesn't seem to work in AS3 as it does in AS2. Is there an equivalent in AS3? photoStrip_mc[thumbnail + i +

Re: [Flashcoders] AS3 Object reference

2009-03-28 Thread Karl DeSaulniers
Or you could try photoStrip_mc.thumbnail[I]_mc._width Sent from losPhone On Mar 28, 2009, at 8:09 PM, TS sunnrun...@gmail.com wrote: Trying to cylec through some objects. This doesn't seem to work in AS3 as it does in AS2. Is there an equivalent in AS3? photoStrip_mc[thumbnail + i +

Re: [Flashcoders] AS3 Object reference

2009-03-28 Thread Muzak
; } regards, Muzak - Original Message - From: TS sunnrun...@gmail.com To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com Sent: Sunday, March 29, 2009 3:09 AM Subject: [Flashcoders] AS3 Object reference Trying to cylec through some objects. This doesn't seem to work in AS3 as it does

Re: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-25 Thread Anthony Pace
I might not have looked at them in while; yet, I think I know what you are talking about. One of them reminded me of this weired thing I saw in the bathroom once, and I figure just dragging a gradient through an outer circular membrane would have a great looking movement effect; yet, I really

[Flashcoders] AS3, player 9, security problem, flash AS3 project

2009-03-25 Thread Pavel Krusek
Hi, i have main.swf file, into it it is loading another swf with additional items (png, xml,..). The another swf is loaded but not external images, xml etc. Flash output says that there is security / sandbox violation problem. Does anybody has any idea? thanks *** Security Sandbox Violation ***

Re: [Flashcoders] AS3, player 9, security problem, flash AS3 project

2009-03-25 Thread Dave Watts
i have main.swf file, into it it is loading another swf with additional items (png, xml,..). The another swf is loaded but not external images, xml etc. Flash output says that there is security / sandbox violation problem. Does anybody has any idea? thanks *** Security Sandbox Violation

Re: [Flashcoders] AS3, player 9, security problem, flash AS3 project

2009-03-25 Thread Taka Kojima
http://www.adobe.com/devnet/flash/articles/fplayer8_security_07.html In order to enable local-with-filesystem, you have to add a System.security.allowDomain(*) -- although since you are running the swf on a local webserver (i.e. localhost or 127.0.0.1), I don't think it treats it as a local swf,

RE: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-24 Thread Cor
@Matt Thank you!! Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Muller Sent: maandag 23 maart 2009 22:15 To: Flash Coders List Subject: Re: [Flashcoders] AS3 examples of amoeba or microbes

[Flashcoders] AS3 - Help me remove the previous image

2009-03-24 Thread zurie
http://rafb.net/p/NZxD3554.html [1] my code is pasted above for easy reading. In AS3 I am trying to remove the previous image. In AS2 I could type my_mc.unloadMovie(); but in AS3 I ned to refrence the child? I am not 100% sure as to what to do. I tried to write a way for it to find the

Re: [Flashcoders] AS3 - Help me remove the previous image

2009-03-24 Thread Matt S.
If your image holder MC only has images in it, you can do this, BEFORE you load the next image: //remove all loaded images from img while(img.numChildren 0){ var killIMG = img.getChildAt(0); img.removeChild(killIMG); killIMG = null; } I'm sure someone else will

Re: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-23 Thread Alan Shaw
Check this out: http://www.nicoptere.net/blog/index.php/2008/10/13/51-bacteria-generator-actionscript-flash On Sun, Mar 22, 2009 at 11:11 PM, Anthony Pace anthony.p...@utoronto.ca wrote: I am looking for some really good examples of amoeba or microbe simulations done in as3 I know that it is

Re: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-23 Thread jonathan howe
This may sound a little kooky but if you have access to a copy of Resident Evil 5, you might want to check out the game setup menu screens for inspiration. At each level of the menu, they have different cells... one trick that they do is tween the blur of an item so it looks like it's moving

Re: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-23 Thread Matt Muller
you might find something useful here http://www.liquidjourney.com/ there is source. MaTT On Mon, Mar 23, 2009 at 3:19 PM, Alan Shaw noden...@gmail.com wrote: Check this out: http://www.nicoptere.net/blog/index.php/2008/10/13/51-bacteria-generator-actionscript-flash On Sun, Mar 22, 2009

RE: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-23 Thread Cor
Source??? Where exactly?? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Muller Sent: maandag 23 maart 2009 18:10 To: Flash Coders List Subject: Re: [Flashcoders] AS3 examples of amoeba or microbes

Re: [Flashcoders] AS3 examples of amoeba or microbes

2009-03-23 Thread Matt Muller
??? Where exactly?? -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt Muller Sent: maandag 23 maart 2009 18:10 To: Flash Coders List Subject: Re: [Flashcoders] AS3 examples of amoeba or microbes you might

[Flashcoders] AS3 examples of amoeba or microbes

2009-03-22 Thread Anthony Pace
I am looking for some really good examples of amoeba or microbe simulations done in as3 I know that it is probably just done using beziers; yet, I am also wondering what the best way would be to connect hair feelers to the edges, so if the microbe changes shape the hairs move accordingly.

[Flashcoders] AS3 Image Cropper

2009-03-20 Thread Taka Kojima
Hey Everybody, I just finished putting together an image cropper in AS3. http://www.gigafied.com/dev/cropper/ Wanted to get some peer-developer feedback and if you have any suggestions on improving it, notice anything wrong, etc. The window is scalable, i.e. you can resize the window and the

Re: [Flashcoders] AS3: Troubles styling the List

2009-03-15 Thread Glen Pike
Hi, Have a look at this tutorial - it applies to lists too. http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/ Glen Alexander Farber wrote: Hello, I'm trying to change the font size in a fl.controls.List: private static const SMALL:TextFormat = new

[Flashcoders] AS3: Troubles styling the List

2009-03-14 Thread Alexander Farber
Hello, I'm trying to change the font size in a fl.controls.List: private static const SMALL:TextFormat = new TextFormat('Arial', 18, 0x00); list = new List(); list.setStyle('textFormat', SMALL); but the size of the font in the List doesn't seem to change. Has

[Flashcoders] [as3] gotoAndStop() causes sub-clips to be delayed by 1 frame

2009-03-12 Thread Olivier Besson
Hi all, just for info: https://bugs.adobe.com/jira/browse/FP-1719 -- Olivier Besson (gludion) - (33 1) 44 64 78 99 http://www.gludion.com http://blog.gludion.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] AS3 - XML Filter by Date

2009-03-10 Thread Doug Coning
: [Flashcoders] AS3 - XML Filter by Date You can filter XML with arbitrary boolean functions, so the answer is definitely yes. See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880 One of the examples there shows XML stored in var x with a list of employee id=23/ type elements

[Flashcoders] AS3 - XML Filter by Date

2009-03-09 Thread Doug Coning
Greetings everyone, In AS3, can you filter xml by a date value or range? Thanks, Doug Coning ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] AS3 - XML Filter by Date

2009-03-09 Thread Eric E. Dolecki
I suppose if the XML has that kind of data in it you could. On Mon, Mar 9, 2009 at 12:02 PM, Doug Coning dcon...@webize.com wrote: Greetings everyone, In AS3, can you filter xml by a date value or range? Thanks, Doug Coning ___ Flashcoders

Re: [Flashcoders] AS3 - XML Filter by Date

2009-03-09 Thread David Hershberger
You can filter XML with arbitrary boolean functions, so the answer is definitely yes. See http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_08.html#131880 One of the examples there shows XML stored in var x with a list of employee id=23/ type elements, and you can use this syntax to get

[Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Joel Stransky
I've finally run into a situation where I really need the same font both embeded and used statically. I've been searching the web and there a lots of mentions of the bug but I've yet to find a great work around. Does anyone have a preferred or elegant fix they can recommend? -- --Joel Stransky

Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Taka Kojima
what's the exact bug, because I just created two text fields, one with static text, the other dynamic. I embedded the font in the dynamic text field and it worked... On Wed, Mar 4, 2009 at 11:16 AM, Joel Stransky j...@stranskydesign.com wrote: I've finally run into a situation where I really

Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Joel Stransky
Sorry I meant exported fonts that are in turn applied to a dynamic textField whose embedFonts property is set to true. On Wed, Mar 4, 2009 at 2:41 PM, Taka Kojima t...@gigafied.com wrote: what's the exact bug, because I just created two text fields, one with static text, the other dynamic. I

Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Taka Kojima
ahh... I would use a tool like TypeTool to create a new version of the font, use one for static and one for embedding... However, why not just set your static textFields to dynamic... You can use the font in your library by setting the font to exportName* - Taka On Wed, Mar 4, 2009 at 12:02

Re: [Flashcoders] [AS3] Dynamic and Static text field font conflict work arounds

2009-03-04 Thread Joel Stransky
I considered the alternative font option too but new software is not in the projects budget. The font is not exported into the .swf that needs it. I'm using a fonts.swf as a global library. I don't want to create a textFormat for each static field so setting them to dynamic is not an option. What

Re: [Flashcoders] AS3 - Checking if root swf has completely loaded before executing script - Help?

2009-02-23 Thread Glen Pike
Carl Welch wrote: Hi Guys. I need to make sure that my swf has completely loaded in the page before I execute a particular script. Any suggestions on how to go about this? Point me in the direction... please? Thanks Cheers! Hi, If you mean calling JavaScript, could you call this

[Flashcoders] AS3 - Checking if root swf has completely loaded before executing script - Help?

2009-02-22 Thread Carl Welch
Hi Guys. I need to make sure that my swf has completely loaded in the page before I execute a particular script. Any suggestions on how to go about this? Point me in the direction... please? Thanks Cheers! -- Carl Welch ___ Flashcoders

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Glen Pike
Hi, I did not use AIR because I was doing a DVD / CDROM project and projector works out of the box. Without lots of reading and extra work, I could not have got AIR working and I am not sure it could autorun standalone off a CDROM. If it can, the documentation / marketing needs to be a

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Glen Pike
That's what I thought - projector runs, AIR requires installing. I don't want that possible barrier to use - why should I have to install something to run a CDROM??? Ian Thomas wrote: It can autorun off a CD-ROM, but not standalone - you can package your app with the AIR installer, but the

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Ian Thomas
It can autorun off a CD-ROM, but not standalone - you can package your app with the AIR installer, but the AIR app (and your app) will install themselves on your user's computer. Ian On Tue, Feb 17, 2009 at 9:33 AM, Glen Pike g...@engineeredarts.co.uk wrote: Hi, I did not use AIR because I

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Ian Thomas
Yup - makes sense to me. :-) Projectors are there for a reason. :-) Ian On Tue, Feb 17, 2009 at 9:47 AM, Glen Pike g...@engineeredarts.co.uk wrote: That's what I thought - projector runs, AIR requires installing. I don't want that possible barrier to use - why should I have to install

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-17 Thread Nate Beck
Ah, now it makes sense, I was just unable to figure out where you would use a projector in place of an AIR app now-a-days. But that makes total sense. On Tue, Feb 17, 2009 at 2:00 AM, Ian Thomas i...@eirias.net wrote: Yup - makes sense to me. :-) Projectors are there for a reason. :-) Ian

[Flashcoders] AS3 NetStream onPlayStatus and IOError

2009-02-17 Thread Juan Delgado
Hi there, Just doing some tests loading flv dynamically and there's something I don't quite get. From the reference: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html#play() If the video file can't be found, the netStatus event is dispatched Indeed the

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread jonathan howe
Glen, thanks for the response. As an interesting (?) complication to this matter, I recently installed the new versions of the players to CS3 Professional IDE: http://kb.adobe.com/selfservice/viewContent.do?externalId=b62ce659sliceId=2 Before I updated, the stage.displayState =

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Glen Pike
Hi, Will check later, but I don't think I ever upgraded the IDE. I am also not running Vista yet - testing in WinXP... Glen jonathan howe wrote: Glen, thanks for the response. As an interesting (?) complication to this matter, I recently installed the new versions of the players to

RE: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Cor
To: Flash Coders List Subject: Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors Hi, Will check later, but I don't think I ever upgraded the IDE. I am also not running Vista yet - testing in WinXP... Glen jonathan howe wrote: Glen, thanks for the response

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Glen Pike
My IDE published to 9.0.45.0 for that projector. HTH Glen jonathan howe wrote: Glen, thanks for the response. As an interesting (?) complication to this matter, I recently installed the new versions of the players to CS3 Professional IDE:

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread jonathan howe
Well, it doesn't disprove my theory - that is the packaged version prior to the security patch. The version of projectors that my IDE now creates is 9.0.151.0 So, the mystery remains. Anyone with the unpatched version: Test your fullscreen projectors in Vista. Anyone with the patched version:

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Glen Pike
Hi, I don't think that updating the FP updates the IDE one normally - I have never worked out how to do this, even with Kewbee's Plugin Switcher. Not wishing to sound too cynical, but if everyone upgrades their FP so easily, then content creators will have to keep up and they are the

Re: [Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-16 Thread Nate Beck
Just out of curiosity... Why are you deploying your application as a stand-alone projector when you could deploy it as an Adobe AIR application? On Mon, Feb 16, 2009 at 2:03 PM, Glen Pike postmas...@glenpike.co.ukwrote: Hi, I don't think that updating the FP updates the IDE one normally - I

[Flashcoders] AS3 - getDefinitionByName and external swfs

2009-02-15 Thread jonathan howe
Hello, I have some classes with a lot of code that I may or may not need depending on the situation. These classes all extend a superclass that I refer to in my main application. My ideal would be to define subclasses only in external swfs, load the swfs and then instantiate the classes via a

Re: [Flashcoders] AS3 - getDefinitionByName and external swfs

2009-02-15 Thread Ian Thomas
It definitely works (to do as you describe). I think you need to take a good look at the ApplicationDomain class - make sure that the loaded SWF is in the same application domain as your loading SWF, and it should all be fine. Alternatively, you can specifically query the child's

Re: [Flashcoders] AS3 - getDefinitionByName and external swfs

2009-02-15 Thread jonathan howe
Cool, thanks Ian, I had assumed that the currentDomain would be the default (or at least the related behavior). I read this from the documentation: By putting the loaded SWF file in the same application domain, you can access its classes directly. This can be useful if you are loading a SWF file

[Flashcoders] AS3 Fullscreen mode w/ Windows Projectors

2009-02-15 Thread jonathan howe
Hello, According to docs Full-screen mode is always permitted in the stand-alone player or in a projector file. Yet I get a SecurityError: Error #2152 when I call stage.displayState = StageDisplayState.FULL_SCREEN; from a projector. But I don't get it when I use the old fscommand method of going

[Flashcoders] AS3 - Font Haxe compilation

2009-02-02 Thread Juan José Díaz
Hello , I'm having some troubles creating a swf with fonts embedded. first I create a swf from swmill with the font and works perfect (resource.swf) then compile another swf from haxe with resources included inside, and thats also fine. but when i test my swf to see my fonts , doesn't exists. if i

[Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
*height not right* -- Create two .fla's called SizeParent.fla and SizeChild.fla. In SizeChild draw a square of 20x20 and set it's y to 10. Publish SizeChild.swf and place this code on frame 1 in SizeParent Code: import flash.display.*; import flash.events.*; import

Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Matt Gitchell
It measures the height of the actual content. You'd have to have something onstage at (0,0) for it to start measuring there. If you need it, write something that retrieves the Y value of the item plus the item's height, where item is the DisplayObject in the loaded SWF. var

Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
Thanks Matt, I understand I can work out the height manually but I'm trying to write a function into the main stage that can read the height of any child swf. The names and locations may vary so its not that attractive of a solution. There has to be some way of reading the bounds. Like in as2, if

Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Matt Gitchell
I dunno, man, I don't remember what that returned in AS2 (it's been a couple years since I used it), but I would seriously get annoyed if AS3 returned a height based on a non-existent piece of content. Right now, it sniffs out the bounds of the displayobject then returns the height of that

Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
Well I think I have something to work with. I found that I can just getBounds() on the element in question and add the returned Rectangles .y to its .height. I'd like a simple height prop somewhere but this will work. Now to go post in the other two places I asked this question :) On Sun, Jan 25,

Re: [Flashcoders] [AS3] height not right

2009-01-25 Thread Joel Stransky
It's not a I don't like change argument. It's a why remove logically intuitive features without a replacement? one. AS3 is great, but it's not fool proof. On Sun, Jan 25, 2009 at 2:34 PM, Matt Gitchell m...@moonbootmedia.comwrote: I dunno, man, I don't remember what that returned in AS2 (it's

[Flashcoders] AS3: accessing loaderInfo.parameters.XXX from non-document class

2009-01-21 Thread Alexander Farber
Hello flash coders, in my document class I check loaderInfo.parameters.debug: public class MyGame extends Sprite { public static const DEBUG:Boolean = loaderInfo.parameters.debug; public static const SERVER:String = DEBUG ? 'http://192.168.111.43' : 'http://preferans.de';

Re: [Flashcoders] AS3: accessing loaderInfo.parameters.XXX from non-document class

2009-01-21 Thread Glen Pike
Hi, I think you can use this.stage.loaderInfo, but your Sprite needs to be on stage before you can use the stage parameter. For example: private function _addedToStageHandler(event:Event):void { trace(BackgroundAudio::_addedToStageHandler + this.stage.loaderInfo.url);

Re: [Flashcoders] AS3: accessing loaderInfo.parameters.XXX from non-document class

2009-01-21 Thread Alexander Farber
Hello Glen Ok, it needs to be on stage first - that's why it was null in my tests I still wonder if it's possible to set DEBUG once as _static_ var or const? Regards Alex On Wed, Jan 21, 2009 at 9:13 PM, Glen Pike postmas...@glenpike.co.uk wrote: I think you can use this.stage.loaderInfo,

[Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Alexander Farber
Dear flash coders, I'm struggling since a week already with several elements in my application not acting as I want them to do. And they all could be reduced to a rectangle button which has a TextField on top of it and which should lighten up on a mouse over and scale down on a mouse down event.

RE: [Flashcoders] AS3: Custom button with text label not working perfectly

2009-01-17 Thread Cor
Alexander, I set MyButton.mouseChildren= false; Kind regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

<    1   2   3   4   5   6   7   8   9   10   >