RE: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director- SWFStudio - .NET)

2006-04-12 Thread Lieven Cardoen
Yes, maybe Flash isn't the best choice, but I don't see me making
interactive/flashy applications in java. The contents of the
cd/application can also be viewed online, but that's a rather static
environment (not to be distributed with a book). Flash is nice because a
Grafical Designer can do the first part (making animations...) and after
that I do the coding.

I am excited about Interactive Expression by Microsoft, but again
there's the mac-issue.

What other options do I have? Don't begin about Director, I simply don't
like it. Not that it is not a good product, but I've had too much
problems with it.

lieven cardoen

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 
T +32 (0)56/361 197
// communicatie bij voorkeur op [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Troy
Rollins
Sent: dinsdag 11 april 2006 18:44
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director-
SWFStudio - .NET)


On Apr 11, 2006, at 12:29 PM, Flapflap wrote:

> Maybe look at mProjector

mProjector is nice, but it doesn't offer any direct database support  
on either platform, if that is important to the project.

Lieven, you haven't really indicated why Flash itself is key to the  
project. What functionality is it offering that the only thing in  
question is which wrapper tool to use? Maybe Flash itself is a poor  
choice in this case?

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] happy passover :)

2006-04-12 Thread dan
http://www.tipo.co.il/apps/special/pesach.asp


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Adrian Park
Hey Julian,

With your example, this should work (I've just tested a similar class
instantiation in one of my classes):

var anObject = new eval("org").eval("foo").eval("Bar")();

You can pass parameters in the final set of braces as usual.

HTH
Adrian P.

On 4/12/06, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]> wrote:
>
> Hello flashcoders.
> A simple question perhaps but couldn't figure it out by myself.
> How can I instantiate a class having it's qname? Say I know that I
> need an instance of  "org.foo.Bar", how can I summon it?
>
> I tried doing:
>
>   var anObject = new (eval("org.foo.Bar"));
>
> but I get undefined in return. Maybe there is someobscure method like
> Class.instantiate(aQname) that I overlooked?
>
> TIA
>
> --
> Julian 'Julik' Tarkhanov
> me at julik.nl
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Steve Webster

Hi Julian,


A simple question perhaps but couldn't figure it out by myself.
How can I instantiate a class having it's qname? Say I know that I  
need an instance of  "org.foo.Bar", how can I summon it?


I tried doing:

 var anObject = new (eval("org.foo.Bar"));

but I get undefined in return. Maybe there is someobscure method  
like Class.instantiate(aQname) that I overlooked?


Your example should work. Are you sure that the class has been  
compiled into your SWF? If there's nothing that absolutely references  
your class in the code, it won't get compiled in. You can test that  
by tracing the value of _global.org.foo.Bar.


Cheers,

Steve

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Help with swapdepths

2006-04-12 Thread Gaia-Tek

Hi Group,

I'm having a problem with a seemingly simple task...

I'm trying to get whichever movieclip on my stage is clicked on, to 
swapDepths to the top, and be draggable...


My code is:

on (press) {
   this.swapDepths(this.getNextHighestDepth());
   startDrag(this);
}
on (release) {
   stopDrag();
}

Not working...

Any help would be appreciated...

Thanks

Don


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Getting File name when using ReferenceList

2006-04-12 Thread Yves Peckstadt
Hi Martin,

You can't get the server file name from the fileReference object due too
security issues I think.

You can do an easy work around though.

What I do is :

I upload the file to a temporary folder. After the onComplete event I do a
service call (in my case coldfusion cfc) which will handle my file
(move,rename ,delete,etc..) and then just sends the server file name back to
flash.

I am sure there are other ways to do this ofcourse.

Yves

2006/4/5, Martin Tremblay <[EMAIL PROTECTED]>:
>
> Hi,
>
> I'm uploading an image using FileReference::upload. My php file
> which handle the actual file is placing the file in the appropriate
> folder and rename the file.
>
> My question is: How can I retrieve the new name using the
> callback provided with the FileReference method ?
>
> Martin
> lvl
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Chris Velevitch
var qname:String = "org.foo.Bar";

var x = new qname ();



Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Steve Webster

Hi Chris,


var qname:String = "org.foo.Bar";

var x = new qname ();


That won't work. Did you mean:

var qname:String = "org.foo.Bar";

var x = new eval(qname)();

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with swapdepths

2006-04-12 Thread GregoryN

Maybe you should try:

this.swapDepths(this._parent.getNextHighestDepth());
OR
this.swapDepths(_root.getNextHighestDepth());

instead of

this.swapDepths(this.getNextHighestDepth());

?


  

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.



> - Gaia-Tek wrote:
> I'm having a problem with a seemingly simple task...
> 
> I'm trying to get whichever movieclip on my stage is clicked on, to 
> swapDepths to the top, and be draggable...
> 
> My code is:
> 
> on (press) {
> this.swapDepths(this.getNextHighestDepth());
> startDrag(this);
> }
> on (release) {
> stopDrag();
> }
> 
> Not working...
> 
> Any help would be appreciated...
> 
> Thanks
> 
> Don


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Chris Velevitch
Are you sure?

If it doesn't, then

 var theCommand = new commands [ commandNameToCheck ] ();

definite does. It's used in ARP.

On 4/12/06, Steve Webster <[EMAIL PROTECTED]> wrote:
> Hi Chris,
>
> > var qname:String = "org.foo.Bar";
> >
> > var x = new qname ();
>
> That won't work. Did you mean:
>
> var qname:String = "org.foo.Bar";
>
> var x = new eval(qname)();
>
> --
> Steve Webster
> Head of Development
>
> Featurecreep Ltd.
> http://www.featurecreep.com
> 14 Orchard Street, Bristol, BS1 5EH
> 0117 905 5047
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Cedric Muller

the following would work too(though very ugly):


import org.foo.Bar;
var qname:String = "org.foo.Bar";
var x = new _global[qname]();


anyway, if you don't do the import, you cannot instanciate the Bar  
class ...


OR
*just* reference the class ;) (no importdummy dumb)

org.foo.Bar;
var qname:String = "org.foo.Bar";
var x = new _global[qname]();


cedric ?



Hi Chris,


var qname:String = "org.foo.Bar";

var x = new qname ();


That won't work. Did you mean:

var qname:String = "org.foo.Bar";

var x = new eval(qname)();

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Cedric Muller

I am always wrong, but:

see the [] ?
this is 'eval()' equivalent ...

so, not the same than
var myStr = "com.bob.Bar";
var myInstance = new myStr();

see ?


Are you sure?

If it doesn't, then

 var theCommand = new commands [ commandNameToCheck ] ();

definite does. It's used in ARP.

On 4/12/06, Steve Webster <[EMAIL PROTECTED]> wrote:

Hi Chris,


var qname:String = "org.foo.Bar";

var x = new qname ();


That won't work. Did you mean:

var qname:String = "org.foo.Bar";

var x = new eval(qname)();

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Old Flashplayer Standalone

2006-04-12 Thread Sönke Rohde
Hi,
I am looking for older Flash Players standalone.
I got http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266
which only offers the different plugin-versions. Are the .exe-Players
available too?

Thanks,
Sönke

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Steve Webster

Hi Chris,


Are you sure?


Yup :o)


If it doesn't, then

 var theCommand = new commands [ commandNameToCheck ] ();

definite does. It's used in ARP.


I'd wager that 'commands' is an array of constructor function object  
references, stored by name, as opposed to an array of strings which  
contain the package names.


--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Dan Efergan

Kind of yes and no...

(Hello to the group by the way, new here)

Please excuse my lack of correct terminology, and number of  
assumptions, I think...


Once you understand the underlying structure of Flash, you realise  
that referencing properties, variables, and commands is very similar  
to referencing anything contained within an Object...


So in object "Foo", you have a property called "bar" then you  
reference it through foo["bar"].  The useful part is that Flash will  
eval() everything within those brackets.  So you could also reference  
foo["ba"+"r"] to the same effect.


So with:
var theCommand = new commands [ commandNameToCheck ] ();

You're actually looking within the new commands structure, with the  
square brackets doing their  job, working like an eval().


Not sure if that was useful or not, but I'm pretty sure that's how  
it's going down.


Dan

On 12 Apr 2006, at 11:30, Cedric Muller wrote:


I am always wrong, but:

see the [] ?
this is 'eval()' equivalent ...

so, not the same than
var myStr = "com.bob.Bar";
var myInstance = new myStr();

see ?


Are you sure?

If it doesn't, then

 var theCommand = new commands [ commandNameToCheck ] ();

definite does. It's used in ARP.

On 4/12/06, Steve Webster <[EMAIL PROTECTED]> wrote:

Hi Chris,


var qname:String = "org.foo.Bar";

var x = new qname ();


That won't work. Did you mean:

var qname:String = "org.foo.Bar";

var x = new eval(qname)();

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Dan Efergan
[EMAIL PROTECTED]



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic shread fonts was : Linked font from class

2006-04-12 Thread Cedric Muller
Zarate's trick doesn't work with Flash 8 ?... hmm, I am using Flash 8  
IDE, but compiling to 7 ,... no problems .. yet ?...
I works so nicely with my 100 files project ... it even works in ZINC  
projector (they said it wasn't possible! :))
anyway, Erix's SWFMILL solution seems great ... and I understand  
french :)

will try it for sure...

Hmm... regarding someone at Adobe/Macromedia telling us something  
about shared libraries ... huh! it would be like George Bush praying  
for global world peace ;)
as for shared assets, I never read anything 'smart' on the  
mothership's side ...they are just sticking with opening thousands of  
FLAs, dragging, dropping elements everywhere, edit their linkage in  
some weird place, tick on , tick off, compile, retest, don't work ...  
close Flash, relaunch, open again: works ...huh ?

yeeeaaahhhaa...

I am SO negative on ADBE/MM Shared Libraries implementation ... ...  
it is like a NO feature


anyway, I hope that your wish is listened to ...

i go to the wishlist right now ...

Cedric


Heeello!

First of all, sorry for not publish the english version of the
article. I never find time enough to do it :S

Then, since right now I´m working with SWFMill and MTASC I´ll try to
remember my bad french and read your post. I know sometime ago Martin
Klasson (who is also in this list) found some side problems with the
trick I was using. I know that trick is not elegant at all, but trust
me, it does work.

BUT it would be *great* to hear someone at Macromedia telling us when
(if at any time) do they plan to add an official-risk-free way to load
and use dynamic fonts without any kind of restrictions. I guess the
best way to do it is the simplest one: use fonts the same way we use
classes. That mean "including" the font(s) in one swf, load it at run
time and then use it wherever.

I know it´s doesn´t seem as important as other features for player
8.5, but it will help a lot of people.

Cheers,

Zarate

ps: Someone emailed me off-list last week about the article and I
haven´t replied yet, sorry :)

On 4/11/06, erixtekila <[EMAIL PROTECTED]> wrote:
still, you have to put that Shared thingie in both **The  
sharedLib AND

** The loader ...
with zarate's, you don't need both ... actually, you just prepare  
the

**SharedLib  and then the Loader automatically loads in the new
font (without linking, without compiling, without everything, just
leave it alone)

wouldn't it be better ?

Yes !

Did you tried this technic with flash 8 ide ?
On osx, i can't recompile the original example of zarate :
Problem of ressource for the forceShared asset.

BTW, it gave me the curiosity to dig further in this technic.
I've made a new thread on my blog in order to explain my attempt :
http://www.v-i-a.net/blog/archives/43.html

I used Zarate's trick (because this is in fact a trick) to do it with
opensource tools.
I had the feeling that it would be easier than the long (and badly
translated) explanation available.

As I don't anderstand spanish and you don't probably french, I try to
translate some part of my post here.

We'll be able to create true dynamic shared libraries for flash.
The principe uses the same as Zarate, but IMHO more friendly.

If I remember well, the flash player 6.0.79 gets a new feature :
multi-tiers shared lib.
We use that in order to create dynamic shared lib without referencing
the url in the importing animation.

Here are the key to the paradise :
- An empty swf
- This swf is used to add the url to itself and the other assets  
to be

shared.
- A loading animation that preload the sharedLib before using it.

All the swfmill script are on the blog.
If one is interested to an automated as2ant process, let me know.


Even if this is an awful trick, it leverage the power of dynamic  
shared

assets in flash.
And I, personnaly,  feel much more confortable to do it with swfmill
than Flash, as that type of creation is really ugly in it.

