[Flashcoders] Re:AS3 thousand child objects in a container

2010-03-11 Thread Wenzler, Thomas
is this helpful for you?

protected function onMouseMove(e:MouseEvent):void
{
var pt:Point = new Point(mouseX, mouseY);
var objects:Array =
this.getObjectsUnderPoint(pt); 
if (objects.length > 0)
{
for (var items in objects) 
{ 
trace(objects[items].name); 
} 
}
}

Hopefully...
Best 
Thomas

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Wed, Mar 10, 2010 at 7:07 PM, Kenneth Kawamoto  wrote:

> If I understand you correctly you want to trace "index.html"?
>
> One funky way is...
>
> trace(new XML("Home")@href);
> // traces "index.html"
>
> ...therefore if your e.currentTarget.getChildAt(0).htmlText is giving you
> "Home" you can do:
>
> trace(new XML(e.currentTarget.getChildAt(0).htmlText)@href);
>

I don't know where the heck that took me, something about "go to this
address here" or some such in the address bar of the browser lol. Yeah,
pretty out there and crazy. Definitely not elegant, but you knew that, too.

Karl DeSaulniers asks if I can give the Sprite/MC a name and call that. I've
tried that and I don't get the results I want; namely, an URL.

Paul Andrews asks me to state more clearly that for which I am looking.
Probably a good idea to re-clarify things.
1) I have a TextField (TF) to which I assign attributes.
2) TF is the child of an MC
3) The MC has listeners which call functions
4) One of the functions (onClick) requires that a new Web page be opened;
therefore, either:
 a) I attach and call the URL to/from the TF, or;
 b) I do so from the MC.
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread Cor
Anyone??


Yes, I know.
But how do I free them??

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: woensdag 10 maart 2010 12:49
To: Flash Coders List
Subject: Re: [Flashcoders] FLVplackback problem

Cor wrote:
> It seems that after instanciating 32 FLVPlayback my SoundFacade crashes.

What a coincidence, the Flash sound mixer only supports 32 sound 
channels at once.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
08:33:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
20:33:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Paul Andrews

On 11/03/2010 11:46, Susan Day wrote:

On Wed, Mar 10, 2010 at 7:07 PM, Kenneth Kawamoto   

wrote:
 
   

If I understand you correctly you want to trace "index.html"?

One funky way is...

trace(new XML("Home")@href);
// traces "index.html"

...therefore if your e.currentTarget.getChildAt(0).htmlText is giving you
"Home" you can do:

trace(new XML(e.currentTarget.getChildAt(0).htmlText)@href);

 

I don't know where the heck that took me, something about "go to this
address here" or some such in the address bar of the browser lol. Yeah,
pretty out there and crazy. Definitely not elegant, but you knew that, too.

Karl DeSaulniers asks if I can give the Sprite/MC a name and call that. I've
tried that and I don't get the results I want; namely, an URL.

Paul Andrews asks me to state more clearly that for which I am looking.
Probably a good idea to re-clarify things.
1) I have a TextField (TF) to which I assign attributes.
2) TF is the child of an MC
3) The MC has listeners which call functions
4) One of the functions (onClick) requires that a new Web page be opened;
therefore, either:
  a) I attach and call the URL to/from the TF, or;
  b) I do so from the MC.
TIA,
Susan
   

Susan,

I think your main confusion lies with the concept of "attaching" code 
and your "clarification" points to the URL being the content of the text 
field.


The natural place for your code is in the click handler.

The click handler knows which MC is involved, so it should be easily 
possible to access the URL text via the event property passed to the 
click handler.


Something like event.currentTarget.urlTextField.text

so in the click handler you need something like:

var pageURL:String = event.currentTarget.textField.text;

Then you can navigate. I'm not sure what you mean by "attach".

Paul




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread David Hunter

you only have one instance of FLVPlayback and play all the videos through that?

> From: c...@chello.nl
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> Date: Thu, 11 Mar 2010 12:54:37 +0100
> 
> Anyone??
> 
> 
> Yes, I know.
> But how do I free them??
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
> Andersson
> Sent: woensdag 10 maart 2010 12:49
> To: Flash Coders List
> Subject: Re: [Flashcoders] FLVplackback problem
> 
> Cor wrote:
> > It seems that after instanciating 32 FLVPlayback my SoundFacade crashes.
> 
> What a coincidence, the Flash sound mixer only supports 32 sound 
> channels at once.
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
> 08:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> 20:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Send us your Hotmail stories and be featured in our newsletter
http://clk.atdmt.com/UKM/go/195013117/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread Cor
David, 
Thanks for reacting.

Unfortuneatly this is not an option, because my app has an undefined amount
of levels/menus/pages where videos are to be shown.
And because it is all dynamic, I need te create instances on the fly.
And after that I clean them up, but in some way the SoundChannels are not
cleared?

Regards
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: donderdag 11 maart 2010 13:16
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] FLVplackback problem


you only have one instance of FLVPlayback and play all the videos through
that?

> From: c...@chello.nl
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> Date: Thu, 11 Mar 2010 12:54:37 +0100
> 
> Anyone??
> 
> 
> Yes, I know.
> But how do I free them??
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
> Andersson
> Sent: woensdag 10 maart 2010 12:49
> To: Flash Coders List
> Subject: Re: [Flashcoders] FLVplackback problem
> 
> Cor wrote:
> > It seems that after instanciating 32 FLVPlayback my SoundFacade crashes.
> 
> What a coincidence, the Flash sound mixer only supports 32 sound 
> channels at once.
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
> 08:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> 20:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Send us your Hotmail stories and be featured in our newsletter
http://clk.atdmt.com/UKM/go/195013117/direct/01/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
20:33:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread kennethkawam...@gmail.com
A bare-bones example of a navigation button you are after:

// NavigationButton class
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;

public class NavigationButton extends Sprite {
public var href:String;
public var label:String;

public function NavigationButton(h:String, l:String):void {
href = h;
label = l;
init();
}

private function init():void {
mouseChildren = false;
var tf:TextField = new TextField();
with(tf){
autoSize = TextFieldAutoSize.LEFT;
text = label;
}
addChild(tf);
}
}
}
//

...then you create a NavigationButton instance from your document class:

//
 private function init():void {
   var navBtn:NavigationButton = new NavigationButton("index.html", "Home");
   navBtn.addEventListener(MouseEvent.CLICK, navBtnClick);
   addChild(navBtn);
}

private function navBtnClick(e:MouseEvent):void {
   navigateToURL(new URLRequest(e.target.href));
}
//
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 11 March 2010 11:46, Susan Day  wrote:
> On Wed, Mar 10, 2010 at 7:07 PM, Kenneth Kawamoto
>  wrote:
>>
>> If I understand you correctly you want to trace "index.html"?
>>
>> One funky way is...
>>
>> trace(new XML("Home")@href);
>> // traces "index.html"
>>
>> ...therefore if your e.currentTarget.getChildAt(0).htmlText is giving you
>> "Home" you can do:
>>
>> trace(new XML(e.currentTarget.getChildAt(0).htmlText)@href);
>
> I don't know where the heck that took me, something about "go to this
> address here" or some such in the address bar of the browser lol. Yeah,
> pretty out there and crazy. Definitely not elegant, but you knew that, too.
> Karl DeSaulniers asks if I can give the Sprite/MC a name and call that. I've
> tried that and I don't get the results I want; namely, an URL.
> Paul Andrews asks me to state more clearly that for which I am looking.
> Probably a good idea to re-clarify things.
> 1) I have a TextField (TF) to which I assign attributes.
> 2) TF is the child of an MC
> 3) The MC has listeners which call functions
> 4) One of the functions (onClick) requires that a new Web page be opened;
> therefore, either:
>      a) I attach and call the URL to/from the TF, or;
>      b) I do so from the MC.
> TIA,
> Susan

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Thu, Mar 11, 2010 at 8:01 AM, Paul Andrews  wrote:
Susan,
>
>
> I think your main confusion lies with the concept of "attaching" code and
> your "clarification" points to the URL being the content of the text field.
>
> The natural place for your code is in the click handler.
>
> The click handler knows which MC is involved, so it should be easily
> possible to access the URL text via the event property passed to the click
> handler.
>
> Something like event.currentTarget.urlTextField.text
>
> so in the click handler you need something like:
>
> var pageURL:String = event.currentTarget.textField.text;
>
> Then you can navigate. I'm not sure what you mean by "attach".
>

