Re: SV: [Flashcoders] flash 8 security hint

2006-01-12 Thread Cédric Muller

Hi Martin!

I tried and nothing new ... (spent the whole evening trying to  
understand)
actually, all of these are on the same domain, so NO security  
restriction should arise ...

then this works when published to flash player 6 format,
hence meaning this is some funky 7 and/or 8 constraints ...
then I read both technical papers (40 pages!!) and nothing 

I have been doing crossdomain.xml + other security things (even  
https) for more than 4 years now ...

and I am all lost ;)

all I know is that A.swf loads in B.swf which in  turn calls a method  
on A.swf ..


Cedric

What about your object tag? Does it contain the following param  
element ?


param name=allowScriptAccess value='allways'

/Martin



Fra: [EMAIL PROTECTED] på vegne af Cédric  
Muller

Sendt: on 11-01-2006 15:51
Til: Flashcoders@chattyfig.figleaf.com
Emne: [Flashcoders] flash 8 security hint



Could anyone tell me why A.swf can load B.swf, but B.swf cannot call
scripts (php) ?
all of these (A.swf, B.swf and scripts.php) are sitting on
http://www.mydomain.com/anyDir/
and are Flash 8 swfs (though it is also failing with Flash 7 swfs.
Works with Flash 6)

I know about local OR network access, but as these files are all
residing on the same URL, I am wondering what is fail the B.swf
scripts execution ?

?

Cedric
___
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] Attach MC with a custom Class

2006-01-12 Thread Oleg Filipchuk
Hi Bruno,

import mycustompackage.MyCustomClass;
var myCustomMC:MyCustomClass = MyCustomClass ( this.attachMovieClip (
customMCSymbol, myCustomMC, depth, initObj) );

or you may use JViewCreator - http://www.j3r.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate

 


Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] How to use DispatchEvent in AS2.0 class

2006-01-12 Thread hidayath q
can anyone tell me.How to use DispatchEvent in AS2.0 class.

Iike to to dispath an event from one class to another class which will have
addEventListener to handle the event.

Can anyone give a small example and explanation.

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


Re: [Flashcoders] Text not showing up in Flash Player 7 with Flash 8SWF

2006-01-12 Thread Fumio Nonaka
Static text published for Flash Player 8 does not appear on Flash 
Player 7(Flash TechNote)

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=144b4be2
_
Howard Nager wrote:
Are you trying to publish a somewhat backwards compatible flash movie? All the bells and whistles when viewed in f8 but stilla cceptable in f7? I ran in to the same issue when trying to do the same. The swf runs fine in the 7 player but the text doesnt show. 


Good luck,

Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

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


Re: [Flashcoders] How to use DispatchEvent in AS2.0 class

2006-01-12 Thread Julien Vignali
Look at Grant Skinner article on using EventDispatcher: 
http://www.gskinner.com/blog/archives/23.html


Basically you can use EventDispatcher in three ways.
Here are a simple example:

// create an Action instance
var action:Action = new Action();

// create the listeners
var listener1:Listener1 = new Listener1();
var listener2:Listener2 = new Listener2();
var listener3:Listener3 = new Listener3();

// add listeners to the action
action.addEventListener(done, listener1);
action.addEventListener(done, listener2);
action.addEventListener(done, listener3.onDoneEvent);

// trigger events by calling the perform() method
action.perform();




The trace should look like:
Action.perform() called
Listener3.onDoneEvent() : event 'actionDone' received
Listener2.handleEvent(): event 'actionDone' received
Listener2.actionDone(): event 'actionDone' received
Listener1.actionDone() : event 'actionDone' received


-

import mx.events.EventDispatcher;
class Action {
public var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;
private var classname:String;

public function Action(){
// enable class A to dispatch events
// and handle listeners
EventDispatcher.initialize(this);
classname = Action;
}

public function get name():String {
return this.classname;
}

public function perform():Void {
// do some stuff
trace(Action.perform() called);
// then dispatch the 'done' event to listeners
dispatchEvent({target:this, type:actionDone});
}
}


-

/*
 * Method 1: event is handle by a method whose name is
 * the same as the event name.
 */
class Listener1 {
// Event handler for event of type 'done'
public function actionDone(event:Object):Void {
var type:String = String(.type);
trace(Listener1.actionDone(): event '+type+' received);
}
}


-

/*
 * Method 2: use of the generic method handleEvent(), which is called by
 * default by the EventDispatcher. This method can be useful to catch
 * any received events.
 * Note that the doneAction() method is also called.
 */
class Listener2 {
public function handleEvent(event:Object):Void {
var type:String = String(event.type);
trace(Listener2.handleEvent(): event '+type+' received);
}

public function actionDone(event:Object):Void {
var type:String = String(event.type);
trace(Listener2.actionDone(): event '+type+' received);
}

}

-

/*
 * Method 3: The event is handle by a custom method.
 */
class Listener3 {
public function onDoneEvent(event:Object):Void {
var type:String = String(event.type);
trace(Listener3.onDoneEvent(): event '+type+' received);
}

}


hidayath q a écrit :

can anyone tell me.How to use DispatchEvent in AS2.0 class.

Iike to to dispath an event from one class to another class which will have
addEventListener to handle the event.

Can anyone give a small example and explanation.

Regards.
S.Hidayath
___
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[2]: [Flashcoders] Detecting the dominating colour in a rectangle of a bitmap

2006-01-12 Thread Iv
Hello elibol,

Perhaps, you could use scaling BitmapData instance to the size of 1
pixel. The color of that pixel should be the mean color value of all
pixels in scaled BitmapData instance.


 I would like to ask if anyone already have some sort method that
 calculates which colour in a rectangle is the dominating colou in a
 BitmapData instance.


-- 
Ivan Dembicki

[EMAIL PROTECTED] || 
http://www.design.ru

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


SV: SV: [Flashcoders] certificate

2006-01-12 Thread Martin Baltzer
Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any 
https page on the server do you get an alert the first time in the session? If 
so flash don't like that and you need to install the certificate first if 
possible. Another solution is to hit any https page on the server before 
launching your flash app because the alert only happens the first time in the 
session. 

/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?

PR



Martin Baltzer a écrit :

Yes flash in Internet Explorer has serious problems with self signed or 3. 
party ssl certificates. If the certificate is a valid one (by Verisign) there 
are no issues. 

The problem is actually that when flash makes the request through IE the 
browser thinks the https page is already expired when it receives it and 
therefore it won't return it to flash. 

This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   


Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 

I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really 
to create an html page and call your webservice using a form post and make 
sure the certificates are working within the browser and the webserver BEFORE 
you try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created 
it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate

  

Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,
but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?
thanks a lot
PR

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


SV: SV: [Flashcoders] flash 8 security hint

2006-01-12 Thread Martin Baltzer
You did try without the ' around always...should have been:

param name=allowScriptAccess value=allways

You probably already noticed that :)

That would be my guess but your right in your assumptions though.

What about creating a basic sample does that work for you?
How are you loading swfB into swf A? Is it a relative url on https or so?

Cheers Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Cédric Muller
Sendt: 12. januar 2006 09:19
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] flash 8 security hint

Hi Martin!

I tried and nothing new ... (spent the whole evening trying to  
understand)
actually, all of these are on the same domain, so NO security  
restriction should arise ...
then this works when published to flash player 6 format,
hence meaning this is some funky 7 and/or 8 constraints ...
then I read both technical papers (40 pages!!) and nothing 

I have been doing crossdomain.xml + other security things (even  
https) for more than 4 years now ...
and I am all lost ;)

all I know is that A.swf loads in B.swf which in  turn calls a method  
on A.swf ..

Cedric

 What about your object tag? Does it contain the following param  
 element ?

 param name=allowScriptAccess value='allways'

 /Martin

 

 Fra: [EMAIL PROTECTED] på vegne af Cédric  
 Muller
 Sendt: on 11-01-2006 15:51
 Til: Flashcoders@chattyfig.figleaf.com
 Emne: [Flashcoders] flash 8 security hint



 Could anyone tell me why A.swf can load B.swf, but B.swf cannot call
 scripts (php) ?
 all of these (A.swf, B.swf and scripts.php) are sitting on
 http://www.mydomain.com/anyDir/
 and are Flash 8 swfs (though it is also failing with Flash 7 swfs.
 Works with Flash 6)

 I know about local OR network access, but as these files are all
 residing on the same URL, I am wondering what is fail the B.swf
 scripts execution ?

 ?

 Cedric
 ___
 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: SV: [Flashcoders] flash 8 security hint

2006-01-12 Thread Cédric Muller

Yes I already corrected  around always (allways) ;)
I am loading using an absolute path (http://www.mydomain/anyDir/ 
myLoadedFile.swf)
and of course, no https ... so this is something  very percise, but I  
cannot seem to get the concept...sigh
my resolution for today: as I lost 1/2 day yesterday, I will put that  
aside, revert the files to flash 6 format, and keep on developing
though it would have been nice to add some v8 effects to my 'app' ...  
and to be 2005 :-)


I will get back to the list once I can show a sample of my problems ...
;)
thanks
Cedric


You did try without the ' around always...should have been:

param name=allowScriptAccess value=allways

You probably already noticed that :)

That would be my guess but your right in your assumptions though.

What about creating a basic sample does that work for you?
How are you loading swfB into swf A? Is it a relative url on https  
or so?


Cheers Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:flashcoders- 
[EMAIL PROTECTED] På vegne af Cédric Muller

Sendt: 12. januar 2006 09:19
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] flash 8 security hint

Hi Martin!

I tried and nothing new ... (spent the whole evening trying to
understand)
actually, all of these are on the same domain, so NO security
restriction should arise ...
then this works when published to flash player 6 format,
hence meaning this is some funky 7 and/or 8 constraints ...
then I read both technical papers (40 pages!!) and nothing 

I have been doing crossdomain.xml + other security things (even
https) for more than 4 years now ...
and I am all lost ;)

all I know is that A.swf loads in B.swf which in  turn calls a method
on A.swf ..

Cedric


What about your object tag? Does it contain the following param
element ?

param name=allowScriptAccess value='allways'

/Martin



Fra: [EMAIL PROTECTED] på vegne af Cédric
Muller
Sendt: on 11-01-2006 15:51
Til: Flashcoders@chattyfig.figleaf.com
Emne: [Flashcoders] flash 8 security hint



Could anyone tell me why A.swf can load B.swf, but B.swf cannot call
scripts (php) ?
all of these (A.swf, B.swf and scripts.php) are sitting on
http://www.mydomain.com/anyDir/
and are Flash 8 swfs (though it is also failing with Flash 7 swfs.
Works with Flash 6)

I know about local OR network access, but as these files are all
residing on the same URL, I am wondering what is fail the B.swf
scripts execution ?

?

Cedric
___
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 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] [ANN] FlashDevelop beta8 release

2006-01-12 Thread Philippe
Hello coders,

FlashDevelop is an opensource lighweight  smart Flash development
environment (AS, XML, HTML/PHP, CSS, JS), created by Flash coders to
be easily used with your Flash IDE or as a seemlessly integrated
MTASC+SWFMILL solution.

The team is proud to announce the new beta8 release, with lots
improvements thanks to a growing community of FlashDevelop users and
developers.

Beta8 changes  download (2.2MB):
http://www.flashdevelop.org/community/viewtopic.php?t=164

Features:
http://www.flashdevelop.org/community/viewtopic.php?t=23
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?


PR

Martin Baltzer a écrit :


Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any https page on the server do you get an alert the first time in the session? If so flash don't like that and you need to install the certificate first if possible. Another solution is to hit any https page on the server before launching your flash app because the alert only happens the first time in the session. 


/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :

 

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate



   


Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

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

 



SV: SV: SV: [Flashcoders] certificate

2006-01-12 Thread Martin Baltzer
Because changing protocol, port or server makes flash thinks its crossing 
domains :)

So you still have a crossdomain issue and need to be aware of possible 
inSecuredomain issues!

1.Go back and try http to http on different servers! If it works crossdomain 
issues should be ok

2. If step 1 works then try to switch vack to load from https and see what 
happens.

/Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:05
Til: Flashcoders mailing list
Emne: Re: SV: SV: [Flashcoders] certificate

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?

PR

Martin Baltzer a écrit :

Oh yes and it is actually a bit har d to tell you where exactly things may 
fall apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any 
https page on the server do you get an alert the first time in the session? If 
so flash don't like that and you need to install the certificate first if 
possible. Another solution is to hit any https page on the server before 
launching your flash app because the alert only happens the first time in the 
session. 

/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?

PR



Martin Baltzer a écrit :

  

Yes flash in Internet Explorer has serious problems with self signed or 3. 
party ssl certificates. If the certificate is a valid one (by Verisign) there 
are no issues. 

The problem is actually that when flash makes the request through IE the 
browser thinks the https page is already expired when it receives it and 
therefore it won't return it to flash. 

This is only an issue in Internet Explorer but it can be fixed if proper 
cache headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   


Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 

I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really 
to create an html page and call your webservice using a form post and make 
sure the certificates are working within the browser and the webserver BEFORE 
you try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created 
it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate

 



Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call 

Re: SV: SV: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Ok, thank you very much Martin Baltzer
We will have first to connect the application to the webservices as ths 
ws calls run, and after this we'll try your method.
I just didn't understand why you set the allow-access-from tag to 
false? it concerns the caller? Will this false value allow the 
secured domain to accept requests from unsecured ones?

Thx once more,
PR


Martin Baltzer a écrit :


Because changing protocol, port or server makes flash thinks its crossing 
domains :)

So you still have a crossdomain issue and need to be aware of possible 
inSecuredomain issues!

1.Go back and try http to http on different servers! If it works crossdomain 
issues should be ok

2. If step 1 works then try to switch vack to load from https and see what 
happens.

/Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:05
Til: Flashcoders mailing list
Emne: Re: SV: SV: [Flashcoders] certificate

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?


PR

Martin Baltzer a écrit :

 


Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any https page on the server do you get an alert the first time in the session? If so flash don't like that and you need to install the certificate first if possible. Another solution is to hit any https page on the server before launching your flash app because the alert only happens the first time in the session. 


