RE: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Tom Versweyveld
Does this mean there is no way of loading a Flex swf into an AS3
project?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: maandag 24 oktober 2005 23:00
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

It's black and white; either your're ActionScript only, or you're using
the 
components.  If you use Application.mxml as your root, then you are
using 
the Flex framework, otherwise, for the time being, your main AS file
extends 
MovieClip.

- Original Message - 
From: Benjamin Dobler [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, October 24, 2005 4:20 PM
Subject: AW: [Flashcoders] AS3.0 only projects + flex framework



 Keep in mind AS only projects don't use the Flex framework, so
 mx.controls.Button won't work; you'd have to utilize the Flex
framework.

Thanks Jesse that`s what i wanted to get sure of. Is there not even a
workaround to use the framework in as only projects?

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

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


[Flashcoders] while(true) and infinite loop... :(

2005-10-26 Thread Morrisy Van

hi list, 

been doing some flex2 AS3 socket programming recently,
just wondering could i use some code like this (as we
do in java):

[code]
 String line;
for(;;) {
line = in.readLine( );
if (line == null) throw new IOException(Unexpected
EOF);
if (line.equals(.)) break;
msgs.add(line);
}
[/code]

or 
[code]
while(true){
//do some socket operation
}
[/code]

whenever I ran code like this, flash player went into
infinite loop and crashes.

so is there any way to wait until the socket finishes
it's job and the code went on ?

btw, I know there are onSocketData and onProgress for
socket, but by using them i would have to split my
code into chunks and it's gonna be hard to maintain.

thanks.




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] attachMovie synchronization

2005-10-26 Thread Dhiraj Girdhar
Hello,

 

I have a movie clip symbol, say 'X'.

X has a movie clip placed inside, say 'Y'.

There is code on Y i.e. 

onClipEvent(load) {

_root.func1();

}

 

Now when I attach X using attachMovie i.e. having following code:

 

attachMovie(X, Instance1,1);

_root.func2();

 

func2 gets called before func1. Which states that attachMovie is not
completely synchronized.

 

Is there any way by which I can execute func2 after whole X has been
loaded i.e. even load event of movie clips inside X has been triggered?

The condition is that I cannot move call of func2 to load event of Y.

 

Thanks in advance.

 

Dhiraj Girdhar

 

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


[Flashcoders] attachMovie synchronization

2005-10-26 Thread Dhiraj Girdhar
Hello,

I have a movie clip symbol, say 'X'.
X has a movie clip placed inside, say 'Y'.
There is code on Y i.e. 
onClipEvent(load) {
_root.func1();
}

Now when I attach X using attachMovie i.e. having following code:

attachMovie(X, Instance1,1);
_root.func2();


func2 gets called before func1. Which states that attachMovie is not
completely synchronized.


Is there any way by which I can execute func2 after whole X has been
loaded i.e. even load event of movie clips inside X has been triggered?
The condition is that I cannot move call of func2 to load event of Y.

Thanks in advance.
Dhiraj Girdhar
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Cyclic dependency bug, simplified

2005-10-26 Thread Robert Tweed

David Rorex wrote:

If you want macromedia to respond, might want to contact them directly.


I generally find it's better to post to a public list first - especially 
with something that is likely to be of interest to other developers. I 
saw JD posting here, so I know he reads this list, if no-one else.


If I don't get any response I'll post to the wishform, of course, but in 
that case I don't expect to ever hear anything back about it - that's 
just Macromedia policy.


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


RE: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Tom Versweyveld
And load a Flex 2 swf into an as3/8.5 swf with the new Loader class?
When I try this the Flex2 swf doesn't even initialize...?!

tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Spike
Sent: woensdag 26 oktober 2005 10:38
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

You can load a Flex 1.5 swf into a Flex 2 project, but you can't
interact
with it unless you use the LocalConnection approach.

Not sure if you can do that right now, but I intend to find out.

Spike

On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:

 Does this mean there is no way of loading a Flex swf into an AS3
 project?



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
JesterXL
 Sent: maandag 24 oktober 2005 23:00
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

 It's black and white; either your're ActionScript only, or you're
using
 the
 components. If you use Application.mxml as your root, then you are
 using
 the Flex framework, otherwise, for the time being, your main AS file
 extends
 MovieClip.

 - Original Message -
 From: Benjamin Dobler [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Monday, October 24, 2005 4:20 PM
 Subject: AW: [Flashcoders] AS3.0 only projects + flex framework



  Keep in mind AS only projects don't use the Flex framework, so
  mx.controls.Button won't work; you'd have to utilize the Flex
 framework.

 Thanks Jesse that`s what i wanted to get sure of. Is there not even a
 workaround to use the framework in as only projects?

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

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] OT: Urgent JSP help

2005-10-26 Thread Pranav Negandhi
I know this is OT, but I'm kind of in a soup and have no clue where else to
turn to.

A client of ours developed their site using JSP, and asked us to take a look
at maintaining it. I was checking some of the files on the server,
downloading them, editing some bits to add output statements here and there
to see variable values, then uploading them again.

I renamed the file on the server, uploaded the new file. After viewing, I
deleted the new file and renamed the old back. Worked fine for the first
time.

The second time I tried the same thing, the whole thing blew in my face. I'm
getting a 404 error constantly, even though the file is available on the
server. Happens on other machines too, outside our network. So there's no
question of a cache being the culprit here.

Can somebody who knows how to deploy jsp apps on Tomcat help me out please?
And keep it off-list.

Regards,
Pranav Negandhi
Fractal Ink
M: 98211 73656


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


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Spike
I haven't tried it with Flex 2 files, but I have managed to load a
FlashPaper swf. It didn't work perfectly, but I could view the file and use
some of the controls like zooming.

Spike