So I added a new child (in addition to TF) to the MC specifically to handle
the URL. I gave this new child a text property of the URL that is passed
through to the function. Now:
1) When I trace the value of this URL within the function in which the child
is created and added to the MC, the correct value traces.
2) When I explicitly add the correct value (as opposed to passing it as a
parameter to said function, which again printed correctly on trace), the
correct value is passed and the link is indeed established in the
onMouseClick function. Of course, that won't work on automatic generation,
since that same value will be passed to all instances, which is contrary to
what I need.
3) **However**, when I call the property in the onMouseClick function when
the URL is passed through to the initial function, onMouseClick truncates
".html"!!! The inelegant solution to this, of course, is to tag ".html" on
to that which is passed to the navigation function in the onMouseClick
function. Yuck. But hey, it works. Now the property which I use to attach
the URL to the newly created child is "text". If I use "htmlText", ugly
things happen (spits out all sorts of superfluous code).

OK, so it works. It's ugly, Any ideas on how to clean it up?
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread David Hunter

Can you not just have one flvplayback and then switch it visible=false when it 
isn't needed and then make it visible=true and alter all its settings(x,y,size 
etc if you need to change these) when it is required?
Do you need to have two videos playing at once?
I have used this bit of code to close flvplayback in sites that load multiple 
swfs with an flvplayback instance in them:
myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();
Otherwise the video audio persists playing though the video can't be seen and I 
have removed it from the display list. Not sure if its best practice but it has 
solved a problem before! Who knows it might free your audio channels if they 
are being occupied by FLVs.
Best

> From: c...@chello.nl
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> Date: Thu, 11 Mar 2010 13:22:11 +0100
> 
> David, 
> Thanks for reacting.
> 
> Unfortuneatly this is not an option, because my app has an undefined amount
> of levels/menus/pages where videos are to be shown.
> And because it is all dynamic, I need te create instances on the fly.
> And after that I clean them up, but in some way the SoundChannels are not
> cleared?
> 
> Regards
> Cor
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
> Sent: donderdag 11 maart 2010 13:16
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> 
> 
> you only have one instance of FLVPlayback and play all the videos through
> that?
> 
> > From: c...@chello.nl
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: RE: [Flashcoders] FLVplackback problem
> > Date: Thu, 11 Mar 2010 12:54:37 +0100
> > 
> > Anyone??
> > 
> > 
> > Yes, I know.
> > But how do I free them??
> > 
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com
> > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
> > Andersson
> > Sent: woensdag 10 maart 2010 12:49
> > To: Flash Coders List
> > Subject: Re: [Flashcoders] FLVplackback problem
> > 
> > Cor wrote:
> > > It seems that after instanciating 32 FLVPlayback my SoundFacade crashes.
> > 
> > What a coincidence, the Flash sound mixer only supports 32 sound 
> > channels at once.
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
> > 08:33:00
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> > 20:33:00
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> _
> Send us your Hotmail stories and be featured in our newsletter
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> 20:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread Cor
To use only 1 flvplayback is really a lot of work rebuilding my
classes/logic!!
So, if nothing else comes up, I will be forced to do so.
But any other solution is better for me in this case.

Thank you very much for your suggestions!!

Regards
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: donderdag 11 maart 2010 13:47
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] FLVplackback problem


Can you not just have one flvplayback and then switch it visible=false when
it isn't needed and then make it visible=true and alter all its
settings(x,y,size etc if you need to change these) when it is required?
Do you need to have two videos playing at once?
I have used this bit of code to close flvplayback in sites that load
multiple swfs with an flvplayback instance in them:
myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();
Otherwise the video audio persists playing though the video can't be seen
and I have removed it from the display list. Not sure if its best practice
but it has solved a problem before! Who knows it might free your audio
channels if they are being occupied by FLVs.
Best

> From: c...@chello.nl
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> Date: Thu, 11 Mar 2010 13:22:11 +0100
> 
> David, 
> Thanks for reacting.
> 
> Unfortuneatly this is not an option, because my app has an undefined
amount
> of levels/menus/pages where videos are to be shown.
> And because it is all dynamic, I need te create instances on the fly.
> And after that I clean them up, but in some way the SoundChannels are not
> cleared?
> 
> Regards
> Cor
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David
Hunter
> Sent: donderdag 11 maart 2010 13:16
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> 
> 
> you only have one instance of FLVPlayback and play all the videos through
> that?
> 
> > From: c...@chello.nl
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: RE: [Flashcoders] FLVplackback problem
> > Date: Thu, 11 Mar 2010 12:54:37 +0100
> > 
> > Anyone??
> > 
> > 
> > Yes, I know.
> > But how do I free them??
> > 
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com
> > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
> > Andersson
> > Sent: woensdag 10 maart 2010 12:49
> > To: Flash Coders List
> > Subject: Re: [Flashcoders] FLVplackback problem
> > 
> > Cor wrote:
> > > It seems that after instanciating 32 FLVPlayback my SoundFacade
crashes.
> > 
> > What a coincidence, the Flash sound mixer only supports 32 sound 
> > channels at once.
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
> > 08:33:00
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> > 20:33:00
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> _
> Send us your Hotmail stories and be featured in our newsletter
>
http://clk.atdmt.com/UKM/go/195013117/direct/01/
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> 20:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2735 

Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Paul Andrews

On 11/03/2010 12:37, Susan Day wrote:

On Thu, Mar 11, 2010 at 8:01 AM, Paul Andrews  wrote:
Susan,
   


I think your main confusion lies with the concept of "attaching" code and
your "clarification" points to the URL being the content of the text field.

The natural place for your code is in the click handler.

The click handler knows which MC is involved, so it should be easily
possible to access the URL text via the event property passed to the click
handler.

Something like event.currentTarget.urlTextField.text

so in the click handler you need something like:

var pageURL:String = event.currentTarget.textField.text;

Then you can navigate. I'm not sure what you mean by "attach".

 

So I added a new child (in addition to TF) to the MC specifically to handle
the URL. I gave this new child a text property of the URL that is passed
through to the function. Now:
1) When I trace the value of this URL within the function in which the child
is created and added to the MC, the correct value traces.
2) When I explicitly add the correct value (as opposed to passing it as a
parameter to said function, which again printed correctly on trace), the
correct value is passed and the link is indeed established in the
onMouseClick function. Of course, that won't work on automatic generation,
since that same value will be passed to all instances, which is contrary to
what I need.
3) **However**, when I call the property in the onMouseClick function when
the URL is passed through to the initial function, onMouseClick truncates
".html"!!! The inelegant solution to this, of course, is to tag ".html" on
to that which is passed to the navigation function in the onMouseClick
function. Yuck. But hey, it works. Now the property which I use to attach
the URL to the newly created child is "text". If I use "htmlText", ugly
things happen (spits out all sorts of superfluous code).

OK, so it works. It's ugly, Any ideas on how to clean it up?
   


I think another poster has supplied a more elegant solution. In truth 
your code becomes complicated as you seek to a void using classes.


A simple class solution would be to extend MovieClip (or Sprite)  and 
add a url string. This would allow you to stop messing about with children.