/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :



   

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.


SV: SV: SV: SV: [Flashcoders] certificate

2006-01-12 Thread Martin Baltzer
Yes exactly

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:25
Til: Flashcoders mailing list
Emne: Re: SV: SV: SV: [Flashcoders] certificate

Ok, thank you very much Martin Baltzer
We will have first to connect the application to the webservices as ths 
ws calls run, and after this we'll try your method.
I just didn't understand why you set the allow-access-from tag to 
false? it concerns the caller? Will this false value allow the 
secured domain to accept requests from unsecured ones?
Thx once more,
PR


Martin Baltzer a écrit :

Because changing protocol, port or server makes flash thinks its crossing 
domains :)

So you still have a crossdomain issue and need to be aware of possible 
inSecuredomain issues!

1.Go back and try http to http on different servers! If it works crossdomain 
issues should be ok

2. If step 1 works then try to switch vack to load from https and see what 
happens.

/Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:05
Til: Flashcoders mailing list
Emne: Re: SV: SV: [Flashcoders] certificate

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?

PR

Martin Baltzer a écrit :

  

Oh yes and it is actually a bit har d to tell you where exactly things may 
fall apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven 
though its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any 
https page on the server do you get an alert the first time in the session? 
If so flash don't like that and you need to install the certificate first if 
possible. Another solution is to hit any https page on the server before 
launching your flash app because the alert only happens the first time in the 
session. 

/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?

PR



Martin Baltzer a écrit :

 



Yes flash in Internet Explorer has serious problems with self signed or 3. 
party ssl certificates. If the certificate is a valid one (by Verisign) 
there are no issues. 

The problem is actually that when flash makes the request through IE the 
browser thinks the https page is already expired when it receives it and 
therefore it won't return it to flash. 

This is only an issue in Internet Explorer but it can be fixed if proper 
cache headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   


Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL 
PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 

I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really 
to create an html page and call your webservice using a form post and make 
sure the certificates are working within the 

[Flashcoders] Track key up event for simultaneously pressed keys

2006-01-12 Thread Michael Klishin

Hi,

I wonder what is the best way to capture a key-is-up event if several 
keys are pressed at once. For example if I press and hold left then 
press spacebar and release it onKeyUp won't fire till I release left key


Thanks in advance!

16:31, 12.01.2006
--
Michael Antares Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Duplicating an object without pointing to originalone

2006-01-12 Thread zwetan

Rajat Paharia [EMAIL PROTECTED] wrote:
 I use this function (think I got it from Darron Schall's blog) to do a
deep
 copy. I had the same experience as Jesse with mx.utils.ObjectCopy not
 working correctly...

ok ... and ?

either the mx.utils.ObjectCopy or the function you pasted CopyObject
have nothing to do with how the copy method is implemented in core2

|  http://www.burrrn.com/projects/core2.html

in core2, polymorphism is used

the 2 function you talk about are put-all-in-one-function
and not polymorphic at all

zwetan



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


Re: SV: SV: SV: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Superb!
I thank all of you for your help!


Martin Baltzer a écrit :


Yes exactly

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:25
Til: Flashcoders mailing list
Emne: Re: SV: SV: SV: [Flashcoders] certificate

Ok, thank you very much Martin Baltzer
We will have first to connect the application to the webservices as ths 
ws calls run, and after this we'll try your method.
I just didn't understand why you set the allow-access-from tag to 
false? it concerns the caller? Will this false value allow the 
secured domain to accept requests from unsecured ones?

Thx once more,
PR


Martin Baltzer a écrit :

 


Because changing protocol, port or server makes flash thinks its crossing 
domains :)

So you still have a crossdomain issue and need to be aware of possible 
inSecuredomain issues!

1.Go back and try http to http on different servers! If it works crossdomain 
issues should be ok

2. If step 1 works then try to switch vack to load from https and see what 
happens.

/Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 14:05
Til: Flashcoders mailing list
Emne: Re: SV: SV: [Flashcoders] certificate

Thanks a lot, Martin!
I don't call a swf from antoher, I will have a project on a http:1024 
server and will call webservices on another server, on https:8443. The 
next version will have a Flash Media Server between the 2 others.
We've finally found the problem !! it works now but there's still 
something not very clear.
There were 2 problems : the developper by the customer had told me that 
he had put the crossdomain.xml in the root folder, but he did in the 
project root folder, not the server one... 2 days to find this out ... 
argh !!
The ohter thing is the strange one : to make it run, my html page 
holding the calling swf has to be also on a https:8443 server also !! 
Even if it's antoher server, ohter domain, etc... if I change the port 
or let it without https, I doesn't work why?


PR

Martin Baltzer a écrit :



   


Oh yes and it is actually a bit har d to tell you where exactly things may fall 
apart:)

1. make sure that the crossdomain file responds on both http and https. Makes 
sure that the secure attribute is set to false
allow-access-from domain=domainA secure=false /

2. If you have a swf on http loading in a swf or service on https you must 
declare System.security.allowInsecureDomain() inside the http swf ewven though 
its on the same domain (flash does not treat http://domain.com and 
https://domain.com equally)

3. Did you install your self signed certicate in the browser? If you hit any https page on the server do you get an alert the first time in the session? If so flash don't like that and you need to install the certificate first if possible. Another solution is to hit any https page on the server before launching your flash app because the alert only happens the first time in the session. 


/Martin

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af PR Durand
Sendt: 12. januar 2006 10:11
Til: Flashcoders mailing list
Emne: Re: SV: [Flashcoders] certificate

Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :



  

 

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your 

Re: [Flashcoders] [ANN] FlashDevelop beta8 release

2006-01-12 Thread Oleg Filipchuk
Thanks for info and new release Phillipe.
It's really great develop IDE.
The only thing I miss comparing to PrimalScript (that I've been using before
I've got known FlashDevelop ) is creating project from existing directory.

Oleg.

On 1/12/06, Philippe [EMAIL PROTECTED] wrote:

 Hello coders,

 FlashDevelop is an opensource lighweight  smart Flash development
 environment (AS, XML, HTML/PHP, CSS, JS), created by Flash coders to
 be easily used with your Flash IDE or as a seemlessly integrated
 MTASC+SWFMILL solution.

 The team is proud to announce the new beta8 release, with lots
 improvements thanks to a growing community of FlashDevelop users and
 developers.

 Beta8 changes  download (2.2MB):
 http://www.flashdevelop.org/community/viewtopic.php?t=164

 Features:
 http://www.flashdevelop.org/community/viewtopic.php?t=23
 ___
 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] TreeDataProvider - There is no method with thename'addTreeNode' - SOLVED

2006-01-12 Thread Johannes Nel
yeah its a sollution, but a baaad habit to get into.

On 1/11/06, Andreas Weber [EMAIL PROTECTED] wrote:

 Thanks Derek - that's it!

 Not typing the dataprovider as XML allows to publish for Player 7:

 import mx.controls.Tree;

 class Test{
 function Test(){
 // Published for Player 7. Error: There is no method
 with the name 'addTreeNode'.
 //var myTreeDP:XML = new XML();

 // Compiles fine when not typed as XML
 var myTreeDP = new XML();
 myTreeDP.addTreeNode(node, 0);
 }
 }

 Cheers!

 --
 Andreas Weber
 motiondraw.com


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Derek
 Lords
 Sent: Donnerstag, 12. Januar 2006 05:11
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] TreeDataProvider - There is no method with
 thename'addTreeNode'


 missing intrinsic class issue good guess.This happened to me upon
 upgrading to Flash 8.  I had to downgrade each instance to an Object and
 the
 problem went away.






 From: Andreas Weber [EMAIL PROTECTED]
 Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 To: Flashcoders flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] TreeDataProvider - There is no method with the
 name'addTreeNode'
 Date: Wed, 11 Jan 2006 16:13:26 +0100
 
 With a Tree component on stage and this framecode
 
var myTreeDP:XML = new XML();
myTreeDP.addTreeNode(node, 0);
 
 the TreeDataProvider API works fine.
 
 However, the same code in a class
 
class Test{
function Test(){
var myTreeDP:XML = new XML();
myTreeDP.addTreeNode(node, 0);
}
}
 
 instantiated from a .fla that has a Tree component on stage, throws a
 compiler error:
 
There is no method with the name 'addTreeNode'
 
 Is this a missing intrinsic class issue? Workarounds? (don't have any
 luck with avoiding the compiler error through Array access syntax: no
 error, but no node is added).
 
 Cheers!
 
 --
 Andreas Weber
 motiondraw.com
 

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




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


[Flashcoders] [ANN] FlashDevelop beta8 release

2006-01-12 Thread Philippe
The only thing I miss comparing to PrimalScript (that I've been using before
I've got known FlashDevelop ) is creating project from existing directory.

It is actually possible to do that:
just create an empty project in an existing directory.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] priority for downloading content

2006-01-12 Thread Ramon Tayag
   Question #1:
   I'd like to set some kind of priority for content, sound etc. so
   if, say, there's a need to download important content, less
   important content won't start loading?
   Note: I know about queues, but need smth different.

Question #2:
Is there a way to stop downloading (of less important) content and
start again later?


   Thanks in advance.

I made this SupreLoader class that loads different files that are
listed down in an xml.  It's relies on the fact that the user's
computer will cache it, so when the user actually requests that file,
it needn't be downloaded anymore.

It can be told to halt() when the downloading should be stopped (like
you need to download something more imp't).  However, telling it to
stop for everything you want to prioritize, then telling it to
continue when ur done downloading is rather tedious.  Furthermore, you
cannot stop a download that has already started (save for closing the
flash movie) - so the SupreLoader will only not continue downloading
the next item in the queue.

I tried to make it automatic, but unfortunately, there is no way to
find out if you wish to remain within Flash.  Outside of Flash, I
wouldn't know.



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Dennis Hart
I am having a problem with adding a text field to an attached movieClip
through a class construct using composition.

For example:

class Tab {
public var label_txt:TextField;
public var tab_fmt:TextFormat;

public function Tab(name:String, target:MovieClip, depth:Number,
x:Number, y:Number) {
tab_mc = target.attachMovie(Tab, name, depth);
}

public function addText():Void {

//Text Format for buttons
tab_mc.tab_fmt = new TextFormat();
tab_mc.tab_fmt.font = ArialBold;
tab_mc.tab_fmt.color = 0x00;
tab_mc.tab_fmt.size = 11;

tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
tab_mc.label_txt.border = true;
tab_mc.label_txt.autoSize = true;
tab_mc.label_txt.multiline = false;
tab_mc.label_txt.text = Test String;
tab_mc.label_txt.antiAliasType = advanced;
tab_mc.label_txt.embedFonts = true;
tab_mc.label_txt.setTextFormat(tab_fmt);

}

public function setPosition(x:Number, y:Number):Void {
tab_mc._x = x;
tab_mc._y = y;
}

}

For testing this, I created an instance of the class on frame 1 then a few
frames later, I have tried both of the two methods. The setPosition method
works handily, but that text field simply refuses to exist.

The addText method works fine when the class extends MovieClip and the
target is set to this. . . So what is it that I am doing wrong or don't
quite understand?

Thanks

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


Re: SV: [Flashcoders] certificate

2006-01-12 Thread grant

One issue I had with internet exploder was the first time I did an https call 
instead of hitting the server I was asking it to hit, it went to the windows 
update site to see if there were any updates due, I still haven't figured out 
why it did this, and this was looking at the http traffic from the browser with 
a proxy...  I had no issues with firefox.

Grant.




- Original Message -
From: Martin Baltzer [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/12/06 2:07 AM
Subject: SV: [Flashcoders] certificate

 Yes flash in Internet Explorer has serious problems with self signed or 3. 
 party ssl certificates. If the certificate is a valid one (by Verisign) there 
 are no issues. 
 
 The problem is actually that when flash makes the request through IE the 
 browser thinks the https page is already expired when it receives it and 
 therefore it won't return it to flash. 
 
 This is only an issue in Internet Explorer but it can be fixed if proper 
 cache headers are being set on the serverside.
 
 In JAVA/JSP the following extra cache headers solved the problem for me :)
 
 response.setHeader(Cache-Control, no-store); 
 response.setHeader(Pragma, no-store);   
 
 
 Hope that works
 Martin
 
 
 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
 Sendt: 11. januar 2006 21:38
 Til: flashcoders@chattyfig.figleaf.com
 Emne: Re: [Flashcoders] certificate
 
 I have had some issue's with certificates and flash. 
 
 I use charles which is an http proxy to intercept the requests between the 
 browser and the server to figure out what the issue was.  1st test is really 
 to create an html page and call your webservice using a form post and make 
 sure the certificates are working within the browser and the webserver BEFORE 
 you try and use the service from flash.
 
 There is cheap http proxy thats better than charles but I forget who created 
 it.
 
 ah, here is the link http://kevinlangdon.com/serviceCapture/
 
 Grant.
 
 - Original Message -
 From: PR Durand [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: 1/11/06 3:08 PM
 Subject: [Flashcoders] certificate
 
  Hi List
  It seems that I found antoher point to explain my difficulties to obtain 
  a result in connecting my WS.
  The server has a Double-side certificate. I installed the certificate on 
  firefox, so I can call correctly the https webservice via the browser, 
  on the 8448 port without any problem,
  but maybe flash can't communicate correctly?
  I thought that the browser holding the swf was the only concerned by the 
  certificate, as flash isn't seen by the servers, but only the webpage 
  holding it... am I wrong? Can Flash have problems with the certificate?
  thanks a lot
  PR
  
  ___
  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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: [Flashcoders] certificate

2006-01-12 Thread grant
Did you make sure the cross domain file is in the root folder ?

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/12/06 4:37 AM
Subject: Re: SV: [Flashcoders] certificate

 Thanks a lot for all your answers, Martin, Grant and Campbell,
 So I got a additional step: I have a domain problem now...
 the response.setHeader didn't change anything at the beginning, but may 
 help to go further. the proxy, we tried to build one yesterday, but not 
 enough time...so thanks for the link
 I got my service working on the 8443 port by uploading the swf on the 
 same server where the service is located.
 Why isn't it possible to reach it from another domain? I put the 
 crossdomain.xml on the server, is there another security rule?
 
 PR
 
 
 
 Martin Baltzer a écrit :
 
 Yes flash in Internet Explorer has serious problems with self signed or 3. 
 party ssl certificates. If the certificate is a valid one (by Verisign) 
 there are no issues. 
 
 The problem is actually that when flash makes the request through IE the 
 browser thinks the https page is already expired when it receives it and 
 therefore it won't return it to flash. 
 
 This is only an issue in Internet Explorer but it can be fixed if proper 
 cache headers are being set on the serverside.
 
 In JAVA/JSP the following extra cache headers solved the problem for me :)
 
 response.setHeader(Cache-Control, no-store); 
 response.setHeader(Pragma, no-store);   
 
 
 Hope that works
 Martin
 
 
 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL 
 PROTECTED]
 Sendt: 11. januar 2006 21:38
 Til: flashcoders@chattyfig.figleaf.com
 Emne: Re: [Flashcoders] certificate
 
 I have had some issue's with certificates and flash. 
 
 I use charles which is an http proxy to intercept the requests between the 
 browser and the server to figure out what the issue was.  1st test is really 
 to create an html page and call your webservice using a form post and make 
 sure the certificates are working within the browser and the webserver 
 BEFORE you try and use the service from flash.
 
 There is cheap http proxy thats better than charles but I forget who created 
 it.
 
 ah, here is the link http://kevinlangdon.com/serviceCapture/
 
 Grant.
 
 - Original Message -
 From: PR Durand [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: 1/11/06 3:08 PM
 Subject: [Flashcoders] certificate
 
   
 
 Hi List
 It seems that I found antoher point to explain my difficulties to obtain 
 a result in connecting my WS.
 The server has a Double-side certificate. I installed the certificate on 
 firefox, so I can call correctly the https webservice via the browser, 
 on the 8448 port without any problem,
 but maybe flash can't communicate correctly?
 I thought that the browser holding the swf was the only concerned by the 
 certificate, as flash isn't seen by the servers, but only the webpage 
 holding it... am I wrong? Can Flash have problems with the certificate?
 thanks a lot
 PR
 
 ___
 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 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] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Robert A. Colvin