On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:

 And load a Flex 2 swf into an as3/8.5 swf with the new Loader class?
 When I try this the Flex2 swf doesn't even initialize...?!

 tom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Spike
 Sent: woensdag 26 oktober 2005 10:38
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

 You can load a Flex 1.5 swf into a Flex 2 project, but you can't
 interact
 with it unless you use the LocalConnection approach.

 Not sure if you can do that right now, but I intend to find out.

 Spike

 On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:
 
  Does this mean there is no way of loading a Flex swf into an AS3
  project?
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
 JesterXL
  Sent: maandag 24 oktober 2005 23:00
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] AS3.0 only projects + flex framework
 
  It's black and white; either your're ActionScript only, or you're
 using
  the
  components. If you use Application.mxml as your root, then you are
  using
  the Flex framework, otherwise, for the time being, your main AS file
  extends
  MovieClip.
 
  - Original Message -
  From: Benjamin Dobler [EMAIL PROTECTED]
  To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
  Sent: Monday, October 24, 2005 4:20 PM
  Subject: AW: [Flashcoders] AS3.0 only projects + flex framework
 
 
 
   Keep in mind AS only projects don't use the Flex framework, so
   mx.controls.Button won't work; you'd have to utilize the Flex
  framework.
 
  Thanks Jesse that`s what i wanted to get sure of. Is there not even a
  workaround to use the framework in as only projects?
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] attachMovie synchronization

2005-10-26 Thread Laurent Oberlé
Hi,

You can attach en init object to your clip X like this :

init_obj = new Object();
init_obj.onEnterFrame = function() {
_root.func2 ();
delete(this.onEnterFrame);
}
attachMovie(X, Instance1,1, init_obj);



like this func1 is called before func2.

Laurent




-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Dhiraj
Girdhar
Envoyé : mercredi 26 octobre 2005 08:14
À : Flashcoders mailing list
Objet : [Flashcoders] attachMovie synchronization

Hello,

I have a movie clip symbol, say 'X'.
X has a movie clip placed inside, say 'Y'.
There is code on Y i.e. 
onClipEvent(load) {
_root.func1();
}

Now when I attach X using attachMovie i.e. having following code:

attachMovie(X, Instance1,1);
_root.func2();


func2 gets called before func1. Which states that attachMovie is not
completely synchronized.


Is there any way by which I can execute func2 after whole X has been
loaded i.e. even load event of movie clips inside X has been triggered?
The condition is that I cannot move call of func2 to load event of Y.

Thanks in advance.
Dhiraj Girdhar
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


[Flashcoders] MTASC, in sepy, syntax check has problems with Delegate for example, why?

2005-10-26 Thread Martin Klasson


I cant understand why MTASC is throwing an error at some points. Am
using it within SEPY.

I got a class which imports mx.utils.Delegate, 

But when I later on uses the Delegate.create(this, myFunc)
The MTASC compiler says that it is a unknown variable, the Delegate it
is.

This has been up before I would believe, but couldn't find it, nor at
the arhives or by using google.

Please do help me to clarify this.
Is it macromedia who has made a non-ecma-compatible class for Delegate
perhaps? Or is the MTASC having a bugg? How can I get around this?

I love to have the MTAS to check syntax, and since I use Delegate
everytime I don't want such a problem with this ;)

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


Re: [Flashcoders] while(true) and infinite loop... :(

2005-10-26 Thread Spike
How about using the break keyword?


***
package {
import flash.display.Sprite;
import flash.util.trace;

public class LoopTest extends Sprite {

public function LoopTest() {
var i:uint = 0;
for(;;) {
i++;
if (i  20) {
break;
}
}
trace(Loop exited.);
}

}
}
*



On 10/26/05, Morrisy Van [EMAIL PROTECTED] wrote:


 hi list,

 been doing some flex2 AS3 socket programming recently,
 just wondering could i use some code like this (as we
 do in java):

 [code]
 String line;
 for(;;) {
 line = in.readLine( );
 if (line == null) throw new IOException(Unexpected
 EOF);
 if (line.equals(.)) break;
 msgs.add(line);
 }
 [/code]

 or
 [code]
 while(true){
 //do some socket operation
 }
 [/code]

 whenever I ran code like this, flash player went into
 infinite loop and crashes.

 so is there any way to wait until the socket finishes
 it's job and the code went on ?

 btw, I know there are onSocketData and onProgress for
 socket, but by using them i would have to split my
 code into chunks and it's gonna be hard to maintain.

 thanks.




 __
 Yahoo! Mail - PC Magazine Editors' Choice 2005
 http://mail.yahoo.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ActionScript and sockets

2005-10-26 Thread Weyert de Boer

Campbell Anderson wrote:


Hey dude I have played quite a bit with sockets now. I was packet
sniffing what flash sent out and the diference between writeUTF and
writeUTFBytes is the first two binary values of the writeUTF. Flex
documentation says that its the pointer to the binary stream length. I
dont think this format (the length pointer) is used in the http protcol.

 

Thanks for the details! I am currently working on writing a client for 
Flash 8.5 for RemObjects SDK -- it's a pain so I started with

Http stuff first which works well enough to continue ;-)


The reason I think MM added it was a way to stop blocking through the
data when reading it. Note that you have to use something like
availableBytes protpery to read the data..as3 doesnt seem to be
able to block through it (read it as it comes in). So my guessing is
that this method might come into play more with the proprietry MM
systems later. 
 



Yours,
Weyert de Boer
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] while(true) and infinite loop... :(

2005-10-26 Thread Stan Vassilev

No that would be a bad idea since flash is single threaded.

In pseudo code, Flash runs in an endless loop of this kind:

for (;;) {
   executeFrameScript();
   renderFrame();
}

If you start doing some cycle you make it be stuck in executeFrameScript() 
and never render a frame before you let it go.
There's a safety precaution that doesn't let Flash be stuck in there for 
more than a few seconds since it might be bug or well it's just plain bad 
user experience to run lengthy code and leave the GUI frozen.


This is why you have to use async operations such as callbacks or make your 
loop use setInterval or onEnterFrame to do the looping part (this allows 
Flash to render the graphics part).


Regards, Stan Vassilev

- Original Message - 
From: Morrisy Van [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 9:23 AM
Subject: [Flashcoders] while(true) and infinite loop... :(




hi list,

been doing some flex2 AS3 socket programming recently,
just wondering could i use some code like this (as we
do in java):

[code]
String line;
for(;;) {
line = in.readLine( );
if (line == null) throw new IOException(Unexpected
EOF);
if (line.equals(.)) break;
msgs.add(line);
}
[/code]

or
[code]
while(true){
//do some socket operation
}
[/code]

whenever I ran code like this, flash player went into
infinite loop and crashes.

so is there any way to wait until the socket finishes
it's job and the code went on ?

btw, I know there are onSocketData and onProgress for
socket, but by using them i would have to split my
code into chunks and it's gonna be hard to maintain.

thanks.




__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


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


Re: [Flashcoders] serialize object

2005-10-26 Thread Julián Atienza
---

I'd love to know how to desiarlize or serialize
sharedobject to txt files but... how can u write txt
files in flash??? :O :O :O

I'm near to newbie but... i'm working in a
StandAlone-Project with flash and this is one of my
questions (neck-bottle) - how can i store information
in disk???
if i could be able to serialize/desiarilize
sharedObjects to disk could be my solution!!!

thanks!


---




__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] RE: Multilanguage sites

2005-10-26 Thread Martin Klasson

I got my own SharedFonts solution which works nicely. I just developed
it to a site that will have 60 different markets.

The remaining question is how to know which character-sets different
alphabets does require -this is not easy.

I would like a site which shows ALL characters for every specific
variant:

Turkey:
Abc.. and all characters needed to cover up Turkish and so on.

Then it also would be easy to control whether the font has all required
characters as well.

I don't want to embed unnecessary glyphs since they aren't needed, so I
would love to have that very knowledge of every alphabet -but I cant
find it.

THANKS if you can help out with glyphs, characters for every alphabet.
-as well as a countrylist on which uses the same character-sets or so..

/ martin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Benjamin
Durin
Sent: den 26 oktober 2005 06:20
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] RE: Multilanguage sites 

My advice: DO NOT use different character sets. Stick with Unicode
(UTF-8).
My games in Flash are in French, English and Chinese. Flash handles
Unicode 
natively so I have the different translations in one single file (they
are 
small games so it doesn't take much space). Our database handles Unicode
so 
it communicates with Flash seamlessly. I also tested with Japanese and
Arab. 
It seems ok although my knowledge in these 2 languages doesn't allow me
to 
check thoroughly.



Benjamin.



Date: Tue, 25 Oct 2005 15:03:22 +0100
From: daniel clarke [EMAIL PROTECTED]
Subject: [Flashcoders] Multilanguage sites
To: flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

I've been approached to put together a site which will ultimately have
10
language variations (some of which dont use the latin alphabet).

Were thinking XML driven content for a start, but what are the major
pitfals
to look out for when putting a multilanguage site togehter. I've done
some
top level research and figure theres goingto be issues with character
sets
etc.

Does anyone have any links to good resources or advice to give ?

Thanks in advance

Daniel




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


[Flashcoders] www.brain-farm.com

2005-10-26 Thread Marco Sottana

look at www.brain-farm.com

- Original Message - 
From: Salvatore Fusto [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 3:56 PM
Subject: [Flashcoders] swf height and width



Hi all,
how can i find, using javascript, height and width of a swf file, given 
its path?

tnx and regards
salvatore

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 25/10/2005




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


Re: [Flashcoders] imports available to entire flash file

2005-10-26 Thread Jason Lutes
 Is there a way to import certain classes for use throughout the entire
 flash file? Or do I need to import for each  timeline?

I sometimes create a globally accessible alias.

import myPackageName.MyClassName;
_global.myClassAlias = MyClassName;

I use the myClassAlias reference instead of MyClassName wherever I
need to access the class throughout a movie.


-
pixelTwiddler, a.k.a. Jason


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


RE: [Flashcoders] Tween not working in AS

2005-10-26 Thread Mendelsohn, Michael
 So I need to find a nice clear definition of how they work. Any links?

I'm not sure about links to explanations of _parent and this other
than the documents, but for using the Tween class, look up Jen de Haan
on the Macromedia site.  She wrote a great article about its usage.

For the first param in Tween, are you using _parent.obj?  Try tracing
that object, and see if it traces what you want to tween first.

- MM

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


[Flashcoders] listening for all button events

2005-10-26 Thread Matt Ganz
hi.

is there any way to have one listener listen for all button events.
you know, like you can have with Key. or do i have to give all my
buttons instance names and use addListener on each instance?

thanks.

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


[Flashcoders] Generic listeners

2005-10-26 Thread Andreas Rønning
Dunno how to explain this better, but is there a way to have a String 
broadcast an event when it is changed?


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


Re: [Flashcoders] www.brain-farm.com

2005-10-26 Thread Marco Sottana

ti piace cosa cambieresti?
- Original Message - 
From: Salvatore Fusto [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 4:27 PM
Subject: Re: [Flashcoders] www.brain-farm.com


non capisco: puoi spiegare meglio?
salvatore
- Original Message - 
From: Marco Sottana [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 4:17 PM
Subject: [Flashcoders] www.brain-farm.com



look at www.brain-farm.com

- Original Message - 
From: Salvatore Fusto [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 3:56 PM
Subject: [Flashcoders] swf height and width



Hi all,
how can i find, using javascript, height and width of a swf file, given 
its path?

tnx and regards
salvatore

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 
25/10/2005





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

__ Informazione NOD32 1.1265 (20051025) __

Questo messaggio  è stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it




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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 25/10/2005


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


RE: [Flashcoders] www.brain-farm.com

2005-10-26 Thread Pete Hotchkiss
You just posted this on FlashLounge - its WAYY off
topic for here

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marco
Sottana
Sent: 26 October 2005 15:17
To: Flashcoders mailing list
Subject: [Flashcoders] www.brain-farm.com


look at www.brain-farm.com

- Original Message - 
From: Salvatore Fusto [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 3:56 PM
Subject: [Flashcoders] swf height and width


 Hi all,
 how can i find, using javascript, height and width of a swf file, 
 given
 its path?
 tnx and regards
 salvatore

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


 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date:
25/10/2005

 

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


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


Re: [Flashcoders] listening for all button events

2005-10-26 Thread JesterXL
Mouse.onMouseDown/onMouseUp already does this.  If you are using the v2 
component framework, or if you are not, you can see how they are doing it 
via mx.events.LowLevelEvents.

- Original Message - 
From: Matt Ganz [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 10:38 AM
Subject: [Flashcoders] listening for all button events


hi.

is there any way to have one listener listen for all button events.
you know, like you can have with Key. or do i have to give all my
buttons instance names and use addListener on each instance?

thanks.

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

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


Re: [Flashcoders] Nothing returned from XML stream ...partway there

2005-10-26 Thread Miles Thompson
When the XML is generated, if the content of the head and story tags is 
bracketed with a ![CDATA[  and ]] I get the cotent I want through the 
recursive extractContent() method. Xpath.selectNodes still returns undefined.


MT

At 10:19 AM 10/26/2005, you wrote:
I'm trying to use the ideas / examples in Steve Nelson's excellent rssFeed 
tutorial to modify a Flash movie used to display a daily news digest. As 
you can probably guess, I'm not having a lot of success.


Until now, the issue has been returned as an XML file with this format
issue
copy
the contents of the entire issue, with apostrophes, quotes, HTML 
tags, etc.

/copy
/issue

and I was able to feed it to the text display quite simply, with this line:

txtNews.text = xmlReceiver.firstChild.firstChild;

where xmlReceiver is
var xmlReceiver:XML = new XML();
called like so
xmlReceiver.load( http://; + host + feed_xml_story.php);
and the assignment to txtNews is made in the xmlReceiver.onLoad = 
function(success:Boolean) event / success function.


Now we want clickable headlines, so it's no longer a simple procedure of 
grab everything and dump it. I need an array of headlines and a 
corresponding array of news stories. When the headline is clicked, the 
news story will be loaded into the adjacent text area.


To avoid two  trips to the database, one to fetch headlines, the other to 
get the stories, I decided a more complex XML stream would be  returned by 
the script, which has this structure:


issue
copy
   head
a headline, including b and br tags, properly closed
   /head
   story
 the associated story, 200 words or better, with apostrophes, 
quotes, equal signs, HTML tags, etc., in which the tags are properly closed.

   /story
   // and there may be 10 ~ 15 head - story combinations
/copy
/issue

I've tried both the XPath and the recursive function approaches. They do 
not throw any errors, BUT don't return anything.


I tried:
trace(XPath.selectNodes: + XPath.selectNodes(this, //head))
thinking it would return all of the headlines - but nothing.

And also:
trace(extractContent (this, head)
with c.nodeType != 3  and also with c.nodeType = 3, thinking it would do 
return headlines, but it returns null.
I can watch extractContent() in the debugger, and it's finding things like 
br.


Other attempts have been made, replacing this with xmlReceiver, 
xmlReceiver.firstChild, or xmlReceiver.firstChild.firstChild.


My dark suspicion is that each regards the HTML tags as new XML fields, so 
nothing gets returned. The XML stream was originally decided on because it 
could contain everything, returning the story contents to a variable, as 
one would with LoadVars, tripped over junk contained in the stories, 
especially equal signs.


Could this be so? Am I doomed to two trips to the server, one to fetch 
headlines, the other the stories?


Regards - Miles Thompson

PS I downloaded the latest version of XPath from the X Factor Studio site. /mt


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



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


Re: [Flashcoders] www.brain-farm.com

2005-10-26 Thread Salvatore Fusto

scusa, ma non capisco cosa centri con la mia domanda.
quanto alla tua, io sviluppo applicazioni in coldfusion in oop e mvc: ho 
usato flash per gui ma come front-end verso database e scambio dati in xml. 
alla tua domanda non saprei cosa rispondere, tu alla mia?

salvatore

- Original Message - 
From: Marco Sottana [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 4:48 PM
Subject: Re: [Flashcoders] www.brain-farm.com



ti piace cosa cambieresti?
- Original Message - 
From: Salvatore Fusto [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 4:27 PM
Subject: Re: [Flashcoders] www.brain-farm.com


non capisco: puoi spiegare meglio?
salvatore
- Original Message - 
From: Marco Sottana [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 4:17 PM
Subject: [Flashcoders] www.brain-farm.com



look at www.brain-farm.com

- Original Message - 
From: Salvatore Fusto [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 3:56 PM
Subject: [Flashcoders] swf height and width



Hi all,
how can i find, using javascript, height and width of a swf file, given 
its path?

tnx and regards
salvatore

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 
25/10/2005





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

__ Informazione NOD32 1.1265 (20051025) __

Questo messaggio  è stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it




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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 25/10/2005


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

__ Informazione NOD32 1.1265 (20051025) __

Questo messaggio  è stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it




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


[Flashcoders] Addressing dynamically named movie clip

2005-10-26 Thread Bo Parker
I am working on an application where I want to apply transformations
to dynamically named movie clips. I have a function which adds a
shape to the stage based on a linkage name in the library:

function addShape(sLinkage:String):Void {
 var nIndex:Number = _root.getNextHighestDepth();
 var mcShape:MovieClip = this.attachMovie (sLinkage, mcShape +
nTopDepth, nTopDepth);
 nTopDepth = nIndex;
 mcShape._x = 450;
 mcShape._y = 300;
 }

from a button on the root level of the stage I call the function:

squareButton.onRelease = function() {
 addShape(rectangle);
};

I then want to be able to apply transformations to the new movie clip
using the bitstream component slider that is within a movie clip at
_root.squareBar:
///squarebar
squareBar.hs.changeHandler = function(){
 _root.rectangle_mc.hresizer.setSize(squareBar.hs.value,
squareBar.vs.value);
}
squareBar.vs.changeHandler = function(){
 _root.rectangle_mc.hresizer.setSize(squareBar.hs.value,
squareBar.vs.value);
}

I originally had a static movie clip called rectangle that was on
the root level but have since replaced with the dynamically named
movie clips.

I have a variable defined on frame 1 of the root level called:
var sSelected:String;

Within the rectangle movie clip that gets added to the stage, upon
pressing the movie the sSelected variable is set to the instance name
of the rectangle selected:
on (press) {
 sSelected = this._name;
 trace(sSelected);
}

The sSelected variable is showing up fine by my problem is how do I
address sSelected or the dynamic instance name of the movie placed on
stage to apply the transformations from the squareBar.hs.changeHander
function?

i.e. squareBar.hs.changeHandler = function () {
 [dynamically named movie clip here]._mc.hresizer.setSize...
}

Thanks in advance for the help.
Sincerely,
Bo Parker
-- 

Bo Parker, AIGA
RMC
215 S Jennings Avenue
Fort Worth, TX  76104
817.332.4700 p
817.332.4710 f

www.rmcfw.com

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


RE: [Flashcoders] Addressing dynamically named movie clip

2005-10-26 Thread Chris Wilson
If I understand the locations of your dynamic clips correctly, then 

_root[sSelected]._mc.hresizer.setSize...

should work.  Basically, access the dynamic clip by treating _root as an
associative array.  If the clips aren't created in _root, then substitute
the parent movie clip's name for _root above.

-Chris

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bo Parker
Sent: Wednesday, October 26, 2005 11:13 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Addressing dynamically named movie clip

I am working on an application where I want to apply transformations
to dynamically named movie clips. I have a function which adds a
shape to the stage based on a linkage name in the library:

function addShape(sLinkage:String):Void {
 var nIndex:Number = _root.getNextHighestDepth();
 var mcShape:MovieClip = this.attachMovie (sLinkage, mcShape +
nTopDepth, nTopDepth);
 nTopDepth = nIndex;
 mcShape._x = 450;
 mcShape._y = 300;
 }

from a button on the root level of the stage I call the function:

squareButton.onRelease = function() {
 addShape(rectangle);
};

I then want to be able to apply transformations to the new movie clip
using the bitstream component slider that is within a movie clip at
_root.squareBar:
///squarebar
squareBar.hs.changeHandler = function(){
 _root.rectangle_mc.hresizer.setSize(squareBar.hs.value,
squareBar.vs.value);
}
squareBar.vs.changeHandler = function(){
 _root.rectangle_mc.hresizer.setSize(squareBar.hs.value,
squareBar.vs.value);
}

I originally had a static movie clip called rectangle that was on
the root level but have since replaced with the dynamically named
movie clips.

I have a variable defined on frame 1 of the root level called:
var sSelected:String;

Within the rectangle movie clip that gets added to the stage, upon
pressing the movie the sSelected variable is set to the instance name
of the rectangle selected:
on (press) {
 sSelected = this._name;
 trace(sSelected);
}

The sSelected variable is showing up fine by my problem is how do I
address sSelected or the dynamic instance name of the movie placed on
stage to apply the transformations from the squareBar.hs.changeHander
function?

i.e. squareBar.hs.changeHandler = function () {
 [dynamically named movie clip here]._mc.hresizer.setSize...
}

Thanks in advance for the help.
Sincerely,
Bo Parker
-- 

Bo Parker, AIGA
RMC
215 S Jennings Avenue
Fort Worth, TX  76104
817.332.4700 p
817.332.4710 f

www.rmcfw.com

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


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


[Flashcoders] LoaderClass in Flash 8

2005-10-26 Thread Adrian Parr
Hi All,

I am loading in a series of SWFs in to movieclips, as quickly as
possible, and I need to know when they are all loaded. I am publishing
as Flash 8.

Is it best to use the built-in movieClipLoader class or something like
Bokel's loaderClass. Is his class redundant these days?

I've checked the FlashCoders archive and found a thread from Dec04-Jan05
titled 'Movieclip Loader Class vs Bokel's Loader Class'. And people
seemed to prefer Ralf's version. Does anyone know if there is an AS2
version of his class?

Any advice would be helpful.

Many thanks,

Adrian Parr

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


[Flashcoders] flashlite device XML file updates?

2005-10-26 Thread dc
shipped with flash8 were a number of XML files describing different
flashlite devices. does anyone know where to get updates on these? new
devices are coming out all the time...

/dc

---
   David DC Collier
mailto:[EMAIL PROTECTED]
   +81 (0)80 6521 9559
   skype: callto://d3ntaku
---
   Pikkle 株式会社
   http://www.pikkle.com
--- 


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


[Flashcoders] Cercasi collaboratori webdesigner e sviluppatori web

2005-10-26 Thread Marco Sottana
Cercasi collaboratori webdesigner e sviluppatori web meglio se zona TREVISO 
VENEZIA


manda c.v. a [EMAIL PROTECTED]

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


Re: [Flashcoders] listening for all button events

2005-10-26 Thread Matt Ganz
i've been using this method to listen for mouse movements and mouse
clicks on the first frame of my .fla:

_root.onMouseMove = function()
{
   trace( mouse moving );
};
_root.onMouseUp = function()
{
   trace( mouse being clicked );
};

is that not a good way to do this?

On 10/26/05, JesterXL [EMAIL PROTECTED] wrote:
 Mouse.onMouseDown/onMouseUp already does this.  If you are using the v2
 component framework, or if you are not, you can see how they are doing it
 via mx.events.LowLevelEvents.

 - Original Message -
 From: Matt Ganz [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 26, 2005 10:38 AM
 Subject: [Flashcoders] listening for all button events


 hi.

 is there any way to have one listener listen for all button events.
 you know, like you can have with Key. or do i have to give all my
 buttons instance names and use addListener on each instance?

 thanks.

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

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

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


Re: [Flashcoders] 'Generic listeners'

2005-10-26 Thread Jason Lutes
 Dunno how to explain this better, but is there a way to have a String
 broadcast an event when it is changed?

You can look into Object.watch(). It lets you execute code anytime a
property's value (including strings) is changed.


-
pixelTwiddler, a.k.a. Jason


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


Re: [Flashcoders] Generic listeners

2005-10-26 Thread JesterXL
In Flex, yes:

private var my_str:String = ;

mx:Label text={my_str} /

In Flash:

private var my_str:String = ;

this.watch ( my_str, my_str_watcher);

function my_str_watcher ( prop, oldVal, newVal)
{
prop = newVal;
dispatchEvent({type: my_str_changed, target: this, oldVal: oldVal, 
newVal: newVal});
return prop;
}

- Original Message - 
From: Andreas Rønning [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 10:47 AM
Subject: [Flashcoders] Generic listeners


Dunno how to explain this better, but is there a way to have a String
broadcast an event when it is changed?

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

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


RE: [Flashcoders] tracking inactivity

2005-10-26 Thread Shaw, Matt
You need 2 equal signs...

if (this.time==this.stillFor) {


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alistair
Miller
Sent: Wednesday, October 26, 2005 11:48 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] tracking inactivity

You are setting a value here rather than comparing

if (this.time=this.stillFor) {

change to 

if (this.time =this.stillFor) {

Ali

-Original Message-
From: Matt Ganz [mailto:[EMAIL PROTECTED]
Sent: 26 October 2005 16:44
To: Flashcoders mailing list
Subject: [Flashcoders] tracking inactivity

hi.

i'm trying to record when there's been inactivity in my site. i got this
code from the archive but don't understand where it's going wrong. for
example, i set it to trace out if the mouse has been inactive for 10
seconds, but instead i get this message right away.
does anyone see anything out of place?

thanks. -- matt.

this.stillFor = 1; // 10 seconds
this.startTime = getTimer();


this.onMouseMove = function(){
  this.time = 0;
  this.startTime = getTimer();
  trace('Starting timer again'); }

this.onEnterFrame  = function(){
  this.time = getTimer()-this.startTime;


  if (this.time=this.stillFor) {
  this.time = 0;
  this.startTime = getTimer();
  trace('mouse has been still for 10 seconds!');
  }
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Dyson -- the cleaner that doesn't lose suction.

http://www.dyson.com
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

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


Re: [Flashcoders] tracking inactivity

2005-10-26 Thread Matt Ganz
yes, big oversight on my part. thank you.

i've just changed from using an onEnterFrame to a setInterval, but i'm
not getting it to work here. i believe it might be because my
setInterval isn't first started. does that look like the culprit to
you? by the way, thanks for lending a hand.

this.stillFor = 1; // 10 seconds
this.startTime = getTimer();

this.onMouseMove = function()
{
this.time = 0;
this.startTime = getTimer();

if( blah != undefined )
{
clearInterval( blah );
blah = setInterval( this.checkTime, this.stillFor, this );
}
}

this.checkTime = function()
{
 this.time = getTimer() - this.startTime;

 if ( this.timethis.stillFor )
 {
 trace ('mouse has been still for 10 seconds!' );
 clearInterval(blah);
 }
}

On 10/26/05, Alistair Miller [EMAIL PROTECTED] wrote:
 You are setting a value here rather than comparing

 if (this.time=this.stillFor) {

 change to

 if (this.time =this.stillFor) {

 Ali

 -Original Message-
 From: Matt Ganz [mailto:[EMAIL PROTECTED]
 Sent: 26 October 2005 16:44
 To: Flashcoders mailing list
 Subject: [Flashcoders] tracking inactivity

 hi.

 i'm trying to record when there's been inactivity in my site. i got
 this code from the archive but don't understand where it's going
 wrong. for example, i set it to trace out if the mouse has been
 inactive for 10 seconds, but instead i get this message right away.
 does anyone see anything out of place?

 thanks. -- matt.

 this.stillFor = 1; // 10 seconds
 this.startTime = getTimer();


 this.onMouseMove = function(){
   this.time = 0;
   this.startTime = getTimer();
   trace('Starting timer again');
 }

 this.onEnterFrame  = function(){
   this.time = getTimer()-this.startTime;


   if (this.time=this.stillFor) {
   this.time = 0;
   this.startTime = getTimer();
   trace('mouse has been still for 10 seconds!');
   }
 }
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
 Dyson -- the cleaner that doesn't lose suction.

 http://www.dyson.com
 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

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

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


Re: [Flashcoders] listening for all button events

2005-10-26 Thread Weyert de Boer

Matt Ganz wrote:


i've been using this method to listen for mouse movements and mouse
clicks on the first frame of my .fla


You might want to consider to use a MouseListener.

var mouseListener:Object = new Object();
mouseListener.onMouseUp = function() {
   print CLICKERDE CLICK;
}

Mouse.addListener( mouseListener );


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


[Flashcoders] a little OT (maybe): Flash in Firefox

2005-10-26 Thread MetaArt
I have a php page, with this code: 

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN? require 
config.php; ?
htmlhead
titleViaWeb Institute - il portale dell'e-learning/titleMETA NAME=aesop 
content=multimedia /META HTTP-EQUIV=expires CONTENT=0 /META 
HTTP-EQUIV=Pragma CONTENT=no-cache /META HTTP-EQUIV=Cache-Control 
CONTENT=no-cache //headbody bgcolor=#f5f5f5 leftmargin=0 
topmargin=0 marginwidth=0 marginheight=0 scroll=noscript 
language=JavaScript!--defaultStatus = ViaWebInstitute | e-laerning for 
You!//--/scripttable width=100% height=100% border=0 cellpadding=0 
cellspacing=0  trtd align=center valign=middleobject 
classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0;
 width=800 height=600param name=movie 
value=platform.swf?chiave1=PILLOLA BLUchiave2=PILLOLA AZZURRAchiave3=PILLOLA 
VERDEchiave4=$chiave5=$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13=$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20=$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27=$chiave28=$chiave29=$chiave30=
param name=quality value=highembed 
src=platform.swf?chiave1=PILLOLA BLUchiave2=PILLOLA AZZURRAchiave3=PILLOLA 
VERDEchiave4=$chiave5=$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13=$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20=$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27=$chiave28=$chiave29=$chiave30=
 width=800 height=600 quality=high 
pluginspage=http://www.macromedia.com/go/getflashplayer; 
type=application/x-shockwave-flash/embed/object/td  
/tr/table/body/html


if I open the page with IExplorer, its all right, if instead I open with 
Firefox, the page don't is showed on monitor, where appear the code, like this: 

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN? require 
config.php; ?
htmlhead
titleViaWeb Institute - il portale dell'e-learning/title
META NAME=aesop content=multimedia /
META HTTP-EQUIV=expires CONTENT=0 /
META HTTP-EQUIV=Pragma CONTENT=no-cache /
META HTTP-EQUIV=Cache-Control CONTENT=no-cache //head
body bgcolor=#f5f5f5 leftmargin=0 topmargin=0 marginwidth=0 
marginheight=0 scroll=no
script language=JavaScript
!--
defaultStatus = ViaWebInstitute | e-laerning for You!
//--
/script
table width=100% height=100% border=0 cellpadding=0 cellspacing=0 
tr 
td align=center valign=middleobject 
classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0;
 width=800 height=600 
param name=movie value=platform.swf?chiave1=PILLOLA BLUchiave2=PILLOLA 
AZZURRAchiave3=PILLOLA 
VERDEchiave4=$chiave5=$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13=$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20=$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27=$chiave28=$chiave29=$chiave30=
 
param name=quality value=high 
embed src=platform.swf?chiave1=PILLOLA BLUchiave2=PILLOLA 
AZZURRAchiave3=PILLOLA 
VERDEchiave4=$chiave5=$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13=$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20=$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27=$chiave28=$chiave29=$chiave30=
 width=800 height=600 quality=high 
pluginspage=http://www.macromedia.com/go/getflashplayer; 
type=application/x-shockwave-flash/embed/object/td 
/tr 
/table 
/body 
/html 

Which can be the reason of this strange behavior? 


 Enrico Tomaselli
  + web designer +
  [EMAIL PROTECTED]
http://www.metatad.it
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Looping Loaded Sound

2005-10-26 Thread DP

Hey Gang!

Has anyone had trouble getting dynamically loaded MP3s to loop?
I'm having a bit of trouble with this. Can Flash do this?
What's the deal, 'yo?

David Politi Super Genius
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Looping Loaded Sound

2005-10-26 Thread JesterXL
s = new Sound(this);
s.onSoundComplete = function()
{
this.start(0, 0);
};
s.loadSound(my.mp3, true);

- Original Message - 
From: DP [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 12:14 PM
Subject: [Flashcoders] Looping Loaded Sound


Hey Gang!

Has anyone had trouble getting dynamically loaded MP3s to loop?
I'm having a bit of trouble with this. Can Flash do this?
What's the deal, 'yo?

David Politi Super Genius
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] listening for all button events

2005-10-26 Thread Weyert de Boer

You might want to alter my code a bit looks like I mixed some languages ;=)

 



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


Re: [Flashcoders] Generic listeners

2005-10-26 Thread Andreas Rønning

JesterXL wrote:


In Flex, yes:

private var my_str:String = ;

mx:Label text={my_str} /

In Flash:

private var my_str:String = ;

this.watch ( my_str, my_str_watcher);

function my_str_watcher ( prop, oldVal, newVal)
{
   prop = newVal;
   dispatchEvent({type: my_str_changed, target: this, oldVal: oldVal, 
newVal: newVal});

   return prop;
}

- Original Message - 
From: Andreas Rønning [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 10:47 AM
Subject: [Flashcoders] Generic listeners


Dunno how to explain this better, but is there a way to have a String
broadcast an event when it is changed?

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


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


Very cool, thanks

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


Re: [Flashcoders] while(true) and infinite loop... :(

2005-10-26 Thread Morrisy Van

thanks all for the reply, 
now I understand there must be a time slot for flash
to do thie graphic things.

I end up using two listeners to get the job done,
making  all the task queue up and run one by one.


--- Stan Vassilev [EMAIL PROTECTED]
wrote:

 No that would be a bad idea since flash is single
 threaded.
 
 In pseudo code, Flash runs in an endless loop of
 this kind:
 
 for (;;) {
 executeFrameScript();
 renderFrame();
 }
 
 If you start doing some cycle you make it be stuck
 in executeFrameScript() 
 and never render a frame before you let it go.
 There's a safety precaution that doesn't let Flash
 be stuck in there for 
 more than a few seconds since it might be bug or
 well it's just plain bad 
 user experience to run lengthy code and leave the
 GUI frozen.
 
 This is why you have to use async operations such as
 callbacks or make your 
 loop use setInterval or onEnterFrame to do the
 looping part (this allows 
 Flash to render the graphics part).
 
 Regards, Stan Vassilev
 
 - Original Message - 
 From: Morrisy Van [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 26, 2005 9:23 AM
 Subject: [Flashcoders] while(true) and infinite
 loop... :(
 
 
 
  hi list,
 
  been doing some flex2 AS3 socket programming
 recently,
  just wondering could i use some code like this (as
 we
  do in java):
 
  [code]
  String line;
  for(;;) {
  line = in.readLine( );
  if (line == null) throw new
 IOException(Unexpected
  EOF);
  if (line.equals(.)) break;
  msgs.add(line);
  }
  [/code]
 
  or
  [code]
  while(true){
  //do some socket operation
  }
  [/code]
 
  whenever I ran code like this, flash player went
 into
  infinite loop and crashes.
 
  so is there any way to wait until the socket
 finishes
  it's job and the code went on ?
 
  btw, I know there are onSocketData and onProgress
 for
  socket, but by using them i would have to split my
  code into chunks and it's gonna be hard to
 maintain.
 
  thanks.
 
 
 
 
  __
  Yahoo! Mail - PC Magazine Editors' Choice 2005
  http://mail.yahoo.com
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
 

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

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




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] a little OT (maybe): Flash in Firefox

2005-10-26 Thread Rob Maurizi
Is the file named with a .php extension? Also, try using ?php ... ?  
to bracket your PHP code (vs. the ? ... ?).



-Rob



On Oct 26, 2005, at 12:09 PM, MetaArt wrote:


I have a php page, with this code:
-- 
-- 

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN?  
require config.php; ?

htmlhead
titleViaWeb Institute - il portale dell'e-learning/titleMETA  
NAME=aesop content=multimedia /META HTTP-EQUIV=expires  
CONTENT=0 /META HTTP-EQUIV=Pragma CONTENT=no-cache /META  
HTTP-EQUIV=Cache-Control CONTENT=no-cache //headbody  
bgcolor=#f5f5f5 leftmargin=0 topmargin=0 marginwidth=0  
marginheight=0 scroll=noscript language=JavaScript!-- 
defaultStatus = ViaWebInstitute | e-laerning for You!//--/ 
scripttable width=100% height=100% border=0 cellpadding=0  
cellspacing=0  trtd align=center  
valign=middleobject classid=clsid:D27CDB6E- 
AE6D-11cf-96B8-44455354 codebase=http:// 
download.macromedia.com/pub/shockwave/cabs/flash/ 
swflash.cab#version=6,0,29,0 width=800 height=600 
param name=movie value=platform.swf?chiave1=PILLOLA  
BLUchiave2=PILLOLA AZZURRAchiave3=PILLOLA VERDEchiave4=$chiave5= 
$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13= 
$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20= 
$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27= 
$chiave28=$chiave29=$chiave30=param name=quality  
value=highembed src=platform.swf?chiave1=PILLOLA  
BLUchiave2=PILLOLA AZZURRAchiave3=PILLOLA VERDEchiave4=$chiave5= 
$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13= 
$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20= 
$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27= 
$chiave28=$chiave29=$chiave30= width=800 height=600  
quality=high pluginspage=http://www.macromedia.com/go/ 
getflashplayer type=application/x-shockwave-flash/embed/ 
object/td  /tr/table/body/html
-- 
-- 



if I open the page with IExplorer, its all right, if instead I open  
with Firefox, the page don't is showed on monitor, where appear the  
code, like this:
-- 
-- 

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN?  
require config.php; ?

htmlhead
titleViaWeb Institute - il portale dell'e-learning/title
META NAME=aesop content=multimedia /
META HTTP-EQUIV=expires CONTENT=0 /
META HTTP-EQUIV=Pragma CONTENT=no-cache /
META HTTP-EQUIV=Cache-Control CONTENT=no-cache //head
body bgcolor=#f5f5f5 leftmargin=0 topmargin=0  
marginwidth=0 marginheight=0 scroll=no

script language=JavaScript
!--
defaultStatus = ViaWebInstitute | e-laerning for You!
//--
/script
table width=100% height=100% border=0 cellpadding=0  
cellspacing=0

tr
td align=center valign=middleobject classid=clsid:D27CDB6E- 
AE6D-11cf-96B8-44455354 codebase=http:// 
download.macromedia.com/pub/shockwave/cabs/flash/ 
swflash.cab#version=6,0,29,0 width=800 height=600
param name=movie value=platform.swf?chiave1=PILLOLA  
BLUchiave2=PILLOLA AZZURRAchiave3=PILLOLA VERDEchiave4=$chiave5= 
$chiave7=$chiave8=$chiave9=$chiave10=$chiave11=$chiave13= 
$chiave14=$chiave15=$chiave16=$chiave17=$chiave19=$chiave20= 
$chiave21=$chiave22=$chiave23=$chiave25=$chiave26=$chiave27= 
$chiave28=$chiave29=$chiave30=

param name=quality value=high
embed src=platform.swf?chiave1=PILLOLA BLUchiave2=PILLOLA  
AZZURRAchiave3=PILLOLA VERDEchiave4=$chiave5=$chiave7=$chiave8= 
$chiave9=$chiave10=$chiave11=$chiave13=$chiave14=$chiave15= 
$chiave16=$chiave17=$chiave19=$chiave20=$chiave21=$chiave22= 
$chiave23=$chiave25=$chiave26=$chiave27=$chiave28=$chiave29= 
$chiave30= width=800 height=600 quality=high  
pluginspage=http://www.macromedia.com/go/getflashplayer;  
type=application/x-shockwave-flash/embed/object/td

/tr
/table
/body
/html
-- 
-- 


Which can be the reason of this strange behavior?


 Enrico Tomaselli
  + web designer +
  [EMAIL PROTECTED]
http://www.metatad.it
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Rob Maurizi
Web Developer / Flash Developer

Center for Teaching  Learning
University of Vermont

802-656-0317 // [EMAIL PROTECTED]
http://rmaurizi.blog.uvm.edu/

Trying to make everyone happy makes no one happy

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


[Flashcoders] gotoAnd* stopped working today?!?!?!?!?!?

2005-10-26 Thread Roman Blöth
Hello there,


today something very, very strange happened with my flash project.

What Flash should do is no big deal: In the first frame, I have this code:

if (this == _root)
{
trace(starting solo);
_root.collapse_values.sound_atmo.start(0, 999);
initialize();
is_initialized = true;
this.gotoAndPlay(pregame);
}


This - of course - worked the day through. Now Flash seems not to handle
the gotoAndPlay any more:

The traces (one seen here and one inside the initialize-function)
also work, but the whole thing rests on frame 1 forever.

Now for the very weird part:

When I debug the movie, it works! So I can't debug this
misbehaviour, since in debug mode everything works fine! But as soon as
I start the movie - be it within Flash or in Firefox or IE - it stays on
frame 1 forever! When I add a

this.onEnterFrame = function() {
trace(_currentframe = +_currentframe);
}

then I get an endless output of _currentframe = 1...


Someone any ideas on this?!?!

Any comment very welcome!!!


regards,
roman.

-- 

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
 t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
---

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


[Flashcoders] AOL not loading JPG files

2005-10-26 Thread Jack H
I've just learned of the problem where the AOL browser
will convert JPG files to ART files and thus not allow
AOL users to see dynamically loaded JPG files in SWF
files. I was wondering what the possible solutions of
this problem are. The ones that I know of are:

1) Have the server admin change the MIME type of the
JPG file 
http://www.macromedia.com/go/tn_18671

2) place all dynamically loaded JPG files into SWF
files -- possibly using the img2swf utility to do this
on the fly


Question: are there any other possible solutions that
anyone has heard about?

thanks in advance!






__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AOL not loading JPG files

2005-10-26 Thread Michael Bedar

just change the file extension of the images.. flash cares not


On Oct 26, 2005, at 1:24 PM, Jack H wrote:


I've just learned of the problem where the AOL browser
will convert JPG files to ART files and thus not allow
AOL users to see dynamically loaded JPG files in SWF
files. I was wondering what the possible solutions of
this problem are. The ones that I know of are:

1) Have the server admin change the MIME type of the
JPG file
http://www.macromedia.com/go/tn_18671

2) place all dynamically loaded JPG files into SWF
files -- possibly using the img2swf utility to do this
on the fly


Question: are there any other possible solutions that
anyone has heard about?

thanks in advance!






__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


Re: [Flashcoders] a little OT (maybe): Flash in Firefox

2005-10-26 Thread David Rorex
Sounds like a problem with your webserver's configurations. does it
work if you make it a .htm file? do other .php files work?

-David R

On 10/26/05, MetaArt [EMAIL PROTECTED] wrote:
 I have tried using ?php... ?, but the result its always the same...


  Enrico Tomaselli
   + web designer +
   [EMAIL PROTECTED]
 http://www.metatad.it

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

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


Re: [Flashcoders] gotoAnd* stopped working today?!?!?!?!?!?

2005-10-26 Thread David Rorex
Try commenting out all lines except the gotoAndPlay and see if it
works. If it does work, then add the code in a bit at a time until it
stops working. This will allow you to see where your problem is.

-David R

On 10/26/05, Roman Blöth [EMAIL PROTECTED] wrote:
 Hello there,


 today something very, very strange happened with my flash project.

 What Flash should do is no big deal: In the first frame, I have this code:

 if (this == _root)
 {
 trace(starting solo);
 _root.collapse_values.sound_atmo.start(0, 999);
 initialize();
 is_initialized = true;
 this.gotoAndPlay(pregame);
 }


 This - of course - worked the day through. Now Flash seems not to handle
 the gotoAndPlay any more:

 The traces (one seen here and one inside the initialize-function)
 also work, but the whole thing rests on frame 1 forever.

 Now for the very weird part:

 When I debug the movie, it works! So I can't debug this
 misbehaviour, since in debug mode everything works fine! But as soon as
 I start the movie - be it within Flash or in Firefox or IE - it stays on
 frame 1 forever! When I add a

 this.onEnterFrame = function() {
 trace(_currentframe = +_currentframe);
 }

 then I get an endless output of _currentframe = 1...


 Someone any ideas on this?!?!

 Any comment very welcome!!!


 regards,
 roman.

 --

 ---
  gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
  t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
 ---

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

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


Re: [Flashcoders] tracking inactivity

2005-10-26 Thread David Rorex
On 10/26/05, Matt Ganz [EMAIL PROTECTED] wrote:
 yes, big oversight on my part. thank you.

 i've just changed from using an onEnterFrame to a setInterval, but i'm
 not getting it to work here. i believe it might be because my
 setInterval isn't first started. does that look like the culprit to
 you? by the way, thanks for lending a hand.

 this.stillFor = 1; // 10 seconds
 this.startTime = getTimer();

 this.onMouseMove = function()
 {
 this.time = 0;
 this.startTime = getTimer();

 if( blah != undefined )
In this example, blah is not defined, thus this statement will never
be true, and the interval will never be set.

 {
 clearInterval( blah );
 blah = setInterval( this.checkTime, this.stillFor, this );
 }
 }

 this.checkTime = function()
 {
  this.time = getTimer() - this.startTime;

  if ( this.timethis.stillFor )
  {
  trace ('mouse has been still for 10 seconds!' );
  clearInterval(blah);
  }
 }

 On 10/26/05, Alistair Miller [EMAIL PROTECTED] wrote:
  You are setting a value here rather than comparing
 
  if (this.time=this.stillFor) {
 
  change to
 
  if (this.time =this.stillFor) {
 
  Ali
 
  -Original Message-
  From: Matt Ganz [mailto:[EMAIL PROTECTED]
  Sent: 26 October 2005 16:44
  To: Flashcoders mailing list
  Subject: [Flashcoders] tracking inactivity
 
  hi.
 
  i'm trying to record when there's been inactivity in my site. i got
  this code from the archive but don't understand where it's going
  wrong. for example, i set it to trace out if the mouse has been
  inactive for 10 seconds, but instead i get this message right away.
  does anyone see anything out of place?
 
  thanks. -- matt.
 
  this.stillFor = 1; // 10 seconds
  this.startTime = getTimer();
 
 
  this.onMouseMove = function(){
this.time = 0;
this.startTime = getTimer();
trace('Starting timer again');
  }
 
  this.onEnterFrame  = function(){
this.time = getTimer()-this.startTime;
 
 
if (this.time=this.stillFor) {
this.time = 0;
this.startTime = getTimer();
trace('mouse has been still for 10 seconds!');
}
  }
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
  Dyson -- the cleaner that doesn't lose suction.
 
  http://www.dyson.com
  *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] off topic

2005-10-26 Thread coker todd
Can anyone help me find a .mpg or .mov of a piece of
paper / tin foil being crumbled.

much needed for a project.

much thanks,
kai



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Nothing returned from XML stream ...partway there

2005-10-26 Thread Chris Wilcox
Would probably make more sense to structure your xml as follows to
collect all stories, then collect info for an individual story

issue
stories
story
headlineHeadline 1/headline

detailpparagraph/ppparagraph/p/detail
/story
story
headlineHeadline 1/headline

detailpparagraph/ppparagraph/p/detail
/story

 etc.
/stories
/issue

Then you could then use XPath to parse the xml like this...

// import XPathDocument
import com.xfactorstudio.xml.xpath.XPathDocument
// create arrays for headline  detail 
var headline_array:Array = new Array()
var detail_array:Array = new Array()
// create XPathDocument for issue
var issueXML:XPathDocument = new XPathDocument()
issueXML.ignoreWhite = true
var me = this
issueXML.onLoad = function(success){
me.parseIssues()
}
issueXML.load(myxml.xml)
// parse XML
function parseIssues()
{
var inXML:Array
inXML = issueXML.selectNodes(//story)
var i,j
for(i=0;iinXML.length;i++)
{   
j = inXML[i]
headline_array[i] =
j.selectSingleNode(./headline/text())
detail_array[i] =
j.selectSingleNode(./detail).toString()
}
}

Should be no need for CDATA tags...

HTH



Chris Wilcox



 
 
Bounce Digital Ltd  
12 Goslett Yard | London | WC2H 0EQ UK 
T +44(0)207 478 4488 | www.bouncedigital.co.uk

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Miles
Thompson
Sent: 26 October 2005 16:02
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Nothing returned from XML stream ...partway
there

When the XML is generated, if the content of the head and story tags
is 
bracketed with a ![CDATA[  and ]] I get the cotent I want through the 
recursive extractContent() method. Xpath.selectNodes still returns
undefined.

MT

At 10:19 AM 10/26/2005, you wrote:
I'm trying to use the ideas / examples in Steve Nelson's excellent
rssFeed 
tutorial to modify a Flash movie used to display a daily news digest.
As 
you can probably guess, I'm not having a lot of success.

Until now, the issue has been returned as an XML file with this format
issue
copy
 the contents of the entire issue, with apostrophes, quotes, HTML 
 tags, etc.
/copy
/issue

and I was able to feed it to the text display quite simply, with this
line:

 txtNews.text = xmlReceiver.firstChild.firstChild;

where xmlReceiver is
 var xmlReceiver:XML = new XML();
called like so
 xmlReceiver.load( http://; + host + feed_xml_story.php);
and the assignment to txtNews is made in the xmlReceiver.onLoad = 
function(success:Boolean) event / success function.

Now we want clickable headlines, so it's no longer a simple procedure
of 
grab everything and dump it. I need an array of headlines and a 
corresponding array of news stories. When the headline is clicked, the 
news story will be loaded into the adjacent text area.

To avoid two  trips to the database, one to fetch headlines, the other
to 
get the stories, I decided a more complex XML stream would be  returned
by 
the script, which has this structure:

issue
copy
head
 a headline, including b and br tags, properly closed
/head
story
  the associated story, 200 words or better, with apostrophes, 
 quotes, equal signs, HTML tags, etc., in which the tags are properly
closed.
/story
// and there may be 10 ~ 15 head - story combinations
/copy
/issue

I've tried both the XPath and the recursive function approaches. They
do 
not throw any errors, BUT don't return anything.

I tried:
 trace(XPath.selectNodes: + XPath.selectNodes(this,
//head))
thinking it would return all of the headlines - but nothing.

And also:
 trace(extractContent (this, head)
with c.nodeType != 3  and also with c.nodeType = 3, thinking it would
do 
return headlines, but it returns null.
I can watch extractContent() in the debugger, and it's finding things
like 
br.

Other attempts have been made, replacing this with xmlReceiver, 
xmlReceiver.firstChild, or xmlReceiver.firstChild.firstChild.

My dark suspicion is that each regards the HTML tags as new XML fields,
so 
nothing gets returned. The XML stream was originally decided on because
it 
could contain everything, returning the story contents to a variable,
as 
one would with LoadVars, tripped over junk contained in the stories, 
especially equal signs.

Could this be so? Am I doomed to two trips to the server, one to fetch 
headlines, the other the stories?

Regards - Miles Thompson

PS I downloaded the latest version of XPath from the X Factor Studio
site. /mt


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


___
Flashcoders 

[Flashcoders] load assets from memory stream?

2005-10-26 Thread Mike Lyda
ok, this is way off the beaten path, but does anyone know of a way to load
assets (XML, JPG, etc) with a SWF if the SWF is loaded purely from memory (via
the Flash Player in a VB wrapper rather than via the browser).  Basically in
this situation the SWF and all assets need to be unpacked in memory and the SWF
is loaded from there.  The SWF then needs to load other files but they are
never written to the hard drive.

Getting the SWF loaded via the memory stream is not a problem.. getting other
assets in memory loaded via ActionScript is the question.

Any ideas?



__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] gotoAnd* stopped working today?!?!?!?!?!?

2005-10-26 Thread Marc Hoffman
Also try commenting out all the code and calling 
the goto action from a button, so you can see if 
it's a timing issue. And make sure the frame 
label exists and isn't duplicated by another 
instance or label name in the movie.  - Marc


At 11:17 AM 10/26/2005, you wrote:

Try commenting out all lines except the gotoAndPlay and see if it
works. If it does work, then add the code in a bit at a time until it
stops working. This will allow you to see where your problem is.

-David R

On 10/26/05, Roman Blöth [EMAIL PROTECTED] wrote:
 Hello there,


 today something very, very strange happened with my flash project.

 What Flash should do is no big deal: In the first frame, I have this code:

 if (this == _root)
 {
 trace(starting solo);
 _root.collapse_values.sound_atmo.start(0, 999);
 initialize();
 is_initialized = true;
 this.gotoAndPlay(pregame);
 }


 This - of course - worked the day through. Now Flash seems not to handle
 the gotoAndPlay any more:

 The traces (one seen here and one inside the initialize-function)
 also work, but the whole thing rests on frame 1 forever.

 Now for the very weird part:

 When I debug the movie, it works! So I can't debug this
 misbehaviour, since in debug mode everything works fine! But as soon as
 I start the movie - be it within Flash or in Firefox or IE - it stays on
 frame 1 forever! When I add a

 this.onEnterFrame = function() {
 trace(_currentframe = +_currentframe);
 }

 then I get an endless output of _currentframe = 1...


 Someone any ideas on this?!?!

 Any comment very welcome!!!


 regards,
 roman.

 --

 ---
  gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
  t [030] 29 66 88 81 | f [030] 29 66 88 84 | http://www.gosub.de
 ---

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

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



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


RE: [Flashcoders] OT: Flash player keeps 'downgrading' itself

2005-10-26 Thread Julian Dolce
So I have been struggling with this as well and I think I have found a
work around/fix.

And it has to do with what John mentioned and uninstalling the
player sort of, because I can remember running the uninstaller and
it not fixing it. 

So here is what I did.

Go to this directory C:\WINDOWS\system32\Macromed\Flash
And find the Flash.OCX file. All I did was rename it to something
different so IE wouldn't be able to find FP7 and I would be able to
track down what site it was reverting on. But to my surprise it seems
like it's working now. 

It's been over 3 days without having to re-install the player.

So if you do uninstall the player go to that directory and make sure
that that file isn't there.

I hope that helps.

Julian Dolce
Senior Creative Technologist
Fuel Industries, INC
[ p ] 613-224-6738 x241
 
-Original Message-
From: Mike Mountain [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 24, 2005 10:52 AM
To: Flashcoders mailing list
Subject: [Flashcoders] OT: Flash player keeps 'downgrading' itself

OK I know for sure I'm not the only one this is happening to, but I
wanted to get a consensus of how common this is.

My Flash player keeps silently reverting to version 7, I don't know if
it's a website I visit forcing a silent 'downgrade', or something to do
with my PC (win XP).

Anyone else experiencing this on the list? Solutions? Causes? Etc.

Cheers

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


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


[Flashcoders] Working on / Trying to find a Load Manager for SWF, JPG, FLV, etc

2005-10-26 Thread Barrett
My goal, is either to find, or mash together, a load manager that supports
FLV, SWF and JPG as well as text documents and XML.

So what I am working toward seems to be kind of an update for Bokel's
LoaderClass (08/06/2003) you can find here:
http://www.helpqlodhelp.comcombinded with the LoadQueueManager
(01/31/2004) as laid out by Michelangelo
which you can find here: http://tinlion.com/blog/?p=6#more-6

Now what both of these lack is handling of the preloading of FLV files, I
came up with a sequential preloader for FLV files based on the code found on
LiveDocs here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1573.html

//startcode
stop();
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
this.createTextField(loaded_txt, this.getNextHighestDepth(), 10, 10, 160,
22);
onEnterFrame = function(){
download_video_1();
delete onEnterFrame;
}

download_video_1 = function(){
trace(Start Downloading Video: 1);
stream_ns.play(video.flv);
stream_ns.pause();

var loaded_interval:Number = setInterval(checkBytesLoaded, 500,
stream_ns);

function checkBytesLoaded(my_ns:NetStream) {
var pctLoaded:Number = Math.round(my_ns.bytesLoaded / my_ns.bytesTotal *
100);
loaded_txt.text = Math.round(my_ns.bytesLoaded / 1000) +  of  +
Math.round(my_ns.bytesTotal
/ 1000) +  KB loaded ( + pctLoaded + %);
progressBar_mc.bar_mc._xscale = pctLoaded;
if (pctLoaded = 100) {
//stop the percent loaded check
clearInterval(loaded_interval);
//close the connection to stop downloading
stream_ns.close();
//start the next download function
download_video_2();
}
}
}
//endcode

The first problem I ran into is if I was loading a FLV while attempting to
play and load an FLV, it sucked. So on the frame where a FLV is I placed
this:

//startcode
clearInterval(loaded_interval);
stream_ns.close();
//endcode

Then if the FLV that just played was not the one that had just been stopped
from loading, reconnect and continue downloading. Else add 1 and start
downloading the next video file.

The next issue that I had was there was no video, but audio, I wanted
neither, so I did not create the video object needed to see the video, and
used this line to pause the video from playing while it was loading.

//startcode
stream_ns.pause();
//endcode

So, before I go through and chop up perfectly good code to add in FLV
support for LoaderClass and LoadQueueManager has there been any progress
since January of 2004 in this area?

I am pretty sure I need to start in this area of Bokel's class to add FLV
support, the LoadQueueManager should rely on all of Bokel's code:

//startcode
o.load = function(){
var loc = this.target;
trace(_load  + loc);
//
if( typeof( loc.load) == 'function'){
loc.load.apply( loc, [this.sUrl].concat( this.aArgs));
} else if( typeof( loc.loadSound) == 'function'){
loc.loadSound.apply( loc, [this.sUrl].concat( this.aArgs));
} else {
this.funcWaitUntil = this.waitUntilPropertiesAreInitialized;
if( this.aArgs[0].toUpperCase() == 'POST'){
loadMovie( this.sUrl, loc, 'POST');
} else if( this.aArgs[0].toUpperCase() == 'GET'){
loadMovie( this.sUrl, loc, 'GET');
} else {
loadMovie( this.sUrl, loc);
}
}
}
//endcode

Honestly, I'd like to keep it all AS2, but first I need to get it working,
then I'll redo it.
__

Thanks for any help and/or comments!
Barrett

[ http://www.sosuke.com ]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ObjectCopy mishaps

2005-10-26 Thread John Mark Hawley
I sent in a message a while ago about problems with ObjectCopy -- they're in 
the archive, but never made it to any emails I received. Whatever.

Anyway, does anyone know of a deep-copy function sitting around somhere that 
actually works all the time, reliably?  It seems like every time I rely on 
mx.utils.ObjectCopy I find a new problem with it and end up wasting time. I 
don't want to have to bother making my own if someone else already slogged 
through it.

It doesn't handle nulls, doesn't deep copy once it hits an array, barfs when it 
hits a basic type, etc...

-Mark Hawley

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

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


[Flashcoders] cancel loading process

2005-10-26 Thread Benjamin Dobler
Hi All,

 

i have the following problem. I want to load a sequence of Images. I have my
own SequenceLoader so that is fine.

Now i need to now the size (totalBytes) of all clips in advance to show a
progress bar that counts all clips.

So my first guess is to load one clip wait fort he first progress - get the
bytesTotal - and than cancel the loading. With this i would get the

Sizes of all clips without loading them. Now i always thought it`s not
possible to cancel a loading progress but to my surprise the following seems
to work:

 