package {
import flash.display.Sprite;
public class URLClip extends Sprite{
public var url:String;
public function URLClip (){
// add your text fields here
}
}
}

Now you can set the url directly and access it later.

var newBtn:URLClip = new URLClip();
newBtn.url="http://goggle.com/";;


newBtn.addEventListener(MouseEvent.CLICK, onClick);

function onClick(e:Event):void{
trace("navigate to "+e.currentTarget.url);
}

or something like that.


Paul




TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread Cor
D A V I D 

You saved me !!
This did the trick:
myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();


Man, I can't thank you enough

I have to buy you a beer... or a few at least.


Regards
Cor


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
Sent: donderdag 11 maart 2010 13:47
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] FLVplackback problem


Can you not just have one flvplayback and then switch it visible=false when
it isn't needed and then make it visible=true and alter all its
settings(x,y,size etc if you need to change these) when it is required?
Do you need to have two videos playing at once?
I have used this bit of code to close flvplayback in sites that load
multiple swfs with an flvplayback instance in them:
myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();
Otherwise the video audio persists playing though the video can't be seen
and I have removed it from the display list. Not sure if its best practice
but it has solved a problem before! Who knows it might free your audio
channels if they are being occupied by FLVs.
Best

> From: c...@chello.nl
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> Date: Thu, 11 Mar 2010 13:22:11 +0100
> 
> David, 
> Thanks for reacting.
> 
> Unfortuneatly this is not an option, because my app has an undefined
amount
> of levels/menus/pages where videos are to be shown.
> And because it is all dynamic, I need te create instances on the fly.
> And after that I clean them up, but in some way the SoundChannels are not
> cleared?
> 
> Regards
> Cor
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David
Hunter
> Sent: donderdag 11 maart 2010 13:16
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> 
> 
> you only have one instance of FLVPlayback and play all the videos through
> that?
> 
> > From: c...@chello.nl
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: RE: [Flashcoders] FLVplackback problem
> > Date: Thu, 11 Mar 2010 12:54:37 +0100
> > 
> > Anyone??
> > 
> > 
> > Yes, I know.
> > But how do I free them??
> > 
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com
> > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
> > Andersson
> > Sent: woensdag 10 maart 2010 12:49
> > To: Flash Coders List
> > Subject: Re: [Flashcoders] FLVplackback problem
> > 
> > Cor wrote:
> > > It seems that after instanciating 32 FLVPlayback my SoundFacade
crashes.
> > 
> > What a coincidence, the Flash sound mixer only supports 32 sound 
> > channels at once.
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
> > 08:33:00
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> > 20:33:00
> > 
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> _
> Send us your Hotmail stories and be featured in our newsletter
>
http://clk.atdmt.com/UKM/go/195013117/direct/01/
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> 20:33:00
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10

Re: [Flashcoders] OOP Books (OT)

2010-03-11 Thread Susan Day
On Wed, Mar 10, 2010 at 3:20 PM, Benny  wrote:

> http://www.adobe.com/devnet/actionscript/articles/oop_as3.html


This really clicked for me. I now feel comfortable with all the major
concepts of OOP. Obviously, implementation is something entirely different
(and I didn't say I felt comfortable with that). It also occurs to me that
simply working with AS3 will give me ample opportunity and self-taught
lessons in OOP implementation. For example, this little navigation that I'm
building now (from my other thread) will, obviously, become it's own class
and be implemented in other Web sites. I see this is how we build our script
libraries. As time moves on, I'll reference the above article and discover
how I could have used, for example getter/setter methods where I hadn't in a
script I'd written, then go back and amend that script. Thus, just by
natural process as I become an AS3 developer, I will learn the principles of
OOP. At this point, I don't see that a book or Lynda.com is even necessary.
Flash seems to lend itself more easily to self-teaching OOP than the few
other languages that I've studied by its very nature!
Thank you all,
Susan

>
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Thu, Mar 11, 2010 at 9:25 AM, Paul Andrews  wrote:

> A simple class solution would be to extend MovieClip (or Sprite)  and add a
> url string. This would allow you to stop messing about with children.
>
>
> package {
>import flash.display.Sprite;
>public class URLClip extends Sprite{
>public var url:String;
>public function URLClip (){
>// add your text fields here
>}
>}
> }
>
> Now you can set the url directly and access it later.
>
> var newBtn:URLClip = new URLClip();
> newBtn.url="http://goggle.com/";;
>
>
> newBtn.addEventListener(MouseEvent.CLICK, onClick);
>
> function onClick(e:Event):void{
>trace("navigate to "+e.currentTarget.url);
> }
>
> or something like that.
>

Gotcha. Yep, that's the way to do it.
Thanks,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Thu, Mar 11, 2010 at 9:25 AM, Paul Andrews  wrote:

> function onClick(e:Event):void{
>trace("navigate to "+e.currentTarget.url);
>

The blasted thing traced the url without ".html" at the end...again!! What
could possibly be causing this behavior? When I trace Btn.url in the
function where it is created, it correctly traces with the ".html" tag. Why
on earth would it be stripped in the onMouseClick function?? Here's the
pertinent from that fn:

function onPressHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ')
{
Navigation(' Home ', 'index', 235, 0xff);
Navigate.to(e.currentTarget.getChildAt(1).text + '.html');
trace(e.currentTarget.url);
...

Please advise.
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FLVplackback problem

2010-03-11 Thread David Hunter

glad i could help. think i got it off some obscure japanese blog when i ran 
into a problem on my first site transitioning from AS2 to AS3. there might be a 
more efficient way of writing/targeting what you need, but i've just stuck with 
that. at least it works!
best

> From: c...@chello.nl
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> Date: Thu, 11 Mar 2010 14:35:36 +0100
> 
> D A V I D 
> 
> You saved me !!
> This did the trick:
> myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();
> 
> 
> Man, I can't thank you enough
> 
> I have to buy you a beer... or a few at least.
> 
> 
> Regards
> Cor
> 
> 
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter
> Sent: donderdag 11 maart 2010 13:47
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] FLVplackback problem
> 
> 
> Can you not just have one flvplayback and then switch it visible=false when
> it isn't needed and then make it visible=true and alter all its
> settings(x,y,size etc if you need to change these) when it is required?
> Do you need to have two videos playing at once?
> I have used this bit of code to close flvplayback in sites that load
> multiple swfs with an flvplayback instance in them:
> myFLV.getVideoPlayer(myFLV.activeVideoPlayerIndex).close();
> Otherwise the video audio persists playing though the video can't be seen
> and I have removed it from the display list. Not sure if its best practice
> but it has solved a problem before! Who knows it might free your audio
> channels if they are being occupied by FLVs.
> Best
> 
> > From: c...@chello.nl
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: RE: [Flashcoders] FLVplackback problem
> > Date: Thu, 11 Mar 2010 13:22:11 +0100
> > 
> > David, 
> > Thanks for reacting.
> > 
> > Unfortuneatly this is not an option, because my app has an undefined
> amount
> > of levels/menus/pages where videos are to be shown.
> > And because it is all dynamic, I need te create instances on the fly.
> > And after that I clean them up, but in some way the SoundChannels are not
> > cleared?
> > 
> > Regards
> > Cor
> > 
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com
> > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David
> Hunter
> > Sent: donderdag 11 maart 2010 13:16
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: RE: [Flashcoders] FLVplackback problem
> > 
> > 
> > you only have one instance of FLVPlayback and play all the videos through
> > that?
> > 
> > > From: c...@chello.nl
> > > To: flashcoders@chattyfig.figleaf.com
> > > Subject: RE: [Flashcoders] FLVplackback problem
> > > Date: Thu, 11 Mar 2010 12:54:37 +0100
> > > 
> > > Anyone??
> > > 
> > > 
> > > Yes, I know.
> > > But how do I free them??
> > > 
> > > -Original Message-
> > > From: flashcoders-boun...@chattyfig.figleaf.com
> > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
> > > Andersson
> > > Sent: woensdag 10 maart 2010 12:49
> > > To: Flash Coders List
> > > Subject: Re: [Flashcoders] FLVplackback problem
> > > 
> > > Cor wrote:
> > > > It seems that after instanciating 32 FLVPlayback my SoundFacade
> crashes.
> > > 
> > > What a coincidence, the Flash sound mixer only supports 32 sound 
> > > channels at once.
> > > 
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > No virus found in this incoming message.
> > > Checked by AVG - www.avg.com 
> > > Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
> > > 08:33:00
> > > 
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > No virus found in this incoming message.
> > > Checked by AVG - www.avg.com 
> > > Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> > > 20:33:00
> > > 
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >   
> > _
> > Send us your Hotmail stories and be featured in our newsletter
> >
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com 
> > Version: 9.0.733 / Virus Database: 271.1.1/2735 - Release Date: 03/10/10
> > 20:33

[Flashcoders] Perfroming Math in DataGrid

2010-03-11 Thread Lehr, Theodore
I have a datagrid that is populated with xml that looks like:


  
  
  



I have this being put into a datagrid with:

var groupcol:DataGridColumn=new DataGridColumn("fieldA");

groupcol.headerText="Field";

groupcol.width=100;





Anyway - I need to create a column that is fieldB/fieldC  How can I d this 
math and get it displayed??



TIA!!!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread John Singleton
From: Valentin Schmidt 
To: Flash Coders List 
Sent: Tue, March 9, 2010 3:28:52 PM
Subject: Re: [Flashcoders] Re: swf doesn't work the same online



first, your emails are a bit hard to read, I'd suggest to quote
correctly (see e.g. http://mailformat.dan.info/quoting/), or better, use
an email client that takes care of correct quoting (and configure it
accordingly).


I don't see that yahoo affords me the opportunity to do other than I have done 
above. Bummer ;(


second, I have the impression that this thread could go on forever
without getting anywhere. Maybe it would be a good idea to do a fresh
start, and this time first create a clear conception of what you want to
achieve (in each function), e.g. by describing it in plain english,
before writing your actual code?


OK. I have:
1) Created a "preloader" which preloads two graphics, one of which is rather 
large.
2) These graphics, in turn, are used as assets in two swf files.
3) The first of these swf files is displayed only when the visitor visits the 
home page.
4) BOTH of these swf files are scripted into a template that is used for all 
pages. The first of them displays "over" the second (when it's the home page) 
and then is removed using css. This is why I can't have a traditional preloader 
page: I need to preserve those assets and not have them re-loaded whenever the 
splash page disappears and reveals the regular page with the second swf as an 
element within the html page that is generated from the template.

Now, the problem is that, for some reason, the "preloader" always, without 
fail, loads the graphics. It never seems to check if these graphics were 
cached, even though they were in fact cached in the browser. I wonder if the 
reason it doesn't check could be because I don't add the graphics to the stage 
(addChild), since I don't want them to appear on stage.


but if you don't want to this, maybe you could extract the problematic
part into a simple demo movie and put the FLA online, so anyone
interested can download and fix the code? I think that makes more sense
than posting longe code extracts here which then even aren't your actual
code.


I don't believe that would help. All you'll see is:
1) a counter showing how much is loaded, then;
2) a splash page, finally;
3) the template

