Re: [Flashcoders] 128 character limit in XML node?

2006-08-25 Thread Aaron Hedquist
Yes, that's exactly the problem. Found the TechNote, for future  
reference. Thanks, Claus.


http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15598

Aaron

On Aug 25, 2006, at 2:54 PM, Claus Wahlers wrote:

In HTML enabled TextFields, the content of href in   
has a 128 (or something) character limit.


Cheers,
Claus.


Aaron Hedquist wrote:


Hello,
I have a node that is being parsed by Flash, then used as a .url  
text link. However the link that opens up once you export the  
flash is being trimmed after 128 characters (it's about 151  
characters). Is there any inherit limit to a node or a link in  
Flash? Using AS 2.0. I can look at the XML source, and it shows  
the full link, but I click on the same link in Flash, and it just  
stops after 128 characters... ?1

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


Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Rich Rodecker

as far as I've seen there's no way to return any values from a file upload.
There was something I saw where you could return different HTTP header codes
back to flash to get some sort of control over what was sent back, but even
that still wouldnt send back any data.

jeroen's suggestion might work, or if you have a lot of data maybe you can
even save a text file to the server and read that in after the onComplete.



On 8/25/06, Serge Jespers <[EMAIL PROTECTED]> wrote:


Yeah... I see where you're going with that... Can also read the value
from my database but I thought it must have been possible to have my
upload.php return that new name to Flash. That would have made more
sense, but I guess that's not possible then...?

S



> Hi Serge,
>
> Maybe store the new name into the $_SESSION and request it when the
> onComplete event is dispatched?
> Or am I mis-understanding the situation?
>
> Greets,
> Jeroen
>
> Serge Jespers wrote:
>> Hey guys,
>>
>> I'm doing a fileUpload in this project and in my PHP script, I rename
>> the file (make an MD5 from it).
>> I was just wondering how I can get Flash to understand this new
>> filename... Is this possible at all?
>>
>> Thanks for your fast responses ;-)
>>
>> Serge
>> ___
>> 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] Webservices and .NET array serialization

2006-08-25 Thread Zoltan Csibi
Hi Jason,

I was trying out a similar scenario with fluorine when noticed your comment
" //traces as object  !?!" and that was the snippet about.


Zoli


-Original Message-
From: Merrill, Jason [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 10:23 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

>>var ar:Array = new Array();
>>trace(typeof(ar));
>>trace(ar instanceof Array);
>>
>>
>>Mit freundlichem Gruß,
>>Zoli

That's not what I'm asking, but thanks.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Zoltan Csibi
>>Sent: Friday, August 25, 2006 1:41 PM
>>To: 'Flashcoders mailing list'
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>
>>
>>var ar:Array = new Array();
>>trace(typeof(ar));
>>trace(ar instanceof Array);
>>
>>
>>Mit freundlichem Gruß,
>>Zoli
>>
>>
>>-Original Message-
>>From: Brake, Stephen [mailto:[EMAIL PROTECTED]
>>Sent: Friday, August 25, 2006 3:47 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>Me too.  I have searched the internet and have found no other people 
>>(or
>>examples) of this being done or being a problem.
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of 
>>Merrill, Jason
>>Sent: Friday, August 25, 2006 8:45 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>I'm surprised nobody has dealt with this before?  Array serialization 
>>from a .NET Webservice?
>>
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of 
>>Merrill, Jason
>>Sent: Thursday, August 24, 2006 3:35 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Webservices and .NET array serialization
>>
>>Here I was helping someone today with complex objects in .NET 
>>webservices and didn't notice a big problem on my end.
>>
>>I thought I had this figured out, but Arrays are coming across 
>>weird
in
>>a .NET webservice as generic objects not arrays that Flash can 
>>understand.  I never noticed it before because I can still 
>>reference
the
>>properties in objects in the array OK, just not the array itself.
>>For
>>example (projObj is the object of arrays and objects resulting 
>>from
>>my
>>webservice method call):
>>
>>trace(projObj.Content.Topics) //traces as undefined.  Expected an
array
>>trace(typeof(projObj.Content.Topics));  //traces as object  !?!
>>
>>and
>>
>>trace(projObj.Content.Topics[0])  //traces [object 
>>Object],undefined //but I expected [object Object], [object 
>>Object], [object Object]
>>
>>Finally:
>>
>>projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the 
>>value
>>I
am
>>expecting!!! ???
>>
>>What's up?  I can get the property values OK, but I cannot treat 
>>the array as an array as you would in Flash?
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>___
>>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] File upload : getting Flash to know the new name

2006-08-25 Thread Serge Jespers
Yeah... I see where you're going with that... Can also read the value  
from my database but I thought it must have been possible to have my  
upload.php return that new name to Flash. That would have made more  
sense, but I guess that's not possible then...?


S




Hi Serge,

Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?

Greets,
Jeroen

Serge Jespers wrote:

Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new
filename... Is this possible at all?

Thanks for your fast responses ;-)

Serge
___
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] File upload : getting Flash to know the new name

2006-08-25 Thread Jeroen Beckers
Hi Serge,

Maybe store the new name into the $_SESSION and request it when the
onComplete event is dispatched?
Or am I mis-understanding the situation?

Greets,
Jeroen

Serge Jespers wrote:
> Hey guys,
>
> I'm doing a fileUpload in this project and in my PHP script, I rename
> the file (make an MD5 from it).
> I was just wondering how I can get Flash to understand this new
> filename... Is this possible at all?
>
> Thanks for your fast responses ;-)
>
> Serge
> ___
> 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] File upload : getting Flash to know the new name

2006-08-25 Thread Serge Jespers

Hey guys,

I'm doing a fileUpload in this project and in my PHP script, I rename  
the file (make an MD5 from it).
I was just wondering how I can get Flash to understand this new  
filename... Is this possible at all?


Thanks for your fast responses ;-)

Serge
___
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] 128 character limit in XML node?

2006-08-25 Thread Claus Wahlers
In HTML enabled TextFields, the content of href in  has a 
128 (or something) character limit.


Cheers,
Claus.


Aaron Hedquist wrote:


Hello,

I have a node that is being parsed by Flash, then used as a .url text 
link. However the link that opens up once you export the flash is being 
trimmed after 128 characters (it's about 151 characters). Is there any 
inherit limit to a node or a link in Flash? Using AS 2.0. I can look at 
the XML source, and it shows the full link, but I click on the same link 
in Flash, and it just stops after 128 characters... ?1


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] Singleton not always Singleton?

2006-08-25 Thread Mike Keesey
PET PEEVE ALERT

class com.shell.util.IntroAnimProxy

Unless you are actually doing Shell Petroleum's website at
http://shell.com, this isn't a proper name for the package. The "com"
convention is a strategy to keep package paths from overlapping on
different projects: if you're doing a website, you take the domain and
reverse it--voila, you have a path that nobody else will ever use, and
you don't ever have to worry about conflicts. (Assuming everyone sticks
by the convention, of course.)

I've even seen people make classes like "com.MyClass", as if "com" stood
for "component" or something. (It stands for "commercial".)

If you're not working on a website project, then you have a couple of
options:

1) Make a new package for the project in your own domain's package.
(e.g., "net.mywebsite.mynewproject") or your client's domain package.
Even if it's not going on the web, you can still guarantee it won't
conflict with any other packages.

2) Make a package that doesn't start with any top-level domain strings
("com", "org", "net", country codes, etc.)

I'll own that in this instance you'll only really have a problem if,
some day, you *do* work on http://shell.com, but still

(And if this *is* for Shell Petroleum, then I'll shut up now.)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrés
González & Aragón
Sent: Friday, August 25, 2006 9:29 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Singleton not always Singleton?

The problem i can see is tha in the singleton pattern constructor must
be
private.

May be triin with something like this :



class com.shell.util.IntroAnimProxy
{
 private static var _instance:IntroAnimProxy;
 public static function get instance():IntroAnimProxy
 {
  if( _instance == null ) _instance = new IntroAnimProxy();
  return _instance;
 }
 private function IntroAnimProxy()
 {
  trace("IntroAnimProxy");
 }
}


___
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] clone object

2006-08-25 Thread Steven Sacks | BLITZ
> I'm not working for blitz at the moment ;)

Me neither while this keeps up!  ;)

___
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] 128 character limit in XML node?

2006-08-25 Thread Aaron Hedquist

Hello,

I have a node that is being parsed by Flash, then used as a .url text  
link. However the link that opens up once you export the flash is  
being trimmed after 128 characters (it's about 151 characters). Is  
there any inherit limit to a node or a link in Flash? Using AS 2.0. I  
can look at the XML source, and it shows the full link, but I click  
on the same link in Flash, and it just stops after 128 characters... ?1


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] clone object

2006-08-25 Thread John Grden

I'm not working for blitz at the moment ;)

On 8/25/06, Johannes Nel <[EMAIL PROTECTED]> wrote:


shouldn't you boys be going out and getting a drink on blitz's account
instead of teasing each other like this?




___
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] clone object

2006-08-25 Thread John Grden

LOL I seriously think you may end up in a padded room with a box of crayons
;)

OK, we're officiall OT - sorry mods!

we're ending it here.
___
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] clone object

2006-08-25 Thread Johannes Nel

shouldn't you boys be going out and getting a drink on blitz's account
instead of teasing each other like this?

On 8/25/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


Are you stalking me, Grden?  :)

> 1.  I use block comments all the time - but if you think it's janky,
more
> power to you.

I have the power of Greyskull.  Block comments are for commenting out
*gasp* blocks of code.  I use block comments all the time for that very
purpose.  I use line comments to write internal commentary on my code,
though, so that anyone can comment out blocks without issue.


> 2.  I prefer people to drop the curly brace down to the next line, not
> left up on the method declaration line.  But I don't give a rats ass
if
> they don't.

That's a tomayto tomahto thing.  I can read code just fine either way.


> 3.  I think WWF wrestling is fake - but it's cool if others don't.

It's never cool to be willfully ignorant.  And while it is all fake,
it's not like it doesn't hurt getting slammed to the floor or doesn't
require a level of athleticism and endurance.  It might be a show, but
it takes a lot of work to put on that show and I'm sure there are real
injuries.


> 4.  Drew Bledsoe will be out by the 3rd game of the regular season -
well,
> that's just a fact.

Baseball is boring.  Are you cool with me saying that?  ;)


> 5.  Your mom.

Has a broken heart thanks to you.  Nice going, John, you tease.

___
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





--
j:pn
http://www.lennel.org
___
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] clone object

2006-08-25 Thread Steven Sacks | BLITZ
Are you stalking me, Grden?  :)

> 1.  I use block comments all the time - but if you think it's janky,
more
> power to you.

I have the power of Greyskull.  Block comments are for commenting out
*gasp* blocks of code.  I use block comments all the time for that very
purpose.  I use line comments to write internal commentary on my code,
though, so that anyone can comment out blocks without issue.


> 2.  I prefer people to drop the curly brace down to the next line, not
> left up on the method declaration line.  But I don't give a rats ass
if 
> they don't.

That's a tomayto tomahto thing.  I can read code just fine either way.


> 3.  I think WWF wrestling is fake - but it's cool if others don't.

It's never cool to be willfully ignorant.  And while it is all fake,
it's not like it doesn't hurt getting slammed to the floor or doesn't
require a level of athleticism and endurance.  It might be a show, but
it takes a lot of work to put on that show and I'm sure there are real
injuries.
 

> 4.  Drew Bledsoe will be out by the 3rd game of the regular season -
well,
> that's just a fact.

Baseball is boring.  Are you cool with me saying that?  ;)


> 5.  Your mom.

Has a broken heart thanks to you.  Nice going, John, you tease.

___
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] clone object

2006-08-25 Thread Wade Arnold

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Friday, August 25, 2006 3:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] clone object

I guess you'd be right about that.  It'd be my problem - good point.

while I'm at it:

1.  I use block comments all the time - but if you think it's janky, more
power to you.

2.  I prefer people to drop the curly brace down to the next line, not left
up on the method declaration line.  But I don't give a rats ass if they
don't.

3.  I think WWF wrestling is fake - but it's cool if others don't.

4.  Drew Bledsoe will be out by the 3rd game of the regular season - well,
that's just a fact.

5.  Your mom.

and as we all know, the conversation always ends when someone pulls the
"your mom" card.

;)



On 8/25/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>
> I'm using this to clone data objects.  If you put circular references in
> your data models that's not my problem.  :)
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:flashcoders-
> > [EMAIL PROTECTED] On Behalf Of John Grden
> > Sent: Friday, August 25, 2006 6:37 AM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] clone object
> >
> > Guess there's a first time for everything, eh?
> >
> > var obj = new Object();
> > obj.prop1 = new Object();
> > obj.prop1.prop2 = new Object();
> > obj.prop1.prop2.ref = obj.prop1;
> >
> > function clone(obj:Object):Object
> > {
> > var o = (null != obj.length) ? [] : {};
> > for (var i in obj)
> > {
> > o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
> > obj[i];
> > }
> > return o;
> > }
> >
> > 256 levels of recursion were exceeded in one action list.
> > This is probably an infinite loop.
> > Further execution of actions has been disabled in this movie.
> >
> > ;)
> >
> > On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> > >
> > > If you're not willing to code a solution, then why are you bothering
> to
> > > write out an explanation?  I have yet to encounter a recursion limit
> and
> > > I've parsed some deep object models.
> > > ___
> > > 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
> > >
> >
> >
> >
> > --
> > [  JPG  ]
> > ___
> > 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
>



-- 
[  JPG  ]
___
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] clone object

2006-08-25 Thread John Grden

I guess you'd be right about that.  It'd be my problem - good point.

while I'm at it:

1.  I use block comments all the time - but if you think it's janky, more
power to you.

2.  I prefer people to drop the curly brace down to the next line, not left
up on the method declaration line.  But I don't give a rats ass if they
don't.

3.  I think WWF wrestling is fake - but it's cool if others don't.

4.  Drew Bledsoe will be out by the 3rd game of the regular season - well,
that's just a fact.

5.  Your mom.

and as we all know, the conversation always ends when someone pulls the
"your mom" card.

;)



On 8/25/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


I'm using this to clone data objects.  If you put circular references in
your data models that's not my problem.  :)



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Grden
> Sent: Friday, August 25, 2006 6:37 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] clone object
>
> Guess there's a first time for everything, eh?
>
> var obj = new Object();
> obj.prop1 = new Object();
> obj.prop1.prop2 = new Object();
> obj.prop1.prop2.ref = obj.prop1;
>
> function clone(obj:Object):Object
> {
> var o = (null != obj.length) ? [] : {};
> for (var i in obj)
> {
> o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
> obj[i];
> }
> return o;
> }
>
> 256 levels of recursion were exceeded in one action list.
> This is probably an infinite loop.
> Further execution of actions has been disabled in this movie.
>
> ;)
>
> On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> >
> > If you're not willing to code a solution, then why are you bothering
to
> > write out an explanation?  I have yet to encounter a recursion limit
and
> > I've parsed some deep object models.
> > ___
> > 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
> >
>
>
>
> --
> [  JPG  ]
> ___
> 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





--
[  JPG  ]
___
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] clone object

2006-08-25 Thread Jim Kremens

"I'm using this to clone data objects.  If you put circular references in
your data models that's not my problem.  :)
"
Then you might consider renaming the method 'cloneDataObject' or
'cloneDataObjectThatDoesntContainCircularReference'

:-)

Jim Kremens


On 8/25/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


