Re: [Flashcoders] Listeners (was no subject)

2010-07-28 Thread John Singleton
Hi all; I hesitated to introduce new questions to this list concerning my matter in this same thread since it has taken such interesting turns into quarks and bosons and what not, but then I thought it best if anyone were to google it to be continuous. I am in the process of joining

Re: [Flashcoders] Listeners (was no subject)

2010-07-27 Thread John Singleton
it is? Didn't notice that Moock addressed those questions, so I thought I'd ask here. Would you be so kind as to address those questions, not how to pass arguments? TIA, John Taka On Mon, Jul 26, 2010 at 10:58 AM, John Singleton johnsingleton...@yahoo.com wrote: Original

Re: [Flashcoders] Listeners (was no subject)

2010-07-27 Thread John Singleton
- Original Message From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, July 27, 2010 8:23:16 AM Subject: RE: [Flashcoders] Listeners (was no subject) You'll want to learn how to create custom events and pass data

[Flashcoders] 1046 Error

2010-07-26 Thread John Singleton
Hi; I have this code which works elsewhere: public class Main extends MovieClip { var parent_container:Sprite = new Sprite(); private var displayGearsCounter:int = 0; var gearsPaths:Array = new Array(images/watch/watch-movements/back-center.png,

Re: [Flashcoders] 1046 Error

2010-07-26 Thread John Singleton
- Original Message From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, July 26, 2010 9:58:08 AM Subject: RE: [Flashcoders] 1046 Error Where is your import flash.events.Event; statement? Ah. Oops. Thanks. John

[Flashcoders] (no subject)

2010-07-26 Thread John Singleton
Hi; I have this code: function InitRotateGears() { for (var i = 0; i gearsPaths.length; i++) { RotateGears(); displayGearsCounter += 1; } function RotateGears() { var path:String =

Re: [Flashcoders] Listeners (was no subject)

2010-07-26 Thread John Singleton
Original Message From: Henrik Andersson he...@henke37.cjb.net To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, July 26, 2010 12:06:55 PM Subject: Re: [Flashcoders] (no subject) John Singleton wrote: function RotateGearsLoaded(e:Event):void Why

[Flashcoders] Function Doesn't Increment Properly

2010-06-18 Thread John Singleton
Hi; The following script fully increments the value of i every time it calls _addNewFlame. I would have thought (and need) that the value of i would be incremented with each call. Please advise. TIA, John package { import flash.display.MovieClip; import flash.utils.setInterval;

Re: [Flashcoders] Function Doesn't Increment Properly

2010-06-18 Thread John Singleton
First, a word of thanks to Glen Pike. That was slick, numChildren! Second, I like Michael Mendelsohn's idea, however, for what event am I listening? package { import flash.display.MovieClip; import flash.utils.setInterval; import flash.utils.clearInterval; import

Re: [Flashcoders] Function Doesn't Increment Properly

2010-06-18 Thread John Singleton
- Original Message From: Glen Pike g...@engineeredarts.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Fri, June 18, 2010 11:25:24 AM Subject: Re: [Flashcoders] Function Doesn't Increment Properly t.start() ? Oh :-} Yeah, that worked. Merrill thought I was

[Flashcoders] Balls Of Fire

2010-06-18 Thread John Singleton
Hi; Here's code that I found online: package { import flash.display.MovieClip; import flash.utils.setInterval; import flash.utils.clearInterval; public class Fire extends MovieClip { private var mcFlameContainer:MovieClip; private var

[Flashcoders] Time To Notify Adobe Of a Bug? Please Comment...

2010-05-29 Thread John Singleton
Hi; I sent the following email to this list a couple days ago and nobody commented, which makes me think that nobody saw a problem/solution, which makes me think that Adobe's latest Flash CS5 has a bug. So, please consider reviewing the below and, if necessary, informing me how to inform Adobe

Re: [Flashcoders] Funny, Code Worked Before...

2010-05-28 Thread John Singleton
Ok, I've nailed down where the problem is as to why my silly little *.as file that worked so well before won't work with minor changes in my latest *.as file. The problem appears to be that Flash freaks out over different image files! Here's the code, simplified: package { import

[Flashcoders] Funny, Code Worked Before...

2010-05-27 Thread John Singleton
Hi; I have this code: function completePreloader() { navigateToURL(new URLRequest('index.py')); trace('yep'); } that is triggered after all the assets have loaded in the preloader. It prints the trace. But it doesn't surf to the URL. It just sits

[Flashcoders] Funny, Code Worked Before...

2010-05-27 Thread John Singleton
From: John Singleton johnsingleton...@yahoo.com To: Deepanjan Das deepanjan@gmail.com Sent: Thu, May 27, 2010 1:03:10 PM Subject: Re: [Flashcoders] Funny, Code Worked Before... From: Deepanjan Das href=mailto:deepanjan@gmail.com;deepanjan@gmail.com To: John Singleton href

Re: [Flashcoders] Flashing Flash

2010-05-20 Thread John Singleton
- Original Message From: Keith Reinfeld keithreinf...@comcast.net To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wed, May 19, 2010 1:53:06 PM Subject: RE: [Flashcoders] Flashing Flash Don't remove container_middle at all. Instead add/remove its children:

[Flashcoders] Flashing Flash

2010-05-19 Thread John Singleton
Hi; I have this code: big_container.removeChild(container_middle); big_container.removeChild(container_middle2); container_middle = new Sprite(); big_container.addChild(container_middle) It loops and is called in each iteration

[Flashcoders] Changing Values Programmatically

2010-05-15 Thread John Singleton
Full View Hi; I have the following code. When it runs through BigContainer the second time, for some reason my containers disappear and nothing shows on the screen. This happens even if I take out my removeChild statements, and that's what's got me puzzled. Ideas? var

Re: [Flashcoders] Event Listeners

2010-05-14 Thread John Singleton
- Original Message From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, May 13, 2010 2:56:28 PM Subject: RE: [Flashcoders] Event Listeners OK, then you're AllDone(). :) LOL! John

[Flashcoders] Changing Containers

2010-05-14 Thread John Singleton
Hi; I have this: big_container.removeChild(container_middle); container_middle = container_middle2; big_container.addChild(container_middle); I'm trying to change container_middle to container_middle2 but keep the same name so that I can

Re: [Flashcoders] Changing Containers

2010-05-14 Thread John Singleton
This appears to be more complex than I originally anticipated. Here is more complete code: var start_flag:Boolean = true; var start_flag2:Boolean = true; function BigContainer() { if(start_flag == false) { start_flag2 =

[Flashcoders] Reusing a Mask

2010-05-13 Thread John Singleton
Hi; Possible? How? Here's the mask I'd like to reuse. I can obviously pull it out and put it in the general function for the class so it is available for all other functions, but that ain't good enough: var square:Sprite = new Sprite(); addChild(square);

[Flashcoders] Re: Reusing a Mask

2010-05-13 Thread John Singleton
Oops. Just realized could make a master container and just apply the mask to that :-} John ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] Event Listeners

2010-05-13 Thread John Singleton
Hi; I struggle with event listeners and knowing to what objects to attach them. I have the following code: function SpinMiddle() { big_container.addChild(container_middle2) var path:String = images/mid + j + .png; var req:URLRequest = new

Re: [Flashcoders] Event Listeners

2010-05-13 Thread John Singleton
-boun...@chattyfig.figleaf.com;flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of John Singleton Sent: Thursday, May 13, 2010 2:06 PM To: ymailto=mailto:flashcoders@chattyfig.figleaf.com; href=mailto:flashcoders@chattyfig.figleaf.com;flashcoders@chattyfig.figleaf.com Subject: [Flashcoders

Re: [Flashcoders] IE6 Troubles

2010-05-07 Thread John Singleton
- Original Message From: Hans Wichman j.c.wich...@objectpainters.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, May 4, 2010 1:36:41 PM Subject: Re: [Flashcoders] IE6 Troubles Hi, you might wanna try something like

Re: [Flashcoders] XML Question

2010-05-07 Thread John Singleton
- Original Message From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, May 6, 2010 11:08:04 AM Subject: RE: [Flashcoders] XML Question Jason Merrill says he sent an earlier reply concerning my question about

[Flashcoders] LoaderInfo(root.loaderInfo).parameters question

2010-05-07 Thread John Singleton
Hi; I have the following code: var paramObj:Object = LoaderInfo(root.loaderInfo).parameters; var myFlashVar:String = new String(); public function DeltaMain() { for (varName in paramObj) { myFlashVar =

Re: [Flashcoders] LoaderInfo(root.loaderInfo).parameters question

2010-05-07 Thread John Singleton
Never mind. I figured this out. I didn't include all the necessary code in my html. John - Original Message From: John Singleton johnsingleton...@yahoo.com To: flashcoders@chattyfig.figleaf.com Sent: Fri, May 7, 2010 11:30:08 AM Subject: [Flashcoders] LoaderInfo(root.loaderInfo

Re: [Flashcoders] XML Question

2010-05-06 Thread John Singleton
Jason Merrill says he sent an earlier reply concerning my question about how to write my switch statement. No, I don't recall seeing it. I just resurrected it with Google, and thank you! This works: pageDetails = xmlData.PAGE.(@pg_name == contact).DETAILS.text(); Meanwhile,

Re: [Flashcoders] XML Question

2010-05-06 Thread John Singleton
Whoops. Now I have this in my XML: DETAILSh3Senior Citizen Discount/h3 bDelta Electric and Construction Co., Inc./b finds its pricing to be fair and reasonable. Their prices are competitive and based on the local market rates. Delta Electric offers a 10% discount to Senior Citizens living

Re: [Flashcoders] XML Question

2010-05-06 Thread John Singleton
- Original Message From: kennethkawam...@gmail.com kennethkawam...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, May 6, 2010 9:08:22 AM Subject: Re: [Flashcoders] XML Question Wrap your text with XML character data, i.e. DETAILS![CDATA[h3Senior

[Flashcoders] XML Question

2010-05-05 Thread John Singleton
Hi; I have this in an external xml file: PAGE pg_name='index' DETAILSThis is some more of the home page./DETAILS /PAGE My objective is to use a switch statement like this: switch (xmlda...@page_name.tostring()) { case index:

Re: [Flashcoders] XML Question

2010-05-05 Thread John Singleton
- Original Message From: allandt bik-elliott (thefieldcomic.com) alla...@gmail.com i'd also recommend having a root node and an xml type declaration at the start Right. Ok, here's my revised code: ?xml version=1.0? SITE PAGE pg_name='index' DETAILSThis is some more of the

Re: [Flashcoders] XML Question

2010-05-05 Thread John Singleton
, John Singleton href=mailto:johnsingleton...@yahoo.com;johnsingleton...@yahoo.comwrote: - Original Message From: allandt bik-elliott ( target=_blank href=http://thefieldcomic.com;thefieldcomic.com) ymailto=mailto:alla...@gmail.com; href=mailto:alla...@gmail.com;alla

Re: [Flashcoders] XML Question

2010-05-05 Thread John Singleton
at 11:12 AM, John Singleton ymailto=mailto:johnsingleton...@yahoo.com; href=mailto:johnsingleton...@yahoo.com;johnsingleton...@yahoo.comwrote: - Original Message From: allandt bik-elliott ( href=http://thefieldcomic.com;thefieldcomic.com) ymailto=mailto:alla...@gmail.com

Re: [Flashcoders] XML Question

2010-05-05 Thread John Singleton
- Original Message From: kennethkawam...@gmail.com kennethkawam...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Wed, May 5, 2010 12:48:28 PM Subject: Re: [Flashcoders] XML Question Say for example you are in the home section and obtaining the data for

Re: [Flashcoders] Template w/ XML?

2010-05-04 Thread John Singleton
- Original Message From: Jared jared.stan...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Fri, April 30, 2010 6:16:37 PM Subject: Re: [Flashcoders] Template w/ XML? Try root.loaderinfo.parameters.varname That got me on the right track. I have one

Re: [Flashcoders] Template w/ XML?

2010-05-04 Thread John Singleton
- Original Message From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, May 4, 2010 10:27:57 AM Subject: RE: [Flashcoders] Template w/ XML? You're setting the text in the text field before the handler

[Flashcoders] IE6 Troubles

2010-05-04 Thread John Singleton
Hi; I have one site in particular that has problems with IE6. I can't see them from my Mac. I've tried installing s/w that simulates IE6 without luck. I don't know where to go to look at the problem so I can troubleshoot it. My client's computers that have IE6 are a couple thousand miles away.

[Flashcoders] Template w/ XML?

2010-04-30 Thread John Singleton
Hi; I've built a template for a Web site that I'd like to use for all pages, but be able to change the content of each page. Now, if I were programming in, say, PHP, I could write a script that could determine which page is being called and then from there call data pertinent only to that page

Re: [Flashcoders] Template w/ XML?

2010-04-30 Thread John Singleton
- Original Message From: allandt bik-elliott (thefieldcomic.com) alla...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Fri, April 30, 2010 10:36:24 AM Subject: Re: [Flashcoders] Template w/ XML? hi john xml is the de-facto way of externalising data

[Flashcoders] Infinitely Looping Image

2010-04-26 Thread John Singleton
Hi; I would like to have a background image of clouds loop infinitely.Here's my code: function BigPic():void { parent_container2 = new MovieClip(); var square:Sprite = new Sprite(); parent_container2.mask = square;

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread John Singleton
From: jonathan howe jonathangh...@gmail.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, April 26, 2010 10:17:10 AM Subject: Re: [Flashcoders] Infinitely Looping Image snip Hi, John, The first reference to cloudTween I see is here:

Re: [Flashcoders] Infinitely Looping Image

2010-04-26 Thread John Singleton
- Original Message From: Jack Doyle j...@greensock.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, April 26, 2010 12:36:45 PM Subject: RE: [Flashcoders] Infinitely Looping Image You're mixing Tween and TweenLite code. You've got an event listener set up

[Flashcoders] container w/ text

2010-04-16 Thread John Singleton
Hi; I have this code: function Text() { parent_container5 = new Sprite(); addChild(parent_container5); //parent_container5.width = stage.stageWidth/2; //parent_container5.height = stage.stageWidth/4; parent_container5.x

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-11 Thread John Singleton
From: Valentin Schmidt v...@dasdeck.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, March 9, 2010 3:28:52 PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online quote first, your emails are a bit hard to read, I'd suggest to quote correctly (see e.g.

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-11 Thread John Singleton
From: Glen Pike g...@engineeredarts.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, March 11, 2010 10:45:38 AM Subject: Re: [Flashcoders] Re: swf doesn't work the same online Let's see if my changes to Yahoo options translate this to plain text now ;) quote I am

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-09 Thread John Singleton
From: Glen Pike postmas...@glenpike.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, March 8, 2010 3:04:47 PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online var nNavs:Array = new Array(); for(var i:int = 0; i numLinks;i++) { var nav:Sprite =

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-09 Thread John Singleton
From: Glen Pike g...@engineeredarts.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, March 9, 2010 12:22:03 PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online Hi, You need to make your nav function return the sprite it creates, so change the signature

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-09 Thread John Singleton
John Singleton wrote: From: Glen Pike g...@engineeredarts.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, March 9, 2010 12:22:03 PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online Hi, You need to make your nav function return the sprite it creates

[Flashcoders] swf doesn't work the same online

2010-03-08 Thread John Singleton
Hi; I built a swf that works the way I want it in Flash, but when I upload it, it acts differently! I built buttons in as3 like this: function nav(nname:String, nurl:String, myX:int, bgcolor:uint):void { myfont2 = 'Arial'; mydize = 15; mytxtcolor =

Re: [Flashcoders] swf doesn't work the same online

2010-03-08 Thread John Singleton
From: Valentin Schmidt v...@dasdeck.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, March 8, 2010 1:48:18 PM Subject: Re: [Flashcoders] swf doesn't work the same online Hi; I built a swf that works the way I want it in Flash, but when

[Flashcoders] Re: swf doesn't work the same online

2010-03-08 Thread John Singleton
Here's the complete code. Again, all this works fine in my swf in Flash, but when I upload the swf it breaks when I roll over Home. The color changes and won't change back when I roll out. No other nav widget works at all. function nav(nname:String, nurl:String, myX:int, bgcolor:uint):void