In other words, exactly what I've already described. I hope I've clarified the 
problem.
Thanks,
John.

just my 2 cts.

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Paul Andrews

On 11/03/2010 13:53, Susan Day wrote:

On Thu, Mar 11, 2010 at 9:25 AM, Paul Andrews  wrote:

   

function onClick(e:Event):void{
trace("navigate to "+e.currentTarget.url);

 

The blasted thing traced the url without ".html" at the end...again!! What
could possibly be causing this behavior? When I trace Btn.url in the
function where it is created, it correctly traces with the ".html" tag. Why
on earth would it be stripped in the onMouseClick function?? Here's the
pertinent from that fn:

function onPressHandler(e:MouseEvent)
{
if (e.currentTarget.name == ' Home ')
{
Navigation(' Home ', 'index', 235, 0xff);
Navigate.to(e.currentTarget.getChildAt(1).text + '.html');
trace(e.currentTarget.url);
   
The trace statement above doesn't have '.html' appended. You have 
inconveniently left off the assignment to the url string.


Susan, make a tiny example rather than give snippets.

In general, for an OO solution, code that says "if (e.currentTarget.name 
== ' Home ') " to look for particular cases isn't very OO!


Also if you had code in your sprite class that said something like:

public var urlTextFld:TextField  ;

In the constructor ..
urlTextFld = new TextField() ..
addChild(urlTextFld);

You can then ditch guessing where on the display list for the target the 
textfield is  because it would then be


Navigate.to(e.currentTarget.urlTextFld.text + '.html');

Paul


...

Please advise.
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Glen Pike

John Singleton wrote:

Now, the problem is that, for some reason, the "preloader" always, without 
fail, loads the graphics. It never seems to check if these graphics were cached, even 
though they were in fact cached in the browser. I wonder if the reason it doesn't check 
could be because I don't add the graphics to the stage (addChild), since I don't want 
them to appear on stage.

  
I am guessing that your browser caching is turned off and that you are 
testing in the browser, not the IDE?


What happens if you try "Work Offline"?

Are you able to look at the actual cache on your computer to see if they 
are there?


If you are using Firefox, can you use something like the LiveHTTPHeaders 
add on to see the request for the SWF and whether the server sends back 
"NOT MODIFIED". 

You could also look at Charles the debugging proxy, or ServiceCapture by 
Kevin Langdon.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Valentin Schmidt
John Singleton wrote:
> From: Valentin Schmidt  To: Flash Coders List
>  Sent: Tue, March 9, 2010 3:28:52
> PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online
> 
> 
>  first, your emails are a bit hard to read, I'd suggest to
> quote correctly (see e.g. http://mailformat.dan.info/quoting/), or
> better, use an email client that takes care of correct quoting (and
> configure it accordingly). 
> 
> I don't see that yahoo affords me the opportunity to do other than I
> have done above. Bummer ;(

in case this is "Yahoo! Mail":
go to Options->Mail Options
at the bottom you will see a checkbox:

"When replying & forwarding: Mark original message with > (plain text only)"

activate it and save the changes (and only use plain text mails for
mailing lists, of course).

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 -> Objective-C

2010-03-11 Thread Matt S.
Have any of you taken on the challenge of learning Objective-C (or any
C-based language), coming from an AS/Scripting background? I came to
AS3 from a designer origin, taking the route from design to
HTML/CSS/Javascript to AS's 1,2 and 3, so while I'm pretty comfortable
in an oop/coding environment, I havent ventured into true programming
languages as of yet. The few times I've looked at the code it seems
like its less "natural" and more complex than an ECMA-based scripting
language but maybe thats just an initial reaction and not reality
based.

Anyway I'd love to hear y'alls 2¢... (oh and in case you hadnt guessed
this is iphone related ;) Since Adobe doesnt seem to be planning to
release CS5 any time soon — and no, October 2010 doesn't count as soon
—  I figured it was time to dive in ).

.m

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 -> Objective-C

2010-03-11 Thread tom rhodes
check out haxe (www.haxe.org), you can write in something almost identical
to AS3 and target c++, cpp, php, javascript and neko when you compile.

i haven't used it for c++ but i've followed conversations on the mailing
list about targetting the iphone. probably a good way to dip your toe in
while you are waiting for cs5...


On 11 March 2010 16:15, Matt S.  wrote:

> Have any of you taken on the challenge of learning Objective-C (or any
> C-based language), coming from an AS/Scripting background? I came to
> AS3 from a designer origin, taking the route from design to
> HTML/CSS/Javascript to AS's 1,2 and 3, so while I'm pretty comfortable
> in an oop/coding environment, I havent ventured into true programming
> languages as of yet. The few times I've looked at the code it seems
> like its less "natural" and more complex than an ECMA-based scripting
> language but maybe thats just an initial reaction and not reality
> based.
>
> Anyway I'd love to hear y'alls 2¢... (oh and in case you hadnt guessed
> this is iphone related ;) Since Adobe doesnt seem to be planning to
> release CS5 any time soon — and no, October 2010 doesn't count as soon
> —  I figured it was time to dive in ).
>
> .m
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Valentin Schmidt
> If you are using Firefox, can you use something like the
> LiveHTTPHeaders add on to see the request for the SWF and whether the
> server sends back "NOT MODIFIED".

or the "Firebug" addon (which IMHO every web developper should have
installee in his firefox anyway), in the Network Tab in can also show
you the exact details of all HTTP transactions, of course also those
started by the flash (or director shockwave) plugin.

concerning cache, in firefox you can use those 2 about-URLs to get
detailed infos about all cache entries, including last update and total
number of fetches:

about:cache?device=memory
about:cache?device=disk

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Thu, Mar 11, 2010 at 10:17 AM, Paul Andrews  wrote:

> The trace statement above doesn't have '.html' appended. You have
> inconveniently left off the assignment to the url string.
>

I believe I mentioned in an earlier post that when I print url in the
calling function, it prints the entire url, with ".html". However, when I
print it in the called fn, it drops the ".html". Is that not clear? Does
something else need clarification?

>
> Susan, make a tiny example rather than give snippets.
>

Not sure what you mean here. Complete code? If necessary, please let me
know.

>
> In general, for an OO solution, code that says "if (e.currentTarget.name== ' 
> Home ') " to look for particular cases isn't very OO!
>

Well, that's the next question lol. But let's deal with this one first.

>
> Also if you had code in your sprite class that said something like:
>
> public var urlTextFld:TextField  ;
>
> In the constructor ..
> urlTextFld = new TextField() ..
> addChild(urlTextFld);
>

It says:

package
{
import flash.display.Sprite;
 public class URLClip extends Sprite
{
public var url:String;
public function URLClip ()
{
}
}
}

Exactly what a previous poster supplied. It's called thus:

nsprite.url = nurl;

where nsprite has the listener that calls the onClick fn and nurl is passed
as a var to the fn from which the above line is quoted.

I just don't understand why, when I trace nsprite.url in the calling fn, it
prints with ".html", but when I call it in the listening fn (the onClick),
it drops it! Why would it do that?
TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Glen Pike
Each to their own I guess, Firebug for me is too much like using a 
sledgehammer to crack a nut for Flash applications - it's unwieldy and I 
have found it to be a bigger memory hog than Adobe products.  
I have found it vaguely useful for debugging / learning AJAX coding, but 
I still find Charles much more useful and I never use it for HTML / CSS 
- half the time I don't want to inspect my variables, but then I tend 
not to do any heavyweight AJAX.  I guess I am a bit long in the tooth 
for using Firebug for developing web-code, I never saw the point of 
inspecting my CSS when I can do that in the editor and find it much 
quicker to change the colour of a div and resize than try and tweak it 
in the debugger.  I think it's because I am used to writing my own JS 
that I did not use the debugger much - I am not looking at other 
people's libraries so tend to know where I am in the code and what is 
not working.  If I was to go back to doing HTML stuff now I might change 
my mind, but I am trying to avoid it because I hate doing websites 
nearly as much as I hate Steve Jobs.


Valentin Schmidt wrote:

or the "Firebug" addon (which IMHO every web developper should have
installee in his firefox anyway), in the Network Tab in can also show
you the exact details of all HTTP transactions, of course also those
started by the flash (or director shockwave) plugin.
  

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 -> Objective-C

2010-03-11 Thread .matt

Good to know! I'll definitely check that out.

Cheers,

.matt

On Mar 11, 2010, at 10:28 AM, tom rhodes  wrote:

check out haxe (www.haxe.org), you can write in something almost  
identical

to AS3 and target c++, cpp, php, javascript and neko when you compile.

i haven't used it for c++ but i've followed conversations on the  
mailing
list about targetting the iphone. probably a good way to dip your  
toe in

while you are waiting for cs5...


On 11 March 2010 16:15, Matt S.  wrote:

Have any of you taken on the challenge of learning Objective-C (or  
any

C-based language), coming from an AS/Scripting background? I came to
AS3 from a designer origin, taking the route from design to
HTML/CSS/Javascript to AS's 1,2 and 3, so while I'm pretty  
comfortable

in an oop/coding environment, I havent ventured into true programming
languages as of yet. The few times I've looked at the code it seems
like its less "natural" and more complex than an ECMA-based scripting
language but maybe thats just an initial reaction and not reality
based.

Anyway I'd love to hear y'alls 2¢... (oh and in case you hadnt gue 
ssed

this is iphone related ;) Since Adobe doesnt seem to be planning to
release CS5 any time soon — and no, October 2010 doesn't count as  
soon

—  I figured it was time to dive in ).

.m

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Valentin Schmidt
Glen Pike wrote:
> Each to their own I guess, Firebug for me is too much like using a 
> sledgehammer to crack a nut for Flash applications - it's unwieldy and I 
> have found it to be a bigger memory hog than Adobe products. 

who cares? of course you only activate it when you really need it - and
I'm quite sure that in deactivated state it doesn't consume any xtra memory.

I do a lot of PHP/XHTML/CSS/JS/Ajax stuff, and I defintely couldn't live
(well: work) without firebug, no way :-)

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Paul Andrews