You will need to use a separate function say :
Public function applyText(name:String, target:MovieClip, depth:Number,
x:Number, y:Number){

tab_mc = target.attachMovie(Tab, name, depth);
}
Don't forget if you are attaching this class to the library symbol, the
first time it is used will instantiate the class only once.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Hart
Sent: Thursday, January 12, 2006 10:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Adding Texfield to MovieClip via Composition
Class

I am having a problem with adding a text field to an attached movieClip
through a class construct using composition.

For example:

class Tab {
public var label_txt:TextField;
public var tab_fmt:TextFormat;

public function Tab(name:String, target:MovieClip, depth:Number,
x:Number, y:Number) {
tab_mc = target.attachMovie(Tab, name, depth);
}

public function addText():Void {

//Text Format for buttons
tab_mc.tab_fmt = new TextFormat();
tab_mc.tab_fmt.font = ArialBold;
tab_mc.tab_fmt.color = 0x00;
tab_mc.tab_fmt.size = 11;

tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
tab_mc.label_txt.border = true;
tab_mc.label_txt.autoSize = true;
tab_mc.label_txt.multiline = false;
tab_mc.label_txt.text = Test String;
tab_mc.label_txt.antiAliasType = advanced;
tab_mc.label_txt.embedFonts = true;
tab_mc.label_txt.setTextFormat(tab_fmt);

}

public function setPosition(x:Number, y:Number):Void {
tab_mc._x = x;
tab_mc._y = y;
}

}

For testing this, I created an instance of the class on frame 1 then a
few
frames later, I have tried both of the two methods. The setPosition
method
works handily, but that text field simply refuses to exist.

The addText method works fine when the class extends MovieClip and the
target is set to this. . . So what is it that I am doing wrong or
don't
quite understand?

Thanks

Dennis
___
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] Using the $ sign at the beginning of a variable

2006-01-12 Thread Ryan Luce
What does a dollar sign do at the beginning of a variable in Flash?
Anything? like Stage.$blah = rar;
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Martin Wood

looks like you need to make tab_mc a member variable of the class.

then if you are having problems try tracing tab_mc as soon as its 
created, as well as the other parameters that you are passing in. Make 
sure they all have the correct values.



Martin

Dennis Hart wrote:

I am having a problem with adding a text field to an attached movieClip
through a class construct using composition.

For example:

class Tab {
public var label_txt:TextField;
public var tab_fmt:TextFormat;


--
Martin Wood

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


RE: [Flashcoders] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Robert A. Colvin
Actually I just tried it and it worked:
class Tab {
public var label_txt:TextField;
public var tab_fmt:TextFormat;
public var tab_mc;

public function Tab(name:String, target:MovieClip,
depth:Number,x:Number, y:Number) {
tab_mc = target.attachMovie(Tab, name, depth);
}

public function addText():Void {
//Text Format for buttons
tab_mc.tab_fmt = new TextFormat();
tab_mc.tab_fmt.font = ArialBold;
tab_mc.tab_fmt.color = 0x00;
tab_mc.tab_fmt.size = 11;

tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
tab_mc.label_txt.border = true;
tab_mc.label_txt.autoSize = true;
tab_mc.label_txt.multiline = false;
tab_mc.label_txt.text = Test String;
tab_mc.label_txt.antiAliasType = advanced;
tab_mc.label_txt.embedFonts = true;
tab_mc.label_txt.setTextFormat(tab_fmt);

}

public function setPosition(x:Number, y:Number):Void {
tab_mc._x = x;
tab_mc._y = y;
}

}

And used:

var oTxt:Tab = new Tab(howdy,ds, 1);
ds.howdy.label_txt.text = new text;

Am I missing the problem?

Cheers
Robert

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
A. Colvin
Sent: Thursday, January 12, 2006 10:12 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Adding Texfield to MovieClip via Composition
Class

You will need to use a separate function say :
Public function applyText(name:String, target:MovieClip, depth:Number,
x:Number, y:Number){

tab_mc = target.attachMovie(Tab, name, depth);
}
Don't forget if you are attaching this class to the library symbol, the
first time it is used will instantiate the class only once.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Hart
Sent: Thursday, January 12, 2006 10:08 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Adding Texfield to MovieClip via Composition
Class

I am having a problem with adding a text field to an attached movieClip
through a class construct using composition.

For example:

class Tab {
public var label_txt:TextField;
public var tab_fmt:TextFormat;

public function Tab(name:String, target:MovieClip, depth:Number,
x:Number, y:Number) {
tab_mc = target.attachMovie(Tab, name, depth);
}

public function addText():Void {

//Text Format for buttons
tab_mc.tab_fmt = new TextFormat();
tab_mc.tab_fmt.font = ArialBold;
tab_mc.tab_fmt.color = 0x00;
tab_mc.tab_fmt.size = 11;

tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
tab_mc.label_txt.border = true;
tab_mc.label_txt.autoSize = true;
tab_mc.label_txt.multiline = false;
tab_mc.label_txt.text = Test String;
tab_mc.label_txt.antiAliasType = advanced;
tab_mc.label_txt.embedFonts = true;
tab_mc.label_txt.setTextFormat(tab_fmt);

}

public function setPosition(x:Number, y:Number):Void {
tab_mc._x = x;
tab_mc._y = y;
}

}

For testing this, I created an instance of the class on frame 1 then a
few
frames later, I have tried both of the two methods. The setPosition
method
works handily, but that text field simply refuses to exist.

The addText method works fine when the class extends MovieClip and the
target is set to this. . . So what is it that I am doing wrong or
don't
quite understand?

Thanks

Dennis
___
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] TreeDataProvider - There is no method with thename'addTreeNode'

2006-01-12 Thread Andreas Weber
In the light of longer compilation times and the hours wasted with issues
like this...
Shouldn't we consider the claim that strict-typing cuts down developement
time as one of those completely unfounded urban legends?
;-)

 mx.controls.treeclasses.TreeDataProvider

Sounds great, but I still don't get it to work - no compiler error, but also
no node added:

import mx.controls.treeclasses.TreeDataProvider

class Test{
function Test(){
var myTreeDP:TreeDataProvider  = TreeDataProvider(new 
XML());
myTreeDP.addTreeNode(node, 0);
trace('cast to TreeDataProvider '+myTreeDP);

// avoid Compiler error when publishing for Player 7
var myTreeDP  = new XML();
myTreeDP.addTreeNode(node, 0);
trace('untyped '+myTreeDP);
}
}

Output:
cast to TreeDataProvider   null
untypednode data=0 label=node /



Cheers!

--
Andreas Weber
motiondraw.com




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Johannes
Nel
Sent: Thursday, January 12, 2006 3:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TreeDataProvider - There is no method with
thename'addTreeNode'


mx.controls.treeclasses.TreeDataProvider

you need to get a good editor :)

On 1/11/06, Derek Lords [EMAIL PROTECTED] wrote:

 missing intrinsic class issue good guess.This happened to me upon
 upgrading to Flash 8.  I had to downgrade each instance to an Object and
 the
 problem went away.






 From: Andreas Weber [EMAIL PROTECTED]
 Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 To: Flashcoders flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] TreeDataProvider - There is no method with the
 name'addTreeNode'
 Date: Wed, 11 Jan 2006 16:13:26 +0100
 
 With a Tree component on stage and this framecode
 
var myTreeDP:XML = new XML();
myTreeDP.addTreeNode(node, 0);
 
 the TreeDataProvider API works fine.
 
 However, the same code in a class
 
class Test{
function Test(){
var myTreeDP:XML = new XML();
myTreeDP.addTreeNode(node, 0);
}
}
 
 instantiated from a .fla that has a Tree component on stage, throws a
 compiler error:
 
There is no method with the name 'addTreeNode'
 
 Is this a missing intrinsic class issue? Workarounds? (don't have any
 luck
 with avoiding the compiler error through Array access syntax: no error,
 but
 no node is added).
 
 Cheers!
 
 --
 Andreas Weber
 motiondraw.com
 
 



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


RE: [Flashcoders] TreeDataProvider - There is no method withthename'addTreeNode'

2006-01-12 Thread Robert A. Colvin
In todays flash player yes but with advent of AS3 the compiler will
require it to maximize engine efficiency.  I suppose you could argue
that the compiler could make those judgment calls on the fly but in many
cases it can't and won't which bloats the end result (memory
allocation/hash tables). No?


Cheers
Robert
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
Weber
Sent: Thursday, January 12, 2006 10:42 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] TreeDataProvider - There is no method
withthename'addTreeNode'

In the light of longer compilation times and the hours wasted with
issues
like this...
Shouldn't we consider the claim that strict-typing cuts down
developement
time as one of those completely unfounded urban legends?
;-)

 mx.controls.treeclasses.TreeDataProvider

Sounds great, but I still don't get it to work - no compiler error, but
also
no node added:

import mx.controls.treeclasses.TreeDataProvider

class Test{
function Test(){
var myTreeDP:TreeDataProvider  =
TreeDataProvider(new XML());
myTreeDP.addTreeNode(node, 0);
trace('cast to TreeDataProvider '+myTreeDP);

// avoid Compiler error when publishing for
Player 7
var myTreeDP  = new XML();
myTreeDP.addTreeNode(node, 0);
trace('untyped '+myTreeDP);
}
}

Output:
cast to TreeDataProvider   null
untypednode data=0 label=node /



Cheers!

--
Andreas Weber
motiondraw.com




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Johannes
Nel
Sent: Thursday, January 12, 2006 3:21 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] TreeDataProvider - There is no method with
thename'addTreeNode'


mx.controls.treeclasses.TreeDataProvider

you need to get a good editor :)

On 1/11/06, Derek Lords [EMAIL PROTECTED] wrote:

 missing intrinsic class issue good guess.This happened to me
upon
 upgrading to Flash 8.  I had to downgrade each instance to an Object
and
 the
 problem went away.






 From: Andreas Weber [EMAIL PROTECTED]
 Reply-To: Flashcoders mailing list
flashcoders@chattyfig.figleaf.com
 To: Flashcoders flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] TreeDataProvider - There is no method with
the
 name'addTreeNode'
 Date: Wed, 11 Jan 2006 16:13:26 +0100
 
 With a Tree component on stage and this framecode
 
var myTreeDP:XML = new XML();
myTreeDP.addTreeNode(node, 0);
 
 the TreeDataProvider API works fine.
 
 However, the same code in a class
 
class Test{
function Test(){
var myTreeDP:XML = new XML();
myTreeDP.addTreeNode(node, 0);
}
}
 
 instantiated from a .fla that has a Tree component on stage, throws a
 compiler error:
 
There is no method with the name 'addTreeNode'
 
 Is this a missing intrinsic class issue? Workarounds? (don't have any
 luck
 with avoiding the compiler error through Array access syntax: no
error,
 but
 no node is added).
 
 Cheers!
 
 --
 Andreas Weber
 motiondraw.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: SV: [Flashcoders] certificate

2006-01-12 Thread PR Durand

Thanx, Grant
The problem is now resolved, I've posted the explaination a little bit 
earlier...
The crossdomain file was not in the real root folder, and there was a 
port problem.

Many thanks for your help
PR

[EMAIL PROTECTED] a écrit :


Did you make sure the cross domain file is in the root folder ?

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/12/06 4:37 AM
Subject: Re: SV: [Flashcoders] certificate

 


Thanks a lot for all your answers, Martin, Grant and Campbell,
So I got a additional step: I have a domain problem now...
the response.setHeader didn't change anything at the beginning, but may 
help to go further. the proxy, we tried to build one yesterday, but not 
enough time...so thanks for the link
I got my service working on the 8443 port by uploading the swf on the 
same server where the service is located.
Why isn't it possible to reach it from another domain? I put the 
crossdomain.xml on the server, is there another security rule?


PR



Martin Baltzer a écrit :

   