this.createEmptyMovieClip(image_mc, this.getNextHighestDepth());

var mclListener:Object = new Object();

mclListener.onLoadProgress  = function(target:MovieClip, bytesLoaded:Number,
bytesTotal:Number){

var progress:Object = mcLoader.getProgress(image_mc);

trace( bytesTotal:  + bytesTotal);

size_tx.text=bytesTotal;

   image_mcl.unloadClip(target);

   

};

var image_mcl:MovieClipLoader = new MovieClipLoader();

image_mcl.addListener(mclListener);

image_mcl.loadClip(img1.jpg, image_mc);

 

I believe that the loading is really canceled. I don`t have the image in my
cache after calling this.

Can someone verify that this works? Any better solutions?

 

Thanx

 

Benjamin

 

 

RichApps.de

RIA Development

 

Benjamin Dobler

 

web:   |  http://www.richapps.de http://www.richapps.de

mail:   |  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

 

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


Re: [Flashcoders] Generic listeners

2005-10-26 Thread ryanm
Dunno how to explain this better, but is there a way to have a String 
broadcast an event when it is changed?


   Object.watch works, but it is expensve. Better would be to not set the 
value of the string directly, but use a getter/setter  that you can 
manipulate to fire an event when you change it.


ryanm 


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


[Flashcoders] ming

2005-10-26 Thread DP

Hey!

Has anyone used ming before?
I want to make some buttons with graphics as their visual component,  
as opposed to a shape.

I basically want to do this:

$buttonSprite = new SWFSprite();
$buttonSprite-add(fopen(images/pauseButton.gif, rb));

$pauseButton = new SWFButton();
$pauseButton-addShape(buttonSprite, $hit | SWFBUTTON_DOWN |  
SWFBUTTON_OVER | SWFBUTTON_UP);


I'm pretty dumb and I don't know why this doesn't work.
Any ideas?

David Politi Super Genius

On Oct 26, 2005, at 3:27 PM, Benjamin Dobler wrote:


Hi All,



i have the following problem. I want to load a sequence of Images.  
I have my

own SequenceLoader so that is fine.

Now i need to now the size (totalBytes) of all clips in advance to  
show a

progress bar that counts all clips.

So my first guess is to load one clip wait fort he first progress -  
get the

bytesTotal - and than cancel the loading. With this i would get the

Sizes of all clips without loading them. Now i always thought it`s not
possible to cancel a loading progress but to my surprise the  
following seems