I'm using this to clone data objects.  If you put circular references in
your data models that's not my problem.  :)



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Grden
> Sent: Friday, August 25, 2006 6:37 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] clone object
>
> Guess there's a first time for everything, eh?
>
> var obj = new Object();
> obj.prop1 = new Object();
> obj.prop1.prop2 = new Object();
> obj.prop1.prop2.ref = obj.prop1;
>
> function clone(obj:Object):Object
> {
> var o = (null != obj.length) ? [] : {};
> for (var i in obj)
> {
> o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
> obj[i];
> }
> return o;
> }
>
> 256 levels of recursion were exceeded in one action list.
> This is probably an infinite loop.
> Further execution of actions has been disabled in this movie.
>
> ;)
>
> On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> >
> > If you're not willing to code a solution, then why are you bothering
to
> > write out an explanation?  I have yet to encounter a recursion limit
and
> > I've parsed some deep object models.
> > ___
> > 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
> >
>
>
>
> --
> [  JPG  ]
> ___
> 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





--
Jim Kremens
___
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] clone object

2006-08-25 Thread Steven Sacks | BLITZ
I'm using this to clone data objects.  If you put circular references in
your data models that's not my problem.  :)



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Grden
> Sent: Friday, August 25, 2006 6:37 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] clone object
> 
> Guess there's a first time for everything, eh?
> 
> var obj = new Object();
> obj.prop1 = new Object();
> obj.prop1.prop2 = new Object();
> obj.prop1.prop2.ref = obj.prop1;
> 
> function clone(obj:Object):Object
> {
> var o = (null != obj.length) ? [] : {};
> for (var i in obj)
> {
> o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
> obj[i];
> }
> return o;
> }
> 
> 256 levels of recursion were exceeded in one action list.
> This is probably an infinite loop.
> Further execution of actions has been disabled in this movie.
> 
> ;)
> 
> On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> >
> > If you're not willing to code a solution, then why are you bothering
to
> > write out an explanation?  I have yet to encounter a recursion limit
and
> > I've parsed some deep object models.
> > ___
> > 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
> >
> 
> 
> 
> --
> [  JPG  ]
> ___
> 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] UML Diagrams

2006-08-25 Thread Mike Britton

It also has round trip AS2 code generation.  Gotta love that.

http://www.5etdemi.com/blog/archives/2005/11/uml-to-as2-generator-for-enterprise-architect/


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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Steven Sacks | BLITZ
All I have to say about this is tellTarget and _global.

Conversation over!

___
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] [OT] Friday Mental Break

2006-08-25 Thread Steven Sacks | BLITZ
http://youtube.com/watch?v=CJ-n2IVxW_Y

___
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] Webservices and .NET array serialization

2006-08-25 Thread Merrill, Jason
>>However, there is no way to
>>get the name/value pairs(the data in the array).

Actually Stephen, I think what you're asking about is different than what I'm 
asking about. I can access the data in the .NET object array just fine, it's 
just that referencing the array object directly returns undefined, which is 
quite odd.

This is my issue:

trace(myNETWebserviceObject.mySubObject.MyArray[0]) //traces "hello world"
trace(myNETWebserviceObject.mySubObject.MyArray) //traces undefined  !?

this is after I verified I have loaded the webservice and the method result 
returns the object.  On your end, I think it's the way the Object is being 
created in C#.  Are you sure the C# object is a public variable?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Brake, Stephen
>>Sent: Friday, August 25, 2006 1:55 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>//array declaration
>>var ds:Array = new Array();
>>
>>//push data to array
>>ds.push({TranNum: "value1", TranNum2: "another value});
>>ds.push({TranNum: "value2", TranNum2: "yet another value});
>>
>>//send array to .net web service
>>var Post_ws:mx.services.WebService;
>>var PostWsCall:mx.services.PendingCall;
>>Post_ws=new mx.services.WebService("https://somedotcomaddress
>>/Portal.asmx?wsdl");
>>
>>PostWsCall=Post_ws.PostIt(ds);
>>
>>In the .net web service, the length of the array can properly be seen to be 
>>2(in
>>this case since two push commands were issued).  However, there is no way to
>>get the name/value pairs(the data in the array).
>>
>>Why - that's the $1,000,000.00 question.
>>
>>
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Zoltan Csibi
>>Sent: Friday, August 25, 2006 1:41 PM
>>To: 'Flashcoders mailing list'
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>
>>
>>var ar:Array = new Array();
>>trace(typeof(ar));
>>trace(ar instanceof Array);
>>
>>
>>Mit freundlichem Gruß,
>>Zoli
>>
>>
>>-Original Message-
>>From: Brake, Stephen [mailto:[EMAIL PROTECTED]
>>Sent: Friday, August 25, 2006 3:47 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>Me too.  I have searched the internet and have found no other people (or
>>examples) of this being done or being a problem.
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
>>Jason
>>Sent: Friday, August 25, 2006 8:45 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>I'm surprised nobody has dealt with this before?  Array serialization from a
>>.NET Webservice?
>>
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Thursday, August 24, 2006 3:35 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Webservices and .NET array serialization
>>
>>Here I was helping someone today with complex objects in .NET
>>webservices and didn't notice a big problem on my end.
>>
>>I thought I had this figured out, but Arrays are coming across weird
in
>>a .NET webservice as generic objects not arrays that Flash can
>>understand.  I never noticed it before because I can still reference
the
>>properties in objects in the array OK, just not the array itself.
>>For
>>example (projObj is the object of arrays and objects resulting from
>>my
>>webservice method call):
>>
>>trace(projObj.Content.Topics) //traces as undefined.  Expected an
array
>>trace(typeof(projObj.Content.Topics));  //traces as object  !?!
>>
>>and
>>
>>trace(projObj.Content.Topics[0])  //traces [object Object],undefined
>>//but I expected [object Object], [object Object], [object Object]
>>
>>Finally:
>>
>>projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value
>>I
am
>>expecting!!! ???
>>
>>What's up?  I can get the property values OK, but I cannot treat the
>>array as an array as you would in Flash?
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>___
>>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://tr

RE: [Flashcoders] Webservices and .NET array serialization

2006-08-25 Thread Merrill, Jason
>>var ar:Array = new Array();
>>trace(typeof(ar));
>>trace(ar instanceof Array);
>>
>>
>>Mit freundlichem Gruß,
>>Zoli

That's not what I'm asking, but thanks.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Zoltan Csibi
>>Sent: Friday, August 25, 2006 1:41 PM
>>To: 'Flashcoders mailing list'
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>
>>
>>var ar:Array = new Array();
>>trace(typeof(ar));
>>trace(ar instanceof Array);
>>
>>
>>Mit freundlichem Gruß,
>>Zoli
>>
>>
>>-Original Message-
>>From: Brake, Stephen [mailto:[EMAIL PROTECTED]
>>Sent: Friday, August 25, 2006 3:47 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>Me too.  I have searched the internet and have found no other people (or
>>examples) of this being done or being a problem.
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
>>Jason
>>Sent: Friday, August 25, 2006 8:45 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Webservices and .NET array serialization
>>
>>I'm surprised nobody has dealt with this before?  Array serialization from a
>>.NET Webservice?
>>
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Thursday, August 24, 2006 3:35 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Webservices and .NET array serialization
>>
>>Here I was helping someone today with complex objects in .NET
>>webservices and didn't notice a big problem on my end.
>>
>>I thought I had this figured out, but Arrays are coming across weird
in
>>a .NET webservice as generic objects not arrays that Flash can
>>understand.  I never noticed it before because I can still reference
the
>>properties in objects in the array OK, just not the array itself.
>>For
>>example (projObj is the object of arrays and objects resulting from
>>my
>>webservice method call):
>>
>>trace(projObj.Content.Topics) //traces as undefined.  Expected an
array
>>trace(typeof(projObj.Content.Topics));  //traces as object  !?!
>>
>>and
>>
>>trace(projObj.Content.Topics[0])  //traces [object Object],undefined
>>//but I expected [object Object], [object Object], [object Object]
>>
>>Finally:
>>
>>projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value
>>I
am
>>expecting!!! ???
>>
>>What's up?  I can get the property values OK, but I cannot treat the
>>array as an array as you would in Flash?
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>___
>>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


[Flashcoders] Flash mini-site architecture

2006-08-25 Thread slangeberg

Just wondering if anyone has suggestions of a framework, or architecture to
create mini-sites in Flash?

i.e. site navigation, multiple levels / pages.

My goals would be high level of flexibility for content updates / navigation
changes.

I've really given myself headaches in this area before, but now I'm starting
one fresh for a big client. Any leads appreciated!

: : ) Scott
___
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

2006-08-25 Thread Matthias Dittgen

if (wrapping)
{
   use(screenweaver, "http://screenweaver.org/";);
   // it's open source
}

:-)
Have fun!
Matthias

2006/8/25, Mendizabal <[EMAIL PROTECTED]>:

Use SWF Studio 3 to wrap it up:
http://www.northcode.com

They have a trial version to give it a go!

On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> does anyone know how to change the flash player title bar from "Macromedia
> Flash Player 8" to whatever i wan't?
>
> thanks,
> lewis
>
>
> -
> Email sent from www.ntlworld.com
> Virus-checked using McAfee(R) Software
> Visit www.ntlworld.com/security for more information
>
> ___
> 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] flip pages in as2 or the like

2006-08-25 Thread Bbt Lists

Matthias Dittgen wrote:

Thank you, Jordan!

I am coding an AS2 pageflip class right now, which works as needed for
our current project and I am follwing the O'Reilly article from Sham
Bhangal, which is really excellent. I am making big steps forward a
reusable solution in pure code.

Will it be open source? Just curious.



--
dnk

___
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] Netstream status

2006-08-25 Thread Vishal Kapur

Check out the NetStream.onStatus callback.  The flash 8 help
documentation is pretty comprehensive in describing the status codes,
etc.

-- Vishal

On 8/24/06, Bo Parker <[EMAIL PROTECTED]> wrote:

I have an swf that is utilizing video. I also have a set of tweens
that are happening in the background of the swf. What I want to
accomplish is that when I press the pause button, the tweens pause as
well as the flv video. I am using fuse to control the tweens and have
no problem pausing them, the issue is checking the status of the flv.
My code for the flv pause is quite simple:

-
var nc:NetConnection = new NetConnection();
nc.connect (null);

var ns:NetStream = new NetStream(nc);


mainVideo.attachVideo(ns);

ns.play("home.flv");


//Video Controls

controls2.rewind.onRelease = function() {
ns.seek(0);
Fuse.startRecent();
};


controls2.play.onRelease = function() {
ns.pause();
//_root.pauseAllTweens()
Fuse.pauseAll();
};
--

I need to check the status of "ns" to see if it is playing or paused
and created an if statement that if the state is "play" then for
Fuse.pauseAll(); else if the state is "pause" the Fuse.playAll();

I'm having trouble finding a starting place. Can someone point me in
the right direction? Thanks,


--
Bo Parker, AIGA
Bo Co. Design
650 W Vickery
Suite 130
Fort Worth, Texas  76104

817.332.4700 phone
817.332.4710 facsimile


___
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

2006-08-25 Thread Mendizabal

Use SWF Studio 3 to wrap it up:
http://www.northcode.com

They have a trial version to give it a go!

On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


does anyone know how to change the flash player title bar from "Macromedia
Flash Player 8" to whatever i wan't?

thanks,
lewis


-
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software
Visit www.ntlworld.com/security for more information

___
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] Any MTASC masters out there?

2006-08-25 Thread John Grden

Cool, so you're all swiggity now?  working well?

On 8/24/06, aaron smith <[EMAIL PROTECTED]> wrote:


yeah I was trying all that.. if I change any graphics i recompile with the
IDE. then i would compile with mtasc for code changes. I was using the
-keep
and -mx tags



___
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] Webservices and .NET array serialization

2006-08-25 Thread Brake, Stephen
//array declaration
var ds:Array = new Array();

//push data to array
ds.push({TranNum: "value1", TranNum2: "another value});
ds.push({TranNum: "value2", TranNum2: "yet another value});

//send array to .net web service
var Post_ws:mx.services.WebService;
var PostWsCall:mx.services.PendingCall;
Post_ws=new mx.services.WebService("https://somedotcomaddress 
/Portal.asmx?wsdl");

PostWsCall=Post_ws.PostIt(ds);

In the .net web service, the length of the array can properly be seen to be 
2(in this case since two push commands were issued).  However, there is no way 
to get the name/value pairs(the data in the array).

Why - that's the $1,000,000.00 question.





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zoltan Csibi
Sent: Friday, August 25, 2006 1:41 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Webservices and .NET array serialization



var ar:Array = new Array();
trace(typeof(ar));   
trace(ar instanceof Array);


Mit freundlichem Gruß,
Zoli


-Original Message-
From: Brake, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:47 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

Me too.  I have searched the internet and have found no other people (or
examples) of this being done or being a problem.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, August 25, 2006 8:45 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

I'm surprised nobody has dealt with this before?  Array serialization from a
.NET Webservice?



Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders- 
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Thursday, August 24, 2006 3:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Webservices and .NET array serialization

Here I was helping someone today with complex objects in .NET 
webservices and didn't notice a big problem on my end.

I thought I had this figured out, but Arrays are coming across weird
>>in
a .NET webservice as generic objects not arrays that Flash can 
understand.  I never noticed it before because I can still reference
>>the
properties in objects in the array OK, just not the array itself.
For
example (projObj is the object of arrays and objects resulting from
my
webservice method call):

trace(projObj.Content.Topics) //traces as undefined.  Expected an
>>array
trace(typeof(projObj.Content.Topics));  //traces as object  !?!

and

trace(projObj.Content.Topics[0])  //traces [object Object],undefined 
//but I expected [object Object], [object Object], [object Object]

Finally:

projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value
I
>>am
expecting!!! ???

What's up?  I can get the property values OK, but I cannot treat the 
array as an array as you would in Flash?

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions





___
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.fi

RE: [Flashcoders] Webservices and .NET array serialization

2006-08-25 Thread Zoltan Csibi


var ar:Array = new Array();
trace(typeof(ar));   
trace(ar instanceof Array);


Mit freundlichem Gruß,
Zoli


-Original Message-
From: Brake, Stephen [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:47 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

Me too.  I have searched the internet and have found no other people (or
examples) of this being done or being a problem.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, August 25, 2006 8:45 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

I'm surprised nobody has dealt with this before?  Array serialization from a
.NET Webservice?



Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders- 
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Thursday, August 24, 2006 3:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Webservices and .NET array serialization

Here I was helping someone today with complex objects in .NET 
webservices and didn't notice a big problem on my end.

I thought I had this figured out, but Arrays are coming across weird
>>in
a .NET webservice as generic objects not arrays that Flash can 
understand.  I never noticed it before because I can still reference
>>the
properties in objects in the array OK, just not the array itself.
For
example (projObj is the object of arrays and objects resulting from
my
webservice method call):

trace(projObj.Content.Topics) //traces as undefined.  Expected an
>>array
trace(typeof(projObj.Content.Topics));  //traces as object  !?!

and

trace(projObj.Content.Topics[0])  //traces [object Object],undefined 
//but I expected [object Object], [object Object], [object Object]

Finally:

projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value
I
>>am
expecting!!! ???

What's up?  I can get the property values OK, but I cannot treat the 
array as an array as you would in Flash?

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions





___
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] [OT] Friday Mental Break

2006-08-25 Thread JOR




Claus Wahlers wrote:



http://www.dopelogik.com/flash/snakes_in_a_class/



this._snakes.push( snake ); // BUG!
Cheers,
Claus.



Yeah, I don't know that I'd push a snake either.  slice a snake perhaps. :-P

He probably meant to assign the snake var inside of the switch statement 
instead of push both inside the switch and again after it.  I'd probably 
also move the quotes assignment to the constructor so it isn't 
reassigned with every reciteCheesyLine() call.


Either way, compile or no compile, it was very funny. Thanks for the 
laugh dopelogik!


JOR
www.jamesor.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] Any MTASC masters out there?

2006-08-25 Thread aaron smith

yeah I was trying all that.. if I change any graphics i recompile with the
IDE. then i would compile with mtasc for code changes. I was using the -keep
and -mx tags




On 8/24/06, John Grden <[EMAIL PROTECTED]> wrote:


do you have precompiled classes in the SWF you're using?  you might have
to
recompile with the IDE then test with mtasc. If you do have classes
precompiled in the SWF with the IDE, use the -keep tag.  If you're using
mx
components, use the -mx tag

make sense?

On 8/24/06, aaron smith <[EMAIL PROTECTED]> wrote:
>
> ok I think I got what you meant. I started by just giving one class
path.
> and the main.as file. then after trying to compile.. it gave me all
those
> errors about having to force compile the actionscript. I went through.
one
> by one. compiling after each one.. evetually it got to the point where
no
> errors spit out. but there is still obvious missing functionality..
really
> weird..
>
> Aaron
>
>
>
> On 8/24/06, aaron smith <[EMAIL PROTECTED]> wrote:
> >
> > sorry not following completely what you mean, quick exmaple? or deeper
> > explanation?.. thank you..
> >
> >
> >
> >
> > On 8/24/06, John Grden < [EMAIL PROTECTED]> wrote:
> > >
> > > you certain could try it.
> > >
> > > One thing I just did with someone else, was to start at the
> > > beginning.  Add
> > > the main class (if that's what you have) and add a class
> path.  Compile.
> > > Follow the errors until you get the necessary classes in there.  It
> > > worked
> > > like a charm.
> > >
> > > On 8/24/06, aaron smith < [EMAIL PROTECTED]> wrote:
> > > >
> > > > yeah that's what I tried. No luck. It did suppress the errors but
> now
> > > > there
> > > > is missing functionality.. Weird. No errors but there is obvious
> > > missing
> > > > functionality..
> > > >
> > > > If I pack everything in maybe that would force every class to be
> > > compiled?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 8/24/06, John Grden < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > well, try adding those particular files that it mentions to the
> > > comand
> > > > > line.  If they're all in a particular pacakge, use the -pack
> switch
> > > and
> > > > > add
> > > > > it.
> > > > >
> > > > > In Flasc, you can just click on the "add package" button, and
> piont
> > > to a
> > > > > folder.  If you're clicking on a parent folder that has a couple
> > > > different
> > > > > packages, it'll recurse and add them all.
> > > > >
> > > > > On 8/23/06, aaron smith <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > no. it is a precompiled swf but no components.
> > > > > >
> > > > > > I did manage to add all the packages in, and suppressed all
> > > errors.
> > > > but
> > > > > > now
> > > > > > there is functionality that doesn't work in the mtasc compiled
> > > > version.
> > > > > > It's
> > > > > > weird. .not getting any errors. but things aren't
> working..  I've
> > > > tried
> > > > > > rebuilding the swf from flash then doing mtasc again.. same
> > > result. no
> > > > > > errors, but obvious missing functionality..
> > > > > >
> > > > > > thanks
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 8/23/06, John Grden < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > are you useing a precompiled SWF with components?
> > > > > > >
> > > > > > > On 8/23/06, aaron smith < [EMAIL PROTECTED]>
> > > wrote:
> > > > > > > >
> > > > > > > > yeah I tried that. Still no luck.
> > > > > > > >
> > > > > > > > I am getting the same errors..
> > > > > > > >
> > > > > > > > here is the entire output:::
> > > > > > > >
> > > > > > > > "C:/Program Files/mtasc/mtasc.exe" -swf "C:/Documents and
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
>
Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/bin/Main.swf"
> > > > > > > > -out "C:/Documents and
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
>
Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/bin/Main.swf"
> > > > > > > > -mx  -cp "C:/Program Files/Macromedia/Flash 8/en/First
> > > > > > Run/Classes"  -cp
> > > > > > > > "C:/Documents and
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
>
Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/classes"
> > > > > > > > "C:/Documents and
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
>
Settings/aaronsh/Desktop/dev/flash/flashprojects/disasterstruclonthedayofmybirth/classes/com/dsotdomb/Main.as"
> > > > > > > > -version 8
> > > > > > > >
> > > > > > > >
> > > > > > > > 2> "C:/Documents and Settings/aaronsh/Local
> > > Settings/Application
> > > > > > > > Data/Macromedia/Flash
> > > > 8/en/Configuration/Commands/FLASC/errors.txt"
> > > > > > > > Warning : The MovieClip searchCancel needs the class
> > > > > > > > com.dsotdomb.gui.buttons.PseudoButton which was not
compiled
> :
> > > > > > > > Please force comp

[Flashcoders] help

2006-08-25 Thread lewis.e-mail
does anyone know how to change the flash player title bar from "Macromedia 
Flash Player 8" to whatever i wan't?

thanks,
lewis


-
Email sent from www.ntlworld.com
Virus-checked using McAfee(R) Software 
Visit www.ntlworld.com/security for more information

___
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] Safari Browser in not showing embedded SWF

2006-08-25 Thread Swapnil Dubey
Hi all,

 

I am facing some strange issue. I am using a piece of code to load a SWF
into movie clip.

 

on(release) {

abc = _root.swap.createEmptyMovieClip("swfHolder_mc", 1);

this.swfHolder_mc.loadMovie("trip.swf");

}

 

Its working fine when I open the SWF exported in Flash Player or IE. But
not when I open it in Safari.

Both the SWF ie. exported SWF and loaded SWF are at the same level. Can
anybody help me out.

 

Thanks & Regards

Swapnil

___
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] Masking FLV

2006-08-25 Thread eric dolecki

wrap your video object in a MC, and go to town.

On 8/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi Gang,
I'm wondering if it's possible to apply masking to an flv...seeing as how
components are a form of movie clip, can i do things i would normally do
like masks?

thanks

b

-- Original message --
From: Claus Wahlers <[EMAIL PROTECTED]>

>
> > http://www.dopelogik.com/flash/snakes_in_a_class/
>
> this._snakes.push( snake ); // BUG!
> Cheers,
> Claus.
>
> ___
> 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] Masking FLV

2006-08-25 Thread badimalik
Hi Gang,
I'm wondering if it's possible to apply masking to an flv...seeing as how 
components are a form of movie clip, can i do things i would normally do like 
masks?

thanks

b

-- Original message -- 
From: Claus Wahlers <[EMAIL PROTECTED]> 

> 
> > http://www.dopelogik.com/flash/snakes_in_a_class/ 
> 
> this._snakes.push( snake ); // BUG! 
> Cheers, 
> Claus. 
> 
> ___ 
> 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] [OT] Friday Mental Break

2006-08-25 Thread Claus Wahlers



http://www.dopelogik.com/flash/snakes_in_a_class/


this._snakes.push( snake ); // BUG!
Cheers,
Claus.

___
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] Thank You

2006-08-25 Thread Thuy
Just wanted to say Thanks! to all the people who answer all the noob 
questions. Because of the archives, I haven't needed to spam the list 
rehashing old Flash AS1 drudgery.


Much appreciated.

--
Thuy Nguyen
Web Designer
Angus Journal

email: [EMAIL PROTECTED]
phone: 816.383.5228

___
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] Singleton not always Singleton?