HTH
---
erixtekila
http://blog.v-i-a.net/

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Zárate
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.c

Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Adrian Park
Of course, I was wrong (where's my head at?!).

I can get several of the eval() and [] options to work but, out of
curiosity, how would you pass parameters with the constructor? I can't seem
to do this with my tests. Apologies if this is a dumb q'.

Adrian P.

On 4/12/06, Cedric Muller <[EMAIL PROTECTED]> wrote:
>
> I am always wrong, but:
>
> see the [] ?
> this is 'eval()' equivalent ...
>
> so, not the same than
> var myStr = "com.bob.Bar";
> var myInstance = new myStr();
>
> see ?
>
> > Are you sure?
> >
> > If it doesn't, then
> >
> >  var theCommand = new commands [ commandNameToCheck ] ();
> >
> > definite does. It's used in ARP.
> >
> > On 4/12/06, Steve Webster <[EMAIL PROTECTED]> wrote:
> >> Hi Chris,
> >>
> >>> var qname:String = "org.foo.Bar";
> >>>
> >>> var x = new qname ();
> >>
> >> That won't work. Did you mean:
> >>
> >> var qname:String = "org.foo.Bar";
> >>
> >> var x = new eval(qname)();
> >>
> >> --
> >> Steve Webster
> >> Head of Development
> >>
> >> Featurecreep Ltd.
> >> http://www.featurecreep.com
> >> 14 Orchard Street, Bristol, BS1 5EH
> >> 0117 905 5047
> >>
> >>
> >> ___
> >> Flashcoders@chattyfig.figleaf.com
> >> To change your subscription options or search the archive:
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >> Brought to you by Fig Leaf Software
> >> Premier Authorized Adobe Consulting and Training
> >> http://www.figleaf.com
> >> http://training.figleaf.com
> >>
> >
> >
> > --
> > Chris Velevitch
> > Manager - Sydney Flash Platform Developers Group
> > www.flashdev.org.au
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Cedric Muller

you could have a 'paramsObj' Object that stores parameters ?

var myStr:String = "org.foo.Bar";
var paramsObj:Object = new Object();
paramsObj.name = "robert";
paramsObj.age = 12;
var myInstance:Object = new _global[myStr](paramsObj);


var theCommand = new commands [ commandNameToCheck ] ();


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-12 Thread andrew . lucking
|-+->
| |   John Dowdell  |
| |   <[EMAIL PROTECTED]>  |
| |   Sent by:  |
| |   [EMAIL PROTECTED]|
| |   figleaf.com   |
| | |
| | |
| |   2006-04-11 07:45 PM   |
| |   Please respond to Flashcoders |
| |   mailing list  |
| | |
|-+->
  
>---|
  | 
  |
  |   To:   Flashcoders mailing list 
  |
  |   cc:   
  |
  |   Subject:  Re: [Flashcoders] Active X and Microsoft IE ... 
  |
  
>---|






>Andrew Lucking wrote:
>> Good question. My perception is that this time around Adobe was slower
to
>> get *solutions* available. For whatever reasons it was only late last
week
>> that I was able to point folks to some workaround samples from Adobe.
With
>> the browser update already circulating as an optional download and
rumours
>> of it being included in this week's security patch from MS maybe folks
>> started without Adobe's guidance?

>This is hard for me to understand too, because the Adobe Developer
>Center had the basic algorithms and examples up before anyone else
>started to do so. The material that was added this week was additional
>material, such as the hotfix to Flex 1.5 to change the way its templates
>handled OBJECT/EMBED.

While aware of the Active Content page on the Adobe site, I only became
aware of the JS solutions from Adobe last week:
http://weblogs.macromedia.com/emmy/archives/2006/04/new_js_sample_c.cfm

Though the article Emmy links says it was created end of March so I guess I
can take some blame for not finding it first ;-)

Anyhow, I get the impression most developers are all over this so really,
regardless of where the solutions originated, it seems to be a relatively
smooth transition (notice I didn't say painless).

Cheers,
A.




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] server-side convert to flv

2006-04-12 Thread Christian
You could also use the On2 flix engine SDK, which is the SDK for flix 
that you can wrap.  It's a com object and I think they just released an 
update for a linux version as well.


We use it at work for all of our video conversion and it's pretty solid.

Marc Hoffman wrote:
I'm interested in using ffmpeg. Having never used any server-side 
engines/scripting other than a little ASP, I haven't a clue how ffmpeg 
gets implented, and their website seems to presume advanced user 
knowledge. Can anyone steer me to something that explains how to 
implent ffmpeg? For instance, what kind of server, where does the code 
sit, what are some typical application scenarios and how were they put 
together?


thanks,
Marc

At 09:04 AM 4/11/2006, Arthur Debert wrote:
Hi Gerry > Does anyone know of a server-side application to convert 
uploaded > video in mpg, avi, mov or wmv format to > flv? Something 
like what youtube.com is doing? I searched the > archives and 
couldn't find anything. I don't know what youtube is using but, ffmeg 
(http://ffmpeg.sourceforge.net) is pretty good. I've been using it 
and it's scriptable. It's LGPL licensed. arthur



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-12 Thread John Grden
I have to ask, now that I've gone out to see the active content center,
what's the active part?

I mean, is it the "send feedback" option?  I feel like a tard asking this,
but apparently it's not obvioius to me, and so, I'm guessing it's not
obvious to some others either.

One thing that's missing is a "last modified" date/time - how would I know
this is THE latest and greatest?

I sense that there's some peice of a puzzle I'm missing here - like a
workflow/tool I'm not using that would cause me to know for myself that this
was the latest and greatest info etc.

Thanks for your patience John,

JG

On 4/11/06, John Dowdell <[EMAIL PROTECTED]> wrote:
>
> On 4/10/06, John Dowdell <[EMAIL PROTECTED]> wrote:
> >>Related question: Do you see reasons why so much of this conversation
> >>about ActiveX changes in the Microsoft browser has avoided the source
> >>material on the Adobe site? Reporters are frequently getting the facts
> >>wrong ("ads won't play" etc), and on the lists there's sort of a
> >>goldrush to be handrolling other solutions. Any ideas I should consider
> >>here? Thanks.
>
>
> John Grden wrote:
> > What's cool about the blog entries is I can get to the author right away
> > with a comment or email and I usually have the benefit of other comments
> > which might not only clarify the blog's post, but actually offer another
> > reference.  That and I now have 5+ other people I can email about the
> post
> > and get help from them.
>
> Thanks, John, but I'm still confused... the Active Content Center hit
> tons of blogs before other news or approaches did. True, these blogs
> pointed to resources on a website, rather than containing a shorter set
> of resources themselves, but the Active Content Center was still
> discoverable through blogs, so it's hard for me to see that this is the
> key difference...?
>
> (I understand what you say about the dating of web pages, though, that's
> a peeve I've raised too.)
>
>
> Andrew Lucking wrote:
> > Good question. My perception is that this time around Adobe was slower
> to
> > get *solutions* available. For whatever reasons it was only late last
> week
> > that I was able to point folks to some workaround samples from Adobe.
> With
> > the browser update already circulating as an optional download and
> rumours
> > of it being included in this week's security patch from MS maybe folks
> > started without Adobe's guidance?
>
> This is hard for me to understand too, because the Adobe Developer
> Center had the basic algorithms and examples up before anyone else
> started to do so. The material that was added this week was additional
> material, such as the hotfix to Flex 1.5 to change the way its templates
> handled OBJECT/EMBED.
>
>
> Bill Lane wrote:
> > I actually think that the problem was that Adobe was too quick to
> > respond.  They've had a solution up since the first round of worry hit
> > this forum.  But I think it was so long ago that most forgot about it.
> > Then when it hit the press again they didn't remind people firmly
> > enough.  They treated like the old news it was.  Rather than the new
> > news that most still think it is.
>
> Good point... by the time the newspapers had the scary articles we were
> probably already off the radar. This case was particularly dejavuful
> because Macromedia had similar material up on the website two years ago,
> when a stricter browser change was about to be deployed. I've gotten
> whiplash from trying to follow the play-by-play on this whole issue
> myself ;-)
>
>
> Weldon MacDonald wrote:
> > What happens to a current browser if you make the switch?
>
> Here's a page which has links to both inline OBJECT/EMBED as well as
> tags in an external JavaScript file, so you can see both behaviors in
> your own updated IE... there's also a Captivate presentation on that
> page if you prefer not to use an updated Internet Explorer yourself.
> http://www.macromedia.com/devnet/activecontent/articles/before_after.html
>
> tx,
> jd
>
>
>
>
>
>
>
>
>
>
> --
> John Dowdell . Adobe Developer Support . San Francisco CA USA
> Weblog: http://weblogs.macromedia.com/jd
> Aggregator: http://weblogs.macromedia.com/mxna
> Technotes: http://www.macromedia.com/support/
> Spam killed my private email -- public record is best, thanks.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
John Grden - Blitz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figl

[Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Magnus Askenbäck

Hi all,
I'm trying to build a quite simple text editor in f8 and are currently 
having some problems with the Selecton class.

If anyone can give me some pointers it would be much apreciated.

Problem is that whenever I try to use my buttons I loose focus of the 
textField and the Selection doesn't trigger. Like so:


boldButton.onRelease = function () {
   my_txt.setTextFormat(Selection.getBeginIndex(), 
Selection.getEndIndex(), arialBold);

}

Selection.getBeginIndex() and Selection.getEndIndex() only returns -1

And if someone has a live exemple (with code) that would be awesome. A 
component is not an option tho.


Tnx

.magnus

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Johan Karlsson
If I remember correctly using onRelease or even onPress is to late and the
selection is already gone. To store the selection indexes you need to use
the onMouseDown event.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Magnus
Askenbäck
Sent: den 12 april 2006 14:47
To: Flashcoders mailing list
Subject: [Flashcoders] Text editor - Selection trouble.


Hi all,
I'm trying to build a quite simple text editor in f8 and are currently
having some problems with the Selecton class.
If anyone can give me some pointers it would be much apreciated.

Problem is that whenever I try to use my buttons I loose focus of the
textField and the Selection doesn't trigger. Like so:

boldButton.onRelease = function () {
my_txt.setTextFormat(Selection.getBeginIndex(),
Selection.getEndIndex(), arialBold);
}

Selection.getBeginIndex() and Selection.getEndIndex() only returns -1

And if someone has a live exemple (with code) that would be awesome. A
component is not an option tho.

Tnx

.magnus

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Paul BH
if memory serves, this exact thing is covered in Sam Wan's book on OO
programming in actionscript

its quite an old book, and the code is AS1, but for what you're doing
I think it might just get you where you wanna go...

url for the booko:http://www.wheelmaker.org/

On 4/12/06, Magnus Askenbäck <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm trying to build a quite simple text editor in f8 and are currently
> having some problems with the Selecton class.
> If anyone can give me some pointers it would be much apreciated.
>
> Problem is that whenever I try to use my buttons I loose focus of the
> textField and the Selection doesn't trigger. Like so:
>
> boldButton.onRelease = function () {
> my_txt.setTextFormat(Selection.getBeginIndex(),
> Selection.getEndIndex(), arialBold);
> }
>
> Selection.getBeginIndex() and Selection.getEndIndex() only returns -1
>
> And if someone has a live exemple (with code) that would be awesome. A
> component is not an option tho.
>
> Tnx
>
> .magnus
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Magnus Askenbäck

Tack Johan, that worked like a charm!  =)

.m

Johan Karlsson wrote:


If I remember correctly using onRelease or even onPress is to late and the
selection is already gone. To store the selection indexes you need to use
the onMouseDown event.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Magnus
Askenbäck
Sent: den 12 april 2006 14:47
To: Flashcoders mailing list
Subject: [Flashcoders] Text editor - Selection trouble.


Hi all,
I'm trying to build a quite simple text editor in f8 and are currently
having some problems with the Selecton class.
If anyone can give me some pointers it would be much apreciated.

Problem is that whenever I try to use my buttons I loose focus of the
textField and the Selection doesn't trigger. Like so:

boldButton.onRelease = function () {
   my_txt.setTextFormat(Selection.getBeginIndex(),
Selection.getEndIndex(), arialBold);
}

Selection.getBeginIndex() and Selection.getEndIndex() only returns -1

And if someone has a live exemple (with code) that would be awesome. A
component is not an option tho.

Tnx

.magnus

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


 



--

*MAGNUS ASKENBÄCK  |  AD

NORMA COMMUNICATION AB*
T. +46 31 748 88 15
M. +46 736 79 48 97
[EMAIL PROTECTED]
www.norma.se

--

"It is better to fail in originality
than to succeed in imitation."
» Herman Melville (1819 - 1891)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Marcelo Volmaro
That´s right, because once you hitted the button, the selection is the  
button.
You need to store the start/end index somewere and then, on the button,  
use that indexes instead of the Selection functions.


An easy way could be to assign into an onEnterFrame a function that checks  
if the selected item is the textfield and if is, store the start/end  
positions of the selection.
Then, the button code should look like (assuming you stored the start/end  
indexes in startIndex and endIndex)

boldButton.onRelease = function () {
my_txt.setTextFormat(startIndex, endIndex, arialBold);
}

Hope it helps...

On Wed, 12 Apr 2006 09:46:55 -0300, Magnus Askenbäck  
<[EMAIL PROTECTED]> wrote:



Hi all,
I'm trying to build a quite simple text editor in f8 and are currently  
having some problems with the Selecton class.

If anyone can give me some pointers it would be much apreciated.

Problem is that whenever I try to use my buttons I loose focus of the  
textField and the Selection doesn't trigger. Like so:


boldButton.onRelease = function () {
my_txt.setTextFormat(Selection.getBeginIndex(),  
Selection.getEndIndex(), arialBold);

}

Selection.getBeginIndex() and Selection.getEndIndex() only returns -1

And if someone has a live exemple (with code) that would be awesome. A  
component is not an option tho.


Tnx

.magnus

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
_
Marcelo Volmaro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Old Flashplayer Standalone

2006-04-12 Thread Johan Karlsson
If you can get your hands on older trial versions of flash you should get
the standalone player along with it.

I did a quick "google" and found MX 2004 trial here:
http://download.macromedia.com/pub/flash/esd/flashmx_trial_en.exe

/Johan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sönke
Rohde
Sent: den 12 april 2006 12:36
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Old Flashplayer Standalone


Hi,
I am looking for older Flash Players standalone.
I got http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266
which only offers the different plugin-versions. Are the .exe-Players
available too?

Thanks,
Sönke

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Giles Taylor
I got round this this by adding a mouse listener to the textField and checking 
onMouseDown that the mouse was pressed within the text area, if it was then 
onRelease gets the selection (getCaret(), getBeginIndex() & getEndIndex()) and 
stores it in variables so it can be recalled later.

This allows you to set the selection up again after a styling button has been 
released, so the user doesn't have to re-select to apply some more styling 
(maybe they want it bold & italic). It also allows you to setup a function to 
check the styling of selected text and automatically put toggle buttons into 
the correct state (if bold text is selected the bold button goes to the down 
state).

It all depends how far you want to take your "quite simple text editor" ;)

Giles

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magnus Askenbäck
Sent: 12 April 2006 14:13
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Text editor - Selection trouble.

Tack Johan, that worked like a charm!  =)

.m

Johan Karlsson wrote:

>If I remember correctly using onRelease or even onPress is to late and 
>the selection is already gone. To store the selection indexes you need 
>to use the onMouseDown event.
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Magnus 
>Askenbäck
>Sent: den 12 april 2006 14:47
>To: Flashcoders mailing list
>Subject: [Flashcoders] Text editor - Selection trouble.
>
>
>Hi all,
>I'm trying to build a quite simple text editor in f8 and are currently 
>having some problems with the Selecton class.
>If anyone can give me some pointers it would be much apreciated.
>
>Problem is that whenever I try to use my buttons I loose focus of the 
>textField and the Selection doesn't trigger. Like so:
>
>boldButton.onRelease = function () {
>my_txt.setTextFormat(Selection.getBeginIndex(),
>Selection.getEndIndex(), arialBold);
>}
>
>Selection.getBeginIndex() and Selection.getEndIndex() only returns -1
>
>And if someone has a live exemple (with code) that would be awesome. A 
>component is not an option tho.
>
>Tnx
>
>.magnus
>
>___
>Flashcoders@chattyfig.figleaf.com
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>Brought to you by Fig Leaf Software
>Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
>http://training.figleaf.com
>
>
>___
>Flashcoders@chattyfig.figleaf.com
>To change your subscription options or search the archive:
>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>Brought to you by Fig Leaf Software
>Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
>http://training.figleaf.com
>
>
>  
>