Yes flash in Internet Explorer has serious problems with self signed or 3. party ssl certificates. If the certificate is a valid one (by Verisign) there are no issues. 

The problem is actually that when flash makes the request through IE the browser thinks the https page is already expired when it receives it and therefore it won't return it to flash. 


This is only an issue in Internet Explorer but it can be fixed if proper cache 
headers are being set on the serverside.

In JAVA/JSP the following extra cache headers solved the problem for me :)

response.setHeader(Cache-Control, no-store); 
response.setHeader(Pragma, no-store);   



Hope that works
Martin


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af [EMAIL PROTECTED]
Sendt: 11. januar 2006 21:38
Til: flashcoders@chattyfig.figleaf.com
Emne: Re: [Flashcoders] certificate

I have had some issue's with certificates and flash. 


I use charles which is an http proxy to intercept the requests between the 
browser and the server to figure out what the issue was.  1st test is really to 
create an html page and call your webservice using a form post and make sure 
the certificates are working within the browser and the webserver BEFORE you 
try and use the service from flash.

There is cheap http proxy thats better than charles but I forget who created it.

ah, here is the link http://kevinlangdon.com/serviceCapture/

Grant.

- Original Message -
From: PR Durand [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: 1/11/06 3:08 PM
Subject: [Flashcoders] certificate



 


Hi List
It seems that I found antoher point to explain my difficulties to obtain 
a result in connecting my WS.
The server has a Double-side certificate. I installed the certificate on 
firefox, so I can call correctly the https webservice via the browser, 
on the 8448 port without any problem,

but maybe flash can't communicate correctly?
I thought that the browser holding the swf was the only concerned by the 
certificate, as flash isn't seen by the servers, but only the webpage 
holding it... am I wrong? Can Flash have problems with the certificate?

thanks a lot
PR

___
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 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] Generic Message Prompt Design Pattern

2006-01-12 Thread Keith Salisbury
Is there a commonly used design pattern to solve the issue of a
message prompt/window which needs to act differently depending on the
message it shows.

For example,

the message might be that didnt work, do you want to try again with
two buttons, Ok and Cancel

or

the message might be well done, you did something right with just
Continue button

In the first example, there may be many occasions where a yes/no
question is asked, and the action will change each time, so it makes
sense that the prompt window simply dispatches the event, either
OK or Cancel etc and the listeners can deal with it as they see
fit.

.how do you guys solve this problem?

tia

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


Re: [Flashcoders] Using the $ sign at the beginning of a variable

2006-01-12 Thread Mike Britton
Nothing in particular - just a style of naming vars.  I don't do it
because it looks too much like PHP and I get disoriented.

I recall seeing this technique used to distinguish public from private
vars, but I think it went out of favor when AS2 came out.



On 1/12/06, Ryan Luce [EMAIL PROTECTED] wrote:
 What does a dollar sign do at the beginning of a variable in Flash?
 Anything? like Stage.$blah = rar;
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



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


Re: [Flashcoders] Generic Message Prompt Design Pattern

2006-01-12 Thread Paul BH
have you looked into the mx.controls.Alert class?

On 1/11/06, Keith Salisbury [EMAIL PROTECTED] wrote:
 Is there a commonly used design pattern to solve the issue of a
 message prompt/window which needs to act differently depending on the
 message it shows.

 For example,

 the message might be that didnt work, do you want to try again with
 two buttons, Ok and Cancel

 or

 the message might be well done, you did something right with just
 Continue button

 In the first example, there may be many occasions where a yes/no
 question is asked, and the action will change each time, so it makes
 sense that the prompt window simply dispatches the event, either
 OK or Cancel etc and the listeners can deal with it as they see
 fit.

 .how do you guys solve this problem?

 tia

 keith
 ___
 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] __junk object?

2006-01-12 Thread Pauline McNamara
Recently we were trying to debug an MX2004 fla that had components with 
bindings. We found out about the mistake you never make twice: copying and 
pasting such a binded component, but that's another story.


While looking into it using the debugger, we found an object called __junk. In 
that particular file, *all* the content had been removed, yet an error message 
was still appearing, something about an endpoint not being found (I think). And 
there was this __junk object living on _level0. Anyway, it looked kind of like 
the ghosts of these deleted components were living in an object called __junk.


Anyone ever heard of it?

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


[Flashcoders] Track key up event for simultaneously pressed keys

2006-01-12 Thread Joe Cutting


I wonder what is the best way to capture a key-is-up event if several
keys are pressed at once. For example if I press and hold left then
press spacebar and release it onKeyUp won't fire till I release left key


I always used Key.isDown() which works fine.

Have you tested that you can't detect two keys using onKeyUp?

Unfortunately Flash 8.5 is scheduled to have Key.isDown removed for 
security reasons
- there was discussion of this on the list over Christmas but we 
never got an answer from
Macrobe or anyone else as to whether it will be possible to detect 
two keys at once

using the KeyUp / KeyDown.

Cheers

Joe

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


Re: [Flashcoders] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Dennis Hart
Thanks for your help gentlemen.

I reread the code that I entered when I started this thread and realized
that I did overlook the critical public var tab_mc; in this email, however
I did in fact have it in my Tab.as file declared as -  private var
tab_mc:MovieClip; - I don't think it would have compiled otherwise.

I thought perhaps the 'private' declaration was the problem so I switched it
to 'public', but still no text field.

Robert - I created a new sandbox, added your class code below then created a
new Tab.fla in the same folder, added a new MovieClip to the Library named
Tab, exported it for ActionScript: identifier: Tab ActionScript 2.0
Class: Tab and did the same for the new font ArialBold I added to the
library - ActionScript 2.0 Class: ArialBold

Then placed your code. . .

var oTxt:Tab = new Tab(howdy,ds, 1);
ds.howdy.label_txt.text = new text;

. . . on frame one of the _root level of the tab.fla and I see nothing. .
.

Btw I am using flash 8. . . Any ideas? I am baffled.

 Actually I just tried it and it worked:
 class Tab {
   public var label_txt:TextField;
   public var tab_fmt:TextFormat;
   public var tab_mc;
   
   public function Tab(name:String, target:MovieClip,
 depth:Number,x:Number, y:Number) {
   tab_mc = target.attachMovie(Tab, name, depth);
   }
 
   public function addText():Void {
   //Text Format for buttons
   tab_mc.tab_fmt = new TextFormat();
   tab_mc.tab_fmt.font = ArialBold;
   tab_mc.tab_fmt.color = 0x00;
   tab_mc.tab_fmt.size = 11;
   
   tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
   tab_mc.label_txt.border = true;
   tab_mc.label_txt.autoSize = true;
   tab_mc.label_txt.multiline = false;
   tab_mc.label_txt.text = Test String;
   tab_mc.label_txt.antiAliasType = advanced;
   tab_mc.label_txt.embedFonts = true;
   tab_mc.label_txt.setTextFormat(tab_fmt);
 
   }
   
   public function setPosition(x:Number, y:Number):Void {
   tab_mc._x = x;
   tab_mc._y = y;
   }
   
 }
 
 And used:
 
 var oTxt:Tab = new Tab(howdy,ds, 1);
 ds.howdy.label_txt.text = new text;
 
 Am I missing the problem?
 
 Cheers
 Robert
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 A. Colvin
 Sent: Thursday, January 12, 2006 10:12 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Adding Texfield to MovieClip via Composition
 Class
 
 You will need to use a separate function say :
 Public function applyText(name:String, target:MovieClip, depth:Number,
 x:Number, y:Number){
 
   tab_mc = target.attachMovie(Tab, name, depth);
 }
 Don't forget if you are attaching this class to the library symbol, the
 first time it is used will instantiate the class only once.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Dennis
 Hart
 Sent: Thursday, January 12, 2006 10:08 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Adding Texfield to MovieClip via Composition
 Class
 
 I am having a problem with adding a text field to an attached movieClip
 through a class construct using composition.
 
 For example:
 
 class Tab {
   public var label_txt:TextField;
   public var tab_fmt:TextFormat;
   
   public function Tab(name:String, target:MovieClip, depth:Number,
 x:Number, y:Number) {
   tab_mc = target.attachMovie(Tab, name, depth);
   }
 
   public function addText():Void {
 
   //Text Format for buttons
   tab_mc.tab_fmt = new TextFormat();
   tab_mc.tab_fmt.font = ArialBold;
   tab_mc.tab_fmt.color = 0x00;
   tab_mc.tab_fmt.size = 11;
   
   tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
   tab_mc.label_txt.border = true;
   tab_mc.label_txt.autoSize = true;
   tab_mc.label_txt.multiline = false;
   tab_mc.label_txt.text = Test String;
   tab_mc.label_txt.antiAliasType = advanced;
   tab_mc.label_txt.embedFonts = true;
   tab_mc.label_txt.setTextFormat(tab_fmt);
 
   }
   
   public function setPosition(x:Number, y:Number):Void {
   tab_mc._x = x;
   tab_mc._y = y;
   }
   
 }
 
 For testing this, I created an instance of the class on frame 1 then a
 few
 frames later, I have tried both of the two methods. The setPosition
 method
 works handily, but that text field simply refuses to exist.
 
 The addText method works fine when the class extends MovieClip and the
 target is set to this. . . So what is it that I am doing wrong or
 don't
 quite understand?
 
 Thanks
 
 Dennis
 ___
 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
 

RE: [Flashcoders] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Robert A. Colvin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Hart
Sent: Thursday, January 12, 2006 11:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Adding Texfield to MovieClip via Composition
Class

Thanks for your help gentlemen.

I reread the code that I entered when I started this thread and realized
that I did overlook the critical public var tab_mc; in this email,
however
I did in fact have it in my Tab.as file declared as -  private var
tab_mc:MovieClip; - I don't think it would have compiled otherwise.

I thought perhaps the 'private' declaration was the problem so I
switched it
to 'public', but still no text field.

Robert - I created a new sandbox, added your class code below then
created a
new Tab.fla in the same folder, added a new MovieClip to the Library
named
Tab, exported it for ActionScript: identifier: Tab ActionScript 2.0
Class: Tab and did the same for the new font ArialBold I added to
the
library - ActionScript 2.0 Class: ArialBold

Then placed your code. . .

var oTxt:Tab = new Tab(howdy,ds, 1);
ds.howdy.label_txt.text = new text;

. . . on frame one of the _root level of the tab.fla and I see
nothing. .
.

Btw I am using flash 8. . . Any ideas? I am baffled.

 Actually I just tried it and it worked:
 class Tab {
   public var label_txt:TextField;
   public var tab_fmt:TextFormat;
   public var tab_mc;
   
   public function Tab(name:String, target:MovieClip,
 depth:Number,x:Number, y:Number) {
   tab_mc = target.attachMovie(Tab, name, depth);
   }
 
   public function addText():Void {
   //Text Format for buttons
   tab_mc.tab_fmt = new TextFormat();
   tab_mc.tab_fmt.font = ArialBold;
   tab_mc.tab_fmt.color = 0x00;
   tab_mc.tab_fmt.size = 11;
   
   tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
   tab_mc.label_txt.border = true;
   tab_mc.label_txt.autoSize = true;
   tab_mc.label_txt.multiline = false;
   tab_mc.label_txt.text = Test String;
   tab_mc.label_txt.antiAliasType = advanced;
   tab_mc.label_txt.embedFonts = true;
   tab_mc.label_txt.setTextFormat(tab_fmt);
 
   }
   
   public function setPosition(x:Number, y:Number):Void {
   tab_mc._x = x;
   tab_mc._y = y;
   }
   
 }
 
 And used:
 
 var oTxt:Tab = new Tab(howdy,ds, 1);
 ds.howdy.label_txt.text = new text;
 
 Am I missing the problem?
 
 Cheers
 Robert
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 A. Colvin
 Sent: Thursday, January 12, 2006 10:12 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Adding Texfield to MovieClip via
Composition
 Class
 
 You will need to use a separate function say :
 Public function applyText(name:String, target:MovieClip, depth:Number,
 x:Number, y:Number){
 
   tab_mc = target.attachMovie(Tab, name, depth);
 }
 Don't forget if you are attaching this class to the library symbol,
the
 first time it is used will instantiate the class only once.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Dennis
 Hart
 Sent: Thursday, January 12, 2006 10:08 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Adding Texfield to MovieClip via Composition
 Class
 
 I am having a problem with adding a text field to an attached
movieClip
 through a class construct using composition.
 
 For example:
 
 class Tab {
   public var label_txt:TextField;
   public var tab_fmt:TextFormat;
   
   public function Tab(name:String, target:MovieClip, depth:Number,
 x:Number, y:Number) {
   tab_mc = target.attachMovie(Tab, name, depth);
   }
 
   public function addText():Void {
 
   //Text Format for buttons
   tab_mc.tab_fmt = new TextFormat();
   tab_mc.tab_fmt.font = ArialBold;
   tab_mc.tab_fmt.color = 0x00;
   tab_mc.tab_fmt.size = 11;
   
   tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
   tab_mc.label_txt.border = true;
   tab_mc.label_txt.autoSize = true;
   tab_mc.label_txt.multiline = false;
   tab_mc.label_txt.text = Test String;
   tab_mc.label_txt.antiAliasType = advanced;
   tab_mc.label_txt.embedFonts = true;
   tab_mc.label_txt.setTextFormat(tab_fmt);
 
   }
   
   public function setPosition(x:Number, y:Number):Void {
   tab_mc._x = x;
   tab_mc._y = y;
   }
   
 }
 
 For testing this, I created an instance of the class on frame 1 then a
 few
 frames later, I have tried both of the two methods. The setPosition
 method
 works handily, but that text field simply refuses to exist.
 
 The addText method works fine when the class extends MovieClip and
the
 target is set to this. . . So what is it that I am doing wrong or
 don't
 quite understand?
 
 Thanks
 
 Dennis
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 

RE: [Flashcoders] Adding Texfield to MovieClip via Composition Class

2006-01-12 Thread Robert A. Colvin
Contact me off list and I will send you the Fla as files I used.

cheers

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Hart
Sent: Thursday, January 12, 2006 11:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Adding Texfield to MovieClip via Composition
Class