2006-08-25 Thread Andrés González & Aragón

The problem i can see is tha in the singleton pattern constructor must be
private.

May be triin with something like this :



class com.shell.util.IntroAnimProxy
{
private static var _instance:IntroAnimProxy;
public static function get instance():IntroAnimProxy
{
 if( _instance == null ) _instance = new IntroAnimProxy();
 return _instance;
}
private function IntroAnimProxy()
{
 trace("IntroAnimProxy");
}
}




2006/8/25, Adrian Park <[EMAIL PROTECTED]>:


Hey all!

I'm using a class (AnimationProxy) based on the Singleton pattern to form
a
bridge between a timeline based intro animation (sigh) and the application
objects (it's not strictly an intro because, when the intro is complete,
the
animation continues in the background whilst the rest of the site is
rendered over the top). The animation is a standalone .swf loaded into the
main .swf at runtime. It (the animation) has the AnimationProxy imported,
registers a reference to itself with AnimationProxy and sends various
events
to AnimationProxy. The main application objects register as event
listeners
of AnimationProxy and respond to the events triggered by the animation.
Well, that's how it's supposed to work!

Thing is (and you may have seen the flaw already), I now discover that a
unique instance of AnimationProxy is created by each of the intro and main
.swfs! I'm fairly confident my implementation of Singleton is fine since
it's the same implementation I've used several times.

Two questions then...

It kind of makes sense to me that each .swf maintains it's own object
space
(for want of a better term) and therefore it is expected that they would
each end up with unique instances of AnimationProxy. Can someone give me a
fuller explanation of why each .swf gets a unique instance?

Can anyone suggest a better solution?

I've included the code that constitutes the Singleton implemention below.

Thanks
Adrian

class com.shell.util.IntroAnimProxy {
   // Singleton instance
   private static var _instance:IntroAnimProxy;

   public function IntroAnimProxy () {}

   public static function getInstance():IntroAnimProxy {
   if ( IntroAnimProxy._instance == undefined ) {
   IntroAnimProxy._instance = new IntroAnimProxy();
   }
   return IntroAnimProxy._instance;
   }
}
___
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





--
Andrés González Aragón
Desarrollador Multimedia
___
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] UML Diagrams

2006-08-25 Thread Andrés González & Aragón

I've used Enterprise Architect for at last a year and i'm very happy with
results

2006/8/25, Mike Britton <[EMAIL PROTECTED]>:


Enterprise Architect:
http://www.sparxsystems.com.au/products/ea.html

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





--
Andrés González Aragón
Desarrollador Multimedia
___
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] [OT] Friday Mental Break

2006-08-25 Thread Matt

http://www.dopelogik.com/flash/snakes_in_a_class/
___
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]Performance issue

2006-08-25 Thread Serge
1. You don't need to remove movieclips - just reuse them, if you mean 
falling objects

(it is easy and would remove source of potential memory leak)
(otherwise, delete listeners in mc first, and then mc.removeMovieClip() - 
there was a good article I don't remember the name)


2. Check the loop in a "boy" object separately - it could slow down with 
"age" as well




- Original Message - 
From: "Martin Weiser" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, August 23, 2006 3:33 PM
Subject: [Flashcoders]Performance issue



Hello,

i neeed urgent help, on this, try these two html pages, one with wmode 
transparent the other normal?


http://flash.dna01.net/sp/tescoBTSmini.html

http://flash.dna01.net/sp/tescoBTSmini.htm

test it for a while (no mouse needem just let it go for 5 minutes ) plus 
measure CPU consumption (Ctrl+Alt+Del in Win)
see how the transparent takes nore CPUand despite the falling objects 
are removed, deleted from lists (arrays) the CPU consumption increases,


please any help appreciated, how to properly delete MovieCLip (removing 
from listeners array, othere references, etc...)


Thanks a lot in advance

Martin
___
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] OT: Create a text file on server using PHPwithvariables from Flash

2006-08-25 Thread Paul Steven
Thanks - seems to be working now - may have been a cache problem.

However I have attempted to now write more than one variable to the text
file and it only appears to be writing the first one.

Here is my PHP code



Any ideas why the second variable is not getting written?


This is my action script

var vSender = new LoadVars();
var vReceiver = new LoadVars();


vSender.text1_Font = text1_Font;
vSender.text1_Size = text1_Size;

vSender.action = "write";
vSender.filename = "order2.txt";


vReceiver.onLoad = function(success) {

trace ("onLoad function");

if (success) {
trace("text writen to the text file:\n" +
this.message);
content_txt.text = this.message;
} else {
trace("error");
content_txt.text = "error";
}
};



vSender.sendAndLoad("http://www.mediakitchen.co.uk/clients/davehann/testpost
.php", vReceiver, "POST");

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Serge
Sent: 25 August 2006 13:34
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Create a text file on server using
PHPwithvariables from Flash

This is working for me.
Serge





- Original Message - 
From: "Paul Steven" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'" 
Sent: Friday, August 25, 2006 4:15 AM
Subject: [Flashcoders] OT: Create a text file on server using PHP 
withvariables from Flash


> Anyone have a working example of a PHP script to create a text file using
> PHP?
>
> I am trying to get the following to work but it is not creating the text
> file on my server. I have set the permissions of the folder to 777 which
> should in theory allow a file to be created.
>
> Thanks
>
> Paul
>
>  // the name of the text file
> $filename = 'test3.txt';
>
> // hard code the variable from flash
> $somecontent = "Add this to the file\n";
>
> // If the file doesn't exist, attempt to create it
> // and open it for writing
> // anything already writen will be replaced
> if (!$handle = fopen($filename, 'w')) {
> echo "&message=Cannot open file&";
> exit;
> }
>
> // Write $somecontent to the opened file.
> if (fwrite($handle, $somecontent) === FALSE) {
> echo "&message=Cannot write to file&";
> exit;
> }
> // close the file
> fclose($handle);
>
> // send the variable to flash
> echo "&message=$somecontent&";
>
> ?>
>
> ___
> 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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Scott Hyndman

yes, you are. If you read the first two paragraphs of the wikipedia
article you'd see it has nothing to do with multiple inheritance.

It has to do with multiple objects (poly) being contrained by the same
interface (form, morph), whether the interface is quite literally an
interface, or whether it is an interface determined by a parent class.

Scott

On 25/08/06, Steve Krichten <[EMAIL PROTECTED]> wrote:

It sounds like you are confusing polymorphism with multiple
inheritance.  ActionScript and Java and pretty much any OOP language do
allow for polymorphism.

http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

-Steve
*
-

Meinte van't Kruis* meinte at gmail.com

/Fri Aug 25 09:14:16 EDT 2006/

* Previous message: [Flashcoders] OOP methodology and flash. I'm
  loosing my faith... <171797.html>
* Next message: [Flashcoders] OOP methodology and flash. I'm loosing
  my faith... <171794.html>
* *Messages sorted by:* [ date ]  [ thread ]
   [ subject ]  [ author ]
  



well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why people who are explaining
oop in actionscript talk about polymorphism, because it just
isn't there :), but perhaps I'm wrong.

cheers,
-Meinte

___
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] question on localConnection

2006-08-25 Thread John Grden

40k limit

if you know you're going to be breaking that, consider using an Object2XML
converter, do a toString on the XML, break it up into 5k chunks and put
those chunks into an array.  Then loop the array and send each chunk across
with a boolean that indicates that the last batch has been sent.  THen, on
the other end, store the chunks in an array until you get "lastBatch=true"
and paste it all together as a string and assign it to a new XML object.
Convert back to Object if need.

this kinda shows you what I mean:
http://mirror1.cvsdude.com/trac/osflash/xray/browser/DEV_Source/xray/classes/com/blitzagency/xray/ControlConnection.as#L272

hth,

jpg

On 8/25/06, eric dolecki <[EMAIL PROTECTED]> wrote:


Make sure you aren't sending too much data across the localConnection, or
it
shall break unceremoniously. I forget the limit, but there is indeed a
limit.