to work:



this.createEmptyMovieClip(image_mc, this.getNextHighestDepth());

var mclListener:Object = new Object();

mclListener.onLoadProgress  = function(target:MovieClip,  
bytesLoaded:Number,

bytesTotal:Number){

var progress:Object = mcLoader.getProgress(image_mc);

trace( bytesTotal:  + bytesTotal);

size_tx.text=bytesTotal;

   image_mcl.unloadClip(target);



};

var image_mcl:MovieClipLoader = new MovieClipLoader();

image_mcl.addListener(mclListener);

image_mcl.loadClip(img1.jpg, image_mc);



I believe that the loading is really canceled. I don`t have the  
image in my

cache after calling this.

Can someone verify that this works? Any better solutions?



Thanx



Benjamin





RichApps.de

RIA Development



Benjamin Dobler



web:   |  http://www.richapps.de http://www.richapps.de

mail:   |  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]



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




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


Re: [Flashcoders] LoaderClass in Flash 8

2005-10-26 Thread Igor Ageyev
Hello Adrian.

AP 'Movieclip Loader Class vs Bokel's Loader Class'. And people
AP seemed to prefer Ralf's version. Does anyone know if there is an AS2
AP version of his class?

Bryan Ledford rewrote this class for AS 2.
http://www.v-i-a.net/download/?LoaderQueue
http://www.v-i-a.net/download/?LoaderQueue_doc

-- 
Best regards,
Igormailto:[EMAIL PROTECTED]



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


Re: [Flashcoders] Looping Loaded Sound

2005-10-26 Thread Alain Rousseau
or you can try a Class I made to do exactly that (it's an extension 
manager file, for installing the doc, code hints, etc )

http://lab.daroost.ca/source/SoundLoop2.mxp

JesterXL wrote:


s = new Sound(this);
s.onSoundComplete = function()
{
   this.start(0, 0);
};
s.loadSound(my.mp3, true);

- Original Message - 
From: DP [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 12:14 PM
Subject: [Flashcoders] Looping Loaded Sound


Hey Gang!

Has anyone had trouble getting dynamically loaded MP3s to loop?
I'm having a bit of trouble with this. Can Flash do this?
What's the deal, 'yo?

David Politi Super Genius
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 


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


Re: [Flashcoders] LoaderClass in Flash 8

2005-10-26 Thread Barrett
Checked Bryan Ledford's site, there was an update this month:
2005/10/4
http://www.bryanledford.com/download/LoaderClass2.0.zip

Just trying to keep it fresh! :D


On 10/26/05, Igor Ageyev [EMAIL PROTECTED] wrote:

 Hello Adrian.

 AP 'Movieclip Loader Class vs Bokel's Loader Class'. And people
 AP seemed to prefer Ralf's version. Does anyone know if there is an AS2
 AP version of his class?

 Bryan Ledford rewrote this class for AS 2.
 http://www.v-i-a.net/download/?LoaderQueue
 http://www.v-i-a.net/download/?LoaderQueue_doc

 --
 Best regards,
 Igor mailto:[EMAIL PROTECTED]



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




--
[ http://www.sosuke.com ]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash 2005 interface with actionscript 3?

2005-10-26 Thread Paul Shafi
I would like to make use of the performance improvements of AS3 by
migrating and compiling some of my critical code with Flex 2.0. Is
there a way that my Flash 2005/AS2 application could interface with
AS3 complied code? The actual application itself will be released in
the form of an offline, cross platform Projector. Thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Job Offer :: employee search

2005-10-26 Thread Wade Arnold
I am wondering if their is a better place to post full time positions. 
We have six positions that we need to fill for development of client 
projects and the component development. Please let me know if you have 
any URL's. I have wasted money on all the job sites and am not finding 
the type of people that would use this list. If you are an HR person 
that knows how to find these types of people please contact me!


Thanks for any insight!

Wade

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


RE: [Flashcoders] Job Offer :: employee search

2005-10-26 Thread Scott Hyndman
Where is the job?

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Wade Arnold
Sent:   Wed 10/26/2005 6:30 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] Job Offer :: employee search
I am wondering if their is a better place to post full time positions. 
We have six positions that we need to fill for development of client 
projects and the component development. Please let me know if you have 
any URL's. I have wasted money on all the job sites and am not finding 
the type of people that would use this list. If you are an HR person 
that knows how to find these types of people please contact me!

Thanks for any insight!

Wade

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



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


Re: [Flashcoders] Job Offer :: employee search

2005-10-26 Thread Alan Shaw
I'm sorry I'm not addressing your question, but I have one of my
own. On the t8design web site there is an article entitled Flash
Player 7 dated 5.12.05 that says:

For years Macromedia's Flash has been the only other industry
standard in website development next to HTML. With over 98% of
the world's computers having the Flash 4 player and below, many of
our clients ask why we require that users have the Flash 7 player to
view our websites.

98% have the Flash player 4 and below? Does this not contradict
Macromedia's claims a bit? Is it true?

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


[Flashcoders] beware of flash player 8.5

2005-10-26 Thread Benjamin Herholz | [EMAIL PROTECTED]
i know, i know this is nothing new, but i would like to mention it in 
public.


flash player 8.5 is in alpha, which means it is most likely that there 
are a lot of backward compatibility issues.


i just wasted some hours cause i tried to find an error in my coding.. i 
tested the swf file in my browser with the flash player 8.5 plugin and 
it just behaved wrong. i searched and searched and came up with nothing, 
until i discoverd that i had the 8.5 player installed. i reinstalled the 
flash player 8.0 after that, and viola, it worked like it should...


i even emailed one guy, cause his website made my browser crash. i just 
figured out that his site works fine in flash player 8.0.


that said, i'll better stick with flash player 8 as my browser plugin, 
and only use the fp 8.5 for as3/flexbuilder2 testing...


gr,
--
~
Benjamin Herholz | Code

www.dawn2.com
Hamburg - Copenhagen
m: +49 (0) 160 96670732
~
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] beware of flash player 8.5

2005-10-26 Thread John Dowdell
Summary: The 8.5 Player is alpha, and backwards-compatibility is not yet 
complete... please keep a straight 8.0 for testing public work.


Benjamin Herholz | [EMAIL PROTECTED] wrote:
that said, i'll better stick with flash player 8 as my browser plugin, 
and only use the fp 8.5 for as3/flexbuilder2 testing...


Good point. Other tactics I've seen discussed for handling this early 
alpha access:


--  Use a second computer for pre-release testing.

--  On a single PC, the ActiveX in IE is different from the Netscape 
Plugin in Firefox... possible to differentiate them this way.


--  There are plugin switchers out there, but I haven't evaluated any of 
them myself.


jd



--
John Dowdell . Macromedia Developer Support . San Francisco CA USA
Weblog: http://www.macromedia.com/go/blog_jd
Aggregator: http://www.macromedia.com/go/weblogs
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Local machine data manipulation

2005-10-26 Thread Nick Weekes
Hi all,
 
Im trying to get my head around the capabilities of Flash/Flex for the
following simple scenario:
 
1) Load a text file (csv/txt etc) from the local file system into a flash
object
2) Convert this object into properly formatted xml
3) Save to local file system
 
On PC this sort of thing is traditionally done using a windows application,
but I would like to know how much of this I can achieve in a flash
environment.  I have a .NET server/SQL server too,  but Im hoping this can
all be done client-side so I don't have to upload the data and then
re-download it. 
 
Any thoughts/ideas appreciated.
 
Cheers,
 
Nick
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Local machine data manipulation

2005-10-26 Thread JesterXL
Flash cannot write to the local file system; it can read.

To write, you'll need a 3rd party projector (mProjector, SWFStudio, Zinc, 
Screenweaver [open source]), or Macromedia Director.

- Original Message - 
From: Nick Weekes [EMAIL PROTECTED]
To: Flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 6:55 PM
Subject: [Flashcoders] Local machine data manipulation


Hi all,

Im trying to get my head around the capabilities of Flash/Flex for the
following simple scenario:

1) Load a text file (csv/txt etc) from the local file system into a flash
object
2) Convert this object into properly formatted xml
3) Save to local file system

On PC this sort of thing is traditionally done using a windows application,
but I would like to know how much of this I can achieve in a flash
environment.  I have a .NET server/SQL server too,  but Im hoping this can
all be done client-side so I don't have to upload the data and then
re-download it.

Any thoughts/ideas appreciated.

Cheers,

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

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


Re: [Flashcoders] beware of flash player 8.5

2005-10-26 Thread Weyert de Boer
VMWare might be a solution too, no idea how the licensing of Flex/Flash 
is dealt though. Oh well, it's a pitty to work on two computers at the 
same time. ;-)

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


Re: [Flashcoders] Job Offer :: employee search

2005-10-26 Thread Nils Millahn

http://www.chinwag.com/flasher/jobs_index.shtml


Wade Arnold wrote:

I am wondering if their is a better place to post full time positions. 
We have six positions that we need to fill for development of client 
projects and the component development. Please let me know if you have 
any URL's. I have wasted money on all the job sites and am not finding 
the type of people that would use this list. If you are an HR person 
that knows how to find these types of people please contact me!


Thanks for any insight!

Wade

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





--


---
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

===
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
===


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


RE: [Flashcoders] NetStream class, Macs and local FLVs

2005-10-26 Thread Scott Villarosa
Bump 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Villarosa
Sent: Tuesday, 25 October 2005 3:34 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] NetStream class, Macs and local FLVs

I'm trying to code my way around this known error[1] with Flash, local FLV
files, and Mac computers. I'm fine with the code and everything although
just wanted to ask this relatively straightforward question.

Will the NetStream class on a Mac still throw an onStatus string like
NetStream.Play.StreamNotFound when it fails to find a linked FLV (with
regard to the known error)? Remember that it will always fail and there's no
way around it that I know about (apart from Macromedia's solution[1] with
colon notation and using an absolute path per file).

Cheers,

Scott

PS - Is this list on acid or what? For example, sometimes it's here and
sometimes it's not.

[1] http://www.macromedia.com/go/3121b301

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

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


Re: [Flashcoders] Job Offer :: employee search

2005-10-26 Thread Kevin Aebig
Than perhaps you should start a new thread by sending the list and new email 
with a new subject.


Cheers,

Kevin

- Original Message - 
From: Alan Shaw [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 4:42 PM
Subject: Re: [Flashcoders] Job Offer :: employee search


I'm sorry I'm not addressing your question, but I have one of my
own. On the t8design web site there is an article entitled Flash
Player 7 dated 5.12.05 that says:

For years Macromedia's Flash has been the only other industry
standard in website development next to HTML. With over 98% of
the world's computers having the Flash 4 player and below, many of
our clients ask why we require that users have the Flash 7 player to
view our websites.

98% have the Flash player 4 and below? Does this not contradict
Macromedia's claims a bit? Is it true?

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


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


Re: [Flashcoders] Flash 2005 interface with actionscript 3?

2005-10-26 Thread Julian Suggate
Presumably you could use LocalConnection between two or more SWFs, some
written in AS2 and others in AS3. But AS3 bytecode requires the 8.5 player:
depending on your release dates this could be a problem for users since it's
still in Alpha testing and won't go live til middle of next year.
 Jules

 On 10/27/05, Paul Shafi [EMAIL PROTECTED] wrote:

 I would like to make use of the performance improvements of AS3 by
 migrating and compiling some of my critical code with Flex 2.0. Is
 there a way that my Flash 2005/AS2 application could interface with
 AS3 complied code? The actual application itself will be released in
 the form of an offline, cross platform Projector. Thanks.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Local machine data manipulation

2005-10-26 Thread Mike Lyda

Or Central..?

--- JesterXL [EMAIL PROTECTED] wrote:

 Flash cannot write to the local file system; it can read.
 
 To write, you'll need a 3rd party projector (mProjector, SWFStudio, Zinc, 
 Screenweaver [open source]), or Macromedia Director.
 
 - Original Message - 
 From: Nick Weekes [EMAIL PROTECTED]
 To: Flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 26, 2005 6:55 PM
 Subject: [Flashcoders] Local machine data manipulation
 
 
 Hi all,
 
 Im trying to get my head around the capabilities of Flash/Flex for the
 following simple scenario:
 
 1) Load a text file (csv/txt etc) from the local file system into a flash
 object
 2) Convert this object into properly formatted xml
 3) Save to local file system
 
 On PC this sort of thing is traditionally done using a windows application,
 but I would like to know how much of this I can achieve in a flash
 environment.  I have a .NET server/SQL server too,  but Im hoping this can
 all be done client-side so I don't have to upload the data and then
 re-download it.
 
 Any thoughts/ideas appreciated.
 
 Cheers,
 
 Nick
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Local machine data manipulation

2005-10-26 Thread JesterXL
Thanks for keeping the faith, brother man!

- Original Message - 
From: Mike Lyda [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 26, 2005 10:03 PM
Subject: Re: [Flashcoders] Local machine data manipulation



Or Central..?

--- JesterXL [EMAIL PROTECTED] wrote:

 Flash cannot write to the local file system; it can read.

 To write, you'll need a 3rd party projector (mProjector, SWFStudio, Zinc,
 Screenweaver [open source]), or Macromedia Director.

 - Original Message - 
 From: Nick Weekes [EMAIL PROTECTED]
 To: Flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 26, 2005 6:55 PM
 Subject: [Flashcoders] Local machine data manipulation


 Hi all,

 Im trying to get my head around the capabilities of Flash/Flex for the
 following simple scenario:

 1) Load a text file (csv/txt etc) from the local file system into a flash
 object
 2) Convert this object into properly formatted xml
 3) Save to local file system

 On PC this sort of thing is traditionally done using a windows 
 application,
 but I would like to know how much of this I can achieve in a flash
 environment.  I have a .NET server/SQL server too,  but Im hoping this can
 all be done client-side so I don't have to upload the data and then
 re-download it.

 Any thoughts/ideas appreciated.

 Cheers,

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

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






__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

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


Re: [Flashcoders] Weird, child control's method can't be called in container's init()?

2005-10-26 Thread John Grden
again, it's timing.

use the onLoad event of the scrollbar class to call the init() of the button
movieclip.

public function onLoad()
{
myButton.init();
}

hth,

On 10/26/05, Boon Chew [EMAIL PROTECTED] wrote:

 Hi, have a question here that I don't quite understand
 why it happens and how to get around it...

 I have a movieclip called mcScrollBar, and it's
 associated with an AS2 class (via the linkage
 property) called UI.ScrollBar.

 The scroll bar contains another movieclip, called
 mcScrollButton, and this is associated with the class
 UI.ScrollButton.

 Iif I try to call a method in ScrollButton from
 ScrollBar's init(), the method
 doesn't exist! Am I missing something here? The
 behavior doesn't seem to make sense, you would think
 that all the containing child objects are initialized
 and fully constructed before you reach init() in the
 container class.

 The class looks roughly like this:

 class UI.ScrollBar extends UI.Control
 {
 private var mcScrollButton: ScrollButton;

 function ScrollBar()
 {
 }

 function init()
 {
 super.init();

 mcScrollButton.setDragRange(0, 100); - doesn't
 work, but calling it later in time in another function
 will work.
 }
 }

 class UI.ScrollButton
 {
 ...
 function setDragRange() { }
 }



 __
 Yahoo! FareChase: Search multiple travel sites in one click.
 http://farechase.yahoo.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
John Grden - Blitz
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] attachMovie synchronization

2005-10-26 Thread Dhiraj Girdhar
Hi,
Thanks for this solution. At least I got to know about initialization   
parameter in attachMovie. But this way I will be dependent on frame rate. 
Can there be some solution which is not dependent in frame rate?


~Dhiraj

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Oberlé
Sent: Wednesday, October 26, 2005 3:01 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] attachMovie synchronization

Hi,

You can attach en init object to your clip X like this :

init_obj = new Object();
init_obj.onEnterFrame = function() {
_root.func2 ();
delete(this.onEnterFrame);
}
attachMovie(X, Instance1,1, init_obj);



like this func1 is called before func2.

Laurent




-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Dhiraj
Girdhar
Envoyé : mercredi 26 octobre 2005 08:14
À : Flashcoders mailing list
Objet : [Flashcoders] attachMovie synchronization

Hello,

I have a movie clip symbol, say 'X'.
X has a movie clip placed inside, say 'Y'.
There is code on Y i.e. 
onClipEvent(load) {
_root.func1();
}

Now when I attach X using attachMovie i.e. having following code:

attachMovie(X, Instance1,1);
_root.func2();


func2 gets called before func1. Which states that attachMovie is not
completely synchronized.


Is there any way by which I can execute func2 after whole X has been
loaded i.e. even load event of movie clips inside X has been triggered?
The condition is that I cannot move call of func2 to load event of Y.

Thanks in advance.
Dhiraj Girdhar
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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