Thanks for your help gentlemen.

I reread the code that I entered when I started this thread and realized
that I did overlook the critical public var tab_mc; in this email,
however
I did in fact have it in my Tab.as file declared as -  private var
tab_mc:MovieClip; - I don't think it would have compiled otherwise.

I thought perhaps the 'private' declaration was the problem so I
switched it
to 'public', but still no text field.

Robert - I created a new sandbox, added your class code below then
created a
new Tab.fla in the same folder, added a new MovieClip to the Library
named
Tab, exported it for ActionScript: identifier: Tab ActionScript 2.0
Class: Tab and did the same for the new font ArialBold I added to
the
library - ActionScript 2.0 Class: ArialBold

Then placed your code. . .

var oTxt:Tab = new Tab(howdy,ds, 1);
ds.howdy.label_txt.text = new text;

. . . on frame one of the _root level of the tab.fla and I see
nothing. .
.

Btw I am using flash 8. . . Any ideas? I am baffled.

 Actually I just tried it and it worked:
 class Tab {
   public var label_txt:TextField;
   public var tab_fmt:TextFormat;
   public var tab_mc;
   
   public function Tab(name:String, target:MovieClip,
 depth:Number,x:Number, y:Number) {
   tab_mc = target.attachMovie(Tab, name, depth);
   }
 
   public function addText():Void {
   //Text Format for buttons
   tab_mc.tab_fmt = new TextFormat();
   tab_mc.tab_fmt.font = ArialBold;
   tab_mc.tab_fmt.color = 0x00;
   tab_mc.tab_fmt.size = 11;
   
   tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
   tab_mc.label_txt.border = true;
   tab_mc.label_txt.autoSize = true;
   tab_mc.label_txt.multiline = false;
   tab_mc.label_txt.text = Test String;
   tab_mc.label_txt.antiAliasType = advanced;
   tab_mc.label_txt.embedFonts = true;
   tab_mc.label_txt.setTextFormat(tab_fmt);
 
   }
   
   public function setPosition(x:Number, y:Number):Void {
   tab_mc._x = x;
   tab_mc._y = y;
   }
   
 }
 
 And used:
 
 var oTxt:Tab = new Tab(howdy,ds, 1);
 ds.howdy.label_txt.text = new text;
 
 Am I missing the problem?
 
 Cheers
 Robert
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Robert
 A. Colvin
 Sent: Thursday, January 12, 2006 10:12 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Adding Texfield to MovieClip via
Composition
 Class
 
 You will need to use a separate function say :
 Public function applyText(name:String, target:MovieClip, depth:Number,
 x:Number, y:Number){
 
   tab_mc = target.attachMovie(Tab, name, depth);
 }
 Don't forget if you are attaching this class to the library symbol,
the
 first time it is used will instantiate the class only once.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Dennis
 Hart
 Sent: Thursday, January 12, 2006 10:08 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Adding Texfield to MovieClip via Composition
 Class
 
 I am having a problem with adding a text field to an attached
movieClip
 through a class construct using composition.
 
 For example:
 
 class Tab {
   public var label_txt:TextField;
   public var tab_fmt:TextFormat;
   
   public function Tab(name:String, target:MovieClip, depth:Number,
 x:Number, y:Number) {
   tab_mc = target.attachMovie(Tab, name, depth);
   }
 
   public function addText():Void {
 
   //Text Format for buttons
   tab_mc.tab_fmt = new TextFormat();
   tab_mc.tab_fmt.font = ArialBold;
   tab_mc.tab_fmt.color = 0x00;
   tab_mc.tab_fmt.size = 11;
   
   tab_mc.createTextField(label_txt, 20, 0, 0, 0, 0);
   tab_mc.label_txt.border = true;
   tab_mc.label_txt.autoSize = true;
   tab_mc.label_txt.multiline = false;
   tab_mc.label_txt.text = Test String;
   tab_mc.label_txt.antiAliasType = advanced;
   tab_mc.label_txt.embedFonts = true;
   tab_mc.label_txt.setTextFormat(tab_fmt);
 
   }
   
   public function setPosition(x:Number, y:Number):Void {
   tab_mc._x = x;
   tab_mc._y = y;
   }
   
 }
 
 For testing this, I created an instance of the class on frame 1 then a
 few
 frames later, I have tried both of the two methods. The setPosition
 method
 works handily, but that text field simply refuses to exist.
 
 The addText method works fine when the class extends MovieClip and
the
 target is set to this. . . So what is it that I am doing wrong or
 don't
 quite understand?
 
 Thanks
 
 Dennis
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 

[Flashcoders] private - public

2006-01-12 Thread PR Durand

Hi list
I've already posted this problem, and you have answered me, but the 
problem is back, and I did what you told me.


I've got my core class : Core.as containing this

import myProjetPath.proxy.CommandManager;
class Core
{
private var oCM:CommandManager
   [...]
   function Core()
   {
  this.oCM = new CommandManager(this);
   }
}

so You've seen that CommandManager is linked by the private var oCM

in my fla, in the root timeline, I've written:
import myProjectPath.Core;
var oCore:Core = new Core();

and I tried to call a public method AddEvent in the CommandManager 
like this:

_root.oCore.oCM.AddEvent(oParams);
and it worked, even if oCM is private !!! It should not accept this line!
why does it work please?
You've told me that my oCore prop wasn't typed because it was formerly 
_root.oCore = new Core(), but now I've typed it...


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


RE: [Flashcoders] Using the $ sign at the beginning of a variable

2006-01-12 Thread Merrill, Jason
I've also seen people use $ for string variables.  As far as
Actionscript is concerned, it's just a style of coding, really.  

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Jason Lutes
Sent: Wednesday, January 11, 2006 9:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Using the $ sign at the beginning of a
variable

 What does a dollar sign do at the beginning of a variable in Flash?
 Anything? like Stage.$blah = rar;

It's legal, and benign, to prefix identifiers with '$'.

I use it in my code to identify the scope of a variable -- either
_global
or class-specific (private). I find it useful to hang a '$_' prefix on
variables within a certain scope, not only to distinguish them a
little,
but to make it easier to do certain things that utilize them, like
create
accessor methods without having to invent a completely new name.

example:

private var $_someVariable:String;

public function get someVariable():String {
  return $_someVariable;
}

public function set someVariable(value:String):Void{
  $_someVariable = value;
}



-
pixelTwiddler, a.k.a. Jason

Respect yourself, and THINK about stuff.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Track key up event for simultaneously pressed keys

2006-01-12 Thread GregoryN
Michael,

The only way I can suggest at the moment is onEnterFrame/interval
function checking which keys are still pressed.
When key is pressed (onKeyDown), you can write it's name/code into
array and check just this array later.
There's a nice Guy Watson's code at proto.layer51.com that Returns
the last key pressed.



-- 
Best regards,
 GregoryN

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

 -- Michael Klishin wrote:
 I wonder what is the best way to capture a key-is-up event if several
 keys are pressed at once. For example if I press and hold left then
 press spacebar and release it onKeyUp won't fire till I release left key


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


Re: [Flashcoders] priority for downloading content

2006-01-12 Thread GregoryN
Thanks for your answer, Ramon.

I was thinking of writing such class myself...
But, in fact, I need some different solution rather than superb loading
queue :-).

Maybe I'll try to delete sound object which is downloading the mp3
track, - what do you think ?
Yes, it's the most common case in this project: some music is
downloading and this prevents/slow loading more imp't content.
Ideally, I'd like to cancel loading music in this case.

-- 
Best regards,
 GregoryN

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


 --- Ramon Tayag wrote:

 I made this SupreLoader class that loads different files that are
 listed down in an xml.  It's relies on the fact that the user's
 computer will cache it, so when the user actually requests that file,
 it needn't be downloaded anymore.
 
 It can be told to halt() when the downloading should be stopped (like
 you need to download something more imp't).  However, telling it to
 stop for everything you want to prioritize, then telling it to
 continue when ur done downloading is rather tedious.  Furthermore, you
 cannot stop a download that has already started (save for closing the
 flash movie) - so the SupreLoader will only not continue downloading
 the next item in the queue.
 
 I tried to make it automatic, but unfortunately, there is no way to
 find out if you wish to remain within Flash.  Outside of Flash, I
 wouldn't know.
 
 
 
 --
 Ramon Miguel M. Tayag


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


[Flashcoders] Flash Lite 2.0 phone list

2006-01-12 Thread Joe Cutting
Well I've installed the Flash Lite 2.0 and one of the more 
interesting parts is the long list
of possible Test Devices. Now it shows you the Nokia ones which are 
on the website,
but greyed out there are also about 15 different phone manufacturers 
and a long list of phones, including
even some extra Nokia ones. Presumably this is a list of all the 
existing Symbian phones.


Now as far as I can see this list could be

- All the phones that could be supported using the current technology 
once distribution deals

with the manufacturers are sorted out

- All the phones that the current player will run on once the current 
testing period

is over.

- All the phones that the Flash Lite 2.0 player could be ported to if 
someone pays

Macrobe to do it.

Which of these applies will make a big difference to the speed of adoption - if
the current player will be released for all these models in a few months then
this could become quite big pretty quickly - otherwise its going to 
take a while.


Can anyone shed any light on this?

Cheers

Joe

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


Re: [Flashcoders] TreeDataProvider - There is no method with thename'addTreeNode'

2006-01-12 Thread Johannes Nel
I warned you it ight fail silently with a cast (a failed cast always returns
a null) . the cleanest sollution is to extend xmlNode implement that
interface and proxy those methods defined on the interface to the xmlNode
methods. this might seem like a fair bit more work, but down the line it
makes your code much more maintainable. if you want quicker compilation
times use mtasc -keep, but doing things right is a good habit to get into.

On 1/12/06, Andreas Weber [EMAIL PROTECTED] wrote:

 In the light of longer compilation times and the hours wasted with issues
 like this...
 Shouldn't we consider the claim that strict-typing cuts down developement
 time as one of those completely unfounded urban legends?
 ;-)

  mx.controls.treeclasses.TreeDataProvider

 Sounds great, but I still don't get it to work - no compiler error, but
 also
 no node added:

 import mx.controls.treeclasses.TreeDataProvider

 class Test{
 function Test(){
 var myTreeDP:TreeDataProvider  =
 TreeDataProvider(new XML());
 myTreeDP.addTreeNode(node, 0);
 trace('cast to TreeDataProvider '+myTreeDP);

 // avoid Compiler error when publishing for Player
 7
 var myTreeDP  = new XML();
 myTreeDP.addTreeNode(node, 0);
 trace('untyped '+myTreeDP);
 }
 }

 Output:
 cast to TreeDataProvider   null
 untypednode data=0 label=node /



 Cheers!

 --
 Andreas Weber
 motiondraw.com




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Johannes
 Nel
 Sent: Thursday, January 12, 2006 3:21 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] TreeDataProvider - There is no method with
 thename'addTreeNode'


 mx.controls.treeclasses.TreeDataProvider

 you need to get a good editor :)

 On 1/11/06, Derek Lords [EMAIL PROTECTED] wrote:
 
  missing intrinsic class issue good guess.This happened to me upon
  upgrading to Flash 8.  I had to downgrade each instance to an Object and
  the
  problem went away.
 
 
 
 
 
 
  From: Andreas Weber [EMAIL PROTECTED]
  Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  To: Flashcoders flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] TreeDataProvider - There is no method with the
  name'addTreeNode'
  Date: Wed, 11 Jan 2006 16:13:26 +0100
  
  With a Tree component on stage and this framecode
  
 var myTreeDP:XML = new XML();
 myTreeDP.addTreeNode(node, 0);
  
  the TreeDataProvider API works fine.
  
  However, the same code in a class
  
 class Test{
 function Test(){
 var myTreeDP:XML = new XML();
 myTreeDP.addTreeNode(node, 0);
 }
 }
  
  instantiated from a .fla that has a Tree component on stage, throws a
  compiler error:
  
 There is no method with the name 'addTreeNode'
  
  Is this a missing intrinsic class issue? Workarounds? (don't have any
  luck
  with avoiding the compiler error through Array access syntax: no error,
  but
  no node is added).
  
  Cheers!
  
  --
  Andreas Weber
  motiondraw.com
  
  



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




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


[Flashcoders] 3rd Party Data aware components

2006-01-12 Thread Dennis Landi
 Hello, 
  
  I am currently look at Mettaliq's MCom components at 
http://www.metaliq.com/mcom/ 
  
  Any recommendations for other 3rd Party Data aware components?  Thanks.
  
  -d
  
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] List Components, matrix data, and object properties

2006-01-12 Thread Lance Massey
I create a playlist which is an array of tracks. Each track has a  
title, an id, an artist, and a URL. Magically, when I set my List  
Component's dataProvider to playlist, it shows all the titles. But  
the real miracle is that when I click on a title all the track  
properties corresponding to that title are available.


Does this means the List component holds 2D data (I thought is was a  
list only)? And is it safe to assume this is not anomalous behavior,  
but something I can count on for the future (because this *really*  
makes life much easier)?


L

GorillaPop - Connecting People Through Music
http://www.gorillapop.com/

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


Re: OT [Flashcoders] Flash 8 and Rosetta -- MacIntel

2006-01-12 Thread John Dowdell

Sander wrote:
Think further. For years the Flash plugin on Mac has been a joke,  
partly due to the fact the market is too small to optimize the code  
further for a small platform.


For what it's worth, each of the prior few Player versions has had 
specific extra investment in optimization for Macintosh.


This was made more difficult by various browser differences, however:
http://weblogs.macromedia.com/emmy/archives/2005/11/firefox_15_avai.cfm

jd





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


Re: [Flashcoders] Flash 8 v2 Components Bug-fixes / Updates List

2006-01-12 Thread Joseph Balderson

Anyone?

Does such a list exist?


Thanks,
Joseph

Joseph Balderson wrote:
I've been looking for several days now, and I cannot seem to find a bug 
fix list for the v2 components that ship with flash 8 anywhwere. I keep 
seeing references that the standard v2 components have had certain bugs 
fixed in flash 8, and I would like to find a definitive list of 
changes/updates/bug fixes made to the v2 components in Flash 8 from MX04.