On 8/25/06, Rutul Patel <[EMAIL PROTECTED]> wrote:
>
> hi people,
> I was creating local connection between two swf file,
> first time it works fine and then after sometime it stops working,
> then i change connection name(target name in both file) and it starts
> working again,
>
> can anyone tell me why this happen.
>
> --
> Regards,
> Rutul Patel
> ___
> 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





--
[  JPG  ]
___
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] UML Diagrams

2006-08-25 Thread Mike Britton

Enterprise Architect:
http://www.sparxsystems.com.au/products/ea.html

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] question on localConnection

2006-08-25 Thread eric dolecki

Make sure you aren't sending too much data across the localConnection, or it
shall break unceremoniously. I forget the limit, but there is indeed a
limit.

On 8/25/06, Rutul Patel <[EMAIL PROTECTED]> wrote:


hi people,
I was creating local connection between two swf file,
first time it works fine and then after sometime it stops working,
then i change connection name(target name in both file) and it starts
working again,

can anyone tell me why this happen.

--
Regards,
Rutul Patel
___
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] question on localConnection

2006-08-25 Thread Sinead Hogan
It drove me nuts when testing a local connection issue once to realise
that after opening my test page with swfs using local connection once,
any page I opened after that would communicate to the first page's swfs.
So when testing your local connection issues make sure to close all
other instances of swfs using the same local connection. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rutul
Patel
Sent: 25 August 2006 07:22
To: Flashcoders mailing list
Subject: [Flashcoders] question on localConnection

hi people,
I was creating local connection between two swf file,
first time it works fine and then after sometime it stops working,
then i change connection name(target name in both file) and it starts
working again,

can anyone tell me why this happen.

-- 
Regards,
Rutul Patel
___
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 effect

2006-08-25 Thread Elena Blanco
Fantastic - I will take a look and post more questions if I have any

Elena

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Berkey
Sent: Friday, August 25, 2006 7:08 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Flash effect

There is a tute on this very thing here - check out the "Creating 3D
Carousels" - their nav is a 3-d carousel of players, rotating on an oval.
Not terribly difficult, and a very kewl look.
http://gotoandlearn.com

Currently you need to download the flv tutes and watch.
jimbo


*** REPLY SEPARATOR  ***

On 8/25/2006 at 6:50 AM Elena Blanco wrote:

>Sorry, I pasted the wrong link. Here it is
>http://myspace.com/adidassoccer
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Elena
>Blanco
>Sent: Thursday, August 24, 2006 8:23 PM
>To: 'Flashcoders mailing list'
>Subject: [Flashcoders] Flash effect
>
>Hello
>
>I need to replicate an effect very similar to the following
>http://myspace.com/adidassoccerbv
>
>Rotating movieclips, scaling and fading. Any idea on how this might have
>been accomplished?
>
>Thank you for the suggestions,
>El
>
>___
>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] Re: OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread James

Cool. Thanks I'll check it out

James

At 15:55 25/08/2006, you wrote:


Well, haXe (http://haxe.org) has both class-based and "structural"
objects. You can describe types such as :

typedef Point = {
   var x : Int;
   var y : Int;
}

Then every object or class instance having "x" and "y" Int public fields
will be *automatically* of the type Point. Everything is strictly typed
thanks to type inference, and yet offer expressive power comparable to
dynamicly typed languages.

Nicolas
___
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] Re: OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread James
A quote attributed to 
Bjarne Stroustrup 
(designer of C++); “There are only two kinds of programming languages: 
those people always bitch about and those nobody uses.”…  


___
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] Re: OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Nicolas Cannasse
> I think that the mixture of prototype based and class based OOP is really 
> interesting. I think prototype based object orientated languages (such as 
> AS1.0 and JavaScript) are really pretty cool and you can do amazing things 
> with them.
> 
> I read somewhere (sorry can't find link but it was on sitepoint.com written 
> by Harry Fuecks)  that one of the leading technical directors at google had 
> produced a patterns book with most of the important patterns completely 
> rewritten for prototype OO languages and many of them were far simpler and 
> much less code.
> 
> of course there is always the trade off with any dynamic language - the 
> less errors can be caught at 'compile time' the more you have to test the 
> code using 'unit testing' at run time.

Well, haXe (http://haxe.org) has both class-based and "structural"
objects. You can describe types such as :

typedef Point = {
   var x : Int;
   var y : Int;
}

Then every object or class instance having "x" and "y" Int public fields
will be *automatically* of the type Point. Everything is strictly typed
thanks to type inference, and yet offer expressive power comparable to
dynamicly typed languages.

Nicolas
___
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] Re: OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread James
I think that the mixture of prototype based and class based OOP is really 
interesting. I think prototype based object orientated languages (such as 
AS1.0 and JavaScript) are really pretty cool and you can do amazing things 
with them.


I read somewhere (sorry can't find link but it was on sitepoint.com written 
by Harry Fuecks)  that one of the leading technical directors at google had 
produced a patterns book with most of the important patterns completely 
rewritten for prototype OO languages and many of them were far simpler and 
much less code.


of course there is always the trade off with any dynamic language - the 
less errors can be caught at 'compile time' the more you have to test the 
code using 'unit testing' at run time.


I take any comments like 'AS2 is crap' or 'PHP is crap' or whatever with a 
huge pinch of salt. Ask them 'Do you think people at Macromedia/Adobe don't 
know what they're doing?' usually these people have a computer science 
degree from Wolverhampton Poly or somesuch and couldn't get a job at Adobe 
or Macromedia if they promised to work for nothing and give foot massages 
to all the other developers whilst compiling.


James

At 15:12 25/08/2006, you wrote:

When it comes to OOP and Flash I think an individuals opinion comes from
their knowledge of OOP. Those that have used it swear by it and vice versa.
This is pretty much how it is with everything. I remember at the release of
AS2 there were quite a few developers that I had interactions with that were
saying that AS2 was crap and not to use it. I wonder how well that worked
out for them :)

- darren

___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Meinte van't Kruis

aaah ok, so polymorphism isnt multiple inheritance, well ok, got
it wrong all this time, lol.

thanks for the enlightenment :)

On 8/25/06, James <[EMAIL PROTECTED]> wrote:




in polymorphism using the previous example you could have a cat object
with
a 'make noise' method that prints 'meow' and a dog object that has a make
noise method that prints 'woof woof' - yes this is the same example as in
wikipedia!

what makes it polymorphism is that you use the same handler name, your
code
driving the object says 'make noise' and depending on which animal object
you have, you get a different response. This is polymorphism, it isn't
Multiple Inheritance

an example of multiple inheritence would be Spock from star trek

Spock is a human

and

Spock is a vulcan

in C++ you can have multiple inheritence and so you can satisfy both
conditions. but it causes billions of confusing problems, not least of
which being the diamond problem

http://www.javaworld.com/jw-12-1998/jw-12-techniques.html


indeed you are correct because Java's interface type is designed to
overcome the problem of multiple inheritence. so with java and AS2 you can
have Spock be a vulcan when you need so cold hard rationalism, and have
Spock be a human when you need him to give you a hug.

James


At 14:14 25/08/2006, you wrote:
>well, I get Interfaces, but thanks for explaining :).
>
>I just don't think actionscript, or java, has any polymorphism,
>since the definition of that is, in my opinion, a class having more
>than one parent class (ie, can extend 2 or more classes), which
>isn't the case. So I don't understand why people who are explaining
>oop in actionscript talk about polymorphism, because it just
>isn't there :), but perhaps I'm wrong.
>
>cheers,
>-Meinte
>
>On 8/25/06, James <[EMAIL PROTECTED]> wrote:
>>
>>they are different, as far as I know
>>
>>an interface, as in 'Interface' type does not itself have an
>>implementation, whereas a subclass which displays polymorphism does, the
>>difference comes from your design needs, for example:
>>
>>(polymorphism)
>>class animal - can be a implemented class with it's own methods
>>class dog - is a subclass of animal which alters/extends animal
>>class cat - is a subclass of animal which alters/extands animal in a
>>different way to dog
>>
>>so in certain circumstances you may only need to instance and call
methods
>>in 'animal', when you don't care what it is but just need an animal
type.
>>
>>with Interfaces the 'interface' type is not a implemented object, it
does
>>not have it's own implemented methods
>>
>>so an example might be if you owned a sports shop that sold coats and
>>bicycles, coat and bicycle are not the same type but if you get them to
>>use
>>the 'stock control item' interface they are both 'stock control item'
>>objects if you need them to be, providing you follow the rules for that
>>particular interface you can make any object a 'stock control item' but
>>there is no generic 'stock control item' type.
>>
>>see it is different. you have to see things 'arse-ways-backwards'
>>sometimes
>>- at first I did not understand the point of interfaces, since the
objects
>>implementing them have to implement the actual working methods anyway
but
>>OOP is about creating a long-term collection of reusable objects which
may
>>be used by teams of coders, structures like interfaces make for a clean
>>and
>>clear architecture that other coders can quikly understand, and give a
>>well
>>defined way to extend a system.
>>
>>James
>>
>>
>>At 12:23 25/08/2006, you wrote:
>> >going a bit offtopic here, but isnt polymorphism a non-issue in both
>>flash
>> >and java? People talk about like there can be such a thing in these
>> >languages,
>> >which isn't really true. It seems a bit silly to call something
>>polymorphism
>> >just because its implementing some interfaces.
>> >
>> >oh well, that probably didn't make any sense i suppose,
>> >im not getting any decent sleep lately :)
>> >
>> >greets,
>> >Meinte
>> >
>> >On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:
>> >>
>> >>Ok, I see its not so easy for everyone. Can anyone point out some
>> >>tutorial-like examples on internet or books. I know a lot of theory
>> >>(inheritance, polymorphism...) but I would like to see more
applications
>> >>for
>> >>it so I can be more confident when I use it.
>> >>
>> >>
>> >>
>> >>On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> > My main motivation for this stuff in Flash is so that my code
>>actually
>> >> > gets
>> >> > checked by the compiler, vs. Flash's crappy built-in code-checking
>>for
>> >>the
>> >> > stage. That is, it will tell me if I've mis-spelled something,
>>created
>> >> > duplicate variables, the list goes on...
>> >> >
>> >> > In addition, I write my classes in FlashDevelop, which gives you
code
>> >> > completion. Which means when I start to type:
>> >> >
>> >> > > import mx.
>> >> >
>> >> > I get a listing of all packages that Macromedia's written, instead
of
>> >> > 

[Flashcoders] Re: OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Darren Cline
When it comes to OOP and Flash I think an individuals opinion comes from
their knowledge of OOP. Those that have used it swear by it and vice versa.
This is pretty much how it is with everything. I remember at the release of
AS2 there were quite a few developers that I had interactions with that were
saying that AS2 was crap and not to use it. I wonder how well that worked
out for them :)

- darren

___
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 effect

2006-08-25 Thread Jim Berkey
There is a tute on this very thing here - check out the "Creating 3D Carousels" 
- their nav is a 3-d carousel of players, rotating on an oval. Not terribly 
difficult, and a very kewl look.
http://gotoandlearn.com

Currently you need to download the flv tutes and watch.
jimbo


*** REPLY SEPARATOR  ***

On 8/25/2006 at 6:50 AM Elena Blanco wrote:

>Sorry, I pasted the wrong link. Here it is
>http://myspace.com/adidassoccer
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Elena
>Blanco
>Sent: Thursday, August 24, 2006 8:23 PM
>To: 'Flashcoders mailing list'
>Subject: [Flashcoders] Flash effect
>
>Hello
>
>I need to replicate an effect very similar to the following
>http://myspace.com/adidassoccerbv
>
>Rotating movieclips, scaling and fading. Any idea on how this might have
>been accomplished?
>
>Thank you for the suggestions,
>El
>
>___
>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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread James



in polymorphism using the previous example you could have a cat object with 
a 'make noise' method that prints 'meow' and a dog object that has a make 
noise method that prints 'woof woof' - yes this is the same example as in 
wikipedia!


what makes it polymorphism is that you use the same handler name, your code 
driving the object says 'make noise' and depending on which animal object 
you have, you get a different response. This is polymorphism, it isn't 
Multiple Inheritance


an example of multiple inheritence would be Spock from star trek

Spock is a human

and

Spock is a vulcan

in C++ you can have multiple inheritence and so you can satisfy both 
conditions. but it causes billions of confusing problems, not least of 
which being the diamond problem


http://www.javaworld.com/jw-12-1998/jw-12-techniques.html


indeed you are correct because Java's interface type is designed to 
overcome the problem of multiple inheritence. so with java and AS2 you can 
have Spock be a vulcan when you need so cold hard rationalism, and have 
Spock be a human when you need him to give you a hug.


James


At 14:14 25/08/2006, you wrote:

well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why people who are explaining
oop in actionscript talk about polymorphism, because it just
isn't there :), but perhaps I'm wrong.

cheers,
-Meinte

On 8/25/06, James <[EMAIL PROTECTED]> wrote:


they are different, as far as I know

an interface, as in 'Interface' type does not itself have an
implementation, whereas a subclass which displays polymorphism does, the
difference comes from your design needs, for example:

(polymorphism)
class animal - can be a implemented class with it's own methods
class dog - is a subclass of animal which alters/extends animal
class cat - is a subclass of animal which alters/extands animal in a
different way to dog

so in certain circumstances you may only need to instance and call methods
in 'animal', when you don't care what it is but just need an animal type.

with Interfaces the 'interface' type is not a implemented object, it does
not have it's own implemented methods

so an example might be if you owned a sports shop that sold coats and
bicycles, coat and bicycle are not the same type but if you get them to
use
the 'stock control item' interface they are both 'stock control item'
objects if you need them to be, providing you follow the rules for that
particular interface you can make any object a 'stock control item' but
there is no generic 'stock control item' type.

see it is different. you have to see things 'arse-ways-backwards'
sometimes
- at first I did not understand the point of interfaces, since the objects
implementing them have to implement the actual working methods anyway but
OOP is about creating a long-term collection of reusable objects which may
be used by teams of coders, structures like interfaces make for a clean
and
clear architecture that other coders can quikly understand, and give a
well
defined way to extend a system.

James


At 12:23 25/08/2006, you wrote:
>going a bit offtopic here, but isnt polymorphism a non-issue in both
flash
>and java? People talk about like there can be such a thing in these
>languages,
>which isn't really true. It seems a bit silly to call something
polymorphism
>just because its implementing some interfaces.
>
>oh well, that probably didn't make any sense i suppose,
>im not getting any decent sleep lately :)
>
>greets,
>Meinte
>
>On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:
>>
>>Ok, I see its not so easy for everyone. Can anyone point out some
>>tutorial-like examples on internet or books. I know a lot of theory
>>(inheritance, polymorphism...) but I would like to see more applications
>>for
>>it so I can be more confident when I use it.
>>
>>
>>
>>On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
>> >
>> > My main motivation for this stuff in Flash is so that my code
actually
>> > gets
>> > checked by the compiler, vs. Flash's crappy built-in code-checking
for
>>the
>> > stage. That is, it will tell me if I've mis-spelled something,
created
>> > duplicate variables, the list goes on...
>> >
>> > In addition, I write my classes in FlashDevelop, which gives you code
>> > completion. Which means when I start to type:
>> >
>> > > import mx.
>> >
>> > I get a listing of all packages that Macromedia's written, instead of
>> > looking for stuff in the help (that's fun).
>> >
>> > And best yet, when I type:
>> >
>> > var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
>> > poly-morphism thrown in there (huck-huck) ;)
>> >
>> > and I type:
>> >
>> > > sBigD.
>> >
>> > I get a list of every function in my class, as well as its signature
>> > (params
>> > & types).
>> >
>> > I'm only talkin