On 11/03/2010 15:41, Susan Day wrote:

On Thu, Mar 11, 2010 at 10:17 AM, Paul Andrews  wrote:

   

The trace statement above doesn't have '.html' appended. You have
inconveniently left off the assignment to the url string.

 

I believe I mentioned in an earlier post that when I print url in the
calling function, it prints the entire url, with ".html". However, when I
print it in the called fn, it drops the ".html". Is that not clear? Does
something else need clarification?

   

Susan, make a tiny example rather than give snippets.

 

Not sure what you mean here. Complete code? If necessary, please let me
know.

   

In general, for an OO solution, code that says "if (e.currentTarget.name== ' Home ') 
" to look for particular cases isn't very OO!

 

Well, that's the next question lol. But let's deal with this one first.

   

Also if you had code in your sprite class that said something like:

public var urlTextFld:TextField  ;

In the constructor ..
urlTextFld = new TextField() ..
addChild(urlTextFld);

 

It says:

package
{
import flash.display.Sprite;
  public class URLClip extends Sprite
{
public var url:String;
public function URLClip ()
{
}
}
}

Exactly what a previous poster supplied. It's called thus:

nsprite.url = nurl;

where nsprite has the listener that calls the onClick fn and nurl is passed
as a var to the fn from which the above line is quoted.

I just don't understand why, when I trace nsprite.url in the calling fn, it
prints with ".html", but when I call it in the listening fn (the onClick),
it drops it! Why would it do that?
   


Because your code doesn't do what you think it does and we don't know 
what your code is really doing because we only know what you choose to 
tell us.


It's a bit like playing twenty questions.

Show us "Navigate.to()"


TIA,
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Glen Pike



I'm quite sure that in deactivated state it doesn't consume any xtra memory.
  
Not sure - I think there used to be a nasty memory leak, even when it 
was disabled - I had it upto 1.5 GB, a bit like FF 3 years ago.  PITA 
when you have tons of pages open and your browser dies!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Valentin Schmidt
Glen Pike wrote:
>> I'm quite sure that in deactivated state it doesn't consume any xtra memory.
>>   
> Not sure - I think there used to be a nasty memory leak, even when it 
> was disabled - I had it upto 1.5 GB, a bit like FF 3 years ago.  PITA 
> when you have tons of pages open and your browser dies!