Anyone know where I could find such a comprehensive list?



Joseph Balderson
Interactive Media Design  Development
http://www.joeflash.ca

Faculty Member, Flash Development,
Humber College School of Media Studies
http://mediastudies.humber.ca

___
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: FW: [Flashcoders] Multi Color Gradient

2006-01-12 Thread Steve Felt
I just went through this. Here's my code. It's a function that accesses
a stylesheet, so it's got a little more than you need, but I hope it
will help:


function initDrawBg(theTarg)
{
var gradient_color_1 =
convertColor(_root.defaultStyleSheet.getStyle('.gradient_color_1').color);
var gradient_color_2 =
convertColor(_root.defaultStyleSheet.getStyle('.gradient_color_2').color);
var gradient_color_3 =
convertColor(_root.defaultStyleSheet.getStyle('.gradient_color_3').color);

theTarg.beginGradientFill(
// gradient type, radial or linear
linear,

// colors, hex
//[0xff,0x00ff00,0xff],
[gradient_color_1,gradient_color_2,gradient_color_3],

// alphas (0-100 100 == opaque)
[100,100,100],

// ratios (location from 0 to 255, in hex
[0x00,0x80,0xff],

// matrix controlling gradient location, size, and rotation (in
radians)
{ matrixType:box, x:-50, y:0, w:750, h:575, r: 1.9 }
);

// draw the bounding box
theTarg.moveTo(0,0);
theTarg.lineTo(750,0);
theTarg.lineTo(750,575);
theTarg.lineTo(0,575);
theTarg.lineTo(0,0);
}

// take a string like #ffcc00
// convert it to hex  0xffcc00
function convertColor(color)
{
return Number(0x + color.substring(1));
}


Hope this helps,

-steve

On Wed, 2006-01-11 at 00:41, rishi wrote:
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Sumeet
 Kumar
 Sent: Tuesday, January 10, 2006 6:35 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Multi Color Gradient
 
 Hi All,
 
  
 
 I want to create a multicolored gradient dynamically where I can specify
 ratios for each color in my gradient fill.
 
 Any suggestion will be great help to me 
 
  
 
 
 
 Regards
 
 Sumeet Kumar
 
  
 
 
 
 ___
 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] CSS Drop Down Menu Flicker In Safari When Over Flash File

2006-01-12 Thread Salazar, Man
I am working on a very clean rendition of the Suckerfish CSS drop down
menu, but am getting a flicker when the menu is over a flash file in
Safari. Does anyone have a fix for DHTML over flash?
 
Sincerely,
Man Salazar
Web Programmer, Academy of Art University
) [EMAIL PROTECTED] 
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] easy to implement a* flash classes?

2006-01-12 Thread Jim Armstrong

At 12:07 PM 1/12/2006 -0500, you wrote:
can any one toss me links to the latest and greatest a* pathfinding 
examples that

are easy to implement? Much appreciated.


If memory serves, Jobe Makar has an implementation in his 'Flash MX Game 
Design Demystified' book.  I think this question may have been asked a 
couple times before, so you might find some more information in the archives.


Also, try the FlashGameCoders list.

good luck!

- jim



2112 FX :: Singularity [Business Intelligence][Custom Programming]
Flash Math Blog :: www.2112fx.com/blog


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


RE: [Flashcoders] List Components, matrix data, and object properties

2006-01-12 Thread Robert Chyko
I don't use the List component that much, but I'd imagine it is the same
functionality as the DataGrid... Each row is an object with a bunch of
properties, but only the properties that there are columns for get
displayed.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lance
Massey
Sent: Thursday, January 12, 2006 11:53 AM
To: Flashcoders mailing list
Subject: [Flashcoders] List Components, matrix data, and object
properties


I create a playlist which is an array of tracks. Each track has a  
title, an id, an artist, and a URL. Magically, when I set my List  
Component's dataProvider to playlist, it shows all the titles. But  
the real miracle is that when I click on a title all the track  
properties corresponding to that title are available.

Does this means the List component holds 2D data (I thought is was a  
list only)? And is it safe to assume this is not anomalous behavior,  
but something I can count on for the future (because this *really*  
makes life much easier)?

L

GorillaPop - Connecting People Through Music
http://www.gorillapop.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] Flash Lite 2.0 phone list

2006-01-12 Thread Nick Gerig


The majority of Non-Nokia devices listed are Japanese handsets with 
FL1.1 or FL1.0 preinstalled.





- All the phones that could be supported using the current technology 
once distribution deals

with the manufacturers are sorted out



No - any phones there are because the deals have already been done



- All the phones that the current player will run on once the current 
testing period

is over.

I assumed  FL2.0 is final and only  the IDE extension is pre-release 
software


- All the phones that the Flash Lite 2.0 player could be ported to if 
someone pays

Macrobe to do it.



FL2.0 could be ported to literally any phone if someone pays :)



Which of these applies will make a big difference to the speed of 
adoption - if
the current player will be released for all these models in a few 
months then
this could become quite big pretty quickly - otherwise its going to 
take a while.




The issue currently is that is that although there is a long list of 
Nokias that FL will run on, will a player ever be distributed for those 
phones? The short answer is that unless the old MM policy has changed 
with Adobe - NO! Nokia will distribute the FL player in its emerging 
handsets, in fact it has already started in Asia with the N90, most 
probably worldwide with the N91 this month. But the older Nokia's will 
never get a FL player unless someone pays for it. IMHO this is a massive 
hit that only the developer community and consumers take, even if it 
does also have a slight impact on the growth of the FL content market 
which is still pretty immature outside Japan. The only situation where 
older Nokias will get FL2 is where a service provide/operator decides to 
license the player for its customers with existing Nokia handsets, 
however that is not necessarily a smooth process because each player is 
IMEI tied and therefore cumbersome to deliver OTA.


Hope that helps a little.



cheers


Nick



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


Re: SV: SV: [Flashcoders] flash 8 security hint

2006-01-12 Thread clark slater
Hi Cedric,

I recently had the same problem and the reason was because I was using the
IP (hidden in the html object tag) to launch the app from the server, but
the domain name to load the other SWF - so the security sandbox considered
this a different domain of course.

This happened because the domain name DNS was not propagated when the client
asked us to begin development, but some time after the domain was
working...and the domain was being used in an absolute path in one SWF.

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


RE: [Flashcoders] Interactive SWF in a Scroll Pane

2006-01-12 Thread Adrian Lynch
How are you trying to do it?

Ade

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jason
Lutes
Sent: 12 January 2006 04:17
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Interactive SWF in a Scroll Pane


Is there a way to allow the contents of a scroll pane component instance
to receive mouse events? Mine doesn't seem to be doing it.

-
pixelTwiddler, a.k.a. Jason

Respect yourself, and THINK about stuff.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Interactive SWF in a Scroll Pane

2006-01-12 Thread eric dolecki
You might need to scope things differently and build an engine in the loaded
SWF to capture events from the outside.

Also, there is a .content or .contentPath or something that serves as a
reference to the item loaded into the pane...

On 1/11/06, Jason Lutes [EMAIL PROTECTED] wrote:

 Is there a way to allow the contents of a scroll pane component instance
 to receive mouse events? Mine doesn't seem to be doing it.

 -
 pixelTwiddler, a.k.a. Jason

 Respect yourself, and THINK about stuff.


 ___
 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] Using flex component in a Flash project

2006-01-12 Thread blists

How can you use flex components in a flash project?

Brookd


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


Re: [Flashcoders] List Components, matrix data, and object properties

2006-01-12 Thread Troy Rollins


On Jan 12, 2006, at 12:34 PM, Robert Chyko wrote:

I don't use the List component that much, but I'd imagine it is the  
same

functionality as the DataGrid... Each row is an object with a bunch of
properties, but only the properties that there are columns for get
displayed.


In fact, you can manually add extra (invisible) data to each row. It  
makes for an excellent container UI. No need to store the extra  
information in external parallel arrays or objects.


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


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


RE: [Flashcoders] Using flex component in a Flash project

2006-01-12 Thread Merrill, Jason
As far as I know:

If you mean Flex 1, legally speaking, I don't think licensing would
allow you to unless deployed to a location where you have a license.
You can work out the legal details over the phone - the sales people are
pretty good and very responsive.  Technically, the Flex server will
produce .swf files which you can copy elsewhere and use.

If you mean Flexbuilder 2, it produces .swf files for you.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of blists
Sent: Thursday, January 12, 2006 2:15 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Using flex component in a Flash project

How can you use flex components in a flash project?

Brookd


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] OT: wmv to flv?

2006-01-12 Thread Corban Baxter
Hey guys I have like 200 wmv files that I would love to feed into flash
but they are wmv's! Is it possible to get these into flash? Is the is
google is doing also to an extent?

 

Corban Baxter  |  rich media designer  |
www.funimation.com http://www.funimation.com/ 

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


Re: [Flashcoders] OT: wmv to flv?

2006-01-12 Thread Fabio Sonnati

Try FFMPEG

Fabio Sonnati
http://flashvideo.progettosinergia.com


- Original Message - 
From: Corban Baxter [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 12, 2006 9:24 PM
Subject: [Flashcoders] OT: wmv to flv?


Hey guys I have like 200 wmv files that I would love to feed into flash
but they are wmv's! Is it possible to get these into flash? Is the is
google is doing also to an extent?



Corban Baxter  |  rich media designer  |
www.funimation.com http://www.funimation.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] OT: wmv to flv?

2006-01-12 Thread Corban Baxter
Good stuff thanks.

Corban Baxter  |  rich media designer  |  www.funimation.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fabio Sonnati
Sent: Thursday, January 12, 2006 2:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: wmv to flv?

Try FFMPEG

Fabio Sonnati
http://flashvideo.progettosinergia.com


- Original Message - 
From: Corban Baxter [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, January 12, 2006 9:24 PM
Subject: [Flashcoders] OT: wmv to flv?


Hey guys I have like 200 wmv files that I would love to feed into flash
but they are wmv's! Is it possible to get these into flash? Is the is
google is doing also to an extent?

 

Corban Baxter  |  rich media designer  |
www.funimation.com http://www.funimation.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


Re: OT [Flashcoders] Flash 8 and Rosetta -- MacIntel

2006-01-12 Thread Sander
I know that JD, Tinic has had many details on his blog as well. It's  
just that, when I compare heavy multimedia tasks on mac and PC, the  
difference has never been as big as it has in comparing Flash releases.


Sorry for the Off Topic folks.

For what it's worth, each of the prior few Player versions has had  
specific extra investment in optimization for Macintosh.

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


Re: [Flashcoders] Using a Function as Variable[code]

2006-01-12 Thread Johannes Nel
either
 container_mc.messageText.text = messageDisplay();
or
public function get  displayGreeting():String {
   if (now == afternoon) {
   message = Disco Rules;
   } else {
   message = Samba Rules;
   }
   }

On 1/12/06, Chris Kennon [EMAIL PROTECTED] wrote:

 Hi,

 The code would be helpful :)

 /**
 A Simple hello class
 that assigns a custom
 message to a text field
 based upon time of day.
 **/
 class com.bushidodeep.Hello {
 private var width:Number;
 private var height:Number;
 private var stageHeight:Number = 300;
 private var stageWidth:Number = 300;
 private static var textFieldDepth:Number = 0;
 private var messageFormat:TextFormat;
 public var messageDisplay:Function = displayGreeting;
 public var message:String = ;
 public var now:String = afternoon;
 // Movie clip that will contain visual
 // elements of the hello.
 private var container_mc:MovieClip;
 //
 public function Hello(target:MovieClip) {
 container_mc = target.createEmptyMovieClip(blah, 1);
 placeGreeting();
 }
 private function placeGreeting() {
 messageFormat = new TextFormat();
 messageFormat.font = Verdana;
 messageFormat.color = 0xff;
 messageFormat.bold = true;
 container_mc.createTextField(messageText,
 textFieldDepth, 75,
 100, 150, 25);
 container_mc.messageText.text = messageDisplay;
 container_mc.messageText.border = false;
 container_mc.messageText.setTextFormat(messageFormat);
 }
 private function displayGreeting() {
 if (now == afternoon) {
 message = Disco Rules;
 } else {
 message = Samba Rules;
 }
 }
 }

 On Jan 12, 2006, at 2:29 PM, Chris Kennon wrote:

  Hi,
 
  In the following, I'm attempting to apply the value os an
  expression in a function to a textField. A pit of quicksand has
  developed. Would someone lend a hand?
 
  Respectfully,
  Christopher Kennon
  Bushidodeep.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




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


Re: [Flashcoders] Using a Function as Variable[code]

2006-01-12 Thread Andy Johnston

Whats the problem?


Hi,

The code would be helpful :)

/**
A Simple hello class
that assigns a custom
message to a text field
based upon time of day.
**/
class com.bushidodeep.Hello {
private var width:Number;
private var height:Number;
private var stageHeight:Number = 300;
private var stageWidth:Number = 300;
private static var textFieldDepth:Number = 0;
private var messageFormat:TextFormat;
public var messageDisplay:Function = displayGreeting;
public var message:String = ;
public var now:String = afternoon;
// Movie clip that will contain visual
// elements of the hello.
private var container_mc:MovieClip;
//
public function Hello(target:MovieClip) {
container_mc = target.createEmptyMovieClip(blah, 1);
placeGreeting();
}
private function placeGreeting() {
messageFormat = new TextFormat();
messageFormat.font = Verdana;
messageFormat.color = 0xff;
messageFormat.bold = true;
container_mc.createTextField(messageText, textFieldDepth, 
75,  100, 150, 25);

container_mc.messageText.text = messageDisplay;
container_mc.messageText.border = false;
container_mc.messageText.setTextFormat(messageFormat);
}
private function displayGreeting() {
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
}
}

On Jan 12, 2006, at 2:29 PM, Chris Kennon wrote:


Hi,

In the following, I'm attempting to apply the value os an  expression 
in a function to a textField. A pit of quicksand has  developed. 
Would someone lend a hand?


Respectfully,
Christopher Kennon
Bushidodeep.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


Re: [Flashcoders] Using a Function as Variable[SOLVED]

2006-01-12 Thread Chris Kennon

Thanks for your help. Fixed it
On Jan 12, 2006, at 2:39 PM, Johannes Nel wrote:


public function get  displayGreeting():String {
   if (now == afternoon) {
   message = Disco Rules;
   } else {
   message = Samba Rules;
   }
   }


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


Re: [Flashcoders] Using a Function as Variable[code]

2006-01-12 Thread Johannes Nel
forgot the return statement in there
nction get  displayGreeting():String {
if (now == afternoon) {
return   message = Disco Rules;
} else {
   return message = Samba Rules;
}

On 1/12/06, Andy Johnston [EMAIL PROTECTED] wrote:

 Whats the problem?

  Hi,
 
  The code would be helpful :)
 
  /**
  A Simple hello class
  that assigns a custom
  message to a text field
  based upon time of day.
  **/
  class com.bushidodeep.Hello {
  private var width:Number;
  private var height:Number;
  private var stageHeight:Number = 300;
  private var stageWidth:Number = 300;
  private static var textFieldDepth:Number = 0;
  private var messageFormat:TextFormat;
  public var messageDisplay:Function = displayGreeting;
  public var message:String = ;
  public var now:String = afternoon;
  // Movie clip that will contain visual
  // elements of the hello.
  private var container_mc:MovieClip;
  //
  public function Hello(target:MovieClip) {
  container_mc = target.createEmptyMovieClip(blah, 1);
  placeGreeting();
  }
  private function placeGreeting() {
  messageFormat = new TextFormat();
  messageFormat.font = Verdana;
  messageFormat.color = 0xff;
  messageFormat.bold = true;
  container_mc.createTextField(messageText, textFieldDepth,
  75,  100, 150, 25);
  container_mc.messageText.text = messageDisplay;
  container_mc.messageText.border = false;
  container_mc.messageText.setTextFormat(messageFormat);
  }
  private function displayGreeting() {
  if (now == afternoon) {
  message = Disco Rules;
  } else {
  message = Samba Rules;
  }
  }
  }
 
  On Jan 12, 2006, at 2:29 PM, Chris Kennon wrote:
 
  Hi,
 
  In the following, I'm attempting to apply the value os an  expression
  in a function to a textField. A pit of quicksand has  developed.
  Would someone lend a hand?
 
  Respectfully,
  Christopher Kennon
  Bushidodeep.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




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


Re: [Flashcoders] Using a Function as Variable[code]

2006-01-12 Thread Andy Johnston

class com.bushidodeep.Hello {

   private var width:Number;
   private var height:Number;
   private var stageHeight:Number = 300;
   private var stageWidth:Number = 300;
   private static var textFieldDepth:Number = 0;
   private var messageFormat:TextFormat;
   public var now:String = afternoon;

   private var container_mc:MovieClip;

   public function Hello(target:MovieClip) {
   container_mc = target.createEmptyMovieClip(blah, 1);
   placeGreeting();
   }

   private function placeGreeting() {
   messageFormat = new TextFormat();
   messageFormat.font = Verdana;
   messageFormat.color = 0xff;
   messageFormat.bold = true;
   container_mc.createTextField(messageText, textFieldDepth, 75,  
100, 150, 25);

   container_mc.messageText.text =displayGreeting();
   container_mc.messageText.border = false;
   container_mc.messageText.setTextFormat(messageFormat);
   }

   private function displayGreeting() {
   if (now == afternoon) {
   return(Disco Rules);
   } else {
   return(Samba Rules);
   }
   }
}





The following returned undefined:
/**
A Simple hello class
that assigns a custom
message to a text field
based upon time of day.
**/
class com.bushidodeep.Hello {
private var width:Number;
private var height:Number;
private var stageHeight:Number = 300;
private var stageWidth:Number = 300;
private static var textFieldDepth:Number = 0;
private var messageFormat:TextFormat;
public var messageDisplay:Function = displayGreeting;
public var message:String = ;
public var now:String = afternoon;
// Movie clip that will contain visual
// elements of the hello.
private var container_mc:MovieClip;
//
public function Hello(target:MovieClip) {
container_mc = target.createEmptyMovieClip(blah, 1);
placeGreeting();
}
private function placeGreeting() {
messageFormat = new TextFormat();
messageFormat.font = Verdana;
messageFormat.color = 0xff;
messageFormat.bold = true;
container_mc.createTextField(messageText, textFieldDepth, 
75,  100, 150, 25);

container_mc.messageText.text = messageDisplay();
container_mc.messageText.border = false;
container_mc.messageText.setTextFormat(messageFormat);
}
private function displayGreeting() {
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
}
}

On Jan 12, 2006, at 2:39 PM, Johannes Nel wrote:


public function get  displayGreeting():String {
   if (now == afternoon) {
   message = Disco Rules;
   } else {
   message = Samba Rules;
   }
   }



___
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] Using a Function as Variable[code]

2006-01-12 Thread Johannes Nel
rutbum. s
 if (now == afternoon) {
return   Disco Rules;
} else {
   return Samba Rules;
}

On 1/12/06, Johannes Nel [EMAIL PROTECTED] wrote:

 forgot the return statement in there
 nction get  displayGreeting():String {
 if (now == afternoon) {
 return   message = Disco Rules;
 } else {
return message = Samba Rules;
 }

 On 1/12/06, Andy Johnston  [EMAIL PROTECTED] wrote:
 
  Whats the problem?
 
   Hi,
  
   The code would be helpful :)
  
   /**
   A Simple hello class
   that assigns a custom
   message to a text field
   based upon time of day.
   **/
   class com.bushidodeep.Hello {
   private var width:Number;
   private var height:Number;
   private var stageHeight:Number = 300;
   private var stageWidth:Number = 300;
   private static var textFieldDepth:Number = 0;
   private var messageFormat:TextFormat;
   public var messageDisplay:Function = displayGreeting;
   public var message:String = ;
   public var now:String = afternoon;
   // Movie clip that will contain visual
   // elements of the hello.
   private var container_mc:MovieClip;
   //
   public function Hello(target:MovieClip) {
   container_mc = target.createEmptyMovieClip(blah, 1);
   placeGreeting();
   }
   private function placeGreeting() {
   messageFormat = new TextFormat();
   messageFormat.font = Verdana;
   messageFormat.color = 0xff;
   messageFormat.bold = true;
   container_mc.createTextField(messageText, textFieldDepth,
   75,  100, 150, 25);
   container_mc.messageText.text = messageDisplay;
   container_mc.messageText.border = false;
   container_mc.messageText.setTextFormat(messageFormat);
   }
   private function displayGreeting() {
   if (now == afternoon) {
   message = Disco Rules;
   } else {
   message = Samba Rules;
   }
   }
   }
  
   On Jan 12, 2006, at 2:29 PM, Chris Kennon wrote:
  
   Hi,
  
   In the following, I'm attempting to apply the value os an  expression
   in a function to a textField. A pit of quicksand has  developed.
   Would someone lend a hand?
  
   Respectfully,
   Christopher Kennon
   Bushidodeep.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
 



 --
 j:pn




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


Re: [Flashcoders] Using a Function as Variable[code]

2006-01-12 Thread bryan.rice

You have to return the value of message:

private function displayGreeting()
{
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
return message;
}

blue skies,
bryan




On Jan 12, 2006, at 5:46 PM, Chris Kennon wrote:


private function displayGreeting() {
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
}


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


RE: [Flashcoders] Flash lite 2.0 download

2006-01-12 Thread Robin Burrer
I just called Adobe Australia Customer support. Apparently it is not
possible to purchase the Flash Lite Player outside of the US.

Maybe it would be a good idea to a make a product accessible worldwide
before advertising it on the website ...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robin
Burrer
Sent: Thursday, 12 January 2006 9:33 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash lite 2.0 download

Hi there,

I was trying to download the flash new flash lite player for my Nokia
6670 yesterday. However adobe/macromedia website always linked me to the
American products store. Even though I have a Macromedia account the
order form would not accept my Australian address. 

I could not find the flash Lite player on the Asia Pacific website
either. 

How annoying is that? Anybody found a way to download the player outside
the US? Can you at least purchase it over the phone?

Robin



___
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] Using a Function as Variable[code]

2006-01-12 Thread Chris Kennon

The following returned undefined:
/**
A Simple hello class
that assigns a custom
message to a text field
based upon time of day.
**/
class com.bushidodeep.Hello {
private var width:Number;
private var height:Number;
private var stageHeight:Number = 300;
private var stageWidth:Number = 300;
private static var textFieldDepth:Number = 0;
private var messageFormat:TextFormat;
public var messageDisplay:Function = displayGreeting;
public var message:String = ;
public var now:String = afternoon;
// Movie clip that will contain visual
// elements of the hello.
private var container_mc:MovieClip;
//
public function Hello(target:MovieClip) {
container_mc = target.createEmptyMovieClip(blah, 1);
placeGreeting();
}
private function placeGreeting() {
messageFormat = new TextFormat();
messageFormat.font = Verdana;
messageFormat.color = 0xff;
messageFormat.bold = true;
		container_mc.createTextField(messageText, textFieldDepth, 75,  
100, 150, 25);

container_mc.messageText.text = messageDisplay();
container_mc.messageText.border = false;
container_mc.messageText.setTextFormat(messageFormat);
}
private function displayGreeting() {
if (now == afternoon) {
message = Disco Rules;
} else {
message = Samba Rules;
}
}
}

On Jan 12, 2006, at 2:39 PM, Johannes Nel wrote:


public function get  displayGreeting():String {
   if (now == afternoon) {
   message = Disco Rules;
   } else {
   message = Samba Rules;
   }
   }


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


[Flashcoders] /**** Fuse Question - WTF? ****/

2006-01-12 Thread Ryan Potter
Is there a way to step back and forth through animations in Fuse?

 

I created a simple animation (code below) to test this. I am new to
Fuse.

 

 

Problem:

 

I am trying to make it so that I can click a button (the two lower
clips) and launch an animation action in fuse.

 

So far I can't get it to work properly.  When the clip moves to the
right, it automatically moves back.  It shouldn't do that.

 

It should move to the right by clicking the green square, and move back
by clicking the blue one.  It doesn't work.

 

 

First, if you look at the trace statements, both of the x parameters are
showing up as 110.  The second x prop should be 10.  Weird.  

 

The second problem is that I can't get the fuse action to stop after
running 1 action.   

 

I am using version 1.0 of Fuse.  

 

Please help I'm stumped.

 

/*

Trow the code below into a movie and run it.

*/

 

stop();

 

import com.mosesSupposes.fuse.Fuse;

 

init();

 

function init(){

drawFuse();

buildClips();

}

 

/*  

draw three clips  

*/  

 

function buildClips(){

var clip1 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0xff);

clip1._x = 10;

clip1._y = 10;





var clip2 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0x00ff00);

clip2._x = 10;

clip2._y = 70;

clip2.onPress = function(){ this._parent.amimateItem(0);};





var clip3 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0xff);

clip3._x = 10;

clip3._y = 130;

clip3.onPress = function(){ this._parent.amimateItem(1);};

 

var moveRight = {target:clip1, x:clip1._x+100,
ease:easeInOutExpo, seconds:1, trigger:false};

var moveLeft = {target:clip1, x:clip1._x,
ease:easeInOutExpo, seconds:1, trigger:false};



/*  

do a little tracing to see what props are getting set

*/  

for(prop in moveRight){

trace(prop+ :: +moveRight[prop]);

}

trace(***);

for(prop in moveLeft){

trace(prop+ :: +moveRight[prop]);

}



/*  

add the actions to fuse 

*/  

addAnimation(moveRight);

addAnimation(moveLeft);

 

}

 

function drawFuse(){

f = new Fuse();

}

 

function addAnimation(obj){

f.push(obj);

}

 

function amimateItem(id){

trace(animate item called);

f.skipTo(id);

//  f.start();

}

 

 

 

function drawClip(target, clip, depth, w, h, color){

var c = target.createEmptyMovieClip(clip+depth, depth);

c.beginFill(color, 100);

c.moveTo(0,0);

c.lineTo(w,0);

c.lineTo(w,h);

c.lineTo(0,h);

c.lineTo(0,0);

c.endFill();



return c;

}

 

 

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


Re: [Flashcoders] flash 8 file reference upload on macs

2006-01-12 Thread Adam Procter

I am using php and 10.4.4 with flash player 8.5
but it has never worked on any version of flash player 8 on 10.4.1  
upwards with php

never used cold fusion (too expensive)
I adjusted my code to use the onProgress rather than the onOpen -  
continues to work like a charm on pc
but does not show the onProgress message or onComplete messages I  
have set on the mac


How to I monitor and manually fire the onComplete event ??

I know I now have bytesLoaded and bytesTotal I hope !

Does it/ will it work in AS3 ??  is it different ? bar being in a  
package


I thought I would really enjoy the file upload stuff in flash 8(get  
away from the php/html forms), but as a poor mac guy
I get stuffed with things that only pc users can enjoy.same old  
same old i guess

(lightroom was a change tho !!)

Thanks again
Adam

On 3 Jan 2006, at 23:09, bryan.rice wrote:



On Jan 3, 2006, at 5:31 PM, Ryan Matsikas wrote:

We've expeirenced this problem on a few occasions, the easy work  
around is

to monitor the onProgress event and manually fire the complete event.


Oddly enough, I have experienced the opposite and in found you  
can't rely on the onProgress event on all Macs:
File upload progress cannot be determined on Macintosh platforms  
earlier than OS X 10.3. The onProgress event is called during the  
upload operation, but the value of the bytesLoaded parameter is -1,  
indicating that the progress cannot be determined.


Weird.  Were you able to figure out a pattern as to what files  
under what circumstances did not fire the onComplete event?  What  
server-side processor are you using (I have only ever used it with  
ColdFusion)?


blue skies,
bryan
___
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] /**** Fuse Question - WTF? ****/

2006-01-12 Thread Gerry Creighton

I would email Moses about that.

On Jan 12, 2006, at 7:29 PM, Ryan Potter wrote:


Is there a way to step back and forth through animations in Fuse?



I created a simple animation (code below) to test this. I am new to
Fuse.





Problem:



I am trying to make it so that I can click a button (the two lower
clips) and launch an animation action in fuse.



So far I can't get it to work properly.  When the clip moves to the
right, it automatically moves back.  It shouldn't do that.



It should move to the right by clicking the green square, and move  
back

by clicking the blue one.  It doesn't work.





First, if you look at the trace statements, both of the x  
parameters are

showing up as 110.  The second x prop should be 10.  Weird.



The second problem is that I can't get the fuse action to stop after
running 1 action.



I am using version 1.0 of Fuse.



Please help I'm stumped.



/*

Trow the code below into a movie and run it.

*/



stop();



import com.mosesSupposes.fuse.Fuse;



init();



function init(){

drawFuse();

buildClips();

}



/*

draw three clips

*/



function buildClips(){

var clip1 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0xff);

clip1._x = 10;

clip1._y = 10;





var clip2 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0x00ff00);

clip2._x = 10;

clip2._y = 70;

clip2.onPress = function(){ this._parent.amimateItem(0);};





var clip3 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0xff);

clip3._x = 10;

clip3._y = 130;

clip3.onPress = function(){ this._parent.amimateItem(1);};



var moveRight = {target:clip1, x:clip1._x+100,
ease:easeInOutExpo, seconds:1, trigger:false};

var moveLeft = {target:clip1, x:clip1._x,
ease:easeInOutExpo, seconds:1, trigger:false};



/*

do a little tracing to see what props are getting set

*/

for(prop in moveRight){

trace(prop+ :: +moveRight[prop]);

}

trace(***);

for(prop in moveLeft){

trace(prop+ :: +moveRight[prop]);

}



/*

add the actions to fuse

*/

addAnimation(moveRight);

addAnimation(moveLeft);



}



function drawFuse(){

f = new Fuse();

}



function addAnimation(obj){

f.push(obj);

}



function amimateItem(id){

trace(animate item called);

f.skipTo(id);

//  f.start();

}







function drawClip(target, clip, depth, w, h, color){

var c = target.createEmptyMovieClip(clip+depth, depth);

c.beginFill(color, 100);

c.moveTo(0,0);

c.lineTo(w,0);

c.lineTo(w,h);

c.lineTo(0,h);

c.lineTo(0,0);

c.endFill();



return c;

}





___
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] onSoundComplete

2006-01-12 Thread Lance Massey
onSoundComplete does not seem to be firing. I've noticed others have  
had the same issue. Has anyone come up w/ a solution?


Thanks,

L



GorillaPop - Connecting People Through Music
http://www.gorillapop.com/

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


[Flashcoders] Exception thrown in native function

2006-01-12 Thread Frederick N. Brier
I am getting the following exception when I attempt tor run a JSFL 
script in Flash 8:

--Output Panel in Flash IDE---
Updating MyCustomComponent in library.

At line 68 of file C:\\apps\crtlash\BuildSupport.jsfl:

Exception thrown in native function.
---
Then I get some output with the new component initializing.  The JSFL 
code looks like this:


   if ( curr_doc.library.selectItem( components[ i 
].symbolName ) )

   {
   // Found item and was able to select it.
   fl.trace( Updating  + components[ 
i ].symbolName +  item in library. );
   curr_doc.library.updateItem( 
env.FLASH_HOME + /en/Configuration/Components/ + components[ i 
].clipPath );

   }

components and env are Javascript objects constructed with 
properties such as symbolName and passed as a parameter to the 
function containing the above code.  The line with the updateItem is 
what is failing.  Normally when you update a library item in the IDE it 
pops up a dialog asking whether you want to Replace the component and 
I say yes.  Obviously with a batch process that is not possible, but is 
that causing the exception to be thrown?  Has anyone else seen 
Exception thrown in native function before?


Is there another way to update a custom component in a .fla using JSFL?  
Should I try to update the instance on the stage instead?  How do I 
select an item on the stage?  Is there a better way to use a component 
from another .fla (ie: via the Property dialog and specify a relative path)?


I am trying to automate the build process of our project which includes 
several Flash Movies, which are in turn built on a set of common custom 
components.  The JSFL is called by Ant, which later on bundles 
everything up in a .war.   This would save a lot of time if I could get 
it to work.  Please!  Help!!


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


Re: [Flashcoders] onSoundComplete

2006-01-12 Thread Ramon Tayag
It works just fine with me.  Before I start, I make sure I fill up the
TLEN of all the songs.  I use TLEN for another reason but that's the
only thing I can think of that I do to all my files.

It might work.

Goodluck

On 1/13/06, Lance Massey [EMAIL PROTECTED] wrote:
 onSoundComplete does not seem to be firing. I've noticed others have
 had the same issue. Has anyone come up w/ a solution?

 Thanks,

 L


 
 GorillaPop - Connecting People Through Music
 http://www.gorillapop.com/

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



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] onSoundComplete

2006-01-12 Thread Lance Massey
I have a spider which streams files from all over, so I don't have  
the option of modifying the id3... :(


My dodgy work around:

var pos_timer = setInterval(checkPlayTime, 1000, theMP3);
function checkPlayTime(s1:Sound){
curPos = s1.duration-s1.position;
if (curPos200) {
clearInterval(pos_timer);
nextTrack();// function to get and play next track in 
the playlist...
}
};

Clumsy, but it works (http://www.gorillapop.com/gorilla/xspf/ 
xspf.html is a demo)


L

GorillaPop - Connecting People Through Music
http://www.gorillapop.com/

On Jan 12, 2006, at 8:32 PM, Ramon Tayag wrote:


It works just fine with me.  Before I start, I make sure I fill up the
TLEN of all the songs.  I use TLEN for another reason but that's the
only thing I can think of that I do to all my files.

It might work.

Goodluck

On 1/13/06, Lance Massey [EMAIL PROTECTED] wrote:

onSoundComplete does not seem to be firing. I've noticed others have
had the same issue. Has anyone come up w/ a solution?

Thanks,

L



GorillaPop - Connecting People Through Music
http://www.gorillapop.com/

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




--
Ramon Miguel M. Tayag
___
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] priority for downloading content

2006-01-12 Thread Ramon Tayag
No problem :)

I tried deleting the host movieclip, deleting the movieclip loader,
unloading the movie that contains the movieclip loader.  Somehow it
transfers the actual loading to the root movieclip.

If ever, you could have a separate embedded Flash movie in the website
and you can make the two movies talk to each other.  That might work. 
But it would be very bloody and almost not worth it.

I have the feeling that deleting the sound object won't yeild the
result you want.  But try it, I might be wrong.

If you want the SupreLoader class just let me know. I can email it to you

Goodluck

On 1/13/06, GregoryN [EMAIL PROTECTED] wrote:
 Thanks for your answer, Ramon.

 I was thinking of writing such class myself...
 But, in fact, I need some different solution rather than superb loading
 queue :-).

 Maybe I'll try to delete sound object which is downloading the mp3
 track, - what do you think ?
 Yes, it's the most common case in this project: some music is
 downloading and this prevents/slow loading more imp't content.
 Ideally, I'd like to cancel loading music in this case.

 --
 Best regards,
  GregoryN
 
 http://GOusable.com
 Flash components development.
 Usability services.



--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] /**** Fuse Question - WTF? ****/

2006-01-12 Thread Jim Kremens
I would email Moses about that

and maybe skip the WTF part... :-)

Jim Kremens


On 1/12/06, Gerry Creighton [EMAIL PROTECTED] wrote:

 I would email Moses about that.

 On Jan 12, 2006, at 7:29 PM, Ryan Potter wrote:

  Is there a way to step back and forth through animations in Fuse?
 
 
 
  I created a simple animation (code below) to test this. I am new to
  Fuse.
 
 
 
 
 
  Problem:
 
 
 
  I am trying to make it so that I can click a button (the two lower
  clips) and launch an animation action in fuse.
 
 
 
  So far I can't get it to work properly.  When the clip moves to the
  right, it automatically moves back.  It shouldn't do that.
 
 
 
  It should move to the right by clicking the green square, and move
  back
  by clicking the blue one.  It doesn't work.
 
 
 
 
 
  First, if you look at the trace statements, both of the x
  parameters are
  showing up as 110.  The second x prop should be 10.  Weird.
 
 
 
  The second problem is that I can't get the fuse action to stop after
  running 1 action.
 
 
 
  I am using version 1.0 of Fuse.
 
 
 
  Please help I'm stumped.
 
 
 
  /*
 
  Trow the code below into a movie and run it.
 
  */
 
 
 
  stop();
 
 
 
  import com.mosesSupposes.fuse.Fuse;
 
 
 
  init();
 
 
 
  function init(){
 
  drawFuse();
 
  buildClips();
 
  }
 
 
 
  /*
 
  draw three clips
 
  */
 
 
 
  function buildClips(){
 
  var clip1 = drawClip(this, clip,
  this.getNextHighestDepth(), 50, 50, 0xff);
 
  clip1._x = 10;
 
  clip1._y = 10;
 
 
 
 
 
  var clip2 = drawClip(this, clip,
  this.getNextHighestDepth(), 50, 50, 0x00ff00);
 
  clip2._x = 10;
 
  clip2._y = 70;
 
  clip2.onPress = function(){ this._parent.amimateItem(0);};
 
 
 
 
 
  var clip3 = drawClip(this, clip,
  this.getNextHighestDepth(), 50, 50, 0xff);
 
  clip3._x = 10;
 
  clip3._y = 130;
 
  clip3.onPress = function(){ this._parent.amimateItem(1);};
 
 
 
  var moveRight = {target:clip1, x:clip1._x+100,
  ease:easeInOutExpo, seconds:1, trigger:false};
 
  var moveLeft = {target:clip1, x:clip1._x,
  ease:easeInOutExpo, seconds:1, trigger:false};
 
 
 
  /*
 
  do a little tracing to see what props are getting set
 
  */
 
  for(prop in moveRight){
 
  trace(prop+ :: +moveRight[prop]);
 
  }
 
  trace(***);
 
  for(prop in moveLeft){
 
  trace(prop+ :: +moveRight[prop]);
 
  }
 
 
 
  /*
 
  add the actions to fuse
 
  */
 
  addAnimation(moveRight);
 
  addAnimation(moveLeft);
 
 
 
  }
 
 
 
  function drawFuse(){
 
  f = new Fuse();
 
  }
 
 
 
  function addAnimation(obj){
 
  f.push(obj);
 
  }
 
 
 
  function amimateItem(id){
 
  trace(animate item called);
 
  f.skipTo(id);
 
  //  f.start();
 
  }
 
 
 
 
 
 
 
  function drawClip(target, clip, depth, w, h, color){
 
  var c = target.createEmptyMovieClip(clip+depth, depth);
 
  c.beginFill(color, 100);
 
  c.moveTo(0,0);
 
  c.lineTo(w,0);
 
  c.lineTo(w,h);
 
  c.lineTo(0,h);
 
  c.lineTo(0,0);
 
  c.endFill();
 
 
 
  return c;
 
  }
 
 
 
 
 
  ___
  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




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


Re: [Flashcoders] /**** Fuse Question - WTF? ****/

2006-01-12 Thread Julien Vignali

Ryan,
Your code works only if you drag-and-drop an instance of the Fuse 
Component on Stage. You'd better ask Moses about that behaviour...


Regards,
Julien.



Ryan Potter a écrit :

Is there a way to step back and forth through animations in Fuse?

 


I created a simple animation (code below) to test this. I am new to
Fuse.

 

 


Problem:

 


I am trying to make it so that I can click a button (the two lower
clips) and launch an animation action in fuse.

 


So far I can't get it to work properly.  When the clip moves to the
right, it automatically moves back.  It shouldn't do that.

 


It should move to the right by clicking the green square, and move back
by clicking the blue one.  It doesn't work.

 

 


First, if you look at the trace statements, both of the x parameters are
showing up as 110.  The second x prop should be 10.  Weird.  

 


The second problem is that I can't get the fuse action to stop after
running 1 action.   

 

I am using version 1.0 of Fuse.  

 


Please help I'm stumped.

 


/*

Trow the code below into a movie and run it.

*/

 


stop();

 


import com.mosesSupposes.fuse.Fuse;

 


init();

 


function init(){

drawFuse();

buildClips();

}

 

/*  

draw three clips  

*/  

 


function buildClips(){

var clip1 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0xff);

clip1._x = 10;

clip1._y = 10;






var clip2 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0x00ff00);

clip2._x = 10;

clip2._y = 70;

clip2.onPress = function(){ this._parent.amimateItem(0);};






var clip3 = drawClip(this, clip,
this.getNextHighestDepth(), 50, 50, 0xff);

clip3._x = 10;

clip3._y = 130;

clip3.onPress = function(){ this._parent.amimateItem(1);};

 


var moveRight = {target:clip1, x:clip1._x+100,
ease:easeInOutExpo, seconds:1, trigger:false};

var moveLeft = {target:clip1, x:clip1._x,
ease:easeInOutExpo, seconds:1, trigger:false};



/*  


do a little tracing to see what props are getting set

*/  


for(prop in moveRight){

trace(prop+ :: +moveRight[prop]);

}

trace(***);

for(prop in moveLeft){

trace(prop+ :: +moveRight[prop]);

}



/*  

add the actions to fuse 

*/  


addAnimation(moveRight);

addAnimation(moveLeft);

 


}

 


function drawFuse(){

f = new Fuse();

}

 


function addAnimation(obj){

f.push(obj);

}

 


function amimateItem(id){

trace(animate item called);

f.skipTo(id);

//  f.start();

}

 

 

 


function drawClip(target, clip, depth, w, h, color){

var c = target.createEmptyMovieClip(clip+depth, depth);

c.beginFill(color, 100);

c.moveTo(0,0);

c.lineTo(w,0);

c.lineTo(w,h);

c.lineTo(0,h);

c.lineTo(0,0);

c.endFill();




return c;

}

 

 


___
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