RE: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Giles Taylor
http://en.wikipedia.org/wiki/Polymorphism_(computer_science) 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meinte
van't Kruis
Sent: 25 August 2006 14:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OOP methodology and flash. I'm loosing my
faith...

well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism, since
the definition of that is, in my opinion, a class having more than one
parent class (ie, can extend 2 or more classes), which isn't the case.
So I don't understand why people who are explaining oop in actionscript
talk about polymorphism, because it just isn't there :), but perhaps I'm
wrong.

cheers,
-Meinte
___
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 effect

2006-08-25 Thread Elena Blanco
Sorry, I pasted the wrong link. Here it is
http://myspace.com/adidassoccer



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Elena Blanco
Sent: Thursday, August 24, 2006 8:23 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Flash effect

Hello

I need to replicate an effect very similar to the following
http://myspace.com/adidassoccerbv

Rotating movieclips, scaling and fading. Any idea on how this might have
been accomplished?

Thank you for the suggestions,
El

___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Ricardo Sánchez

That's really not what polymorphism is.

Polymorphism is where an Object can be used anywhere where an instance its
class's parent is supposed to be used.

And it has a lot of applications.

On 8/25/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:


well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why people who are explaining
oop in actionscript talk about polymorphism, because it just
isn't there :), but perhaps I'm wrong.

cheers,
-Meinte

On 8/25/06, James <[EMAIL PROTECTED]> wrote:
>
> they are different, as far as I know
>
> an interface, as in 'Interface' type does not itself have an
> implementation, whereas a subclass which displays polymorphism does, the
> difference comes from your design needs, for example:
>
> (polymorphism)
> class animal - can be a implemented class with it's own methods
> class dog - is a subclass of animal which alters/extends animal
> class cat - is a subclass of animal which alters/extands animal in a
> different way to dog
>
> so in certain circumstances you may only need to instance and call
methods
> in 'animal', when you don't care what it is but just need an animal
type.
>
> with Interfaces the 'interface' type is not a implemented object, it
does
> not have it's own implemented methods
>
> so an example might be if you owned a sports shop that sold coats and
> bicycles, coat and bicycle are not the same type but if you get them to
> use
> the 'stock control item' interface they are both 'stock control item'
> objects if you need them to be, providing you follow the rules for that
> particular interface you can make any object a 'stock control item' but
> there is no generic 'stock control item' type.
>
> see it is different. you have to see things 'arse-ways-backwards'
> sometimes
> - at first I did not understand the point of interfaces, since the
objects
> implementing them have to implement the actual working methods anyway
but
> OOP is about creating a long-term collection of reusable objects which
may
> be used by teams of coders, structures like interfaces make for a clean
> and
> clear architecture that other coders can quikly understand, and give a
> well
> defined way to extend a system.
>
> James
>
>
> At 12:23 25/08/2006, you wrote:
> >going a bit offtopic here, but isnt polymorphism a non-issue in both
> flash
> >and java? People talk about like there can be such a thing in these
> >languages,
> >which isn't really true. It seems a bit silly to call something
> polymorphism
> >just because its implementing some interfaces.
> >
> >oh well, that probably didn't make any sense i suppose,
> >im not getting any decent sleep lately :)
> >
> >greets,
> >Meinte
> >
> >On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:
> >>
> >>Ok, I see its not so easy for everyone. Can anyone point out some
> >>tutorial-like examples on internet or books. I know a lot of theory
> >>(inheritance, polymorphism...) but I would like to see more
applications
> >>for
> >>it so I can be more confident when I use it.
> >>
> >>
> >>
> >>On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
> >> >
> >> > My main motivation for this stuff in Flash is so that my code
> actually
> >> > gets
> >> > checked by the compiler, vs. Flash's crappy built-in code-checking
> for
> >>the
> >> > stage. That is, it will tell me if I've mis-spelled something,
> created
> >> > duplicate variables, the list goes on...
> >> >
> >> > In addition, I write my classes in FlashDevelop, which gives you
code
> >> > completion. Which means when I start to type:
> >> >
> >> > > import mx.
> >> >
> >> > I get a listing of all packages that Macromedia's written, instead
of
> >> > looking for stuff in the help (that's fun).
> >> >
> >> > And best yet, when I type:
> >> >
> >> > var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
> >> > poly-morphism thrown in there (huck-huck) ;)
> >> >
> >> > and I type:
> >> >
> >> > > sBigD.
> >> >
> >> > I get a list of every function in my class, as well as its
signature
> >> > (params
> >> > & types).
> >> >
> >> > I'm only talking about FlashDevelop here. Guess I'm spoiled by Java
&
> >>.NET
> >> > which have instance access to API's at your finger tips (when in
the
> >>right
> >> > IDE's).
> >> >
> >> > I'm just trying to find a better and efficient way to go. Way open
to
> >> > suggestions!
> >> >
> >> > -Scott
> >> >
> >> >
> >> > On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > OOP and Flash is indeed tricky to fully grasp. It has become
easier
> >>and
> >> > > more
> >> > > natural to implement OOP techniques on AS3 though.
> >> > >
> >> > > @Neo: Completely agree with you.
> >> > >
> >> > > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
> >> > > >
> >> > > > I'll tell you a little 

Re: [Flashcoders] clone object

2006-08-25 Thread John Grden

Guess there's a first time for everything, eh?

var obj = new Object();
obj.prop1 = new Object();
obj.prop1.prop2 = new Object();
obj.prop1.prop2.ref = obj.prop1;

function clone(obj:Object):Object
{
   var o = (null != obj.length) ? [] : {};
   for (var i in obj)
   {
   o [i] = (typeof obj[i] == "object") ? clone(obj[i]) :
   obj[i];
   }
   return o;
}

256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.

;)

On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


If you're not willing to code a solution, then why are you bothering to
write out an explanation?  I have yet to encounter a recursion limit and
I've parsed some deep object models.
___
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





--
[  JPG  ]
___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Steve Krichten
It sounds like you are confusing polymorphism with multiple 
inheritance.  ActionScript and Java and pretty much any OOP language do 
allow for polymorphism.


http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming

-Steve
*
-

Meinte van't Kruis* meinte at gmail.com 


/Fri Aug 25 09:14:16 EDT 2006/

   * Previous message: [Flashcoders] OOP methodology and flash. I'm
 loosing my faith... <171797.html>
   * Next message: [Flashcoders] OOP methodology and flash. I'm loosing
 my faith... <171794.html>
   * *Messages sorted by:* [ date ]  [ thread ]
  [ subject ]  [ author ]
 



well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why people who are explaining
oop in actionscript talk about polymorphism, because it just
isn't there :), but perhaps I'm wrong.

cheers,
-Meinte

___
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] clone object

2006-08-25 Thread John Grden

Xray's trace used this method Scott and it's worked well.

my only issue was that adding a property to an object might cause some
"issue" or "bug" with someone's app.  However, to this day, it's not caused
any problems that I'm aware of ;)

I liked Keith's way of doing it, because I was able to send different levels
of recursion for different types of objects.  If I send in a MovieClip, can
just have it do 2-3 levels deep and htat's usually enough.  But for a true
object/array, I'll let it go at 254 or whatever.  This will be, btw,
configurable at runtime with Xray's interface.

On 8/24/06, Scott Hyndman <[EMAIL PROTECTED]> wrote:


I would mark each object (by actually assigning the cloned object as a
property of the original) as I go through each individual clone
operation, and keep a running array of what is being marked. If I hit
something that is already marked, I will use the clone instead of
copying the same object again (because it's hanging off the original).
When I'm finished, I'd remove all the temporary properties from the
originals.

This requires two method instead of one, and is a bit more CPU
intensive, but it won't break.

I'd also be sure to special case the handling of date objects.

The alternative is to shallow clone, which does not recursively copy
object properties, and instead assigns the reference held by the
original to the clone.

Scott

On 24/08/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> > Careful with circular references. Pretty easy to get that one in to
> > exceed the 256 recursion limit.
>
> Feel free to post an alternative.  :)
>
> ___
> 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





--
[  JPG  ]
___
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] clone object

2006-08-25 Thread John Grden

you'd need some way of checking for circular references like Scott pointed
out.  Believe me when I say - i've been down that road several times with
Xray.

var obj = new Object();
obj.prop1 = new Object();
obj.prop1.prop2 = new Object();
obj.prop1.prop2.ref = obj.prop1;

bingo, you'e into 256 levels of recursion error.  And no, it's not far
fetched ;)

alternative:
Keith Peters Debug:
http://mirror1.cvsdude.com/trac/osflash/xray/browser/DEV_Source/xray/classes/com/bit101/Debug.as

I switched out xray's trace for Keiths just a couple of weeks ago because it
worked on a per level basis for dispatching traces (rather than on big bulk
of data) and it's really clean/readable code.

You could alter it in no time to "clone" and object.  However,
mx.utils.ObjectCopy would work just fine ;)



On 8/24/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:


> Careful with circular references. Pretty easy to get that one in to
> exceed the 256 recursion limit.

Feel free to post an alternative.  :)

___
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





--
[  JPG  ]
___
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] question on localConnection

2006-08-25 Thread Rutul Patel

hi people,
I was creating local connection between two swf file,
first time it works fine and then after sometime it stops working,
then i change connection name(target name in both file) and it starts
working again,

can anyone tell me why this happen.

--
Regards,
Rutul Patel
___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Meinte van't Kruis

well, I get Interfaces, but thanks for explaining :).

I just don't think actionscript, or java, has any polymorphism,
since the definition of that is, in my opinion, a class having more
than one parent class (ie, can extend 2 or more classes), which
isn't the case. So I don't understand why people who are explaining
oop in actionscript talk about polymorphism, because it just
isn't there :), but perhaps I'm wrong.

cheers,
-Meinte

On 8/25/06, James <[EMAIL PROTECTED]> wrote:


they are different, as far as I know

an interface, as in 'Interface' type does not itself have an
implementation, whereas a subclass which displays polymorphism does, the
difference comes from your design needs, for example:

(polymorphism)
class animal - can be a implemented class with it's own methods
class dog - is a subclass of animal which alters/extends animal
class cat - is a subclass of animal which alters/extands animal in a
different way to dog

so in certain circumstances you may only need to instance and call methods
in 'animal', when you don't care what it is but just need an animal type.

with Interfaces the 'interface' type is not a implemented object, it does
not have it's own implemented methods

so an example might be if you owned a sports shop that sold coats and
bicycles, coat and bicycle are not the same type but if you get them to
use
the 'stock control item' interface they are both 'stock control item'
objects if you need them to be, providing you follow the rules for that
particular interface you can make any object a 'stock control item' but
there is no generic 'stock control item' type.

see it is different. you have to see things 'arse-ways-backwards'
sometimes
- at first I did not understand the point of interfaces, since the objects
implementing them have to implement the actual working methods anyway but
OOP is about creating a long-term collection of reusable objects which may
be used by teams of coders, structures like interfaces make for a clean
and
clear architecture that other coders can quikly understand, and give a
well
defined way to extend a system.

James


At 12:23 25/08/2006, you wrote:
>going a bit offtopic here, but isnt polymorphism a non-issue in both
flash
>and java? People talk about like there can be such a thing in these
>languages,
>which isn't really true. It seems a bit silly to call something
polymorphism
>just because its implementing some interfaces.
>
>oh well, that probably didn't make any sense i suppose,
>im not getting any decent sleep lately :)
>
>greets,
>Meinte
>
>On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:
>>
>>Ok, I see its not so easy for everyone. Can anyone point out some
>>tutorial-like examples on internet or books. I know a lot of theory
>>(inheritance, polymorphism...) but I would like to see more applications
>>for
>>it so I can be more confident when I use it.
>>
>>
>>
>>On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
>> >
>> > My main motivation for this stuff in Flash is so that my code
actually
>> > gets
>> > checked by the compiler, vs. Flash's crappy built-in code-checking
for
>>the
>> > stage. That is, it will tell me if I've mis-spelled something,
created
>> > duplicate variables, the list goes on...
>> >
>> > In addition, I write my classes in FlashDevelop, which gives you code
>> > completion. Which means when I start to type:
>> >
>> > > import mx.
>> >
>> > I get a listing of all packages that Macromedia's written, instead of
>> > looking for stuff in the help (that's fun).
>> >
>> > And best yet, when I type:
>> >
>> > var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
>> > poly-morphism thrown in there (huck-huck) ;)
>> >
>> > and I type:
>> >
>> > > sBigD.
>> >
>> > I get a list of every function in my class, as well as its signature
>> > (params
>> > & types).
>> >
>> > I'm only talking about FlashDevelop here. Guess I'm spoiled by Java &
>>.NET
>> > which have instance access to API's at your finger tips (when in the
>>right
>> > IDE's).
>> >
>> > I'm just trying to find a better and efficient way to go. Way open to
>> > suggestions!
>> >
>> > -Scott
>> >
>> >
>> > On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
>> > >
>> > > OOP and Flash is indeed tricky to fully grasp. It has become easier
>>and
>> > > more
>> > > natural to implement OOP techniques on AS3 though.
>> > >
>> > > @Neo: Completely agree with you.
>> > >
>> > > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
>> > > >
>> > > > I'll tell you a little secret about OOP.
>> > > >
>> > > > Don't sweat it.
>> > > >
>> > > > Sometimes the model jumps out at you but other times you
>> > > > have to find it. How to find it? Write something that does
>> > > > what you want. Then refactor it once you have a better idea
>> > > > of how it works. The more you do that the more certain patterns
>> > > > and approaches crystalise for you.
>> > > >
>> > > > I think there's too much over-engineering going on in general
>> > > > as some people s

Re: [FlashCoders] Local storage warning

2006-08-25 Thread Dimitrios Bendilas

Hello Mike,

Thanks for the info.

It's not very likely that I'll be able to use this workaround,
but it's goot to know anyway. :)

Thanks again,

Dimitrios


- Original Message - 
From: "Mike Cobb" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Friday, August 25, 2006 11:44 AM
Subject: Re: [FlashCoders] Local storage warning



-

I had a similar problem with the camera security dialog box and Zinc. My 
app was actually a kiosk, and my workaround was quite long winded - but it 
might give you some ideas.


First I should mention that checking the 'remember my settings' box in the 
security dialog never worked for me (apparently it's a bug in Zinc), so 
this is what I had to do:


On starting my Zinc application, I launched a macro program (Macro 
Express - http://www.macros.com/) to move the cursor and 'click' the Allow 
button. This worked great for a kiosk with an automated startup procedure.


I don't know if this will be of any help, but I thought I'd post it 
anyway.





Dimitrios Bendilas wrote:

Hello,

I have this very very urgent issue!

Users of an application I made with Flash 8 & Zinc get this warning 
screen: http://www.zefxis.gr/files/warning.jpg

when they first run the executable.

I know this is because my app saves some files on the hard drive.
The question is, is there any way to prevent this window from popping up?
The publisher of the application asked me to see if I can do anything 
about this.


So, can I?

Thanks a lot!

Dimitrios
___
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





--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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


Re: [Flashcoders] Problem with putting image in flash blog

2006-08-25 Thread Tom Shaw
Ok firstly you need to do this in stages.

1) Load your meta data from the web server.  This includes the url, width and 
height of you image. Put all this data into a container MC as variables or 
objects, or whatever you want to store them as.  A nice class would be good 
here.
3) Create new movieclips inside the container MC.  titlea, imagea and texta for 
example.  Set the title.
4) Since you know the position of your title and the position of your image, 
arrange imagea and texta according to those positions.
5) Load your image into the placeholder, add some sort of preloader.