-- 

*MAGNUS ASKENBÄCK  |  AD

NORMA COMMUNICATION AB*
T. +46 31 748 88 15
M. +46 736 79 48 97
[EMAIL PROTECTED]
www.norma.se

--

"It is better to fail in originality
than to succeed in imitation."
» Herman Melville (1819 - 1891)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Michael Bedar
I did this a long time ago, and as others have said, you need to use  
an onMouseDown.  You will still lose your selection however.. I ended  
up storing the selection begin and end an using that to set the  
selection again after I applied the style.


Mike


On Apr 12, 2006, at 8:46 AM, Magnus Askenbäck wrote:


Hi all,
I'm trying to build a quite simple text editor in f8 and are  
currently having some problems with the Selecton class.

If anyone can give me some pointers it would be much apreciated.

Problem is that whenever I try to use my buttons I loose focus of  
the textField and the Selection doesn't trigger. Like so:


boldButton.onRelease = function () {
   my_txt.setTextFormat(Selection.getBeginIndex(),  
Selection.getEndIndex(), arialBold);

}

Selection.getBeginIndex() and Selection.getEndIndex() only returns -1

And if someone has a live exemple (with code) that would be  
awesome. A component is not an option tho.


Tnx

.magnus

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov


On 12-apr-2006, at 12:57, Cedric Muller wrote:


new _global[myStr]


Ok, finally I sorted it out. It's really twisted.

Firts of all, the best manner to access the needed class is indeed by  
"property literal" (the fact that the class is just a property of  
it's parent namespace), so that is the most neat solution IMO:


var bananaType:String = "green";
var inst:Banana  = new org.monkeys.bananas[bananaType]();

What turned out to _really_ be the problem is the following. Looks  
like the Flash compiler actually _omits_ the classes that I reference  
using import if they are not literally called upon in code (which is  
ridiculous). I have the following in my class:


import com.julik.star.stack.layout.Layout;
import com.julik.stack.layout.Horizontal;
import com.julik.stack.layout.Vertical;
import com.julik.stack.layout.Burst;

class com.julik.star.Stack extends com.julik.star.Widget {
// bla bla
function Stack() {
		layout = new com.julik.star.stack.layout.Horizontal; // this class  
DOES get imported and is visible in _globals

}
}

The problem is - I got to have "new someClass" somewhere in my code  
for the other "layouts" to appear under _globals, after which I can  
properly instantiate them.


I wonder if it's a bug or just one of those places where "It's gonna  
be worse than Java" is showing :-)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Steve Webster

Julian,

The problem is - I got to have "new someClass" somewhere in my code  
for the other "layouts" to appear under _globals, after which I can  
properly instantiate them.


You just need to reference the class, so variables like this...

var hLayoutRef:Function = Horizontal;
var vLayoutRef:Function = Vertical;
var bLayoutRef:Function = Burst;

...will do the trick.

Also, if you're using mtasc you could use the following switch...

-pack com.julik.stack.layout

Also, if you want a more structured way to instantiate these classes,  
have a look at the find method of my ClassFinder class here:


http://dynamicflash.com/classes/ClassFinder.as

Regards,

Steve

--
Steve Webster
Head of Development

Featurecreep Ltd.
http://www.featurecreep.com
14 Orchard Street, Bristol, BS1 5EH
0117 905 5047


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director- SWFStudio - .NET)

2006-04-12 Thread Troy Rollins


On Apr 12, 2006, at 3:28 AM, Lieven Cardoen wrote:


Don't begin about Director, I simply don't
like it.


Fair enough. Not sure what to tell you. Sounds like you have to make  
some hard choices.


--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Text editor - Selection trouble.

2006-04-12 Thread Magnus Askenbäck

tnx for the tips all, been really helpful! =D

.m

Giles Taylor wrote:


I got round this this by adding a mouse listener to the textField and checking 
onMouseDown that the mouse was pressed within the text area, if it was then 
onRelease gets the selection (getCaret(), getBeginIndex() & getEndIndex()) and 
stores it in variables so it can be recalled later.

This allows you to set the selection up again after a styling button has been 
released, so the user doesn't have to re-select to apply some more styling (maybe 
they want it bold & italic). It also allows you to setup a function to check 
the styling of selected text and automatically put toggle buttons into the correct 
state (if bold text is selected the bold button goes to the down state).

It all depends how far you want to take your "quite simple text editor" ;)

Giles

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Magnus Askenbäck
Sent: 12 April 2006 14:13
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Text editor - Selection trouble.

Tack Johan, that worked like a charm!  =)

.m

Johan Karlsson wrote:

 

If I remember correctly using onRelease or even onPress is to late and 
the selection is already gone. To store the selection indexes you need 
to use the onMouseDown event.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Magnus 
Askenbäck

Sent: den 12 april 2006 14:47
To: Flashcoders mailing list
Subject: [Flashcoders] Text editor - Selection trouble.


Hi all,
I'm trying to build a quite simple text editor in f8 and are currently 
having some problems with the Selecton class.

If anyone can give me some pointers it would be much apreciated.

Problem is that whenever I try to use my buttons I loose focus of the 
textField and the Selection doesn't trigger. Like so:


boldButton.onRelease = function () {
  my_txt.setTextFormat(Selection.getBeginIndex(),
Selection.getEndIndex(), arialBold);
}

Selection.getBeginIndex() and Selection.getEndIndex() only returns -1

And if someone has a live exemple (with code) that would be awesome. A 
component is not an option tho.


Tnx

.magnus

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com 
http://training.figleaf.com





   



 



--

*MAGNUS ASKENBÄCK  |  AD

NORMA COMMUNICATION AB*
T. +46 31 748 88 15
M. +46 736 79 48 97
[EMAIL PROTECTED]
www.norma.se

--

"It is better to fail in originality
than to succeed in imitation."
» Herman Melville (1819 - 1891)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash Position: Senior Flash Developer - LA area

2006-04-12 Thread John Grden
Blitz is looking for a few Flash developers in the LA area:

https://www.linkedin.com/e/Iw6YzGyUEl0rwJgzIZtMXarRzm8/vjb/45606/bjob/

If you know of anyone that might interested, please have them contact
[EMAIL PROTECTED]

Thanks for the help!

--
John Grden - Blitz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash Position: Senior Flash Developer - LA area

2006-04-12 Thread Lee McColl-Sylvester
Hey, I thought you were gonna let me know personally??? ;-)

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Grden
Sent: 12 April 2006 15:33
To: Flashcoders mailing list; Open Source Flash Mailing List
Subject: [Flashcoders] Flash Position: Senior Flash Developer - LA area

Blitz is looking for a few Flash developers in the LA area:

https://www.linkedin.com/e/Iw6YzGyUEl0rwJgzIZtMXarRzm8/vjb/45606/bjob/

If you know of anyone that might interested, please have them contact
[EMAIL PROTECTED]

Thanks for the help!

--
John Grden - Blitz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director- SWFStudio - .NET)

2006-04-12 Thread Michael Bedar

Unfortunately Director is still the best option in some cases.


Mike



On Apr 12, 2006, at 10:20 AM, Troy Rollins wrote:



On Apr 12, 2006, at 3:28 AM, Lieven Cardoen wrote:


Don't begin about Director, I simply don't
like it.


Fair enough. Not sure what to tell you. Sounds like you have to  
make some hard choices.


--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov


On 12-apr-2006, at 16:20, Steve Webster wrote:


http://dynamicflash.com/classes/ClassFinder.as

Thanks a bunch, looks impressive. Will investigate that. Shame that  
having gone that far with OOP AS 2.0 still has that little reflection  
available.


Funny though that imports do not do anything unless you use the  
classes directly. I'd say this is broken.


As to the MTASC - I didn't get far enough yet and I still like the  
fact of having a Flash IDE where I can draw'em widgets, and I also  
use some mx.tween classes for the project (which I believe won't  
build cleanly on MTASC unless you have Flash installed - which sort  
of defeats the purpose of making it build with MTASC at all).

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following 
amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, 
running the HelloWorld sample, myNetConnection Debugger doesn`t 
report any Result event (while I get Connect and Call ones..)


Any idea ?

Eric 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director- SWFStudio - .NET)

2006-04-12 Thread Troy Rollins


On Apr 12, 2006, at 10:37 AM, Michael Bedar wrote:


Unfortunately Director is still the best option in some cases.


;-)

Hey, I didn't say it!

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Ian Thomas
On 4/12/06, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]> wrote:
> Funny though that imports do not do anything unless you use the
> classes directly. I'd say this is broken.

I disagree.

All 'import' does is to tell the parser which particular class you are
referring to.

If we assume that the file com/fred/MyMonkey.as exists, for example:

var monkey:MyMonkey=new MyMonkey();   // fails without an import statement

whereas:

import com.fred.MyMonkey;
var monkey:MyMonkey=new MyMonkey();

works, but could equally be written as:

var monkey:com.fred.MyMonkey=new com.fred.MyMonkey();

Import doesn't actually use the class per se - a solid reference of
some sort (such as the declaration of a variable or the creation of an
object) of that class suddenly means that it's actually been used, and
so the compiler notes that it needs to be compiled and included in the
output .swf.

The same, as far as I can recall (it's been a while now), is true of Java.

Otherwise typing something like:
import com.fred.*;
var monkey:com.fred.MyMonkey=new com.fred.MyMonkey();

Would compile in all of the code in your com.fred library - which it
patently doesn't do, and nor would I expect it to.

Cheers,
  Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread Kevin Matzdorf


Did you try watching the video tutorials?  The ones for installing and 
testing were extremely helpful.



From: elr <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection 
Debugger

Date: Wed, 12 Apr 2006 10:50:59 -0400

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following amfphp.org 
tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, running 
the HelloWorld sample, myNetConnection Debugger doesn`t report any Result 
event (while I get Connect and Call ones..)


Any idea ?

Eric

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash Position: Senior Flash Developer - LA area

2006-04-12 Thread John Grden
Yer not in LA Lee ;)  OR did you move??

On 4/12/06, Lee McColl-Sylvester <[EMAIL PROTECTED]> wrote:
>
> Hey, I thought you were gonna let me know personally??? ;-)
>
> Lee
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of John
> Grden
> Sent: 12 April 2006 15:33
> To: Flashcoders mailing list; Open Source Flash Mailing List
> Subject: [Flashcoders] Flash Position: Senior Flash Developer - LA area
>
> Blitz is looking for a few Flash developers in the LA area:
>
> https://www.linkedin.com/e/Iw6YzGyUEl0rwJgzIZtMXarRzm8/vjb/45606/bjob/
>
> If you know of anyone that might interested, please have them contact
> [EMAIL PROTECTED]
>
> Thanks for the help!
>
> --
> John Grden - Blitz
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
John Grden - Blitz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash Position: Senior Flash Developer - LA area

2006-04-12 Thread Lee McColl-Sylvester
:(  No, but I'm looking to

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Grden
Sent: 12 April 2006 16:24
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Position: Senior Flash Developer - LA
area

Yer not in LA Lee ;)  OR did you move??

On 4/12/06, Lee McColl-Sylvester <[EMAIL PROTECTED]> wrote:
>
> Hey, I thought you were gonna let me know personally??? ;-)
>
> Lee
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of John
> Grden
> Sent: 12 April 2006 15:33
> To: Flashcoders mailing list; Open Source Flash Mailing List
> Subject: [Flashcoders] Flash Position: Senior Flash Developer - LA
area
>
> Blitz is looking for a few Flash developers in the LA area:
>
> https://www.linkedin.com/e/Iw6YzGyUEl0rwJgzIZtMXarRzm8/vjb/45606/bjob/
>
> If you know of anyone that might interested, please have them contact
> [EMAIL PROTECTED]
>
> Thanks for the help!
>
> --
> John Grden - Blitz
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
John Grden - Blitz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Old Flashplayer Standalone

2006-04-12 Thread Sönke Rohde
I thought there is a resource without installing an older version.
Thanks anyway!

Cheers,
Sönke



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Johan Karlsson
> Sent: Wednesday, April 12, 2006 3:44 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Old Flashplayer Standalone
> 
> If you can get your hands on older trial versions of flash 
> you should get
> the standalone player along with it.
> 
> I did a quick "google" and found MX 2004 trial here:
> http://download.macromedia.com/pub/flash/esd/flashmx_trial_en.exe
> 
> /Johan
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Sönke
> Rohde
> Sent: den 12 april 2006 12:36
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] Old Flashplayer Standalone
> 
> 
> Hi,
> I am looking for older Flash Players standalone.
> I got 
> http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266
> which only offers the different plugin-versions. Are the .exe-Players
> available too?
> 
> Thanks,
> Sönke
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] old Flash Player

2006-04-12 Thread Mark Lorah

Does anyone know where to get an installer for Flash Player 6.065?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Instantiate a class by string

2006-04-12 Thread Jim Tann
Shouldn't that be a params array?

var myStr:String = "org.foo.Bar";
var paramsArr:Array = new Array("robert", 12);
var myInstance:Object = new _global[myStr](paramsArr);

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cedric
Muller
Sent: 12 April 2006 11:57
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Instantiate a class by string

you could have a 'paramsObj' Object that stores parameters ?

var myStr:String = "org.foo.Bar";
var paramsObj:Object = new Object();
paramsObj.name = "robert";
paramsObj.age = 12;
var myInstance:Object = new _global[myStr](paramsObj);

>>> var theCommand = new commands [ commandNameToCheck ] ();

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] old Flash Player

2006-04-12 Thread Beverly Guillermo
Hi, 

Have you tried 
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14266

It has all the old flash players.