don't know about this specific leak, but firebug is under active
development, and in the last few years firebug definetly doesn't have
such a leak anymore (at least not in deactivated state) - millions of
users use it every day, many (like me) with less than 1,5 GB RAM available.

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread John Singleton
From: Glen Pike 
To: Flash Coders List 
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 ;)

  
I am guessing that your browser caching is turned off and that you are testing 
in the browser, not the IDE?


Browser caching is not turned off, no. Yes, I am testing in the browser not the 
IDE.



What happens if you try "Work Offline"?


If I were to rewrite my code in pure HTML (which it isn't, just translates for 
the browser) and do as you say, it would pop up almost immediately because it's 
all right here on a screaming fast Mac Pro.

It struck me at this point, after already trying LiveHTTPHeaders, which is 
pretty darn cool, that maybe the problem I'm running into is caused by not 
being able to get my swf files to load in my newly downloaded FireFox, 
Apparently, Flash doesn't come bundled (amazing). I tried downloading and 
installing it from Adobe, three times, and it doesn't want to install. It isn't 
trying to install like other plugins. So I went to install Charles and 
unfortunately it assumed I wanted to install it in FF not in Safari. So I'm 
back to square one. How do I get FF to cooperate?



Are you able to look at the actual cache on your computer to see if they are 
there?


Yes, they're there, even though I can't display them. Then I clean them out.


If you are using Firefox, can you use something like the LiveHTTPHeaders add on 
to see the request for the SWF and whether the server sends back "NOT 
MODIFIED". 


I can't find anywhere where it downloads the swf. I didn't find the words "NOT 
MODIFIED" anywhere. Pity I can't copy and paste then search the output :(
Thanks,
John


  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Thu, Mar 11, 2010 at 12:02 PM, Paul Andrews  wrote:

> Show us "Navigate.to()"
>

Navigate was a script I copied and it works in other apps:

package
{
import flash.net.URLRequest;
import flash.net.navigateToURL;

public class Navigate{
public function Navigate(url:String, target:String) {
var URLReq:URLRequest = new URLRequest(url);
try {
navigateToURL(URLReq, target);
} catch (e:Error) {
trace("Navigate is broken = " + e);
}
}

public static function to(url:String, target:String =
"_self"):Navigate {
return new Navigate(url, target);
}
}
}

Does this help?
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] DataGrid and style

2010-03-11 Thread Lehr, Theodore
Is it possible to set the style of a datagrid cell based on the content? For 
example, say the cell either had a positive or negative number - if positive, I 
want the number to be green, if negative, I want it to be red... How would you 
go about this?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Valentin Schmidt
John Singleton wrote:
> From: Glen Pike  To: Flash Coders List
>  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 ;)

so why didn't you activate the automatic quote settings in yahoo mail,
as I had shown you?

again, this is what correct quoting looks like, and yahoo can very well
do this for you, if you only change those settings accordingly:
http://mailformat.dan.info/quoting/
http://en.wikipedia.org/wiki/Usenet_quoting
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2010-03-11 Thread Glen Pike



If I were to rewrite my code in pure HTML (which it isn't, just translates for 
the browser) and do as you say, it would pop up almost immediately because it's 
all right here on a screaming fast Mac Pro.

It struck me at this point, after already trying LiveHTTPHeaders, which is 
pretty darn cool, that maybe the problem I'm running into is caused by not 
being able to get my swf files to load in my newly downloaded FireFox, 
Apparently, Flash doesn't come bundled (amazing). I tried downloading and 
installing it from Adobe, three times, and it doesn't want to install. It isn't 
trying to install like other plugins. So I went to install Charles and 
unfortunately it assumed I wanted to install it in FF not in Safari. So I'm 
back to square one. How do I get FF to cooperate?


  
Aahh, the dreaded Adobe Download Manager -  it worked for me just now on 
FF 3.5.8, but broke before.
I can't remember how I worked around that, but it was a grand PITA and a 
big PITY that Adobe introduced it, the old Flash download worked 
perfectly & seamlessly for me in all my browsers - if it ain't broke 
Adobe, don't break it, concentrate on the FP bugs ;)


You can search for "archived players" and download all of the FP 10 ones 
(157MB!) if you are completely stuck - install them for FF manually, not 
sure if that's the same for MacOS, sorry.

I can't find anywhere where it downloads the swf. I didn't find the words "NOT 
MODIFIED" anywhere. Pity I can't copy and paste then search the output :(
Thanks,
John
  

The NOT MODIFIED is just one possible status returned by the server:
For a successful request you would normally see:
"HTTP/1.1 200 OK"  Which means that your file was found and sent.

You can right click (in Windows) the "Captured" output in the Headers 
tab, select all and choose copy if you need it - you only need to look 
at the request and response for your actual swf files.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] OT: was swf doesn't work the same online

2010-03-11 Thread Mattheis, Erik (MIN - WSW)
I switched my default browser to Chrome a week or so ago, both on my Windows 
box at work and Mac at home. It's noticeably faster than FF, especially on the 
Mac and it has a built-in developer tool which shows all requests. There's a 
"FireBug Lite" extension for it 
https://chrome.google.com/extensions/detail/bnbbfjbeaefgipfjpdabmpadaacmafkj


_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Valentin Schmidt
Sent: Thursday, March 11, 2010 10:14 AM
To: Flash Coders List
Subject: Re: [Flashcoders] OT: was swf doesn't work the same online

Glen Pike wrote:
>> I'm quite sure that in deactivated state it doesn't consume any xtra memory.
>>   
> Not sure - I think there used to be a nasty memory leak, even when it 
> was disabled - I had it upto 1.5 GB, a bit like FF 3 years ago.  PITA 
> when you have tons of pages open and your browser dies!

don't know about this specific leak, but firebug is under active
development, and in the last few years firebug definetly doesn't have
such a leak anymore (at least not in deactivated state) - millions of
users use it every day, many (like me) with less than 1,5 GB RAM available.

cheers,
valentin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3 -> Objective-C

2010-03-11 Thread Merrill, Jason
>> check out haxe (www.haxe.org), you can write in something almost
identical
>> to AS3 and target c++, cpp, php, javascript and neko when you
compile.

Right, but I thought the question was, "how challenging was it to switch
to Objective-C from Actionscript 3"? - not "can I program for other
languages like c++ and PHP using a language similar to Actionscript"?
Seems like a completely different question to me.


Jason Merrill 

Bank of  America  Global Learning 
Learning & Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 -> Objective-C

2010-03-11 Thread Eric E. Dolecki
I'll weigh in here - going for AS3 to Obj-C took me about a month to feel
comfortable with, and I'm learning new things all the time. There are so
many frameworks and methods, you feel overwhelmed when trying to do
something and you don't know the proper framework to do it quite yet. I have
grown to like Obj-C quite a lot. You can't quite make something as quickly
as you can in AS3 (not by a long shot), but it's powerful! And learning
memory management is a great thing that might influence what you do in AS3
to a degree.

Go for it... don't wait for CS5, learn some Obj-C today if you're
interested. The tools are free.

On Thu, Mar 11, 2010 at 12:05 PM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> >> check out haxe (www.haxe.org), you can write in something almost
> identical
> >> to AS3 and target c++, cpp, php, javascript and neko when you
> compile.
>
> Right, but I thought the question was, "how challenging was it to switch
> to Objective-C from Actionscript 3"? - not "can I program for other
> languages like c++ and PHP using a language similar to Actionscript"?
> Seems like a completely different question to me.
>
>
> Jason Merrill
>
> Bank of  America  Global Learning
> Learning & Performance Solutions
>
> Join the Bank of America Flash Platform Community  and visit our
> Instructional Technology Design Blog
> (note: these are for Bank of America employees only)
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Paul Andrews