Im not going to delve through your code to figure this out for you but thos 
esteps should make it easy to work it out.

Good luck!

Cheers,
Tom



On Fri, 25 Aug 2006 11:46:19 +0200, you wrote:

>I'm making a blog in flash with amfPHP. And till now everything went well.
>I get all the data in the database from flash and I can loop through
>de object I get back from amfPHP, I put everything in a text field
>that renders as html.
>But know I wanted to submit pictures with a post.
>I made an upload interface that puts a string off the filename in my
>DB so I can load it when I read my DB and the image is resized with a
>php script.
>
>My first idea was just using an img tag in my html string, but  after
>some trying I noticed that this was very buggy with big images. There
>was no way to find out if the image was loaded(if someone knows?) so I
>coudn't get the image height what I really need when I want to use the
>img tag or my text gets behind my picture and I can't position the
>next posts  ._y.
>So I tried to put the image height in my DB when I resize the picture
>with PHP but with big images (+800+600) this is not reliable.
>Than I tought I could do it with 2 textfields and a movieclip where I
>put my image in.
>So I have a textfield for my title under it my picture and than my text body.
>I tried to make a listener that loads my image into the movieclip and
>when I have my height I call a function that put the body text under
>it.
>But thats my big problem when I loop through all the data and I create
>my listener object I can't pass variables to the function that do the
>rest. So I can't know what ID the post have.
>I put my code here so it's a little easier to understand what I want to say.
>
>function showPost(re,IDmin)
>{
>   var mcl:MovieClipLoader=new MovieClipLoader();
>   var myListener:Object=new Object();
>   
>   //reset Heights
>   readMessageHeight =0;
>   totalHeight = 0;
>   postHeight = 0;
>
>   if(IDmin == undefined){
>   IDmin = 0;
>   IDmax = 5;
>   }else{
>   IDmax = IDmin+1;
>   }
>   
>   var blogItem = _root.readMessages.createEmptyMovieClip("blogItem", 
> 3400);
>   
>   for(var s = IDmin; s < IDmax; s++)
>   {   
>   var post = re.result.getItemAt(s);
>   
>   var txtHolder =
>_root.readMessages.blogItem.createEmptyMovieClip("txtHolder"+s,
>3500+s);
>   txtHolder.ID = s;
>   
>   //I make a title textfield and put the text in it
>   /
>   var blogTitle =
>txtHolder.createTextField("txtBlogTitle"+s,this.getNextHighestDepth(),0,
>0+postHeight ,312,10);
>   txtHolder["txtBlogTitle"+s].html = true;
>   txtHolder["txtBlogTitle"+s].wordWrap = true;
>   txtHolder["txtBlogTitle"+s].multiline = true;
>   txtHolder["txtBlogTitle"+s].styleSheet = styles;
>   txtHolder["txtBlogTitle"+s].autoSize = true;
>   var htmlTitleTxt:String  = ' vspace="2">' +
>   ' '+ post.id 
> + " - " + post.title + ' (' +
>post.date.substr(0,10) + ')' +
>   '. . . . . . . 
> . . . . . . . . . . . . . . . . . . . . . . . .
>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .' +
>   '';
>   txtHolder["txtBlogTitle"+s].htmlText = htmlTitleTxt;
>   
>   var titleHeight = txtHolder["txtBlogTitle"+s]._height;
>   
>   //I put the image under it
>   ///
>   var imgMC = txtHolder.createEmptyMovieClip("imgMC"+s, 4500+s);
>   
>   mcl.loadClip("files/tn_"+post.image,imgMC);
>   
>   myListener.onLoadInit=function(evtObj,re){
>   var imageHeight = evtObj._height;
>   //I try to give the id but this is not working post.id 
> gives undefined
>   doRest(imageHeight,post.id);
>   postHeight += titleHeight+imageHeight;
>   }
>   mcl.addListener(myListener);
>   
>   txtHold

Re: [Flashcoders] OT: Create a text file on server using PHP with variables from Flash

2006-08-25 Thread James
Often these things are related to the string you are using for pathname, 
have you echo'd (printed) it to screen and checked? perhaps you missed off 
the leading / for example?


James

At 13:27 25/08/2006, you wrote:


Paul,

What is error reporting set at? What errors are you receiving?
Tack on phpinfo() at the end of the script.
It's possible PHP is trying to create the file where you do not have 
permission to do so, you may have to build up the path from docroot.


HTH -Miles

At 05:15 AM 8/25/2006, Paul Steven wrote:


Anyone have a working example of a PHP script to create a text file using
PHP?

I am trying to get the following to work but it is not creating the text
file on my server. I have set the permissions of the folder to 777 which
should in theory allow a file to be created.

Thanks

Paul



___
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 outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 8/24/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


___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread James

At 13:29 25/08/2006, you wrote:


I use pseudo-MVCs in almost every application, but I'm fairly sure
they are not strict MVCs. I don't care, to be honest. They do the
work, which is nothing else but help me.


yes. I don't use proper MVC pattern, but I find it very useful to divide 
things into 'Model' and 'View' and 'Controller' as a rough architectural guide.


James 


___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread James

they are different, as far as I know

an interface, as in 'Interface' type does not itself have an 
implementation, whereas a subclass which displays polymorphism does, the 
difference comes from your design needs, for example:


(polymorphism)
class animal - can be a implemented class with it's own methods
class dog - is a subclass of animal which alters/extends animal
class cat - is a subclass of animal which alters/extands animal in a 
different way to dog


so in certain circumstances you may only need to instance and call methods 
in 'animal', when you don't care what it is but just need an animal type.


with Interfaces the 'interface' type is not a implemented object, it does 
not have it's own implemented methods


so an example might be if you owned a sports shop that sold coats and 
bicycles, coat and bicycle are not the same type but if you get them to use 
the 'stock control item' interface they are both 'stock control item' 
objects if you need them to be, providing you follow the rules for that 
particular interface you can make any object a 'stock control item' but 
there is no generic 'stock control item' type.


see it is different. you have to see things 'arse-ways-backwards' sometimes 
- at first I did not understand the point of interfaces, since the objects 
implementing them have to implement the actual working methods anyway but 
OOP is about creating a long-term collection of reusable objects which may 
be used by teams of coders, structures like interfaces make for a clean and 
clear architecture that other coders can quikly understand, and give a well 
defined way to extend a system.


James


At 12:23 25/08/2006, you wrote:

going a bit offtopic here, but isnt polymorphism a non-issue in both flash
and java? People talk about like there can be such a thing in these
languages,
which isn't really true. It seems a bit silly to call something polymorphism
just because its implementing some interfaces.

oh well, that probably didn't make any sense i suppose,
im not getting any decent sleep lately :)

greets,
Meinte

On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:


Ok, I see its not so easy for everyone. Can anyone point out some
tutorial-like examples on internet or books. I know a lot of theory
(inheritance, polymorphism...) but I would like to see more applications
for
it so I can be more confident when I use it.



On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
>
> My main motivation for this stuff in Flash is so that my code actually
> gets
> checked by the compiler, vs. Flash's crappy built-in code-checking for
the
> stage. That is, it will tell me if I've mis-spelled something, created
> duplicate variables, the list goes on...
>
> In addition, I write my classes in FlashDevelop, which gives you code
> completion. Which means when I start to type:
>
> > import mx.
>
> I get a listing of all packages that Macromedia's written, instead of
> looking for stuff in the help (that's fun).
>
> And best yet, when I type:
>
> var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
> poly-morphism thrown in there (huck-huck) ;)
>
> and I type:
>
> > sBigD.
>
> I get a list of every function in my class, as well as its signature
> (params
> & types).
>
> I'm only talking about FlashDevelop here. Guess I'm spoiled by Java &
.NET
> which have instance access to API's at your finger tips (when in the
right
> IDE's).
>
> I'm just trying to find a better and efficient way to go. Way open to
> suggestions!
>
> -Scott
>
>
> On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
> >
> > OOP and Flash is indeed tricky to fully grasp. It has become easier
and
> > more
> > natural to implement OOP techniques on AS3 though.
> >
> > @Neo: Completely agree with you.
> >
> > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
> > >
> > > I'll tell you a little secret about OOP.
> > >
> > > Don't sweat it.
> > >
> > > Sometimes the model jumps out at you but other times you
> > > have to find it. How to find it? Write something that does
> > > what you want. Then refactor it once you have a better idea
> > > of how it works. The more you do that the more certain patterns
> > > and approaches crystalise for you.
> > >
> > > I think there's too much over-engineering going on in general
> > > as some people seem to think implementing all the latest patterns
> > > on even the smallest project makes them good developers.
> > >
> > > I've been guilty of it myself a couple of times, writing frameworks
> > > where a couply of focused classes would have sufficed.
> > >
> > > OOP should be fun if you do it right and don't sweat it when
> > > it turns into a dick swinging contest, just make up pattern names.
> > >
> > > I quite like the Absolver pattern ;p
> > >
> > > cheers
> > > ~neo
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of
> Ricardo
> > > Sánchez
> > > Sent: 23 August 2006 06:34 PM
> > > To: Flashcoders mailin

RE: [Flashcoders] Webservices and .NET array serialization

2006-08-25 Thread Brake, Stephen
Me too.  I have searched the internet and have found no other people (or
examples) of this being done or being a problem.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Friday, August 25, 2006 8:45 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Webservices and .NET array serialization

I'm surprised nobody has dealt with this before?  Array serialization
from a .NET Webservice?



Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Thursday, August 24, 2006 3:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Webservices and .NET array serialization

Here I was helping someone today with complex objects in .NET
webservices and didn't notice a big problem on my end.

I thought I had this figured out, but Arrays are coming across weird
>>in
a .NET webservice as generic objects not arrays that Flash can
understand.  I never noticed it before because I can still reference
>>the
properties in objects in the array OK, just not the array itself.
For
example (projObj is the object of arrays and objects resulting from
my
webservice method call):

trace(projObj.Content.Topics) //traces as undefined.  Expected an
>>array
trace(typeof(projObj.Content.Topics));  //traces as object  !?!

and

trace(projObj.Content.Topics[0])  //traces [object Object],undefined
//but I expected [object Object], [object Object], [object Object]

Finally:

projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value
I
>>am
expecting!!! ???

What's up?  I can get the property values OK, but I cannot treat the
array as an array as you would in Flash?

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions





___
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] Webservices and .NET array serialization

2006-08-25 Thread Merrill, Jason
I'm surprised nobody has dealt with this before?  Array serialization
from a .NET Webservice?



Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Thursday, August 24, 2006 3:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Webservices and .NET array serialization

Here I was helping someone today with complex objects in .NET
webservices and didn't notice a big problem on my end.

I thought I had this figured out, but Arrays are coming across weird
>>in
a .NET webservice as generic objects not arrays that Flash can
understand.  I never noticed it before because I can still reference
>>the
properties in objects in the array OK, just not the array itself.
For
example (projObj is the object of arrays and objects resulting from
my
webservice method call):

trace(projObj.Content.Topics) //traces as undefined.  Expected an
>>array
trace(typeof(projObj.Content.Topics));  //traces as object  !?!

and

trace(projObj.Content.Topics[0])  //traces [object Object],undefined
//but I expected [object Object], [object Object], [object Object]

Finally:

projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value
I
>>am
expecting!!! ???

What's up?  I can get the property values OK, but I cannot treat the
array as an array as you would in Flash?

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions





___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Merrill, Jason
>>Can anyone point out some
>>tutorial-like examples on internet or books 

A great book is Object Oriented Actionscript by Elst/Yard from Friend of Ed.   
It takes you slowly from the very basic approach and understandings to more 
complex and practical application demonstrated through tutorials.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Ricardo Sánchez
>>Sent: Friday, August 25, 2006 2:45 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...
>>
>>Ok, I see its not so easy for everyone. Can anyone point out some
>>tutorial-like examples on internet or books. I know a lot of theory
>>(inheritance, polymorphism...) but I would like to see more applications for
>>it so I can be more confident when I use it.
>>
>>
>>
>>On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
>>>
>>> My main motivation for this stuff in Flash is so that my code actually
>>> gets
>>> checked by the compiler, vs. Flash's crappy built-in code-checking for the
>>> stage. That is, it will tell me if I've mis-spelled something, created
>>> duplicate variables, the list goes on...
>>>
>>> In addition, I write my classes in FlashDevelop, which gives you code
>>> completion. Which means when I start to type:
>>>
>>> > import mx.
>>>
>>> I get a listing of all packages that Macromedia's written, instead of
>>> looking for stuff in the help (that's fun).
>>>
>>> And best yet, when I type:
>>>
>>> var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
>>> poly-morphism thrown in there (huck-huck) ;)
>>>
>>> and I type:
>>>
>>> > sBigD.
>>>
>>> I get a list of every function in my class, as well as its signature
>>> (params
>>> & types).
>>>
>>> I'm only talking about FlashDevelop here. Guess I'm spoiled by Java & .NET
>>> which have instance access to API's at your finger tips (when in the right
>>> IDE's).
>>>
>>> I'm just trying to find a better and efficient way to go. Way open to
>>> suggestions!
>>>
>>> -Scott
>>>
>>>
>>> On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
>>> >
>>> > OOP and Flash is indeed tricky to fully grasp. It has become easier and
>>> > more
>>> > natural to implement OOP techniques on AS3 though.
>>> >
>>> > @Neo: Completely agree with you.
>>> >
>>> > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
>>> > >
>>> > > I'll tell you a little secret about OOP.
>>> > >
>>> > > Don't sweat it.
>>> > >
>>> > > Sometimes the model jumps out at you but other times you
>>> > > have to find it. How to find it? Write something that does
>>> > > what you want. Then refactor it once you have a better idea
>>> > > of how it works. The more you do that the more certain patterns
>>> > > and approaches crystalise for you.
>>> > >
>>> > > I think there's too much over-engineering going on in general
>>> > > as some people seem to think implementing all the latest patterns
>>> > > on even the smallest project makes them good developers.
>>> > >
>>> > > I've been guilty of it myself a couple of times, writing frameworks
>>> > > where a couply of focused classes would have sufficed.
>>> > >
>>> > > OOP should be fun if you do it right and don't sweat it when
>>> > > it turns into a dick swinging contest, just make up pattern names.
>>> > >
>>> > > I quite like the Absolver pattern ;p
>>> > >
>>> > > cheers
>>> > > ~neo
>>> > >
>>> > > -Original Message-
>>> > > From: [EMAIL PROTECTED]
>>> > > [mailto:[EMAIL PROTECTED] On Behalf Of
>>> Ricardo
>>> > > Sánchez
>>> > > Sent: 23 August 2006 06:34 PM
>>> > > To: Flashcoders mailing list
>>> > > Subject: [Flashcoders] OOP methodology and flash. I'm loosing my
>>> > faith...
>>> > >
>>> > > ... well, not really but I thought it was good as I title
>>> > >
>>> > > I always use OOP for my flash projects but, even if I find it easier
>>> > than
>>> > > timeline coding, I dont know if I'm taking all the advantage of OOP.
>>> I'm
>>> > > not
>>> > > even sure if I am aplying the correct patterns for every problem.
>>> > >
>>> > > My insecurity probably has to do with the lack of normal work OOP
>>> flash
>>> > > examples. For example the typicall top menu/content web. How can OOP
>>> be
>>> > > applied to that?
>>> > >
>>> > > I guess I find a gap in the theory of knowing how to link the symbols,
>>> > > movieclips, timeline and graphics in flash with the code in external
>>> > > files.
>>> > >
>>> > > Am I opening a can of worms?
>>> > >
>>> > > 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.f

RE: [Flashcoders] UML Diagrams

2006-08-25 Thread Merrill, Jason
Others have also recommended Enterprise Architect for serious UML
diagramming.

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Mike Keesey
>>Sent: Thursday, August 24, 2006 9:06 PM
>>To: Flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] UML Diagrams
>>
>>Just curious,
>>
>>What do people on this use to create UML diagrams? Do you use a
WYSIWYG
>>diagram-creating tool (preferrably which can output skeletal AS class
>>code)? Or do you use something that scans preexisting AS classes and
>>generates UML diagrams (or a UML-related XML format, like UXF).
>>
>>I've experimented with a few such programs. I'd really like to find
>>something (or a combo solution) that can work both ways.
>>--
>>Mike Keesey
>>___
>>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] OT: Create a text file on server using PHP withvariables from Flash