Beverly


-Original Message-
From: "Mark Lorah" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: 04/12/06 11:44 AM
Subject: [Flashcoders] old Flash Player

Does anyone know where to get an installer for Flash Player 6.065?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] old Flash Player

2006-04-12 Thread Jim Berkey

Try here:
http://www.macromedia.com/go/tn_14266

- Original Message - 
From: "Mark Lorah" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, April 12, 2006 11:44 AM
Subject: [Flashcoders] old Flash Player



Does anyone know where to get an installer for Flash Player 6.065?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr

No, Kevin,I missed this area. I`m giving a look right now .Thx !!!


At 2006-04-12   11:16, you wrote:

Did you try watching the video tutorials?  The ones for installing 
and testing were extremely helpful.



From: elr <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger
Date: Wed, 12 Apr 2006 10:50:59 -0400

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following 
amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, 
running the HelloWorld sample, myNetConnection Debugger doesn`t 
report any Result event (while I get Connect and Call ones..)


Any idea ?

Eric

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with swapdepths

2006-04-12 Thread Gaia-Tek

I'll try it, thanks a lot...



GregoryN wrote:

Maybe you should try:

this.swapDepths(this._parent.getNextHighestDepth());
OR
this.swapDepths(_root.getNextHighestDepth());

instead of

this.swapDepths(this.getNextHighestDepth());

?


  

  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] old Flash Player

2006-04-12 Thread Mark Lorah
Many Thanks. I had found this a couple months ago  and could never  
get back to it.


-M

On Apr 12, 2006, at 11:55 AM, Beverly Guillermo wrote:


Hi,

Have you tried http://www.macromedia.com/cfusion/knowledgebase/ 
index.cfm?id=tn_14266


It has all the old flash players.

Beverly


-Original Message-
From: "Mark Lorah" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: 04/12/06 11:44 AM
Subject: [Flashcoders] old Flash Player

Does anyone know where to get an installer for Flash Player 6.065?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Mike Anderson
Hello All,

I have a Flash App, that uses a "Non-Scaling" type setup - in which upon
browser resize, the controls simply reposition themselves around,
creating more usable area for content.  It's works beautifully, but with
a catch.

The problem is, my application insists on starting out at it's Published
Size - so if the browser is larger than the application, there is a
bunch of white-space along the Right and Bottom.  Of course, I designed
the app to take up the entire browser window.

The moment the user resizes the browser, the application immediately
snaps into place taking up 100% of the browser area - and everything is
well.

How can I trigger this event, the moment the application is loaded in
the browser???

Thanks in advance for your help,

Mike

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov


On 12-apr-2006, at 17:05, Ian Thomas wrote:


Import doesn't actually use the class per se - a solid reference of
some sort (such as the declaration of a variable or the creation of an
object) of that class suddenly means that it's actually been used, and
so the compiler notes that it needs to be compiled and included in the
output .swf.

The same, as far as I can recall (it's been a while now), is true  
of Java.


It seems logical that import makes the classes available in the  
context into which they are imported. What seems un-logical to me is  
that it's impossible to force "burn-in" of these classes even if they  
are not being called explicitly (with standard Flash means).


As for Java - I don't see how this is relevant because every class  
gets compiled into a .class file and you can describe which classes  
a .jar contains (so they can be looked up inside the jar). Not so  
with an SWF which is an all-or-nothing :-)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Ryan Matsikas
manually call your onResize method in your main Mc's onLoad.

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I have a Flash App, that uses a "Non-Scaling" type setup - in which upon
> browser resize, the controls simply reposition themselves around,
> creating more usable area for content.  It's works beautifully, but with
> a catch.
>
> The problem is, my application insists on starting out at it's Published
> Size - so if the browser is larger than the application, there is a
> bunch of white-space along the Right and Bottom.  Of course, I designed
> the app to take up the entire browser window.
>
> The moment the user resizes the browser, the application immediately
> snaps into place taking up 100% of the browser area - and everything is
> well.
>
> How can I trigger this event, the moment the application is loaded in
> the browser???
>
> Thanks in advance for your help,
>
> Mike
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director -SWFStudio - .NET)

2006-04-12 Thread kariminal
I've made tons of dual boot CD's using Flash/Director ( which now has the
Xtra for flash 8 ), and I found it's the best tool out there for extending
flash.

of course that would depend on your personal preference.. you can extend
flash with wxPython, C#, visual basic, there is a long list... Then you have
other apps Screenweaver ( on osflash ), which is great but still needing a
lot of work. SWF studio, Zinc.. These have been mentioned ... I've not
worked with Zinc.. 

But director is still my #1.. Plus I find lingo very intuitive, and
extendable via the Xtras. But that a matter of personal preference...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charles
Parcell
Sent: 11 April 2006 18:07
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director
-SWFStudio - .NET)

Look into Arca (http://xtras.tabuleiro.com/products/arca/index.tdb) or
Valintine DB (http://www.paradigmasoft.com/en/products/developer/adk/V4MD)
Xtras for the database.

Using Treeview in Director

also


For a TreeView you might want to roll your own code for it.

Charles P.


On 4/11/06, Lieven Cardoen <[EMAIL PROTECTED]> wrote:
>
> During last year I had a lot of experience with making cd's that 
> basically use an main swf embedded in Director or Zinc. With both 
> there are lots of problems.
>
>
>
> This application writes xml to harddisk, needs to reed data from a 
> database, alters screen resolution...
>
>
>
> For my next project I'm not sure what to use.
>
>
>
> -  Zinc doesn't support a crossplatform database, so I would
> have to use only xml, which would not be performant and rather complex.
> Also Zinc has some ennoying bugs which don't seem to get resolved ( 
> --> dll ). They have hundreds of commands, sure, but it's quality that 
> counts, not quantity.
>
> -  Director : Man, I've had problems with Director,
> unbelievable, and I rather not use it anymore. I does support V12, but 
> I haven't heard lots of good things from colleagues about V12. Also 
> using a Tree/List Component in your flash movie (swf) causes Director 
> to freeze on a lot of older computers (Windows 98 / Mac / WindowsXP SP1).
> Flash Asset 8 is out, but is it to be trusted??? I've reported the 
> Tree/List bug some months ago, but it seems they haven't resolved it.
>
> -  SWFStudio : I've heard it's better than Zinc, but no support
> on Mac, so I can't use it.
>
> -  What about .NET??? Is there a way to let this function on
> Mac???
>
>
>
>
>
> I've thought of splitting the project. For pc I would use Zinc or .NET 
> or SWFStudio and for mac then I would use Director. This does mean 
> more work.
>
>
>
> Please respond. thx
>
>
>
> lieven cardoen
>
> indiegroup
> interactive digital experience
> engelse wandeling 2 k18
> b8500 kortrijk
> T +32 (0)56/361 197
> // communicatie bij voorkeur op [EMAIL PROTECTED] 
> 
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.1/307 - Release Date: 10/04/2006


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Scott Hyndman
SWF is more flexible than you give it credit for. A swf can reference external 
resources just as a jar can. You can, in effect, write your own class loader 
that satisfies dependencies at runtime just by splitting all your classes into 
multiple swfs. A swf IS a jar, just not so nice to work with.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Julian 'Julik' Tarkhanov
Sent:   Wed 4/12/2006 12:59 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Instantiate a class by string - SOLVED


On 12-apr-2006, at 17:05, Ian Thomas wrote:

> Import doesn't actually use the class per se - a solid reference of
> some sort (such as the declaration of a variable or the creation of an
> object) of that class suddenly means that it's actually been used, and
> so the compiler notes that it needs to be compiled and included in the
> output .swf.
>
> The same, as far as I can recall (it's been a while now), is true  
> of Java.

It seems logical that import makes the classes available in the  
context into which they are imported. What seems un-logical to me is  
that it's impossible to force "burn-in" of these classes even if they  
are not being called explicitly (with standard Flash means).

As for Java - I don't see how this is relevant because every class  
gets compiled into a .class file and you can describe which classes  
a .jar contains (so they can be looked up inside the jar). Not so  
with an SWF which is an all-or-nothing :-)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov


On 12-apr-2006, at 19:10, Scott Hyndman wrote:

SWF is more flexible than you give it credit for. A swf can  
reference external resources just as a jar can. You can, in effect,  
write your own class loader that satisfies dependencies at runtime  
just by splitting all your classes into multiple swfs. A swf IS a  
jar, just not so nice to work with.


Yep, I know. I gotta stop bitching and get the job done :-)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Making a cd for Pc and Mac (Zinc - Director-SWFStudio - .NET)

2006-04-12 Thread Steven Sacks
I highly recommend mProjector.  It's the best 3rd party wrapper out
there, IMO, and I've tried them all.  It's the easiest and smartest to
code with, it has the best performance hands down, does asynchronous
communication with the OS, allows you to package all your swfs into the
executable is now cross-platform!  

http://www.binarynoise.com/

HTH,
Steven


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Mike Anderson
Hello,

Thanks for the suggestion, but I tried in that in the meantime.

2 very undesired things happen:

1) The movie components are still in the exact same spots.

2) The bottom StatusBar actually is 1-inch shorter -
   this not even reaching to the other side of the
   stage

It's almost as if (especially in case #2) that the StatusBar is basing
it's _width property on mis-information.  If I didn't know better, it's
as if there are timing problems going on.

I thought that the "onLoad" event fixes problems like that - since it
waits until all components are instantiated and initialized, before
Dispatching the "I am all finished" signal.

What I have is this (in root):

=

var stageSizeListener:Object = new Object();

stageSizeListener.onResize = function():Void
{
var stageHeight:Number = Stage.height;
var stageWidth:Number = Stage.width;

// Main Menu
mainMenu._width = stageWidth;
mainMenu.updateDisplay(true);

// Map Status Bar
mapStatusBar._width = stageWidth;

etc
}

this.onLoad = function():Void
{
stageSizeListener.onResize();
}

Stage.addListener( stageSizeListener );

=

All this resize code works beautifully, but only AFTER the movie is
completely loaded, and the user MANUALLY resizes the browser.

Am I missing something here?  I was hoping the onLoad function would
alleviate any timing issues, but not only does it NOT work, it's
actually causing my StatusBar (which resides at the bottom) to have a
lesser width size.

If I remove the onLoad code, then eveything paints fine - but things are
not positioned correctly.

Any more ideas?

Thanks,

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Matsikas
Sent: Wednesday, April 12, 2006 12:02 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
event

manually call your onResize method in your main Mc's onLoad.

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I have a Flash App, that uses a "Non-Scaling" type setup - in which 
> upon browser resize, the controls simply reposition themselves around,

> creating more usable area for content.  It's works beautifully, but 
> with a catch.
>
> The problem is, my application insists on starting out at it's 
> Published Size - so if the browser is larger than the application, 
> there is a bunch of white-space along the Right and Bottom.  Of 
> course, I designed the app to take up the entire browser window.
>
> The moment the user resizes the browser, the application immediately 
> snaps into place taking up 100% of the browser area - and everything 
> is well.
>
> How can I trigger this event, the moment the application is loaded in 
> the browser???
>
> Thanks in advance for your help,
>
> Mike
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Michael Bedar
Maybe i'm missing something, but why not just manually call your  
resize function at runtime?



On Apr 12, 2006, at 12:44 PM, Mike Anderson wrote:


Hello All,

I have a Flash App, that uses a "Non-Scaling" type setup - in which  
upon

browser resize, the controls simply reposition themselves around,
creating more usable area for content.  It's works beautifully, but  
with

a catch.

The problem is, my application insists on starting out at it's  
Published

Size - so if the browser is larger than the application, there is a
bunch of white-space along the Right and Bottom.  Of course, I  
designed

the app to take up the entire browser window.

The moment the user resizes the browser, the application immediately
snaps into place taking up 100% of the browser area - and  
everything is

well.

How can I trigger this event, the moment the application is loaded in
the browser???

Thanks in advance for your help,

Mike

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Help with swapdepths

2006-04-12 Thread Steven Sacks
Also, don't use "on-clip" methods like 

on (press) or on(release)

That's for non-coders who are making banner ads.  Instead, put your code
in the timeline:

btn.onPress = function() {
//
};
btn.onRelease = function() {
//
};

You'll thank me for it down the line.  It's never a good idea to put
code directly on buttons or movieclips.  Always put your code on the
timeline where it's easy to find without having to click on all the
individual buttons/clips in your movie.  There is no exception to this
rule, ever.

Also, the reason your code isn't working is because when you say
this.getNextHighestDepth(), you're referring to the depth INSIDE the
movieclip itself ("this" in an onPress method refers to the
movieclip/button - another reason to put your code on the timeline to
make things clearer).  You need to refer to the movieclip's parent.
this._parent.getNextHighestDepth();

HTH,
Steven 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Gaia-Tek
> Sent: Wednesday, April 12, 2006 3:02 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Help with swapdepths
> 
> Hi Group,
> 
> I'm having a problem with a seemingly simple task...
> 
> I'm trying to get whichever movieclip on my stage is clicked 
> on, to swapDepths to the top, and be draggable...
> 
> My code is:
> 
> on (press) {
> this.swapDepths(this.getNextHighestDepth());
> startDrag(this);
> }
> on (release) {
> stopDrag();
> }
> 
> Not working...
> 
> Any help would be appreciated...
> 
> Thanks
> 
> Don
> 
> 
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread elr


Unfortunately, that`s hard to see where exactly video author (P. 
Minault) is clicking as he uses Captivate that is absolutely not synchro.
But in the amfphp browser windows, I get the following error message 
when I test HelloWorld sample service


Warning: Cannot modify header information - headers already sent by 
(output started at .../amfphp/gateway.php:1) in 
.../amfphp/amf-core/exception/php4Exception.php on line 42
/1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start(): 
Cannot send session cache limiter - headers already sent (output


I'm not able to understand where trouble comes from

Eric

At 2006-04-12   12:39, you wrote:

No, Kevin,I missed this area. I`m giving a look right now .Thx !!!


At 2006-04-12   11:16, you wrote:

Did you try watching the video tutorials?  The ones for installing 
and testing were extremely helpful.



From: elr <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger
Date: Wed, 12 Apr 2006 10:50:59 -0400

Hi all,

I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following 
amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
Gateway.php properly reacts and everything seems ok excepted that, 
running the HelloWorld sample, myNetConnection Debugger doesn`t 
report any Result event (while I get Connect and Call ones..)


Any idea ?

Eric

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Ryan Matsikas
I'm guessing yer having these issues in IE? Try waiting an extra frame or
2..

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Thanks for the suggestion, but I tried in that in the meantime.
>
> 2 very undesired things happen:
>
> 1) The movie components are still in the exact same spots.
>
> 2) The bottom StatusBar actually is 1-inch shorter -
>this not even reaching to the other side of the
>stage
>
> It's almost as if (especially in case #2) that the StatusBar is basing
> it's _width property on mis-information.  If I didn't know better, it's
> as if there are timing problems going on.
>
> I thought that the "onLoad" event fixes problems like that - since it
> waits until all components are instantiated and initialized, before
> Dispatching the "I am all finished" signal.
>
> What I have is this (in root):
>
> =
>
> var stageSizeListener:Object = new Object();
>
> stageSizeListener.onResize = function():Void
> {
> var stageHeight:Number = Stage.height;
> var stageWidth:Number = Stage.width;
>
> // Main Menu
> mainMenu._width = stageWidth;
> mainMenu.updateDisplay(true);
>
> // Map Status Bar
> mapStatusBar._width = stageWidth;
>
> etc
> }
>
> this.onLoad = function():Void
> {
> stageSizeListener.onResize();
> }
>
> Stage.addListener( stageSizeListener );
>
> =
>
> All this resize code works beautifully, but only AFTER the movie is
> completely loaded, and the user MANUALLY resizes the browser.
>
> Am I missing something here?  I was hoping the onLoad function would
> alleviate any timing issues, but not only does it NOT work, it's
> actually causing my StatusBar (which resides at the bottom) to have a
> lesser width size.
>
> If I remove the onLoad code, then eveything paints fine - but things are
> not positioned correctly.
>
> Any more ideas?
>
> Thanks,
>
> Mike
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ryan
> Matsikas
> Sent: Wednesday, April 12, 2006 12:02 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
> event
>
> manually call your onResize method in your main Mc's onLoad.
>
> On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
> >
> > Hello All,
> >
> > I have a Flash App, that uses a "Non-Scaling" type setup - in which
> > upon browser resize, the controls simply reposition themselves around,
>
> > creating more usable area for content.  It's works beautifully, but
> > with a catch.
> >
> > The problem is, my application insists on starting out at it's
> > Published Size - so if the browser is larger than the application,
> > there is a bunch of white-space along the Right and Bottom.  Of
> > course, I designed the app to take up the entire browser window.
> >
> > The moment the user resizes the browser, the application immediately
> > snaps into place taking up 100% of the browser area - and everything
> > is well.
> >
> > How can I trigger this event, the moment the application is loaded in
> > the browser???
> >
> > Thanks in advance for your help,
> >
> > Mike
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ScrollPane wont load contentPath ?

2006-04-12 Thread Isaac Rivera

Anyone experienced ScrollPane Denial Of Service Attack?

Two movies. In one in both I post MM's example. In one it works, in  
the second one nada. The second one is the project Fla in interested  
in working with of course.


this.createClassObject(mx.containers.ScrollPane, "my_sp", 10);
my_sp.setSize(320, 240);
my_sp.contentPath = "http://www.helpexamples.com/flash/images/ 
image1.jpg";


The ScrollPane component is in the library.
It shows on the stage, but no content.

trace(this.my_sp); // _level0.my_sp
trace(this.my_sp.content); // undefined
trace(this.my_sp.contentPath); // http://www.helpexamples.com/flash/ 
images/image1.jpg


Any insights?

Isaac Rivera
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread JesterXL
To force a class to be imported even if no one uses it:

import com.company.project.YourClass;

static private var depend:YourClass;

- Original Message - 
From: "Julian 'Julik' Tarkhanov" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, April 12, 2006 12:59 PM
Subject: Re: [Flashcoders] Instantiate a class by string - SOLVED



On 12-apr-2006, at 17:05, Ian Thomas wrote:

> Import doesn't actually use the class per se - a solid reference of
> some sort (such as the declaration of a variable or the creation of an
> object) of that class suddenly means that it's actually been used, and
> so the compiler notes that it needs to be compiled and included in the
> output .swf.
>
> The same, as far as I can recall (it's been a while now), is true  
> of Java.

It seems logical that import makes the classes available in the  
context into which they are imported. What seems un-logical to me is  
that it's impossible to force "burn-in" of these classes even if they  
are not being called explicitly (with standard Flash means).

As for Java - I don't see how this is relevant because every class  
gets compiled into a .class file and you can describe which classes  
a .jar contains (so they can be looked up inside the jar). Not so  
with an SWF which is an all-or-nothing :-)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Steven Sacks
> To force a class to be imported even if no one uses it:
> 
> import com.company.project.YourClass;
> 
> static private var depend:YourClass;

warden to the rescue!


___
This e-mail is intended only for the named person or entity to which
it is addressed and contains valuable business information that is 
privileged, confidential and/or otherwise protected from disclosure. 
Dissemination, distribution or copying of this e-mail or the 
information herein by anyone other than the intended recipient, or 
an employee or agent responsible for delivering the message to the 
intended recipient, is strictly prohibited. All contents are the 
copyright property of Agency.com Ltd., its affiliates or a client of 
such agencies. If you are not the intended recipient, you are 
nevertheless bound to respect the worldwide legal rights of 
Agency.com, its affiliates and its clients. We require that 
unintended recipients delete the e-mail and destroy all electronic 
copies in their system, retaining no copies in any media. If you
have received this e-mail in error, please immediately notify us via 
e-mail to [EMAIL PROTECTED] We appreciate your cooperation.

We make no warranties as to the accuracy or completeness of this 
e-mail and accept no liability for its content or use. Any opinions 
expressed in this e-mail are those of the author and do not 
necessarily reflect the opinions of Agency.com or any of its 
affiliates.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] caret colour changes

2006-04-12 Thread quinrou .
Hi all,

I am having a problem. The caret or i-beam seems to change colour in a flash
text field according to the colour of the text where it is located.
Now and then the caret takes the colour of the text it's in and sometimes
not.

This becomes an issue when the colour of the text is the same as background
colour. Because the caret/i-beam disappears.

Does anyone know how to overcome that issue or to work around it?

Thanks
Seb
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Active X and Microsoft IE ...

2006-04-12 Thread John Dowdell

John Grden wrote:

I have to ask, now that I've gone out to see the active content center,
what's the active part?


It's more like "active content" than "active center"... "active content" 
is a way to describe browser extensions such as Netscape Plugins, 
ActiveX Controls, and Java applets. It's not just a PNG that sits there; 
it can do things itself.


(There's a second sense of "active content" in public discourse which is 
semi-related, about how browser extensions usually draw direct-to-screen 
and cannot be composited with other browser elements, except in the 
special case where WMODE compositing is supported by both browser and 
extension.)



> One thing that's missing is a "last modified" date/time - how would
> I know this is THE latest and greatest?

This is something I've wanted for a long time too, but my internal 
lobbying for this comes up against arguments about having older material 
appear more dated than it actually is. I've not yet been sufficiently 
persuasive here, but I share your goal for full metadata too.


jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] old Flash Player

2006-04-12 Thread John Dowdell

Mark Lorah wrote:
Many Thanks. I had found this a couple months ago  and could never  get 
back to it.


Understood. I use search terms like "site:macromedia.com old players" to 
find it again... "flash player archive" seems like it works now too, 
although this may be more jittery in month-to-month search engine changes.


jd





--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Mike Anderson
The only problem is, it's a "Single Frame" application.

I avoid multi-frame apps like the plague - because I have so many coding
issues, and can't have controls residing on multiple frames (they must
exist at all times, because they intercommunicate with each other,
throughout the lifetime of the application).

This app is considered to be an "RIA", and resides ALL on a single
frame.  All my MovieClips have Class Files attached to them, and I truly
run this Movie like an Application.  Multiple Windows, toggling
visibility, remoting calls, etc. all tied together by listening to
Events.

It's a wonderfully reliable application - which I plan on migrating to
Flex as soon as I can.  But in the meantime, Flash is my only solution.

With that said, is there anything else I can do - to force the
"onResize" event to kick off, just milliseconds after the application
gets fully initialized?  I have a feeling this may fix the problem.

Maybe some kind of Timer that only runs once?  Once things are
positioned properly upon the initial load, it's all well and good - the
StageListener coupled with the manual browser resizes, takes care of
everything after that.

Thanks for anything else you can throw my way :)

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Matsikas
Sent: Wednesday, April 12, 2006 12:41 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
event

I'm guessing yer having these issues in IE? Try waiting an extra frame
or 2..

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Thanks for the suggestion, but I tried in that in the meantime.
>
> 2 very undesired things happen:
>
> 1) The movie components are still in the exact same spots.
>
> 2) The bottom StatusBar actually is 1-inch shorter -
>this not even reaching to the other side of the
>stage
>
> It's almost as if (especially in case #2) that the StatusBar is basing

> it's _width property on mis-information.  If I didn't know better, 
> it's as if there are timing problems going on.
>
> I thought that the "onLoad" event fixes problems like that - since it 
> waits until all components are instantiated and initialized, before 
> Dispatching the "I am all finished" signal.
>
> What I have is this (in root):
>
> =
>
> var stageSizeListener:Object = new Object();
>
> stageSizeListener.onResize = function():Void {
> var stageHeight:Number = Stage.height;
> var stageWidth:Number = Stage.width;
>
> // Main Menu
> mainMenu._width = stageWidth;
> mainMenu.updateDisplay(true);
>
> // Map Status Bar
> mapStatusBar._width = stageWidth;
>
> etc
> }
>
> this.onLoad = function():Void
> {
> stageSizeListener.onResize();
> }
>
> Stage.addListener( stageSizeListener );
>
> =
>
> All this resize code works beautifully, but only AFTER the movie is 
> completely loaded, and the user MANUALLY resizes the browser.
>
> Am I missing something here?  I was hoping the onLoad function would 
> alleviate any timing issues, but not only does it NOT work, it's 
> actually causing my StatusBar (which resides at the bottom) to have a 
> lesser width size.
>
> If I remove the onLoad code, then eveything paints fine - but things 
> are not positioned correctly.
>
> Any more ideas?
>
> Thanks,
>
> Mike
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ryan 
> Matsikas
> Sent: Wednesday, April 12, 2006 12:02 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
> event
>
> manually call your onResize method in your main Mc's onLoad.
>
> On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
> >
> > Hello All,
> >
> > I have a Flash App, that uses a "Non-Scaling" type setup - in which 
> > upon browser resize, the controls simply reposition themselves 
> > around,
>
> > creating more usable area for content.  It's works beautifully, but 
> > with a catch.
> >
> > The problem is, my application insists on starting out at it's 
> > Published Size - so if the browser is larger than the application, 
> > there is a bunch of white-space along the Right and Bottom.  Of 
> > course, I designed the app to take up the entire browser window.
> >
> > The moment the user resizes the browser, the application immediately

> > snaps into place taking up 100% of the browser area - and everything

> > is well.
> >
> > How can I trigger this event, the moment the application is loaded 
> > in the browser???
> >
> > Thanks in advance for your help,
> >
> > Mike
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Mike Anderson
I am really sorry Ryan - 

I put some more thought into what you had to say, and I got it to work.
Tunnel vision is dangerous sometimes, and when you code a certain way
for so long, it's hard to break out of your normal coding methods.

So with that said, I simply inserted 5 blank frames - but made sure that
all the layers containing components, extended out to the 5th frame.
That way, they never get erased when moving to the next Frame.  As you
can probably guess, I am not a typical Flash programmer who does
animation, etc.  I write ONLY applications.

I still have my main Include file on Frame 1 (which contains all my code
for the entire app), but I created a Key Frame on Frame 5 - which calls
the "onResize" event for the Stage Listener.  Now I understand what you
were trying to say - give the movie more time to initialize, and THEN
call the "onResize" method.

Now the movie comes up with all the controls positioned properly.

THANK YOU - and I will make sure that I listen with "more open ears"
next time I get some good advice ;-)

Thanks and take care,

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Anderson
Sent: Wednesday, April 12, 2006 1:46 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
event

The only problem is, it's a "Single Frame" application.

I avoid multi-frame apps like the plague - because I have so many coding
issues, and can't have controls residing on multiple frames (they must
exist at all times, because they intercommunicate with each other,
throughout the lifetime of the application).

This app is considered to be an "RIA", and resides ALL on a single
frame.  All my MovieClips have Class Files attached to them, and I truly
run this Movie like an Application.  Multiple Windows, toggling
visibility, remoting calls, etc. all tied together by listening to
Events.

It's a wonderfully reliable application - which I plan on migrating to
Flex as soon as I can.  But in the meantime, Flash is my only solution.

With that said, is there anything else I can do - to force the
"onResize" event to kick off, just milliseconds after the application
gets fully initialized?  I have a feeling this may fix the problem.

Maybe some kind of Timer that only runs once?  Once things are
positioned properly upon the initial load, it's all well and good - the
StageListener coupled with the manual browser resizes, takes care of
everything after that.

Thanks for anything else you can throw my way :)

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Matsikas
Sent: Wednesday, April 12, 2006 12:41 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
event

I'm guessing yer having these issues in IE? Try waiting an extra frame
or 2..

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Thanks for the suggestion, but I tried in that in the meantime.
>
> 2 very undesired things happen:
>
> 1) The movie components are still in the exact same spots.
>
> 2) The bottom StatusBar actually is 1-inch shorter -
>this not even reaching to the other side of the
>stage
>
> It's almost as if (especially in case #2) that the StatusBar is basing

> it's _width property on mis-information.  If I didn't know better, 
> it's as if there are timing problems going on.
>
> I thought that the "onLoad" event fixes problems like that - since it 
> waits until all components are instantiated and initialized, before 
> Dispatching the "I am all finished" signal.
>
> What I have is this (in root):
>
> =
>
> var stageSizeListener:Object = new Object();
>
> stageSizeListener.onResize = function():Void {
> var stageHeight:Number = Stage.height;
> var stageWidth:Number = Stage.width;
>
> // Main Menu
> mainMenu._width = stageWidth;
> mainMenu.updateDisplay(true);
>
> // Map Status Bar
> mapStatusBar._width = stageWidth;
>
> etc
> }
>
> this.onLoad = function():Void
> {
> stageSizeListener.onResize();
> }
>
> Stage.addListener( stageSizeListener );
>
> =
>
> All this resize code works beautifully, but only AFTER the movie is 
> completely loaded, and the user MANUALLY resizes the browser.
>
> Am I missing something here?  I was hoping the onLoad function would 
> alleviate any timing issues, but not only does it NOT work, it's 
> actually causing my StatusBar (which resides at the bottom) to have a 
> lesser width size.
>
> If I remove the onLoad code, then eveything paints fine - but things 
> are not positioned correctly.
>
> Any more ideas?
>
> Thanks,
>
> Mike
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ryan 
> Matsikas
> Sent: Wednesday, April 12, 2006

[Flashcoders] Accordion Sizing Weirdness

2006-04-12 Thread Mike Anderson
Hello All,

I am confused about the Accordion Control, and how it's reacting to
Resize Events.

For example, a MenuBar Component - also a V2 Control, when I issue a
Resize Event and give it new _width parameters, the control widens
appropriately without any Menu Items distorting.

Controls widening or shrinking (and NOT scaling) is by design when
things are setup correctly.  That's what xscale and yscale are reserved
for correct?

So with that said, when writing an application that has Stage.align =
"TL" and Stage.scaleMode = "noScale", and I have code that moves (or
sizes) components based on browser size, what must I do to have the
Accordion reveal "more or less area", versus "scaling larger or
smaller"?

This is not the behavior I expected from the Accordion - since it's a
Container, and a V2 Component.

I understand I may need to have additional sizing code, within the
MovieClips that make up the Accordion Children, but this initial
behavior of scaling is something that should not be happening right?

Could any of you shed more light on this problem?

Thanks,

Mike



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Accordion Sizing Weirdness

2006-04-12 Thread eric dolecki
in your onResize - have you tried setSize( w, h ) yet?

also - I am using an accordion right now - some children contain listboxes,
datagrids, etc. One cool thing I am doing is when the accordion is resizing,
i am resizing the contents inside the children too - nice and tight.

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I am confused about the Accordion Control, and how it's reacting to
> Resize Events.
>
> For example, a MenuBar Component - also a V2 Control, when I issue a
> Resize Event and give it new _width parameters, the control widens
> appropriately without any Menu Items distorting.
>
> Controls widening or shrinking (and NOT scaling) is by design when
> things are setup correctly.  That's what xscale and yscale are reserved
> for correct?
>
> So with that said, when writing an application that has Stage.align =
> "TL" and Stage.scaleMode = "noScale", and I have code that moves (or
> sizes) components based on browser size, what must I do to have the
> Accordion reveal "more or less area", versus "scaling larger or
> smaller"?
>
> This is not the behavior I expected from the Accordion - since it's a
> Container, and a V2 Component.
>
> I understand I may need to have additional sizing code, within the
> MovieClips that make up the Accordion Children, but this initial
> behavior of scaling is something that should not be happening right?
>
> Could any of you shed more light on this problem?
>
> Thanks,
>
> Mike
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Instantiate a class by string - SOLVED

2006-04-12 Thread Julian 'Julik' Tarkhanov


On 12-apr-2006, at 19:59, JesterXL wrote:


To force a class to be imported even if no one uses it:

import com.company.project.YourClass;

static private var depend:YourClass;


Ok, now this looks classy! Forces the class to be burned in and yet  
shows why it's there.


Thanks a bunch!


--
Julian 'Julik' Tarkhanov
me at julik.nl



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Accordion Sizing Weirdness

2006-04-12 Thread Mike Anderson
Oh no, I have not tried that method yet -

In Flash, there are too many ways to skin a cat sometimes, and you get
accustom to using certain methods of doing things.  I was aware of that
method, but never used it before.

Using V2 Components, is using the setSize() Function, the preferred way
to set the size??

And yes, once I got the Accordion to size properly, the plan was to
implement code inside of each Child MovieClip - to resize themselves
accordingly.

Which does raise another question, in which I am sure you can answer:

On which events should I listen for, in order to trigger the Resize
Functions contained within each Child MovieClip (not to mention, WHERE
should that code reside)?  Since the Accordion Contents can change based
on a multitude of variables, I really can't code my Resize Events for
the Children, within my main Code Block residing in Root.  I need each
MovieClip Child, to contain their own logic - independent from the main
app.

I am using Class Files for each of my MovieClips - and it's in the Class
File itself, where I want to listen for the Resize Events of the
Accordion, so I can properly move things around inside the Accordion
Children.

Could you clarify all those things for me?

Thanks Eric :)

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric
dolecki
Sent: Wednesday, April 12, 2006 2:43 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Accordion Sizing Weirdness

in your onResize - have you tried setSize( w, h ) yet?

also - I am using an accordion right now - some children contain
listboxes, datagrids, etc. One cool thing I am doing is when the
accordion is resizing, i am resizing the contents inside the children
too - nice and tight.

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I am confused about the Accordion Control, and how it's reacting to 
> Resize Events.
>
> For example, a MenuBar Component - also a V2 Control, when I issue a 
> Resize Event and give it new _width parameters, the control widens 
> appropriately without any Menu Items distorting.
>
> Controls widening or shrinking (and NOT scaling) is by design when 
> things are setup correctly.  That's what xscale and yscale are 
> reserved for correct?
>
> So with that said, when writing an application that has Stage.align = 
> "TL" and Stage.scaleMode = "noScale", and I have code that moves (or
> sizes) components based on browser size, what must I do to have the 
> Accordion reveal "more or less area", versus "scaling larger or 
> smaller"?
>
> This is not the behavior I expected from the Accordion - since it's a 
> Container, and a V2 Component.
>
> I understand I may need to have additional sizing code, within the 
> MovieClips that make up the Accordion Children, but this initial 
> behavior of scaling is something that should not be happening right?
>
> Could any of you shed more light on this problem?
>
> Thanks,
>
> Mike
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Macbook pro issue

2006-04-12 Thread Patrick Matte
We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download video is
running at less than 5 frames per second while it should play at 24 fps...
Has anybody heard of any similar problem with that machine?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Brett Wagner
The flash player for the intel macs is beta.  I guess six months just 
isn't enough time to port the thing.


_
b

Patrick Matte wrote:

We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download video is
running at less than 5 frames per second while it should play at 24 fps...
Has anybody heard of any similar problem with that machine?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

  


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread eric dolecki
i think you wanna pick up the universal binary beta for FP & then try that

On 4/12/06, Patrick Matte <[EMAIL PROTECTED]> wrote:
>
> We have a performance issue here with the flash player on a brand new
> macbook pro. Our latest site that uses flash 8 progressive download video
> is
> running at less than 5 frames per second while it should play at 24 fps...
> Has anybody heard of any similar problem with that machine?
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Mike Chambers

Make sure you have the most recent version:

http://weblogs.macromedia.com/emmy/archives/2006/03/flash_player_8.cfm

mike chambers

[EMAIL PROTECTED]

Patrick Matte wrote:

We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download video is
running at less than 5 frames per second while it should play at 24 fps...
Has anybody heard of any similar problem with that machine?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] caret colour changes

2006-04-12 Thread Michael Stuhr

quinrou . schrieb:

Hi all,

I am having a problem. The caret or i-beam seems to change colour in a flash
text field according to the colour of the text where it is located.
Now and then the caret takes the colour of the text it's in and sometimes
not.

This becomes an issue when the colour of the text is the same as background
colour. Because the caret/i-beam disappears.

Does anyone know how to overcome that issue or to work around it?

Thanks
Seb
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


yes: [EMAIL PROTECTED]

it's a WELL KNOWN Bug, since , well since too long i guess. MM was not willing to killit, so 
i guess we'll have to live another lifecycle with this.


least help i can give you:

add a listener to the Selection Object and everytime one selects text in your textfield 
apply another textcolor to your text, or change the background of that specific TextField. 
on de-select restore everything.


micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Clarification if Remoting is included with Flex 2.0

2006-04-12 Thread Mike Anderson
Okay, I've heard 2 different stories now - and I need to find out which
one is true.

In the core version of Flex 2.0 - is Remoting included with the basic
package?  OR is it not??

I need to find out now, if I am forced to lay out a bunch more cash, in
order to simply talk to our ColdFusion server to perform some basic
Database queries.

Thanks in advance, for any 100% accurate information you can throw my
way.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Steven Sacks
You do realize that toggling _visible does not release any memory,
right?  Flash still tracks the movieclip in memory, it just doesn't draw
it.  If you're building RIAs, you should open up your task manager and
watch your memory usage over time to make sure you're not using too
much.  I have no problem with frame-based RIAs, but then again, I tend
to use all the tools Flash makes available to me, not just Actionscript.

-Steven

 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Anderson
> Sent: Wednesday, April 12, 2006 12:09 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens 
> "onResize" event
> 
> I am really sorry Ryan - 
> 
> I put some more thought into what you had to say, and I got 
> it to work.
> Tunnel vision is dangerous sometimes, and when you code a 
> certain way for so long, it's hard to break out of your 
> normal coding methods.
> 
> So with that said, I simply inserted 5 blank frames - but 
> made sure that all the layers containing components, extended 
> out to the 5th frame.
> That way, they never get erased when moving to the next 
> Frame.  As you can probably guess, I am not a typical Flash 
> programmer who does animation, etc.  I write ONLY applications.
> 
> I still have my main Include file on Frame 1 (which contains 
> all my code for the entire app), but I created a Key Frame on 
> Frame 5 - which calls the "onResize" event for the Stage 
> Listener.  Now I understand what you were trying to say - 
> give the movie more time to initialize, and THEN call the 
> "onResize" method.
> 
> Now the movie comes up with all the controls positioned properly.
> 
> THANK YOU - and I will make sure that I listen with "more open ears"
> next time I get some good advice ;-)
> 
> Thanks and take care,
> 
> Mike 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Anderson
> Sent: Wednesday, April 12, 2006 1:46 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> event
> 
> The only problem is, it's a "Single Frame" application.
> 
> I avoid multi-frame apps like the plague - because I have so 
> many coding issues, and can't have controls residing on 
> multiple frames (they must exist at all times, because they 
> intercommunicate with each other, throughout the lifetime of 
> the application).
> 
> This app is considered to be an "RIA", and resides ALL on a 
> single frame.  All my MovieClips have Class Files attached to 
> them, and I truly run this Movie like an Application.  
> Multiple Windows, toggling visibility, remoting calls, etc. 
> all tied together by listening to Events.
> 
> It's a wonderfully reliable application - which I plan on 
> migrating to Flex as soon as I can.  But in the meantime, 
> Flash is my only solution.
> 
> With that said, is there anything else I can do - to force 
> the "onResize" event to kick off, just milliseconds after the 
> application gets fully initialized?  I have a feeling this 
> may fix the problem.
> 
> Maybe some kind of Timer that only runs once?  Once things 
> are positioned properly upon the initial load, it's all well 
> and good - the StageListener coupled with the manual browser 
> resizes, takes care of everything after that.
> 
> Thanks for anything else you can throw my way :)
> 
> Mike
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Ryan Matsikas
> Sent: Wednesday, April 12, 2006 12:41 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
> event
> 
> I'm guessing yer having these issues in IE? Try waiting an 
> extra frame or 2..
> 
> On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > Thanks for the suggestion, but I tried in that in the meantime.
> >
> > 2 very undesired things happen:
> >
> > 1) The movie components are still in the exact same spots.
> >
> > 2) The bottom StatusBar actually is 1-inch shorter -
> >this not even reaching to the other side of the
> >stage
> >
> > It's almost as if (especially in case #2) that the 
> StatusBar is basing
> 
> > it's _width property on mis-information.  If I didn't know better, 
> > it's as if there are timing problems going on.
> >
> > I thought that the "onLoad" event fixes problems like that 
> - since it 
> > waits until all components are instantiated and initialized, before 
> > Dispatching the "I am all finished" signal.
> >
> > What I have is this (in root):
> >
> > =
> >
> > var stageSizeListener:Object = new Object();
> >
> > stageSizeListener.onResize = function():Void {
> > var stageHeight:Number = Stage.height;
> > var stageWidth:Number = Stage.width;
> >
> > // Main Menu
> > mainMenu._width = stageWidth;
> >

RE: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Mike Anderson
Oh yes, I absolutely understand that.

I only use the visibility toggle, for extremely used "Dialog Boxes" -
there is no point in instantiating them, and then killing them, over and
over again - if I know for a fact that it will be used often.

For like a Forms Based application (like a Masters Grid, and Details
Window) I will actually delete the MovieClip when I am finished - due to
the large amounts of Code contained inside it, in addition to the large
collection of Controls that make up the Details form.

What makes this all possible, is the init() portion of the Class Files -
where you can pass all your parameter data to the MovieClip FIRST before
it's instantiated, so it's all ready to rock before the controls get
generated.

It's taken me a long time, to figure out how to properly write these
kinds of apps, using Flash.  This was all such a piece of cake in VB.NET
and C# - but Flash was a different story.

As soon as I master Flex, I am moving over to that, and will never look
back (unless I need to write a Widget, which I think Flash is better
suited for).

Thanks for the extra input though - 

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: Wednesday, April 12, 2006 3:18 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
event

You do realize that toggling _visible does not release any memory,
right?  Flash still tracks the movieclip in memory, it just doesn't draw
it.  If you're building RIAs, you should open up your task manager and
watch your memory usage over time to make sure you're not using too
much.  I have no problem with frame-based RIAs, but then again, I tend
to use all the tools Flash makes available to me, not just Actionscript.

-Steven

 

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
> Anderson
> Sent: Wednesday, April 12, 2006 12:09 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens "onResize" 
> event
> 
> I am really sorry Ryan -
> 
> I put some more thought into what you had to say, and I got it to 
> work.
> Tunnel vision is dangerous sometimes, and when you code a certain way 
> for so long, it's hard to break out of your normal coding methods.
> 
> So with that said, I simply inserted 5 blank frames - but made sure 
> that all the layers containing components, extended out to the 5th 
> frame.
> That way, they never get erased when moving to the next Frame.  As you

> can probably guess, I am not a typical Flash programmer who does 
> animation, etc.  I write ONLY applications.
> 
> I still have my main Include file on Frame 1 (which contains all my 
> code for the entire app), but I created a Key Frame on Frame 5 - which

> calls the "onResize" event for the Stage Listener.  Now I understand 
> what you were trying to say - give the movie more time to initialize, 
> and THEN call the "onResize" method.
> 
> Now the movie comes up with all the controls positioned properly.
> 
> THANK YOU - and I will make sure that I listen with "more open ears"
> next time I get some good advice ;-)
> 
> Thanks and take care,
> 
> Mike
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
> Anderson
> Sent: Wednesday, April 12, 2006 1:46 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> event
> 
> The only problem is, it's a "Single Frame" application.
> 
> I avoid multi-frame apps like the plague - because I have so many 
> coding issues, and can't have controls residing on multiple frames 
> (they must exist at all times, because they intercommunicate with each

> other, throughout the lifetime of the application).
> 
> This app is considered to be an "RIA", and resides ALL on a single 
> frame.  All my MovieClips have Class Files attached to them, and I 
> truly run this Movie like an Application.
> Multiple Windows, toggling visibility, remoting calls, etc. 
> all tied together by listening to Events.
> 
> It's a wonderfully reliable application - which I plan on migrating to

> Flex as soon as I can.  But in the meantime, Flash is my only 
> solution.
> 
> With that said, is there anything else I can do - to force the 
> "onResize" event to kick off, just milliseconds after the application 
> gets fully initialized?  I have a feeling this may fix the problem.
> 
> Maybe some kind of Timer that only runs once?  Once things are 
> positioned properly upon the initial load, it's all well and good - 
> the StageListener coupled with the manual browser resizes, takes care 
> of everything after that.
> 
> Thanks for anything else you can throw my way :)
> 
> Mike
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ryan 
> Matsikas
> Sent: Wednesday, April 12, 2006 12:41 PM
> To: Flashcoders mailing list
> Subject: Re: [Fla

Re: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Ryan Matsikas
Mike, I'm a single frame flasher to.. its all I do.. you don't have to
create empty frames in your fla.

You can do something as simple as:
this.onLoad = function():Void {
var c:Number = 0;
this.onEnterFrame = function() {
if (c >= 5) { // you pick a number that works...
delete this.onEnterFrame;
stageSizeListener.onResize();
}
c++;
}
}

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Oh yes, I absolutely understand that.
>
> I only use the visibility toggle, for extremely used "Dialog Boxes" -
> there is no point in instantiating them, and then killing them, over and
> over again - if I know for a fact that it will be used often.
>
> For like a Forms Based application (like a Masters Grid, and Details
> Window) I will actually delete the MovieClip when I am finished - due to
> the large amounts of Code contained inside it, in addition to the large
> collection of Controls that make up the Details form.
>
> What makes this all possible, is the init() portion of the Class Files -
> where you can pass all your parameter data to the MovieClip FIRST before
> it's instantiated, so it's all ready to rock before the controls get
> generated.
>
> It's taken me a long time, to figure out how to properly write these
> kinds of apps, using Flash.  This was all such a piece of cake in VB.NET
> and C# - but Flash was a different story.
>
> As soon as I master Flex, I am moving over to that, and will never look
> back (unless I need to write a Widget, which I think Flash is better
> suited for).
>
> Thanks for the extra input though -
>
> Mike
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Steven
> Sacks
> Sent: Wednesday, April 12, 2006 3:18 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> event
>
> You do realize that toggling _visible does not release any memory,
> right?  Flash still tracks the movieclip in memory, it just doesn't draw
> it.  If you're building RIAs, you should open up your task manager and
> watch your memory usage over time to make sure you're not using too
> much.  I have no problem with frame-based RIAs, but then again, I tend
> to use all the tools Flash makes available to me, not just Actionscript.
>
> -Steven
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Mike
> > Anderson
> > Sent: Wednesday, April 12, 2006 12:09 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> > event
> >
> > I am really sorry Ryan -
> >
> > I put some more thought into what you had to say, and I got it to
> > work.
> > Tunnel vision is dangerous sometimes, and when you code a certain way
> > for so long, it's hard to break out of your normal coding methods.
> >
> > So with that said, I simply inserted 5 blank frames - but made sure
> > that all the layers containing components, extended out to the 5th
> > frame.
> > That way, they never get erased when moving to the next Frame.  As you
>
> > can probably guess, I am not a typical Flash programmer who does
> > animation, etc.  I write ONLY applications.
> >
> > I still have my main Include file on Frame 1 (which contains all my
> > code for the entire app), but I created a Key Frame on Frame 5 - which
>
> > calls the "onResize" event for the Stage Listener.  Now I understand
> > what you were trying to say - give the movie more time to initialize,
> > and THEN call the "onResize" method.
> >
> > Now the movie comes up with all the controls positioned properly.
> >
> > THANK YOU - and I will make sure that I listen with "more open ears"
> > next time I get some good advice ;-)
> >
> > Thanks and take care,
> >
> > Mike
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Mike
> > Anderson
> > Sent: Wednesday, April 12, 2006 1:46 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> > event
> >
> > The only problem is, it's a "Single Frame" application.
> >
> > I avoid multi-frame apps like the plague - because I have so many
> > coding issues, and can't have controls residing on multiple frames
> > (they must exist at all times, because they intercommunicate with each
>
> > other, throughout the lifetime of the application).
> >
> > This app is considered to be an "RIA", and resides ALL on a single
> > frame.  All my MovieClips have Class Files attached to them, and I
> > truly run this Movie like an Application.
> > Multiple Windows, toggling visibility, remoting calls, etc.
> > all tied together by listening to Events.
> >
> > It's a wonderfully reliable application - which I plan on migrating to
>
> > Flex as soon as I can.  But in the meantime, Flash is my only
> > solution.
> >
> > With that said, is there anything else I can do - to force the
> > "onResize" event

RE: [Flashcoders] Manually triggering the Screens "onResize" event

2006-04-12 Thread Mike Anderson
Oh man, that works out BEAUTIFULLY!!!

I never even thought about doing something like that.

Thanks for that excellent information :)

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
Matsikas
Sent: Wednesday, April 12, 2006 3:47 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Manually triggering the Screens "onResize"
event

Mike, I'm a single frame flasher to.. its all I do.. you don't have to
create empty frames in your fla.

You can do something as simple as:
this.onLoad = function():Void {
var c:Number = 0;
this.onEnterFrame = function() {
if (c >= 5) { // you pick a number that works...
delete this.onEnterFrame;
stageSizeListener.onResize();
}
c++;
}
}

On 4/12/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
> Oh yes, I absolutely understand that.
>
> I only use the visibility toggle, for extremely used "Dialog Boxes" - 
> there is no point in instantiating them, and then killing them, over 
> and over again - if I know for a fact that it will be used often.
>
> For like a Forms Based application (like a Masters Grid, and Details
> Window) I will actually delete the MovieClip when I am finished - due 
> to the large amounts of Code contained inside it, in addition to the 
> large collection of Controls that make up the Details form.
>
> What makes this all possible, is the init() portion of the Class Files

> - where you can pass all your parameter data to the MovieClip FIRST 
> before it's instantiated, so it's all ready to rock before the 
> controls get generated.
>
> It's taken me a long time, to figure out how to properly write these 
> kinds of apps, using Flash.  This was all such a piece of cake in 
> VB.NET and C# - but Flash was a different story.
>
> As soon as I master Flex, I am moving over to that, and will never 
> look back (unless I need to write a Widget, which I think Flash is 
> better suited for).
>
> Thanks for the extra input though -
>
> Mike
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Steven

> Sacks
> Sent: Wednesday, April 12, 2006 3:18 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Manually triggering the Screens "onResize"
> event
>
> You do realize that toggling _visible does not release any memory, 
> right?  Flash still tracks the movieclip in memory, it just doesn't 
> draw it.  If you're building RIAs, you should open up your task 
> manager and watch your memory usage over time to make sure you're not 
> using too much.  I have no problem with frame-based RIAs, but then 
> again, I tend to use all the tools Flash makes available to me, not
just Actionscript.
>
> -Steven
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Mike

> > Anderson
> > Sent: Wednesday, April 12, 2006 12:09 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] Manually triggering the Screens
"onResize"
> > event
> >
> > I am really sorry Ryan -
> >
> > I put some more thought into what you had to say, and I got it to 
> > work.
> > Tunnel vision is dangerous sometimes, and when you code a certain 
> > way for so long, it's hard to break out of your normal coding
methods.
> >
> > So with that said, I simply inserted 5 blank frames - but made sure 
> > that all the layers containing components, extended out to the 5th 
> > frame.
> > That way, they never get erased when moving to the next Frame.  As 
> > you
>
> > can probably guess, I am not a typical Flash programmer who does 
> > animation, etc.  I write ONLY applications.
> >
> > I still have my main Include file on Frame 1 (which contains all my 
> > code for the entire app), but I created a Key Frame on Frame 5 - 
> > which
>
> > calls the "onResize" event for the Stage Listener.  Now I understand

> > what you were trying to say - give the movie more time to 
> > initialize, and THEN call the "onResize" method.
> >
> > Now the movie comes up with all the controls positioned properly.
> >
> > THANK YOU - and I will make sure that I listen with "more open ears"
> > next time I get some good advice ;-)
> >
> > Thanks and take care,
> >
> > Mike
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Mike

> > Anderson
> > Sent: Wednesday, April 12, 2006 1:46 PM
> > To: Flashcoders mailing list
> > Subject: RE: [Flashcoders] Manually triggering the Screens
"onResize"
> > event
> >
> > The only problem is, it's a "Single Frame" application.
> >
> > I avoid multi-frame apps like the plague - because I have so many 
> > coding issues, and can't have controls residing on multiple frames 
> > (they must exist at all times, because they intercommunicate with 
> > each
>
> > other, throughout the lifetime of the application).
> >
> > This app is considered to be an "RIA", and resides ALL on a single 
> > frame.  All my MovieClips have Class 

RE: [Flashcoders] Macbook pro issue

2006-04-12 Thread Dwayne Neckles


I have one and Flash is super slow on a macbook pro... disapointing
Original Message Follows
From: Patrick Matte <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: Flashcoders mailing list 
Subject: [Flashcoders] Macbook pro issue
Date: Wed, 12 Apr 2006 16:05:39 -0400

We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download video is
running at less than 5 frames per second while it should play at 24 fps...
Has anybody heard of any similar problem with that machine?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Macbook pro issue

2006-04-12 Thread Ettwein, Josh
Yes. It's running in an emulator (rosetta), correct? You're going to
have performance issues with any software that's not optimized for the
Mac intel chip, which is pretty much everything at this point, if I'm
correct. I've actually heard that a lot of the "pro" apps like Motion,
etc. won't even run under Rosetta - I think because they're heavily
time-sensitive - the software knows that there's no way it can keep up
without dropping a ton of frames, so it won't even run if it knows it's
going to be an unacceptable level of performance. Can you install boot
camp and run the PC version maybe? 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dwayne
Neckles
Sent: Wednesday, April 12, 2006 2:32 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Macbook pro issue


I have one and Flash is super slow on a macbook pro... disapointing
Original Message Follows
From: Patrick Matte <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: Flashcoders mailing list 
Subject: [Flashcoders] Macbook pro issue
Date: Wed, 12 Apr 2006 16:05:39 -0400

We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download
video is running at less than 5 frames per second while it should play
at 24 fps...
Has anybody heard of any similar problem with that machine?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Kevin Newman
There is a preview of the Flash Player 8 universal binary that you could 
look into:

http://www.macromedia.com/go/2dda3d81

Kevin N.


Ettwein, Josh wrote:

Yes. It's running in an emulator (rosetta), correct? You're going to
have performance issues with any software that's not optimized for the
Mac intel chip, which is pretty much everything at this point, if I'm
correct. I've actually heard that a lot of the "pro" apps like Motion,
etc. won't even run under Rosetta - I think because they're heavily
time-sensitive - the software knows that there's no way it can keep up
without dropping a ton of frames, so it won't even run if it knows it's
going to be an unacceptable level of performance. Can you install boot
camp and run the PC version maybe? 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dwayne
Neckles
Sent: Wednesday, April 12, 2006 2:32 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Macbook pro issue


I have one and Flash is super slow on a macbook pro... disapointing
Original Message Follows
From: Patrick Matte <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
To: Flashcoders mailing list 
Subject: [Flashcoders] Macbook pro issue
Date: Wed, 12 Apr 2006 16:05:39 -0400

We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download
video is running at less than 5 frames per second while it should play
at 24 fps...
Has anybody heard of any similar problem with that machine?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Trouble with dynamic binding dataset to datagrid & cellrenderer

2006-04-12 Thread Bart Wttewaall
Hello FlashCoders,

I've been trying to add Philippe Nomail's (or better known as
Philiflash) cart-example (http://philflash.inway.fr/cart/cart.html) to
a project of mine. But unfortunately I can't make use of databinding
within the IDE. For that I used Hank Williams' DataSet to DataGrid
dynamic binding example.

So I tried to create the bindings dynamically, but the amount cell
(which uses a NumericStepper to increment the amount of products in
the cart) doesn't work properly, not even with his updated Flash 8
example. It seems as if the dataProviders of the DataGrid and DataSet
are in conflict.

Philippe is out of office until the 17th, so I'm trying the list.
Could you please help me out? I've uploaded the code in a zipfile to
the following url:
http://download.mediamonkey.nl/MyCart.zip

Thanks a lot in advance,
Bart Wttewaall.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread John Dowdell
[NB: This new thread was started as a reply to a conversation on 
accordion sizing... using "New Message" for a new thread, rather than 
"Reply to this Message" in the emailer, can help make new conversations 
more visible.

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/thread.html ]

Patrick Matte wrote:

We have a performance issue here with the flash player on a brand new
macbook pro. Our latest site that uses flash 8 progressive download video is
running at less than 5 frames per second while it should play at 24 fps...
Has anybody heard of any similar problem with that machine?


There is no real Adobe Flash Player for Macintosh-on-Intel yet. The 
closest is the authorized Adobe 8.0 Preview version for this platform, 
which does not have many of the problems in the early draft which Apple 
released.

http://www.macromedia.com/software/flashplayer/pdfs/flashplayer_intelmac_support.pdf

jd



--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Clarification if Remoting is included with Flex 2.0

2006-04-12 Thread John Dowdell

Mike Anderson wrote:

In the core version of Flex 2.0 - is Remoting included with the basic
package?  OR is it not??
Thanks in advance, for any 100% accurate information you can throw my
way.


I don't know if I can be 100%, because Flex 2.0 hasn't shipped yet... I 
didn't see this answered in a quick scan of the Flex 2.0 FAQ, which is 
where I'd expect to see any such pre-release guidance:

http://www.macromedia.com/software/flex/productinfo/faq/flex2_faq.html

If you absolutely need a commitment today, then I'd recommend the 
FlexCoders list (which draws more eyeballs of those staffers who may be 
involved in such decisions) or on the sales line (but with a sales 
person, be sure to get promises in writing).


jd




--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Macbook pro issue

2006-04-12 Thread Weyert de Boer
Anyone wanna buy my Powerbook of November? You can get it for 1500euro 
incl.bills etc. and tucano skin sleeve (Exl. shipping)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] object vs document level undo

2006-04-12 Thread Anastasia McCune
Hello, I hope this isn't too simple a question, but can anyone explain or
point to a good article on object vs. document level undo?  I know
theoretically what this is supposed to do, but am playing around trying it
with shapes in regular mode, symbols and shapes drawn in object drawing mode
and am having trouble seeing the difference in how undo is treated.

Many thanks!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Quick setSize() question

2006-04-12 Thread Mike Anderson
Hello all,

If I am interested in only sizing a component using the setSize method -
but if I only wanted to set a single parameter (width or height), how do
I properly pass the variables?

Can I simply do this, if I only wanted to set a single parameter?

  componentInstance.setSize( null, 20 );

Or am I forced to pass it valid numbers for both values?

I know I could feed the function the component's existing value like
this:

  var tempVar:Number = componentInstance._width;
  componentInstance.setSize( tempVar, 20 );

But that seems silly.

Could anybody clarify that for me?

Thanks,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Quick setSize() question

2006-04-12 Thread JesterXL
yourDataGrid.setSize ( yourDataGrid.width, 400);

- Original Message - 
From: "Mike Anderson" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, April 12, 2006 7:07 PM
Subject: [Flashcoders] Quick setSize() question


Hello all,

If I am interested in only sizing a component using the setSize method -
but if I only wanted to set a single parameter (width or height), how do
I properly pass the variables?

Can I simply do this, if I only wanted to set a single parameter?

  componentInstance.setSize( null, 20 );

Or am I forced to pass it valid numbers for both values?

I know I could feed the function the component's existing value like
this:

  var tempVar:Number = componentInstance._width;
  componentInstance.setSize( tempVar, 20 );

But that seems silly.

Could anybody clarify that for me?

Thanks,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Quick setSize() question

2006-04-12 Thread Mike Anderson
Yep, it's the same thing except no setting of a variable first...

Okay, I just wanted to make sure I couldn't simply pass a Null to it, in
hopes of it not changing the existing value of the Nulled place.

Thanks!

Mike
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Wednesday, April 12, 2006 6:18 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Quick setSize() question

yourDataGrid.setSize ( yourDataGrid.width, 400);

- Original Message -
From: "Mike Anderson" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, April 12, 2006 7:07 PM
Subject: [Flashcoders] Quick setSize() question


Hello all,

If I am interested in only sizing a component using the setSize method -
but if I only wanted to set a single parameter (width or height), how do
I properly pass the variables?

Can I simply do this, if I only wanted to set a single parameter?

  componentInstance.setSize( null, 20 );

Or am I forced to pass it valid numbers for both values?

I know I could feed the function the component's existing value like
this:

  var tempVar:Number = componentInstance._width;
  componentInstance.setSize( tempVar, 20 );

But that seems silly.

Could anybody clarify that for me?

Thanks,

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Clarification if Remoting is included with Flex 2.0

2006-04-12 Thread Mike Anderson
Okay, well thank you nevertheless for your time - and I will try to get
something off the FlexCoders list.

Take Care,

Mike 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Dowdell
Sent: Wednesday, April 12, 2006 5:53 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Clarification if Remoting is included with
Flex 2.0

Mike Anderson wrote:
> In the core version of Flex 2.0 - is Remoting included with the basic 
> package?  OR is it not??
> Thanks in advance, for any 100% accurate information you can throw my 
> way.

I don't know if I can be 100%, because Flex 2.0 hasn't shipped yet... I
didn't see this answered in a quick scan of the Flex 2.0 FAQ, which is
where I'd expect to see any such pre-release guidance:
http://www.macromedia.com/software/flex/productinfo/faq/flex2_faq.html

If you absolutely need a commitment today, then I'd recommend the
FlexCoders list (which draws more eyeballs of those staffers who may be
involved in such decisions) or on the sales line (but with a sales
person, be sure to get promises in writing).

jd




-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Daniel Cardenas


Hi,

I'm trying to learn event handling using the EventDispatcher class and 
am having a hard time getting a test to work. I'm also fairly new to 
OOP, so I'm having a hard time finding the problem in my code.


I've created a simple "Ball" class that creates an empty MC and then 
draws a circle in it. I've defined some event methods in the class and 
contained them within a "declareEventMethods" method. I don't know if 
that's the right way to do it or not - I modeled this test on various 
tutorials I've found online, but it's not working.


What I'm trying to do is create a new instance of the "Ball" class 
called "myBall", then notify an event handler of events dispatched by 
myBall. The handler should then execute a trace command.


The "Ball" class assigns the name "testBall" to the MC it creates, and 
I can trigger the event handler if I define a method directly on the MC 
that's created, ie:

  testBall.onPress = function () {myEventHandler(testBall);}

but that's not what I'm trying to accomplish.

I've pasted the code below - any help would be greatly appreciated.

Thanks,

Daniel Cardenas


--
Ball Class
--

class Ball extends MovieClip {

  public var addEventListener:Function;
  public var removeEventListener:Function;
  private var dispatchEvent:Function;

  public function Ball () {
  // initialize EventDispatcher
  mx.events.EventDispatcher.initialize(this);

  // create a ball MC
	  var aBall:MovieClip = _level0.createEmptyMovieClip('testBall', 
getNextHighestDepth());


  // draw ball
  aBall._x = 100;
  aBall._y = 100;
  aBall.lineStyle(20, 0xff, 100);
  aBall.lineTo(0,.2);
  }

  public function declareEventMethods():Void {
  onMouseDown = function() {
  dispatchEvent( {type: "mouseDown", target: this} );
  }
  onMouseUp = function() {
  dispatchEvent( {type: "mouseUp", target: this} );
  }
  onPress = function() {
  dispatchEvent( {type: "press", target: this} );
  }
  onRelease = function() {
  dispatchEvent( {type: "release", target: this} );
  }
  }

}

--
Timeline Code
--

/* create object
--*/
var myBall:Ball = new Ball();
myBall.declareEventMethods();

/* add listener
--*/
myBall.addEventListener("mouseDown", myEventHandler);
myBall.addEventListener("mouseUp", myEventHandler);
myBall.addEventListener("press", myEventHandler);
myBall.addEventListener("release", myEventHandler);


/* define handler
--*/
function myEventHandler(evt:Object):Void {
  trace('A ' + evt.type + ' event was dispatched by ' + evt.target);
}

// this works - but it's not what I'm trying to do...
// testBall.onPress = function () {myEventHandler(testBall);}




---
[EMAIL PROTECTED]
917-750-6398
AIM: dcardena
---



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Need help understanding EventDispatcher

2006-04-12 Thread Mike Anderson
If you are extending a MovieClip - doesn't the MovieClip already have
all those things "you are trying to recreate" at your disposal?

That is the whole point of extending a MovieClip - so you DON'T have to
go through all the stuff you are going through right now.

I am no guru at this stuff, but I write Class Files on a daily basis,
and I NEVER have to deal with stuff like this.  I create custom
listeners, and dispatch events on a regular basis - and it works just
beautifully.

It just seems like you are reinventing the wheel, and defeating the
whole purpose of why things were created this way in the first place.

This is just my initial reaction to what I've seen, and I am sure some
more experienced people will chime in on this thread.

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Cardenas
Sent: Wednesday, April 12, 2006 7:10 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Need help understanding EventDispatcher


Hi,

I'm trying to learn event handling using the EventDispatcher class and
am having a hard time getting a test to work. I'm also fairly new to
OOP, so I'm having a hard time finding the problem in my code.

I've created a simple "Ball" class that creates an empty MC and then
draws a circle in it. I've defined some event methods in the class and
contained them within a "declareEventMethods" method. I don't know if
that's the right way to do it or not - I modeled this test on various
tutorials I've found online, but it's not working.

What I'm trying to do is create a new instance of the "Ball" class
called "myBall", then notify an event handler of events dispatched by
myBall. The handler should then execute a trace command.

The "Ball" class assigns the name "testBall" to the MC it creates, and I
can trigger the event handler if I define a method directly on the MC
that's created, ie:
   testBall.onPress = function () {myEventHandler(testBall);}

but that's not what I'm trying to accomplish.

I've pasted the code below - any help would be greatly appreciated.

Thanks,

Daniel Cardenas


--
Ball Class
--

class Ball extends MovieClip {

   public var addEventListener:Function;
   public var removeEventListener:Function;
   private var dispatchEvent:Function;

   public function Ball () {
  // initialize EventDispatcher
  mx.events.EventDispatcher.initialize(this);

  // create a ball MC
  var aBall:MovieClip = _level0.createEmptyMovieClip('testBall',
getNextHighestDepth());

  // draw ball
  aBall._x = 100;
  aBall._y = 100;
  aBall.lineStyle(20, 0xff, 100);
  aBall.lineTo(0,.2);
   }

   public function declareEventMethods():Void {
  onMouseDown = function() {
  dispatchEvent( {type: "mouseDown", target: this} );
  }
  onMouseUp = function() {
  dispatchEvent( {type: "mouseUp", target: this} );
  }
  onPress = function() {
  dispatchEvent( {type: "press", target: this} );
  }
  onRelease = function() {
  dispatchEvent( {type: "release", target: this} );
  }
   }

}

--
Timeline Code
--

/* create object
--*/
var myBall:Ball = new Ball();
myBall.declareEventMethods();

/* add listener
--*/
myBall.addEventListener("mouseDown", myEventHandler);
myBall.addEventListener("mouseUp", myEventHandler);
myBall.addEventListener("press", myEventHandler);
myBall.addEventListener("release", myEventHandler);


/* define handler
--*/
function myEventHandler(evt:Object):Void {
   trace('A ' + evt.type + ' event was dispatched by ' + evt.target); }

// this works - but it's not what I'm trying to do...
// testBall.onPress = function () {myEventHandler(testBall);}




---
[EMAIL PROTECTED]
917-750-6398
AIM: dcardena
---



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AMFPHP tutorial - no Result on NetConnection Debugger

2006-04-12 Thread Manuel Saint-Victor
Try making sure that there are absolutely no spaces at the start or end of
the HelloWorld.php and the gateway.php.

I'm not sure if you downloaded or cut and pasted the code but sometimes when
cut and pasting if you inadvertently add a space you'll get that error.

Mani


On 4/12/06, elr <[EMAIL PROTECTED]> wrote:
>
>
> Unfortunately, that`s hard to see where exactly video author (P.
> Minault) is clicking as he uses Captivate that is absolutely not synchro.
> But in the amfphp browser windows, I get the following error message
> when I test HelloWorld sample service
>
> Warning: Cannot modify header information - headers already sent by
> (output started at .../amfphp/gateway.php:1) in
> .../amfphp/amf-core/exception/php4Exception.php on line 42
> /1/onStatusnull?codeAMFPHP_RUNTIME_ERRORdescription?session_start():
> Cannot send session cache limiter - headers already sent (output
>
> I'm not able to understand where trouble comes from
>
> Eric
>
> At 2006-04-12   12:39, you wrote:
> >No, Kevin,I missed this area. I`m giving a look right now .Thx !!!
> >
> >
> >At 2006-04-12   11:16, you wrote:
> >
> >>Did you try watching the video tutorials?  The ones for installing
> >>and testing were extremely helpful.
> >>
> >>>From: elr <[EMAIL PROTECTED]>
> >>>Reply-To: Flashcoders mailing list 
> >>>To: flashcoders@chattyfig.figleaf.com
> >>>Subject: [Flashcoders] AMFPHP tutorial - no Result on NetConnection
> Debugger
> >>>Date: Wed, 12 Apr 2006 10:50:59 -0400
> >>>
> >>>Hi all,
> >>>
> >>>I try to setup installed AMFPHP rel 1.2.3 on Flash 8 following
> >>>amfphp.org tutorial (http://www.amfphp.org/docs/testingamfphp.html)
> >>>Gateway.php properly reacts and everything seems ok excepted that,
> >>>running the HelloWorld sample, myNetConnection Debugger doesn`t
> >>>report any Result event (while I get Connect and Call ones..)
> >>>
> >>>Any idea ?
> >>>
> >>>Eric
> >>>
> >>>___
> >>>Flashcoders@chattyfig.figleaf.com
> >>>To change your subscription options or search the archive:
> >>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>>Brought to you by Fig Leaf Software
> >>>Premier Authorized Adobe Consulting and Training
> >>>http://www.figleaf.com
> >>>http://training.figleaf.com
> >>
> >>
> >>___
> >>Flashcoders@chattyfig.figleaf.com
> >>To change your subscription options or search the archive:
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>Brought to you by Fig Leaf Software
> >>Premier Authorized Adobe Consulting and Training
> >>http://www.figleaf.com
> >>http://training.figleaf.com
> >
> >___
> >Flashcoders@chattyfig.figleaf.com
> >To change your subscription options or search the archive:
> >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >Brought to you by Fig Leaf Software
> >Premier Authorized Adobe Consulting and Training
> >http://www.figleaf.com
> >http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  1   2   >