On 11/03/2010 16:20, Susan Day wrote:

On Thu, Mar 11, 2010 at 12:02 PM, Paul Andrews  wrote:

   

Show us "Navigate.to()"

 

Navigate was a script I copied and it works in other apps:

package
{
 import flash.net.URLRequest;
 import flash.net.navigateToURL;

 public class Navigate{
 public function Navigate(url:String, target:String) {
 var URLReq:URLRequest = new URLRequest(url);
 try {
 navigateToURL(URLReq, target);
 } catch (e:Error) {
 trace("Navigate is broken = " + e);
 }
 }

 public static function to(url:String, target:String =
"_self"):Navigate {
 return new Navigate(url, target);
 }
 }
}

Does this help?
   
Well it shows that it has nothing to do with the ".html" being missing 
and nowhere have you shown where you assigned the string with ".html" added.


We are going around in circles.

Paul

Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Passing Call To Child

2010-03-11 Thread Merrill, Jason
>> Please advise.

>> We are going around in circles.


Smells a bit like beno in here.


Jason Merrill 

Bank of  America  Global Learning 
Learning & Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 -> Objective-C

2010-03-11 Thread tom rhodes
more than one way to skin a cat :)

just thought it might be handy to look at given that Matt was weighing up
how much of a headache diving into objective-C woudl be...

On 11 March 2010 18:05, Merrill, Jason wrote:

> >> check out haxe (www.haxe.org), you can write in something almost
> identical
> >> to AS3 and target c++, cpp, php, javascript and neko when you
> compile.
>
> Right, but I thought the question was, "how challenging was it to switch
> to Objective-C from Actionscript 3"? - not "can I program for other
> languages like c++ and PHP using a language similar to Actionscript"?
> Seems like a completely different question to me.
>
>
> Jason Merrill
>
> Bank of  America  Global Learning
> Learning & Performance Solutions
>
> Join the Bank of America Flash Platform Community  and visit our
> Instructional Technology Design Blog
> (note: these are for Bank of America employees only)
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 -> Objective-C

2010-03-11 Thread Matt S.
Yeah, that was the question. Haxe looks interesting in its own right
though, and of course whatever gets the job done However, I am
fundamentally interested in the question of what Objective-C is like
and how easy a transition it would be. I'm quite comfortable with OOP,
within an AS3 framework(although I'm still wrapping my head around
Design Patterns), so I feel like I have the conceptual foundation
down, and just need to translate it a new language.

.m

On Thu, Mar 11, 2010 at 12:05 PM, Merrill, Jason
 wrote:

> Right, but I thought the question was, "how challenging was it to switch
> to Objective-C from Actionscript 3"? - not "can I program for other
> languages like c++ and PHP using a language similar to Actionscript"?
> Seems like a completely different question to me.
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Susan Day
On Thu, Mar 11, 2010 at 1:23 PM, Paul Andrews  wrote:

> Well it shows that it has nothing to do with the ".html" being missing and
> nowhere have you shown where you assigned the string with ".html" added.
>

I believe I made it clear before that I assign the ".html" to the url. I
believe most urls end in html, py, php, asp, etc., and that most variables
with a url would be written like a url. I have mentioned previously that
this var prints out correctly in the fn in which it is defined and
incorrectly--specifying without the html--in the onClick fn. Yes, I believe
I've made this clear before. And I'm making it clear again. Why is it that
the assigning fn traces this var with the extension and that the onClick fn
doesn't??

>
> We are going around in circles.
>

I don't think that's my fault, sorry.
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Paul Andrews

On 11/03/2010 17:57, Susan Day wrote:

On Thu, Mar 11, 2010 at 1:23 PM, Paul Andrews  wrote:

   

Well it shows that it has nothing to do with the ".html" being missing and
nowhere have you shown where you assigned the string with ".html" added.

 

I believe I made it clear before that I assign the ".html" to the url. I
believe most urls end in html, py, php, asp, etc., and that most variables
with a url would be written like a url. I have mentioned previously that
this var prints out correctly in the fn in which it is defined and
incorrectly--specifying without the html--in the onClick fn. Yes, I believe
I've made this clear before. And I'm making it clear again. Why is it that
the assigning fn traces this var with the extension and that the onClick fn
doesn't??

   

We are going around in circles.

 

I don't think that's my fault, sorry.
   


Cool, I'll just let you get on with it.


Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

   


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] DataGrid - Height - Scrollbar

2010-03-11 Thread Lehr, Theodore
I can not seem to get a vertical scrollbar - my datagrid sets it's height to 
the content... I would like a height I set and have scrolling if neccessary... 
what am I doing wrong?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Passing Call To Child

2010-03-11 Thread Mattheis, Erik (MIN - WSW)
The "missing .html" thing has to be a simple mistake you're not seeing. Have 
you tried tracing the value at every point where it gets passed around?

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Looking for a Flasher

2010-03-11 Thread Guest Services, City Concierge
We're looking for a coder to some small contract work
We're in Los Angeles
Should know action script very well, and be able to get the flash scripts to
work in .asp and .php and use XML
Ask for Jefferson
323-874-6610
 
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] DataGrid - Height - Scrollbar

2010-03-11 Thread Jim Lafser
You are using setSize() right? That's how components figure out the space they 
have to 
work in.

--- On Thu, 3/11/10, Lehr, Theodore  wrote:


From: Lehr, Theodore 
Subject: [Flashcoders] DataGrid - Height - Scrollbar
To: "Flash Coders List" 
Date: Thursday, March 11, 2010, 1:36 PM


I can not seem to get a vertical scrollbar - my datagrid sets it's height to 
the content... I would like a height I set and have scrolling if neccessary... 
what am I doing wrong?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing Call To Child

2010-03-11 Thread Jim Lafser
You are holding onto the string reference created after addding the ".html" and 
not the reference to the object that doesn't have the ".html", right?

--- On Thu, 3/11/10, Susan Day  wrote:


From: Susan Day 
Subject: Re: [Flashcoders] Passing Call To Child
To: "Flash Coders List" 
Date: Thursday, March 11, 2010, 12:57 PM


On Thu, Mar 11, 2010 at 1:23 PM, Paul Andrews  wrote:

> Well it shows that it has nothing to do with the ".html" being missing and
> nowhere have you shown where you assigned the string with ".html" added.
>

I believe I made it clear before that I assign the ".html" to the url. I
believe most urls end in html, py, php, asp, etc., and that most variables
with a url would be written like a url. I have mentioned previously that
this var prints out correctly in the fn in which it is defined and
incorrectly--specifying without the html--in the onClick fn. Yes, I believe
I've made this clear before. And I'm making it clear again. Why is it that
the assigning fn traces this var with the extension and that the onClick fn
doesn't??

>
> We are going around in circles.
>

I don't think that's my fault, sorry.
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Books (OT)

2010-03-11 Thread co...@moock.org

hi all,
as the author of an oop book myself, i have to admit that books aren't 
always the right learning tool for everyone. i agree with benny...i've 
liked the video training that's been emerging over the last few years.


here are a bunch of other free options:

http://gotoandlearn.com/
http://tv.adobe.com/show/actionscript-11-with-doug-winnie/
http://tv.adobe.com/channel/development/actionscript
http://tv.adobe.com/show/max-2009-develop/

in fact, there's also a "video version" of Essential ActionScript 3.0 
available called "The Lost ActionScript 3.0 Weekend". it's a commercial 
product, but lots of it is freely available online here:


oop overview:
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/object-oriented-programming-overview/