2006-08-25 Thread Serge

This is working for me.
Serge





- Original Message - 
From: "Paul Steven" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Friday, August 25, 2006 4:15 AM
Subject: [Flashcoders] OT: Create a text file on server using PHP 
withvariables from Flash




Anyone have a working example of a PHP script to create a text file using
PHP?

I am trying to get the following to work but it is not creating the text
file on my server. I have set the permissions of the folder to 777 which
should in theory allow a file to be created.

Thanks

Paul



___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Zárate

Ricardo don't lose the faith! Ever! Sorry, I didn't see this post before : )

I'm using OOP Flash everyday, and yes, sometimes if makes you feel
stupid, but it's a matter of keep going until you feel comfortable.

Then, I have cristal clear that I'm not going to get mad with
patterns. Someone (sorry, don't remember who) said something like:
"you don't need patterns if you don't feel you need them". Maybe
you're not using *all* patterns because you simply don't need them.
Why overdesign?

I use pseudo-MVCs in almost every application, but I'm fairly sure
they are not strict MVCs. I don't care, to be honest. They do the
work, which is nothing else but help me.

Cheers and keep the good work!

Bye!


On 8/25/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:

going a bit offtopic here, but isnt polymorphism a non-issue in both flash
and java? People talk about like there can be such a thing in these
languages,
which isn't really true. It seems a bit silly to call something polymorphism
just because its implementing some interfaces.

oh well, that probably didn't make any sense i suppose,
im not getting any decent sleep lately :)

greets,
Meinte

On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:
>
> Ok, I see its not so easy for everyone. Can anyone point out some
> tutorial-like examples on internet or books. I know a lot of theory
> (inheritance, polymorphism...) but I would like to see more applications
> for
> it so I can be more confident when I use it.
>
>
>
> On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
> >
> > My main motivation for this stuff in Flash is so that my code actually
> > gets
> > checked by the compiler, vs. Flash's crappy built-in code-checking for
> the
> > stage. That is, it will tell me if I've mis-spelled something, created
> > duplicate variables, the list goes on...
> >
> > In addition, I write my classes in FlashDevelop, which gives you code
> > completion. Which means when I start to type:
> >
> > > import mx.
> >
> > I get a listing of all packages that Macromedia's written, instead of
> > looking for stuff in the help (that's fun).
> >
> > And best yet, when I type:
> >
> > var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
> > poly-morphism thrown in there (huck-huck) ;)
> >
> > and I type:
> >
> > > sBigD.
> >
> > I get a list of every function in my class, as well as its signature
> > (params
> > & types).
> >
> > I'm only talking about FlashDevelop here. Guess I'm spoiled by Java &
> .NET
> > which have instance access to API's at your finger tips (when in the
> right
> > IDE's).
> >
> > I'm just trying to find a better and efficient way to go. Way open to
> > suggestions!
> >
> > -Scott
> >
> >
> > On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
> > >
> > > OOP and Flash is indeed tricky to fully grasp. It has become easier
> and
> > > more
> > > natural to implement OOP techniques on AS3 though.
> > >
> > > @Neo: Completely agree with you.
> > >
> > > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I'll tell you a little secret about OOP.
> > > >
> > > > Don't sweat it.
> > > >
> > > > Sometimes the model jumps out at you but other times you
> > > > have to find it. How to find it? Write something that does
> > > > what you want. Then refactor it once you have a better idea
> > > > of how it works. The more you do that the more certain patterns
> > > > and approaches crystalise for you.
> > > >
> > > > I think there's too much over-engineering going on in general
> > > > as some people seem to think implementing all the latest patterns
> > > > on even the smallest project makes them good developers.
> > > >
> > > > I've been guilty of it myself a couple of times, writing frameworks
> > > > where a couply of focused classes would have sufficed.
> > > >
> > > > OOP should be fun if you do it right and don't sweat it when
> > > > it turns into a dick swinging contest, just make up pattern names.
> > > >
> > > > I quite like the Absolver pattern ;p
> > > >
> > > > cheers
> > > > ~neo
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Ricardo
> > > > Sánchez
> > > > Sent: 23 August 2006 06:34 PM
> > > > To: Flashcoders mailing list
> > > > Subject: [Flashcoders] OOP methodology and flash. I'm loosing my
> > > faith...
> > > >
> > > > ... well, not really but I thought it was good as I title
> > > >
> > > > I always use OOP for my flash projects but, even if I find it easier
> > > than
> > > > timeline coding, I dont know if I'm taking all the advantage of OOP.
> > I'm
> > > > not
> > > > even sure if I am aplying the correct patterns for every problem.
> > > >
> > > > My insecurity probably has to do with the lack of normal work OOP
> > flash
> > > > examples. For example the typicall top menu/content web. How can OOP
> > be
> > > > applied to that?
> > > >
> > > > I guess I find a gap in the theory of knowing how to link the
> symbols,
> > > > m

Re: [Flashcoders] OT: Create a text file on server using PHP with variables from Flash

2006-08-25 Thread Miles Thompson


Paul,

What is error reporting set at? What errors are you receiving?
Tack on phpinfo() at the end of the script.
It's possible PHP is trying to create the file where you do not have 
permission to do so, you may have to build up the path from docroot.


HTH -Miles

At 05:15 AM 8/25/2006, Paul Steven wrote:


Anyone have a working example of a PHP script to create a text file using
PHP?

I am trying to get the following to work but it is not creating the text
file on my server. I have set the permissions of the folder to 777 which
should in theory allow a file to be created.

Thanks

Paul



___
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 outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 8/24/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] Local storage warning

2006-08-25 Thread Mike Cobb

-

I had a similar problem with the camera security dialog box and Zinc. My 
app was actually a kiosk, and my workaround was quite long winded - but 
it might give you some ideas.


First I should mention that checking the 'remember my settings' box in 
the security dialog never worked for me (apparently it's a bug in Zinc), 
so this is what I had to do:


On starting my Zinc application, I launched a macro program (Macro 
Express - http://www.macros.com/) to move the cursor and 'click' the 
Allow button. This worked great for a kiosk with an automated startup 
procedure.


I don't know if this will be of any help, but I thought I'd post it anyway.




Dimitrios Bendilas wrote:

Hello,

I have this very very urgent issue!

Users of an application I made with Flash 8 & Zinc get this warning screen: 
http://www.zefxis.gr/files/warning.jpg
when they first run the executable.

I know this is because my app saves some files on the hard drive.
The question is, is there any way to prevent this window from popping up?
The publisher of the application asked me to see if I can do anything about 
this.

So, can I?

Thanks a lot!

Dimitrios
___
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





--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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] OT: Create a text file on server using PHP with variables from Flash

2006-08-25 Thread Paul Steven
Anyone have a working example of a PHP script to create a text file using
PHP?

I am trying to get the following to work but it is not creating the text
file on my server. I have set the permissions of the folder to 777 which
should in theory allow a file to be created.

Thanks

Paul



___
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 effect

2006-08-25 Thread Ravi Marella
I don see any effects in the site..it's showing some error message...

best regards
RaviKiran Marella



 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Elena
Blanco
Sent: Friday, August 25, 2006 8:53 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Flash effect

Hello

I need to replicate an effect very similar to the following
http://myspace.com/adidassoccerbv

Rotating movieclips, scaling and fading. Any idea on how this might have
been accomplished?

Thank you for the suggestions,
El

___
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] Best books about design

2006-08-25 Thread Brian Mays

Great minds think alike :-)
Their Interactive Annuals have a good deal of Flash in them.   And 
there's some analysis as to why they chose what they chose to get into 
the annuals.


On Aug 24, 2006, at 1:13 PM, Ryan Potter wrote:


That's funny.  Comm Arts and How are the only subscriptions I get.  Two
great suggestions.


___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Meinte van't Kruis

going a bit offtopic here, but isnt polymorphism a non-issue in both flash
and java? People talk about like there can be such a thing in these
languages,
which isn't really true. It seems a bit silly to call something polymorphism
just because its implementing some interfaces.

oh well, that probably didn't make any sense i suppose,
im not getting any decent sleep lately :)

greets,
Meinte

On 8/25/06, Ricardo Sánchez <[EMAIL PROTECTED]> wrote:


Ok, I see its not so easy for everyone. Can anyone point out some
tutorial-like examples on internet or books. I know a lot of theory
(inheritance, polymorphism...) but I would like to see more applications
for
it so I can be more confident when I use it.



On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:
>
> My main motivation for this stuff in Flash is so that my code actually
> gets
> checked by the compiler, vs. Flash's crappy built-in code-checking for
the
> stage. That is, it will tell me if I've mis-spelled something, created
> duplicate variables, the list goes on...
>
> In addition, I write my classes in FlashDevelop, which gives you code
> completion. Which means when I start to type:
>
> > import mx.
>
> I get a listing of all packages that Macromedia's written, instead of
> looking for stuff in the help (that's fun).
>
> And best yet, when I type:
>
> var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
> poly-morphism thrown in there (huck-huck) ;)
>
> and I type:
>
> > sBigD.
>
> I get a list of every function in my class, as well as its signature
> (params
> & types).
>
> I'm only talking about FlashDevelop here. Guess I'm spoiled by Java &
.NET
> which have instance access to API's at your finger tips (when in the
right
> IDE's).
>
> I'm just trying to find a better and efficient way to go. Way open to
> suggestions!
>
> -Scott
>
>
> On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
> >
> > OOP and Flash is indeed tricky to fully grasp. It has become easier
and
> > more
> > natural to implement OOP techniques on AS3 though.
> >
> > @Neo: Completely agree with you.
> >
> > On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
> > >
> > > I'll tell you a little secret about OOP.
> > >
> > > Don't sweat it.
> > >
> > > Sometimes the model jumps out at you but other times you
> > > have to find it. How to find it? Write something that does
> > > what you want. Then refactor it once you have a better idea
> > > of how it works. The more you do that the more certain patterns
> > > and approaches crystalise for you.
> > >
> > > I think there's too much over-engineering going on in general
> > > as some people seem to think implementing all the latest patterns
> > > on even the smallest project makes them good developers.
> > >
> > > I've been guilty of it myself a couple of times, writing frameworks
> > > where a couply of focused classes would have sufficed.
> > >
> > > OOP should be fun if you do it right and don't sweat it when
> > > it turns into a dick swinging contest, just make up pattern names.
> > >
> > > I quite like the Absolver pattern ;p
> > >
> > > cheers
> > > ~neo
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of
> Ricardo
> > > Sánchez
> > > Sent: 23 August 2006 06:34 PM
> > > To: Flashcoders mailing list
> > > Subject: [Flashcoders] OOP methodology and flash. I'm loosing my
> > faith...
> > >
> > > ... well, not really but I thought it was good as I title
> > >
> > > I always use OOP for my flash projects but, even if I find it easier
> > than
> > > timeline coding, I dont know if I'm taking all the advantage of OOP.
> I'm
> > > not
> > > even sure if I am aplying the correct patterns for every problem.
> > >
> > > My insecurity probably has to do with the lack of normal work OOP
> flash
> > > examples. For example the typicall top menu/content web. How can OOP
> be
> > > applied to that?
> > >
> > > I guess I find a gap in the theory of knowing how to link the
symbols,
> > > movieclips, timeline and graphics in flash with the code in external
> > > files.
> > >
> > > Am I opening a can of worms?
> > >
> > > 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
> > >
> > ___
> > Flashco

[Flashcoders] Flash effect

2006-08-25 Thread Elena Blanco
Hello

I need to replicate an effect very similar to the following
http://myspace.com/adidassoccerbv

Rotating movieclips, scaling and fading. Any idea on how this might have
been accomplished?

Thank you for the suggestions,
El

___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Ron Wheeler

Almost all of the examples of coding on Macromedia are OOP.

If you download any of the open source code in the 
http://www.osflash.org/ site, you will find nicely written, peer 
reviewed code written in Actionscript. For dozens of examples, download 
ActionStep.


It is easy for everyone, some people just look at the glass as half empty.

It does not supplant common sense or remove the need to think about what 
you are doing.


Ron



Ricardo Sánchez wrote:

Ok, I see its not so easy for everyone. Can anyone point out some
tutorial-like examples on internet or books. I know a lot of theory
(inheritance, polymorphism...) but I would like to see more 
applications for

it so I can be more confident when I use it.



On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:


My main motivation for this stuff in Flash is so that my code actually
gets
checked by the compiler, vs. Flash's crappy built-in code-checking 
for the

stage. That is, it will tell me if I've mis-spelled something, created
duplicate variables, the list goes on...

In addition, I write my classes in FlashDevelop, which gives you code
completion. Which means when I start to type:

> import mx.

I get a listing of all packages that Macromedia's written, instead of
looking for stuff in the help (that's fun).

And best yet, when I type:

var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
poly-morphism thrown in there (huck-huck) ;)

and I type:

> sBigD.

I get a list of every function in my class, as well as its signature
(params
& types).

I'm only talking about FlashDevelop here. Guess I'm spoiled by Java & 
.NET
which have instance access to API's at your finger tips (when in the 
right

IDE's).

I'm just trying to find a better and efficient way to go. Way open to
suggestions!

-Scott


On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
>
> OOP and Flash is indeed tricky to fully grasp. It has become easier 
and

> more
> natural to implement OOP techniques on AS3 though.
>
> @Neo: Completely agree with you.
>
> On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
> >
> > I'll tell you a little secret about OOP.
> >
> > Don't sweat it.
> >
> > Sometimes the model jumps out at you but other times you
> > have to find it. How to find it? Write something that does
> > what you want. Then refactor it once you have a better idea
> > of how it works. The more you do that the more certain patterns
> > and approaches crystalise for you.
> >
> > I think there's too much over-engineering going on in general
> > as some people seem to think implementing all the latest patterns
> > on even the smallest project makes them good developers.
> >
> > I've been guilty of it myself a couple of times, writing frameworks
> > where a couply of focused classes would have sufficed.
> >
> > OOP should be fun if you do it right and don't sweat it when
> > it turns into a dick swinging contest, just make up pattern names.
> >
> > I quite like the Absolver pattern ;p
> >
> > cheers
> > ~neo
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
Ricardo
> > Sánchez
> > Sent: 23 August 2006 06:34 PM
> > To: Flashcoders mailing list
> > Subject: [Flashcoders] OOP methodology and flash. I'm loosing my
> faith...
> >
> > ... well, not really but I thought it was good as I title
> >
> > I always use OOP for my flash projects but, even if I find it easier
> than
> > timeline coding, I dont know if I'm taking all the advantage of OOP.
I'm
> > not
> > even sure if I am aplying the correct patterns for every problem.
> >
> > My insecurity probably has to do with the lack of normal work OOP
flash
> > examples. For example the typicall top menu/content web. How can OOP
be
> > applied to that?
> >
> > I guess I find a gap in the theory of knowing how to link the 
symbols,

> > movieclips, timeline and graphics in flash with the code in external
> > files.
> >
> > Am I opening a can of worms?
> >
> > 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@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 

RE: [Flashcoders] Protect model setters from being called by any classexcept Controller

2006-08-25 Thread Karina Steffens
Hi Steven,

You could try using arguments.caller to check if the setter was called by
the controller. Here's a little test function I whipped up on the _root:

function testCaller(){
trace (typeof arguments.caller)
trace (arguments.caller == controller.test)
trace (arguments.caller == notcontroller.test)
}

controller = new Object();
controller.test = function (){  
_root.testCaller()
}
notcontroller = new Object();
notcontroller.test = function (){   
_root.testCaller()
}

The output is:
function
true
false
function
false
true

This gives you a way to check if the function was called from the controller
or the notcontroller. 
The downside is that this checks for a specific function within a
controller, not just any controller function. I wonder if there's a way
around it?

Karina




> -Original Message-
> From: Steven Sacks | BLITZ [mailto:[EMAIL PROTECTED] 
> Sent: 25 August 2006 02:37
> To: Flashcoders mailing list
> Subject: [Flashcoders] Protect model setters from being 
> called by any classexcept Controller
> 
> Hi,
> 
> I have a model class that has a bunch of getters and setters.
> Example:
> 
> private var _prop:Object;
> function get prop():Object {
>   return _prop;
> }
> function set prop(p:Object) {
>   _prop = p;
> }
> 
> I have a controller class that instantiates that model. 
> 
> I'm wondering if there is some way to prevent any other class 
> from using the setter methods of the model except the 
> controller class.  They still should be able to access the getters.
> 
> I want to prevent future developers from being able to access 
> the model setters from anywhere except the controller in 
> order to enforce proper MVC patterns.
> 
> 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


RE: [Flashcoders] dynamic spacing

2006-08-25 Thread Toby
This is 100% no cuss, but hop into flash newbie and ask these questions
there. I am even going to ask questions first in there as I know this is a
list for a lot of well developed coders!

Ontop of this it also helps the others in the flash newbie list, and you
will get more detailed responses to some questions, especially these.

Cmon, newb with me!
T

http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: 24 August 2006 15:50
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] dynamic spacing
> 
> Anyone have an algorithm to space dynamically created movieClips centered
> on
> the stage? I'm using attachMovie in a for loop to create the clips based
> on
> an unknown number of itemsusually 3-5 items that are about 150px wide
> each.
> 
> 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] Best books about design

2006-08-25 Thread Joe Cutting
The best books I've come across for an introduction to graphic design 
for programming

types are
"The Non-Designer's Design Book" and
"The Non-Designer's Type Book"

both by Robin Williams, published by PeachPit




Joe Cutting
Computer exhibits and installations
www.joecutting.com
96 Heslington Road, York, YO10 5BL
01904 627428
___
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] jsfl - set all bitmaps in library to photo compression

2006-08-25 Thread Tor.Kristensen

I had a project recently that was originally developed as a CDROM by a
3rd party, but then had to be migrated to the web. Many of the lib items
(1000's of items) had been set with specific compression values or
Lossless. This ended up with a >60MB swf file. Ick.

So I brewed up this little JSFL that sets all bitmaps in the library to
document level "photo"/jpeg compression. 

Hope this helps anyone who has or will have a similar headache.

//--
var lib = fl.getDocumentDOM().library;
for(n=0;nhttp://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] clone object

2006-08-25 Thread Karina Steffens
That's true - it happens to me all the time when I use _global(tt) with Xray
and have a circular reference (such as two classes that hold eachother as
listeners). 
This was why John had to change his original treeview parser to a
non-recursive method. But it still happens with the trace function. So I'd
say that some kind of check would be useful. 

Karina

> -Original Message-
> From: Scott Hyndman [mailto:[EMAIL PROTECTED] 
> Sent: 25 August 2006 02:59
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] clone object
> 
> If you had one circular reference, you'd hit the recursion limit.
> 
> On 24/08/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
> > If you're not willing to code a solution, then why are you 
> bothering 
> > to write out an explanation?  I have yet to encounter a recursion 
> > limit and I've parsed some deep object models.
> > ___
> > 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] OOP methodology and flash. I'm loosing my faith...

2006-08-25 Thread Ricardo Sánchez

Ok, I see its not so easy for everyone. Can anyone point out some
tutorial-like examples on internet or books. I know a lot of theory
(inheritance, polymorphism...) but I would like to see more applications for
it so I can be more confident when I use it.



On 8/24/06, slangeberg <[EMAIL PROTECTED]> wrote:


My main motivation for this stuff in Flash is so that my code actually
gets
checked by the compiler, vs. Flash's crappy built-in code-checking for the
stage. That is, it will tell me if I've mis-spelled something, created
duplicate variables, the list goes on...

In addition, I write my classes in FlashDevelop, which gives you code
completion. Which means when I start to type:

> import mx.

I get a listing of all packages that Macromedia's written, instead of
looking for stuff in the help (that's fun).

And best yet, when I type:

var sBigD:ScottsSuperHugeOne = new SuperHuge();  //just a little
poly-morphism thrown in there (huck-huck) ;)

and I type:

> sBigD.

I get a list of every function in my class, as well as its signature
(params
& types).

I'm only talking about FlashDevelop here. Guess I'm spoiled by Java & .NET
which have instance access to API's at your finger tips (when in the right
IDE's).

I'm just trying to find a better and efficient way to go. Way open to
suggestions!

-Scott


On 8/24/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
>
> OOP and Flash is indeed tricky to fully grasp. It has become easier and
> more
> natural to implement OOP techniques on AS3 though.
>
> @Neo: Completely agree with you.
>
> On 8/24/06, neo binedell <[EMAIL PROTECTED]> wrote:
> >
> > I'll tell you a little secret about OOP.
> >
> > Don't sweat it.
> >
> > Sometimes the model jumps out at you but other times you
> > have to find it. How to find it? Write something that does
> > what you want. Then refactor it once you have a better idea
> > of how it works. The more you do that the more certain patterns
> > and approaches crystalise for you.
> >
> > I think there's too much over-engineering going on in general
> > as some people seem to think implementing all the latest patterns
> > on even the smallest project makes them good developers.
> >
> > I've been guilty of it myself a couple of times, writing frameworks
> > where a couply of focused classes would have sufficed.
> >
> > OOP should be fun if you do it right and don't sweat it when
> > it turns into a dick swinging contest, just make up pattern names.
> >
> > I quite like the Absolver pattern ;p
> >
> > cheers
> > ~neo
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
Ricardo
> > Sánchez
> > Sent: 23 August 2006 06:34 PM
> > To: Flashcoders mailing list
> > Subject: [Flashcoders] OOP methodology and flash. I'm loosing my
> faith...
> >
> > ... well, not really but I thought it was good as I title
> >
> > I always use OOP for my flash projects but, even if I find it easier
> than
> > timeline coding, I dont know if I'm taking all the advantage of OOP.
I'm
> > not
> > even sure if I am aplying the correct patterns for every problem.
> >
> > My insecurity probably has to do with the lack of normal work OOP
flash
> > examples. For example the typicall top menu/content web. How can OOP
be
> > applied to that?
> >
> > I guess I find a gap in the theory of knowing how to link the symbols,
> > movieclips, timeline and graphics in flash with the code in external
> > files.
> >
> > Am I opening a can of worms?
> >
> > 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@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
>



--

: : ) Scott
___
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] flip pages in as2 or the like

2006-08-25 Thread Matthias Dittgen

Thank you, Jordan!

I am coding an AS2 pageflip class right now, which works as needed for
our current project and I am follwing the O'Reilly article from Sham
Bhangal, which is really excellent. I am making big steps forward a
reusable solution in pure code.

2006/8/24, jordan robinson <[EMAIL PROTECTED]>:

The new flashloaded pageflip component works great: http://
flashloaded.com/flashcomponents/pageflipper



> On 8/23/06, Matthias Dittgen <[EMAIL PROTECTED]> wrote:
>>
>> Personally I dislike those questions asking for ready-to-use code,
>> but
>> this time I have such a question by myself:
>>
>> Does someone know of a page flipping/ turn page AS2 solution?
>>
>> I only know Pageflip (http://www.iparigrafika.hu/pageflip/), which is
>> a grown compley flash5/flashMX solution, that I don't want to code
>> in.
>> It has this "bug", that it kills page content like dynamic/input
>> textfields, which is not so good.
>>
>> Thank you!
>> Matthias
>> ___
>> 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
>>
>

Jordan Robinson


___
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] Tabbing and Components (again) ...

2006-08-25 Thread John VanHorn

i had this problem a while back and was able to solve it...but i cant
remeber exactly what i did.

i think i had to set focusManger to false on every onKillFocus event. so if
you had 1 combo box and two input text fields, you would need to write, for
every component and text field:

instanceName.onKillFocus = function():Void{
_root.focusManager.enabled = false;
}

also, for the next project i worked on, I used the mCom components (
http://www.metaliq.com/mcom/)  and found that
they dont suffer from this problem at all.


On 8/24/06, Stephen Ford <[EMAIL PROTECTED]> wrote:


Hi,

I have a flash application that has a couple of combo box components and a
couple of text fields.

Trying to tab between my text fields doesn't work, even though they are
all tab enabled and have tab indexes.

The reason for this, I have recently found out, is due to the combo box
component - it breaks the tabbing.

The workaround for this is to include the following line (after the first
frame in my movie):

_level0.focusManager.enabled = false;

This works, HOWEVER, as soon as you choose something from the combo box,
the tabbing is broken again ???

Any anyone assist with what is going on here and if there is a fix.

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 Van Horn
[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] Problem with putting image in flash blog

2006-08-25 Thread mArsmAn

I'm making a blog in flash with amfPHP. And till now everything went well.
I get all the data in the database from flash and I can loop through
de object I get back from amfPHP, I put everything in a text field
that renders as html.
But know I wanted to submit pictures with a post.
I made an upload interface that puts a string off the filename in my
DB so I can load it when I read my DB and the image is resized with a
php script.

My first idea was just using an img tag in my html string, but  after
some trying I noticed that this was very buggy with big images. There
was no way to find out if the image was loaded(if someone knows?) so I
coudn't get the image height what I really need when I want to use the
img tag or my text gets behind my picture and I can't position the
next posts  ._y.
So I tried to put the image height in my DB when I resize the picture
with PHP but with big images (+800+600) this is not reliable.
Than I tought I could do it with 2 textfields and a movieclip where I
put my image in.
So I have a textfield for my title under it my picture and than my text body.
I tried to make a listener that loads my image into the movieclip and
when I have my height I call a function that put the body text under
it.
But thats my big problem when I loop through all the data and I create
my listener object I can't pass variables to the function that do the
rest. So I can't know what ID the post have.
I put my code here so it's a little easier to understand what I want to say.

function showPost(re,IDmin)
{
var mcl:MovieClipLoader=new MovieClipLoader();
var myListener:Object=new Object();

//reset Heights
readMessageHeight =0;
totalHeight = 0;
postHeight = 0;

if(IDmin == undefined){
IDmin = 0;
IDmax = 5;
}else{
IDmax = IDmin+1;
}

var blogItem = _root.readMessages.createEmptyMovieClip("blogItem", 
3400);

for(var s = IDmin; s < IDmax; s++)
{   
var post = re.result.getItemAt(s);

var txtHolder =
_root.readMessages.blogItem.createEmptyMovieClip("txtHolder"+s,
3500+s);
txtHolder.ID = s;

//I make a title textfield and put the text in it
/
var blogTitle =
txtHolder.createTextField("txtBlogTitle"+s,this.getNextHighestDepth(),0,
0+postHeight ,312,10);
txtHolder["txtBlogTitle"+s].html = true;
txtHolder["txtBlogTitle"+s].wordWrap = true;
txtHolder["txtBlogTitle"+s].multiline = true;
txtHolder["txtBlogTitle"+s].styleSheet = styles;
txtHolder["txtBlogTitle"+s].autoSize = true;
var htmlTitleTxt:String  = '' +
' '+ post.id + " - 
" + post.title + ' (' +
post.date.substr(0,10) + ')' +
'. . . . . . . 
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .' +
'';
txtHolder["txtBlogTitle"+s].htmlText = htmlTitleTxt;

var titleHeight = txtHolder["txtBlogTitle"+s]._height;

//I put the image under it
///
var imgMC = txtHolder.createEmptyMovieClip("imgMC"+s, 4500+s);

mcl.loadClip("files/tn_"+post.image,imgMC);

myListener.onLoadInit=function(evtObj,re){
var imageHeight = evtObj._height;
//I try to give the id but this is not working post.id 
gives undefined
doRest(imageHeight,post.id);
postHeight += titleHeight+imageHeight;
}
mcl.addListener(myListener);

txtHolder["imgMC"+s]._y = 30+postHeight;


}

//resizePage();
};

If anyone can help me with this. It's now the 3th day in a row I'm
trying to find a working solution. If someone knows a way I can still
use the img tag it would be great.

Best regards
Maarten
___
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] Singleton not always Singleton?

2006-08-25 Thread Adrian Park

Hey all!

I'm using a class (AnimationProxy) based on the Singleton pattern to form a
bridge between a timeline based intro animation (sigh) and the application
objects (it's not strictly an intro because, when the intro is complete, the
animation continues in the background whilst the rest of the site is
rendered over the top). The animation is a standalone .swf loaded into the
main .swf at runtime. It (the animation) has the AnimationProxy imported,
registers a reference to itself with AnimationProxy and sends various events
to AnimationProxy. The main application objects register as event listeners
of AnimationProxy and respond to the events triggered by the animation.
Well, that's how it's supposed to work!

Thing is (and you may have seen the flaw already), I now discover that a
unique instance of AnimationProxy is created by each of the intro and main
.swfs! I'm fairly confident my implementation of Singleton is fine since
it's the same implementation I've used several times.

Two questions then...

It kind of makes sense to me that each .swf maintains it's own object space
(for want of a better term) and therefore it is expected that they would
each end up with unique instances of AnimationProxy. Can someone give me a
fuller explanation of why each .swf gets a unique instance?

Can anyone suggest a better solution?

I've included the code that constitutes the Singleton implemention below.

Thanks
Adrian

class com.shell.util.IntroAnimProxy {
   // Singleton instance
   private static var _instance:IntroAnimProxy;

   public function IntroAnimProxy () {}

   public static function getInstance():IntroAnimProxy {
   if ( IntroAnimProxy._instance == undefined ) {
   IntroAnimProxy._instance = new IntroAnimProxy();
   }
   return IntroAnimProxy._instance;
   }
}
___
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 spacing

2006-08-25 Thread Bjorn Schultheiss
Give him some credit, he did say centered.
You would have to included StageSize and browser window size in your
evaluation.
This of course depends on how you have embed your swf in the html. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ramon Miguel
M. Tayag
Sent: Friday, 25 August 2006 12:59 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] dynamic spacing

This is so simple you don't even have to ask the list... in that for loop
just increment and set the mc's x / y.  There's no complex algo behind it.

On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Anyone have an algorithm to space dynamically created movieClips 
> centered on the stage? I'm using attachMovie in a for loop to create 
> the clips based on an unknown number of itemsusually 3-5 items 
> that are about 150px wide each.
>
> Thanks..


--
Ramon Miguel M. Tayag
___
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