making a class:
http://vplayer.oreilly.com/?chapter=4&video_product=urn%3Ax-domain%3Aoreilly.com%3Aproduct%3A9780596801540.VIDEO#embedded_player

inheritance
http://my.safaribooksonline.com/player?xmlid=9780596801564/i17

garbage collection (very important in oop ActionScript 3.0!)
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/object-references-and-garbage-collection/

datatypes:
http://vplayer.oreilly.com/?chapter=4&video_product=urn%3Ax-domain%3Aoreilly.com%3Aproduct%3A9780596801557.VIDEO#embedded_player

graphics and oop:
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/graphics-programming/
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/the-display-list/

debugging and profiling oop:
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/production-topics-flex-debugging-mode/
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/production-topics-flex-profiling/

flash/flex workflow
http://my.safaribooksonline.com/player?xmlid=9780596801588/i20

course introduction:
http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/course-1-introduction/

3d effects with adobe's chris nuuja:
http://vplayer.oreilly.com/?chapter=20&video_product=urn%3Ax-domain%3Aoreilly.com%3Aproduct%3A9780596801540.VIDEO#embedded_player

the full video is available at:
http://www.oreilly.com/go/law

once you're up to speed on the basics, examples, practice, and a helping 
community like flashcoders should take you the rest of the way.


if you're doing any flex work, i find peter dehaan's examples to be a 
fantastic resource:


http://flexexamples.com/

and for targeted questions, the stackoverflow community is really helpful:

http://stackoverflow.com/questions/tagged/actionscript

happy coding!
colin

Benny wrote:
Hi Susan I cannot recommend any OOP book but I can recommend Lynda.com. 
Lynda.com has some great video courses, like

http://www.lynda.com/home/DisplayCourse.aspx?lpk2=759
Which amongst other covers OOP fundamentals and common design patterns.


- Benny

-Oorspronkelijk bericht-
Van: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] Namens Susan Day
Verzonden: woensdag 10 maart 2010 19:29
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] OOP Books (OT)

On Wed, Mar 10, 2010 at 12:23 PM, Mattheis, Erik (MIN - WSW) <
ematth...@webershandwick.com> wrote:


I got AS 3 w/Design Patterns right when I delved into AS3 and I found the
examples too long and complicated to follow. I would not recommend it as

an

introduction to OOP.



Noted. And your thoughts, if any, on The Object-Oriented Thought Process?
Susan
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__ Informatie van ESET NOD32 Antivirus, versie van database
viruskenmerken 4932 (20100310) __

Het bericht is gecontroleerd door  ESET NOD32 Antivirus.

http://www.eset.com



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OOP Books (OT)

2010-03-11 Thread Helmut Granda
Great information and thanks for sharing. I didn't know "The Lost Actionscript 
3.0 Weekend" even existed. 


On Mar 11, 2010, at 3:29 PM, co...@moock.org wrote:

> hi all,
> as the author of an oop book myself, i have to admit that books aren't always 
> the right learning tool for everyone. i agree with benny...i've liked the 
> video training that's been emerging over the last few years.
> 
> here are a bunch of other free options:
> 
> http://gotoandlearn.com/
> http://tv.adobe.com/show/actionscript-11-with-doug-winnie/
> http://tv.adobe.com/channel/development/actionscript
> http://tv.adobe.com/show/max-2009-develop/
> 
> in fact, there's also a "video version" of Essential ActionScript 3.0 
> available called "The Lost ActionScript 3.0 Weekend". it's a commercial 
> product, but lots of it is freely available online here:
> 
> oop overview:
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/object-oriented-programming-overview/
> 
> making a class:
> http://vplayer.oreilly.com/?chapter=4&video_product=urn%3Ax-domain%3Aoreilly.com%3Aproduct%3A9780596801540.VIDEO#embedded_player
> 
> inheritance
> http://my.safaribooksonline.com/player?xmlid=9780596801564/i17
> 
> garbage collection (very important in oop ActionScript 3.0!)
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/object-references-and-garbage-collection/
> 
> datatypes:
> http://vplayer.oreilly.com/?chapter=4&video_product=urn%3Ax-domain%3Aoreilly.com%3Aproduct%3A9780596801557.VIDEO#embedded_player
> 
> graphics and oop:
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/graphics-programming/
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/the-display-list/
> 
> debugging and profiling oop:
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/production-topics-flex-debugging-mode/
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/production-topics-flex-profiling/
> 
> flash/flex workflow
> http://my.safaribooksonline.com/player?xmlid=9780596801588/i20
> 
> course introduction:
> http://tv.adobe.com/watch/colin-moocks-lost-actionscript-weekend/course-1-introduction/
> 
> 3d effects with adobe's chris nuuja:
> http://vplayer.oreilly.com/?chapter=20&video_product=urn%3Ax-domain%3Aoreilly.com%3Aproduct%3A9780596801540.VIDEO#embedded_player
> 
> the full video is available at:
> http://www.oreilly.com/go/law
> 
> once you're up to speed on the basics, examples, practice, and a helping 
> community like flashcoders should take you the rest of the way.
> 
> if you're doing any flex work, i find peter dehaan's examples to be a 
> fantastic resource:
> 
> http://flexexamples.com/
> 
> and for targeted questions, the stackoverflow community is really helpful:
> 
> http://stackoverflow.com/questions/tagged/actionscript
> 
> happy coding!
> colin
> 
> Benny wrote:
>> Hi Susan I cannot recommend any OOP book but I can recommend Lynda.com. 
>> Lynda.com has some great video courses, like
>> http://www.lynda.com/home/DisplayCourse.aspx?lpk2=759
>> Which amongst other covers OOP fundamentals and common design patterns.
>> - Benny
>> -Oorspronkelijk bericht-
>> Van: flashcoders-boun...@chattyfig.figleaf.com
>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] Namens Susan Day
>> Verzonden: woensdag 10 maart 2010 19:29
>> Aan: Flash Coders List
>> Onderwerp: Re: [Flashcoders] OOP Books (OT)
>> On Wed, Mar 10, 2010 at 12:23 PM, Mattheis, Erik (MIN - WSW) <
>> ematth...@webershandwick.com> wrote:
>>> I got AS 3 w/Design Patterns right when I delved into AS3 and I found the
>>> examples too long and complicated to follow. I would not recommend it as
>> an
>>> introduction to OOP.
>>> 
>> Noted. And your thoughts, if any, on The Object-Oriented Thought Process?
>> Susan
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> __ Informatie van ESET NOD32 Antivirus, versie van database
>> viruskenmerken 4932 (20100310) __
>> Het bericht is gecontroleerd door  ESET NOD32 Antivirus.
>> http://www.eset.com
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] hitTestPoint "hit-ing" on invisible objects

2010-03-11 Thread Stan Vassilev

Hi,

Try this (CS4, frame 1 script, with minor mod will work in Flex):

import flash.display.Sprite;

var host:Sprite;
var child:Sprite;

addChild(host = new Sprite());
host.addChild(child = new Sprite());
child.graphics.beginFill(0xFF);
child.graphics.drawRect(0, 0, 100, 100);
trace(host.hitTestPoint(50, 50, true)); // true, expected
child.visible = false;
trace(host.hitTestPoint(50, 50, true)); // true, .. huh?


So... Why is hitTestPoint not respecting child visibility? Does anyone know a 
solution to this issue?

Regards, 
Stan Vassilev
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] RegExp

2010-03-11 Thread Karl DeSaulniers

Hello List,
A while back I remember someone asking about RegExp (regular  
expressions).
I found this website. Now it is not flash based, it is javascript,  
but interesting none the less.
May give people hints on how to construct their own in AS or even PHP  
for that matter.

I am new to lists in general, so if this is bad form, let me know.
I just like sharing :) and thought this could help someone.

Best,

http://lawrence.ecorp.net/inet/samples/regexp-format.php

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders