[Flashcoders] Flex 2 Datagrid/Tabnavigator bug?

2006-03-24 Thread Fredrik Sandberg
Hi,

 

I have some serious problems refreshing content in a Flex2 beta2 datagrid,
located inside a tabnavigator.

The content consists of mailheaders, and the grid could (of course) contain
0-many mails. 

The data is captured from a DB, via HTTPService. The datagrid is loaded
with:

 

try {

uMailGrid.dataProvider = arrUMails;

} catch (e:Error) {

uMailGrid.data = arrUMails;

}

 

Is there a better way to do this?

And for my major concern: why doesn´t the datagrid refresh???
uMailGrid.freeItem doesn´t has no effect.

 

It seems like the user have to click through the tabs in order to have the
items “activated” / properly drawn.

There must b something buggy about this, or?

 

Thanks,

Fredrik Sandberg

 

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

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


RE: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Lee McColl-Sylvester
Here here :)

Trust me, when you start using it, you'll be amazed... The part I like
most is the portability.  I can't see any reason you couldn't run haXe
from a CD if that's what you wanted.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicolas
Cannasse
Sent: 23 March 2006 20:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Using Flash with Ruby on Rails

 I don't get it. Whether one uses Ruby, PHP or mothers_mouthwash, all
one
 is doing is using xmlSendAndLoad() (or similar function) to call a
 script and retrieve results. What's the big deal?

Most of the time, you need to encode some kind of values into XML, then
decode them on the other side. This XML protocol need to evolve with
your application, everytime you need to add a new functionality. Also,
you get virtualy 0 warantee that of what will happen if the protocol is
not respected, if an attribute is forgotten for example. This can open a
lot of holes in your application that can be exploited (you might not
care at all but it's important in some particular cases).

In haXe what you will be able to do is to just do some calls between
server and client transparently just like you'ld do method calls, and
send data over the network (not xml, but structured objects) just like
Remoting. But in haXe, you will also be able to send *classes* through
the network, since it's the same language it's ok as long as the class
is available on the other side as well.

Other nice features includes :

- a very Fexible type system : strongly typed by default, with Dynamic
features to write dynamicly type stuff when you don't feel like being
bothered.
- type inference so you don't have to write types everywhere
- conditional compilation : you can make some specific optimizations for
Flash8 / Flash8.5, have different compilable versions (like Release and
Debug) and everything else you need
- a fast reusable compiler, just like MTASC
- improved runtime errors reporting
- quick usability, if you now already ActionScript or JavaScript,
jumping to haXe is pretty straightforward
- the ability to reuse some part of your code on the server and client
side at the same time (rewriting complex form validation code on the
client in JS and on the server in PHP is NOT funny :)
- 30 times faster VM than PHP, if you're interested in speed
... and much more

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

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

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


RE: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Lee McColl-Sylvester
Ruby can handle XML... That's all that's required.

If Ruby is all you can handle, then use it.  It is more than enough for
your needs, but as your programming skills develop (and they definitely
will), you'll want a more portable system.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad
Royer
Sent: 23 March 2006 22:13
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Using Flash with Ruby on Rails

Here's where I'm coming from.  Like I said, I'm more of a designer  
than a programmer.  I really grasp the logic behind OO structures so  
I'm able to understand what I need to accomplish with my code to get  
things working nicely, but I don't have a 'words' brain, so if I'm  
not writing in a particular language every day, I quickly forget what  
I know as far as actual syntax and code structure.  I can write with  
php, but it takes a long time to step thru simple things and make  
them work, and if I go a few days without writing php then I have to  
figure it all out again.  I can do quite a bit in Actionscript, since  
that's really where I started, but I only have room in my brain for  
so much of that stuff, and even some of the advanced AS stuff flies  
right thru my head without making any serious contact.

That was what I found attractive about ruby on rails... that I can  
focus on logical application structure and make things work pretty  
well without having to deal with syntax details that I just can't  
seem to keep in my noggin.  For most of the things I do, simple  
database connectivity is really enough, but I'm also trying to build  
some applications that are quite a bit more complex.  Ultimately for  
the more complex projects, I'd prefer to be able to knock out a  
prototype that 'works' relatively quickly and without having to learn  
all of PHP or whatever, then hire a 'real' programmer to make it all  
proper.

RoR also seems like it would make it very easy to deal with building  
both xhtml/css versions and flash versions of the same site.  Again,  
I know that can be done with php and everything else, but would  
involve much more actual coding to do so.  I just started looking  
into RoR a couple of days ago, so I haven't decided that it's the  
king setup or anything like that, but it seems to work the way I  
think.  The only thing I hadn't been able to find much info about is  
how to get results from ruby to flash.  If it's just a matter of  
pumping xml out of RoR and parsing it in flash, then cool... If  
there's something that could work better, given my perspective, I'd  
be happy to hear about that too.  To me, haxe looks like AS with just  
enough subtle differences to confuse the hell outa me, tho I do  
understand what they're doing.

I hope that clarifies what I'm getting at... if RoR is suitable as a  
backend for flash, essentially, and what needs to be done to pass  
variables back and forth.  I'm not interested in 'chasing the  
language of the day' as you put it, either.  I'd like to find one  
setup that works for me and stick with it.

thanks once again. and thanks also to chris allen for your insight on  
haxe, and to mark daggett for the answer I was really looking for...  
I would love to see some examples of how you set up that integration  
with JSON and the javascript integration kit (tho if I could do it  
without javascript I think I'd be happier).

-chad



 Message: 8
 Date: Thu, 23 Mar 2006 15:18:59 -0400
 From: Miles Thompson [EMAIL PROTECTED]
 Subject: RE: [Flashcoders] Using Flash with Ruby on Rails
 To: flashcoders@chattyfig.figleaf.com
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=us-ascii; format=flowed;
   x-avg-checked=avg-ok-FBA73C4


 I don't get it. Whether one uses Ruby, PHP or mothers_mouthwash,  
 all one is
 doing is using xmlSendAndLoad() (or similar function) to call a  
 script and
 retrieve results. What's the big deal?

 If the question is what language / framework should I use to  
 establish an
 app to manage the data, and incidentally fetch it for Flash, then a
 framework makes sense - RoR, Cake, ... whatever you are comfortable  
 and
 productive with?  (I'm a PHP guy myself - stopped chasing language  
 of the
 month years ago.)

 Regards - Miles


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

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

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


RE: [Bulk] [Flashcoders] Extending a singleton

2006-03-24 Thread

Sorry but that's ridiculous.

From:   [EMAIL PROTECTED] on behalf of varfooSent:  Thu 3/23/2006 5:42 
PMTo:Flashcoders mailing listCc: Subject:Re: [Bulk] 
[Flashcoders] Extending a singleton Hey,It's not considered good practice to 
use singetons.  For reasons why, here'sa good 
article:http://blogs.msdn.com/scottdensmore/archive/2004/05/25/140827.aspx

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

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


[Flashcoders] upload a file

2006-03-24 Thread Riccardo Roasio

Hi,
there is a way to open a Open file dialog box from an swf movie?

I need to select a file to upload on the server but i don't want to open 
an html page to do that...


Thanks,Riccardo

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

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


RE: [Flashcoders] upload a file

2006-03-24 Thread Lee McColl-Sylvester
Yes, there is... Look up flash.net.FileReference.  It's for Flash 8
only, but it will support file browsing and sending... however, you will
need to manage the retrieval yourself on the server side.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Riccardo
Roasio
Sent: 24 March 2006 09:50
To: Flashcoders mailing list
Subject: [Flashcoders] upload a file

Hi,
there is a way to open a Open file dialog box from an swf movie?

I need to select a file to upload on the server but i don't want to open

an html page to do that...

Thanks,Riccardo

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

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

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


Re: [Flashcoders] upload a file

2006-03-24 Thread Riccardo Roasio

Do you have an example for this?
Thanks,Riccardo

Lee McColl-Sylvester wrote:


Not really no... In the flash, you use flash.net.FileReference to browse
for your file and send the file to the server... But on the server side,
you need a standard script, either in PHP or whatever language you want
to use, which deserializes the stream back into a file... You need this
whether you send files using HTML or Flash, so you can probably grab a
script off of hotscripts.com or somewhere similar.

The point to note here is that the Flash flash.net.FileReference script
that you write will be completely separate and unrelated to the script
you need on the server.  It just needs to know that a file will be sent.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Riccardo
Roasio
Sent: 24 March 2006 10:16
To: Flashcoders mailing list
Subject: Re: [Flashcoders] upload a file

So i need to pass infos to another script (for example a php script) to 
upload the file?


Lee McColl-Sylvester wrote:

 


Yes, there is... Look up flash.net.FileReference.  It's for Flash 8
only, but it will support file browsing and sending... however, you
   


will
 


need to manage the retrieval yourself on the server side.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
   


Riccardo
 


Roasio
Sent: 24 March 2006 09:50
To: Flashcoders mailing list
Subject: [Flashcoders] upload a file

Hi,
there is a way to open a Open file dialog box from an swf movie?

I need to select a file to upload on the server but i don't want to
   


open
 


an html page to do that...

Thanks,Riccardo

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

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

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


   



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

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

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



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

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


RE: [Bulk] [Flashcoders] Extending a singleton

2006-03-24 Thread Jim Tann
I agree that singletons can be easily overused but don't think they are
redundant. One mans opinion.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hyndman
Sent: 23 March 2006 23:05
To: Flashcoders mailing list
Subject: RE: [Bulk] [Flashcoders] Extending a singleton

Kind of flamebaity, but I'll bite.

I read that article, but this is just one man's opinions. I'm not saying
he's wrong, but some of his points largely depend on the usage of the
singleton itself (specifically #4). #2 kind of sounds like bullshit to
me too. Sure, you can split a singleton into two classes, fine, one for
creation and one for the class itself. I just don't see the point.
Single responsibility deals with required changes. I don't see how the
singleton aspect of the class would ever require a change (correct me
if I'm wrong).

In fact, if you look at a lot of windowing toolkits for operating
systems, you will see singleton usage scattered throughout.

Just a few I can think of offhand in Apple's Cocoa (a beautifully
designed framework in my opinion):

Color panel
Font panel
...in fact, all panels
Application
User Defaults

It seems to me (because I've never run into any problems) that careful
use of singletons is an okay thing to do. I agree that alot of people
overuse them and try to force everything and anything into a singleton.
I don't agree with that. I just think they have a place.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of varfoo
Sent:   Thu 3/23/2006 5:42 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Bulk] [Flashcoders] Extending a singleton

Hey,

It's not considered good practice to use singetons.  For reasons why,
here's
a good article:
http://blogs.msdn.com/scottdensmore/archive/2004/05/25/140827.aspx

I don't think the protected keyword exists in AS2, but if you have AS3,
I'd
trying using the protected keyword for the singleton's superclass
constructor.  I'd recommend trying this as an experiment only.

-vf

- Original Message - 
From: Christophe Herreman [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 23, 2006 7:38 AM
Subject: [Bulk] [Flashcoders] Extending a singleton


 Hi guys,

 I was wondering if anyone of you ever had a situation where it would
be
 good to extend a singleton. The first question is: Is it good practice
or
 should it be avoided at all cost?

 Anyway, I have been trying to extend one, but the problem is that
instance
 variables are not accessible in the class that extends the singleton
(and
 which is also a singleton).

 So for instance, take a class A that has a properties instance
variable
 that holds key/value pairs. That var is initialized in the
constructor.

 A.getInstance() gives me the single instance.

 B extends A, and B.getInstance() gives me the single instance of B.
But
 since it extends A, A's constructor is called (although it is private,
a
 camouflaged protected in AS2) and the properties var is instantiated
 again. Get the picture? B will have a properties instance var but it
will
 not be the same as the one in the singleton of A.

 Am I overlooking something very obvious here or is this actually hard
to
 accomplish? I changed it from inheritance to using A.getInstance()
 internally which works; but now I have to add wrapper methods for
every
 method in A/ /I want to make available.

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

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

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

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



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

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


RE: [Flashcoders] upload a file

2006-03-24 Thread Lee McColl-Sylvester
Sorry, I've never really needed to use it, though there is an example in
the Flash help docs.

The following example creates a FileReference object that prompts the
user to select an image or text file to be uploaded. It also listens for
any possible event. 

import flash.net.FileReference;

var allTypes:Array = new Array();
var imageTypes:Object = new Object();
imageTypes.description = Images (*.jpg, *.jpeg, *.gif, *.png);
imageTypes.extension = *.jpg; *.jpeg; *.gif; *.png;
allTypes.push(imageTypes);

var textTypes:Object = new Object();
textTypes.description = Text Files (*.txt, *.rtf);
textTypes.extension = *.txt;*.rtf;
allTypes.push(textTypes);

var listener:Object = new Object(); 

listener.onSelect = function(file:FileReference):Void {
trace(onSelect:  + file.name);
 
if(!file.upload(http://www.yourdomain.com/yourUploadHandlerScript.cfm;)
) {
trace(Upload dialog failed to open.);
}
}

listener.onCancel = function(file:FileReference):Void {
trace(onCancel);
}

listener.onOpen = function(file:FileReference):Void {
trace(onOpen:  + file.name);
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
trace(onProgress with bytesLoaded:  + bytesLoaded +  bytesTotal:
 + bytesTotal);
}

listener.onComplete = function(file:FileReference):Void {
trace(onComplete:  + file.name);
}

listener.onHTTPError = function(file:FileReference):Void {
trace(onHTTPError:  + file.name);
}

listener.onIOError = function(file:FileReference):Void {
trace(onIOError:  + file.name);
}

listener.onSecurityError = function(file:FileReference,
errorString:String):Void {
trace(onSecurityError:  + file.name +  errorString:  +
errorString);
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse(allTypes);


Seems to me, this example is all that you'll need for the front end.

Lee





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Riccardo
Roasio
Sent: 24 March 2006 10:29
To: Flashcoders mailing list
Subject: Re: [Flashcoders] upload a file

Do you have an example for this?
Thanks,Riccardo

Lee McColl-Sylvester wrote:

Not really no... In the flash, you use flash.net.FileReference to
browse
for your file and send the file to the server... But on the server
side,
you need a standard script, either in PHP or whatever language you want
to use, which deserializes the stream back into a file... You need this
whether you send files using HTML or Flash, so you can probably grab a
script off of hotscripts.com or somewhere similar.

The point to note here is that the Flash flash.net.FileReference script
that you write will be completely separate and unrelated to the script
you need on the server.  It just needs to know that a file will be
sent.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Riccardo
Roasio
Sent: 24 March 2006 10:16
To: Flashcoders mailing list
Subject: Re: [Flashcoders] upload a file

So i need to pass infos to another script (for example a php script) to

upload the file?

Lee McColl-Sylvester wrote:

  

Yes, there is... Look up flash.net.FileReference.  It's for Flash 8
only, but it will support file browsing and sending... however, you


will
  

need to manage the retrieval yourself on the server side.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of


Riccardo
  

Roasio
Sent: 24 March 2006 09:50
To: Flashcoders mailing list
Subject: [Flashcoders] upload a file

Hi,
there is a way to open a Open file dialog box from an swf movie?

I need to select a file to upload on the server but i don't want to


open
  

an html page to do that...

Thanks,Riccardo

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

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

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




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

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

Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Danny Kodicek

I've written php for years, and only had time to have a little play

with ruby so far, but if i was in your shoes, i'd go for RoR, not
cake..

Don't mess with it, kids
http://www.parliament.the-stationery-office.co.uk/pa/cm199596/cmhansrd/vo960723/text/60723w10.htm#60723w10.html_wqn10


Danny 


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

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


Re: [Flashcoders] Help with safari

2006-03-24 Thread Paul Evans

On 23 Mar 2006, at 22:37, Marcelo Wolfgang wrote:

I've developed a site and I'm having trouble with Mac users, they say
that they don't see the site.



Can you all there with mac's test it out to me ? I think the problem
is with older versions of the plugin ( the site are all exported for
flash 7 but .. )


I don't have time to diagnose, but can confirm the following...

On MacOS X 10.4.5 with Safari 2.0.3 and player 8.0.24.0 the site  
displays fine


but...

On MacOS X 10.3.9 with safari 1.3.2 and player 7.0.24.0 I just get a  
black rectangle in place of the SWF. Safari's activity viewer reports  
the following file as not found...


http://www2.uol.com.br/camparirock/playerinstall.swf

hth


Paul
--
[ http://www.creative-cognition.co.uk/ ]


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

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


RE: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Lee McColl-Sylvester
I used to use GammaHydroxyButyrate back in my bodybuilding days (don't
laugh, it's true).  Used to double the effects of some of the other
supplements I used.  It's safe to take, but some people found it
enhanced the effects of hardcore drugs, so it was taken off the
market... Well, made illegal.

Damn snotty nosed, pimple faced, doped up drug taking little sons of
somethingorothers.

Lee



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Danny
Kodicek
Sent: 24 March 2006 11:18
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Using Flash with Ruby on Rails

I've written php for years, and only had time to have a little play
with ruby so far, but if i was in your shoes, i'd go for RoR, not
cake..

Don't mess with it, kids
http://www.parliament.the-stationery-office.co.uk/pa/cm199596/cmhansrd/v
o960723/text/60723w10.htm#60723w10.html_wqn10


Danny 

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

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

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


Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Danny Kodicek

I used to use GammaHydroxyButyrate back in my bodybuilding days (don't

laugh, it's true).  Used to double the effects of some of the other
supplements I used.  It's safe to take, but some people found it
enhanced the effects of hardcore drugs, so it was taken off the
market... Well, made illegal.

Yes, but did you ever take Cake? Ever suffer the horrors of Czech Neck?

Sorry, way OT - I'll stop now.

Danny

'It influences a part of the brain called Shatner's Bassoon'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Flash player for xscale processor

2006-03-24 Thread Mike Mountain
Anyone got the latest information for running the flash player on an
xscale processor. Win CE? What version are we up to? Where do I get the
installs? Problems, issues? etc

The adobe/mm site seems a little vague

Cheers

M

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

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


Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Martin Weiser

??
czech neck?
what the heck is that?
Kodicek sounds to me as czech surname, are you oriignaly from Czech Rep ?

cheers

Martin.cz



- Original Message - 
From: Danny Kodicek [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, March 24, 2006 12:52 PM
Subject: Re: [Flashcoders] Using Flash with Ruby on Rails



I used to use GammaHydroxyButyrate back in my bodybuilding days (don't
laugh, it's true).  Used to double the effects of some of the other
supplements I used.  It's safe to take, but some people found it
enhanced the effects of hardcore drugs, so it was taken off the
market... Well, made illegal.

Yes, but did you ever take Cake? Ever suffer the horrors of Czech Neck?

Sorry, way OT - I'll stop now.

Danny

'It influences a part of the brain called Shatner's Bassoon'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] A lack of understanding re static methods

2006-03-24 Thread Dave Mennenoh

It doesn't get replaced at compile time at all. It is called in runtime.

So if it's not there when it's called it will return undefined. You must
make sure that Const is loaded before attempting to access any of it's
setters/getters or methods.


Called in runtime? I am not understanding something - I don't have to 
include my .as class files along with my swf file when I publish. And how 
would I make sure Const is loaded? My whole point of making static getter 
and setter methods was so I didn't have to instantiate the class. Flash is 
one of those apps that you can work with for years and then realize you 
don't understand some basic thing...


Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/ 



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

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


Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Dave Mennenoh
It's safe to take, but some people found it enhanced the effects of 
hardcore drugs, so it was taken off the market... Well, made illegal.


I think it was more that some people found they could knock out girls with 
it - (the date rape drug). I'd venture to guess that's why it became 
illegal.



Dave -
Adobe Community Expert
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/ 



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

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


[Flashcoders] IE vulnerability

2006-03-24 Thread Éric Thibault
How are we going to explain to our clients the new alert box poping up 
when you talk to a function on the HTML page from Flash


Read this : http://isc.sans.org/diary.php?storyid=1212


:o


--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

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

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


Re: [Flashcoders] IE vulnerability

2006-03-24 Thread Scott Fanetti
You could always just tell that the IE is a buggy and insecure browser - 
and that in order to use your application, active scripting must be 
enabled.  If your client balks then tell them IE is vulnerable with any 
web technology - it is just a piece of crap application.   Explain to 
your client that you could just as easily create a signed java applet 
that would load a virus through JNI that could do anything it wants to a 
user's PC.  It is up to users to be vigilant and aware of the 
vulnerabilities in their applications.  For trusted sites, users should 
allow active scripting.  For sketchy sites, users shouldn't.


In any case, you as a developer should let users know that active 
scripting is required to run your site in the same way that you would 
let them know that Flash or javascript must be enabled - or develop 
without any Flash or javascript calls to the browser.  You cannot be 
expected to seamlessly handle every moron user's ignorance about 'dat 
innernet thing'.   There is only so much a developer can do to coddle 
users before they have to take responsibility for their online activity.


Éric Thibault wrote:
How are we going to explain to our clients the new alert box poping up 
when you talk to a function on the HTML page from Flash


Read this : http://isc.sans.org/diary.php?storyid=1212


:o





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

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


Re: [Flashcoders] IE vulnerability

2006-03-24 Thread Michael Stuhr

Éric Thibault schrieb:
Yes I know but now with IE we have to activate every flash and QT on a 
site by clicking on it  + a pupup to activate script (JS)...


A lot for commun users!

Is the workaround to write the Flash object inside an HTML page on an 
onload JS fonction working fine to eliminate the click to activate « 
bug » ?




yes, it's well (at least should be) known to workaround that behav.

look here ma:

http://www.bobbyvandersluis.com/ufo/

or here:

http://osflash.org/flashobject

micha

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

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


Re: [Flashcoders] Help with safari

2006-03-24 Thread Marcelo Wolfgang
Thanks Paul,

I've uploaded the playerinstall.swf to the server, can you retest with
that config again please ?

TIA
Grillo

On 3/24/06, Paul Evans [EMAIL PROTECTED] wrote:
 On 23 Mar 2006, at 22:37, Marcelo Wolfgang wrote:
  I've developed a site and I'm having trouble with Mac users, they say
  that they don't see the site.

  Can you all there with mac's test it out to me ? I think the problem
  is with older versions of the plugin ( the site are all exported for
  flash 7 but .. )

 I don't have time to diagnose, but can confirm the following...

 On MacOS X 10.4.5 with Safari 2.0.3 and player 8.0.24.0 the site
 displays fine

 but...

 On MacOS X 10.3.9 with safari 1.3.2 and player 7.0.24.0 I just get a
 black rectangle in place of the SWF. Safari's activity viewer reports
 the following file as not found...

 http://www2.uol.com.br/camparirock/playerinstall.swf

 hth


 Paul
 --
 [ http://www.creative-cognition.co.uk/ ]


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

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

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

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


RE: [Flashcoders] Drag DataGrid columns?

2006-03-24 Thread

I have recently achieved something similar - making DataGrid rows draggable. I 
use the BitmapData class so the user can see the row they are dragging..


 --- On Fri 03/24, Keith Takayesu  [EMAIL PROTECTED]  wrote:
From: Keith Takayesu [mailto: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Date: Fri, 24 Mar 2006 10:39:44 -0500
Subject: [Flashcoders] Drag DataGrid columns?

I was just asked if it was possible to allow the user to switch DataGridcolumns 
dynamically, like you can in Outlook or Access. I remember thatthe Java version 
of the ColdFusion Grid used to do this, but I'vehaven't used Flash DataGrid 
yet.Help, please!Thanks,Keith/training.figleaf.com

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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

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


Re: [Flashcoders] Help with safari

2006-03-24 Thread Paul Evans

On 24 Mar 2006, at 16:15, Marcelo Wolfgang wrote:

I've uploaded the playerinstall.swf to the server, can you retest with
that config again please ?


Ok - now it displays the Macromedia Flash Player Update dialogue...

This content requires Macromedia Flash Player 8. Would you like to  
install it now? + Yes/No buttons.


In my case, not wishing to install it, I chose no. It then left me  
with the black rectangle. I think a better behaviour would be to  
catch the no install decision if possible and redirect to some  
suitable page? (I haven't used the detection kit so can't really  
advise).


I assume if I had hit yes, FP8 would be installed and your normal swf  
would load and run ok.


Regards

Paul 
___

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

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


RE: [Flashcoders] Drag DataGrid columns?

2006-03-24 Thread Robert Chyko
Yes, the Enhanced DataGrid handles draggable columns


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Webster
Sent: Friday, March 24, 2006 11:10 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Drag DataGrid columns?


Keith,

 I was just asked if it was possible to allow the user to switch  
 DataGrid
 columns dynamically, like you can in Outlook or Access. I remember  
 that
 the Java version of the ColdFusion Grid used to do this, but I've
 haven't used Flash DataGrid yet.

IIRC there was a Developer Resource Kit that included an updated  
DataGrid component with drag-able columns. Of course, whether or not  
you can still get hold of it is another matter.

Cheers,

Steve

-- 
Steve Webster
Head of Development

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


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

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

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


[Flashcoders] AS equation trouble making my own scrollbar

2006-03-24 Thread f a r i d | s i l v a | a b o i d
Hi list, in my poor english i will try to explain my need

I made a scroll MC behind a mask, which is controlled horizontally by
another MC (such as scrollbar) it works but not so fine, because the
scrolling MC don't fit with de slider MC

you can see it at

http://www.e-foco.com.ar/prestigio/sucursales.php by clicking on Nuevas suc.


Actually I have:

scrollSize = big MC width
maskSize = mask width
sliderSize = slider width = maskSize/scrollSize*100;

for the movements are defined by:

function updateScroll() {
var ratio = (scrollSize/maskSize *sliderSize /100);
_root.sucContainer._x = -_root.slider._x*ratio;
}

The issue is that when the slider reach it's right limit, the
bigMC(sucContainer) still have a portion to show. I understand that my
equation is not working fairly accurately but I couldn't see my error.

Any idea will be appreciated

Thanks a lot


--
SalU2


f a r i d | s i l v a | a b o i d
www.e-foco.com
tel: +54 11 4115-0773
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] A lack of understanding re static methods

2006-03-24 Thread Ian Thomas
HI Dave,
  It's my understanding that that _should_ work. However,
Const.portfolioPath isn't replaced at compile time - Flash has no
native understanding of constants. But at runtime, Const.portfolioPath
should certainly return your hardcoded path.
  The only immediate things I can think of which might throw this off are:
  - The loader movie (not resources.swf) contains a different verstion
of the Const class. The first version of any class loaded by Flash is
the one that is used throughout the app, regardless of what's compiled
into movies loaded later on.
  - The loader movie is compiled for a different version of Flash
Player from the resources movie. From memory, a Flash 7 movie has a
_different_ global variable space from a Flash 8 movie (or is it 6 and
7? Can't remember offhand), even if they're both running in the same
player.

HTH,
  Ian

On 3/23/06, Dave Mennenoh [EMAIL PROTECTED] wrote:
 Can someone kindly point out my lack of understanding here - so that I don't
 need to use any globals I created some static getter and setter methods in a
 class I call Const - for constants. Here's a short version, but enough to
 illustrate with:

 class Const {
 static function get portfolioPath():String {
 return hardCoded path to my images folder;
 }
 }

 Within my resources movie I say something like:

 myLoader.loadClip(Const.portfolioPath + imageName.jpg, picHolder);

 This works great. But, when I load resources.swf into my navigation movie,
 Const.portfolioPath is showing undefined. This has me baffled. I thought the
 reference to Const.portfolioPath would be replaced with the hardCoded path
 to my images folder when the resources.swf was compiled... Evidently it's
 not though?

 To get around this I created a portfolioPath timeline variable within
 navigation and then reference it from resources using _root.portfolioPath,
 but this isn't how I'd prefer to do it.

 Thanks.



 Dave -

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

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


Re: [Flashcoders] System.Locale

2006-03-24 Thread Ian Thomas
What you want is System.capabilities.language:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2061.html

Sorry for the long URL - that's livedocs for you!

HTH,
  Ian

On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote:
 Regarding Internationalization - does the Flash Player have access to
 the language code or is it something that needs to be passed in to your
 movie?



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

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

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

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


[Flashcoders] draws and regions

2006-03-24 Thread riccardo.roasio
I have a big (for me) problem,

i have a grpah made of a series of point (of one pixel).
I need taht the user can draw a series of line on this graph to make a 
shape or region.
This is the first problem: how to permit to the user to draw...

The second is this one :

there is a way to check if a point is inside the refion or outside?


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

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


RE: [Flashcoders] System.Locale

2006-03-24 Thread Robert Chyko
Thanks Ian.

This is pretty much what I need except actual Locale would be better
(only because it doesn't differential en-us from en-uk). But apparently
that is what they did away with in Flash Player 7, according to the
docs:

In Flash Player 6 on the Microsoft Windows platform,
System.capabilities.language returns the User Locale, which controls
settings for formatting dates, times, currency and large numbers. In
Flash Player 7 on the Microsoft Windows platform, this property now
returns the UI Language, which refers to the language used for all
menus, dialog boxes, error messages and help files.

Looks like I am 2 versions too late.  I wonder why they got rid of the
Locale?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Friday, March 24, 2006 12:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] System.Locale


What you want is System.capabilities.language:

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
whelp.htm?context=LiveDocs_Partsfile=2061.html

Sorry for the long URL - that's livedocs for you!

HTH,
  Ian

On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote:
 Regarding Internationalization - does the Flash Player have access to
 the language code or is it something that needs to be passed in to
your
 movie?



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

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

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

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

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


RE: [Flashcoders] System.Locale

2006-03-24 Thread Francis Cheng
Re: the long livedocs links: that was one of the first enhancement
requests we received, so now at the bottom of every livedocs page you
will find a more user-friendly link (look for the text Current page:
http://...;). For example, the page you mention is:

http://livedocs.macromedia.com/flash/8/main/2061.html

HTH,

Francis

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: Friday, March 24, 2006 9:54 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] System.Locale
 
 What you want is System.capabilities.language:
 

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
wh
 elp.htm?context=LiveDocs_Partsfile=2061.html
 
 Sorry for the long URL - that's livedocs for you!
 
 HTH,
   Ian
 
 On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote:
  Regarding Internationalization - does the Flash Player have access
to
  the language code or is it something that needs to be passed in to
your
  movie?
 
 
 
  Bob
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[FlashCoders] BitmapData.dispose()

2006-03-24 Thread Dimitrios Bendilas
Hello,

Quick question.

private function createBitmap():Void {
var bitmap:BitmapData = new Bitmap(200, 200, false, 0xFF);
clip.attachBitmap(bitmap, 0);
}

If I never execute .dispose() on the bitmap, does it remain in memory?
It seems logical to me that it remains there only until the function is
finished. It's a local variable so I would expect the memory gets freed
as soon as the local variable dies.

Thanks!

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

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


Re: [FlashCoders] BitmapData.dispose()

2006-03-24 Thread André Nachtigall Tessmann
Hello,

It looks that the garbage collector deal different with BitmapData
objects. You can easily use some Gigabytes of memory putting this code
in some onEnterFrame loop for example. You can find more about this
issue on Grant Skinner blog...it was discussed there a time ago.

http://www.gskinner.com/blog/archives/2005/10/major_flash_pla.html


Good luck!

Andre

On 3/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:
 Hello,

 Quick question.

 private function createBitmap():Void {
 var bitmap:BitmapData = new Bitmap(200, 200, false, 0xFF);
 clip.attachBitmap(bitmap, 0);
 }

 If I never execute .dispose() on the bitmap, does it remain in memory?
 It seems logical to me that it remains there only until the function is
 finished. It's a local variable so I would expect the memory gets freed
 as soon as the local variable dies.

 Thanks!

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

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



--
/*
André Nachtigall Tessmann
[EMAIL PROTECTED]
+55 53 81165721
*/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [FlashCoders] BitmapData.dispose()

2006-03-24 Thread Ing. Mario Falomir
Yes,  BMP Obj remains in memory, you need to have a reference to that Object
so you can dispose it later.

import flash.display.BitmapData;
var bitmap:BitmapData;

function createBitmap():Void {
   bitmap = new BitmapData(500, 500, false, 0xFF);
   _root.attachBitmap(bitmap, 0);
}

clickObj = {};

clickObj.onMouseDown = function()
{
_root.bitmap.dispose();
}

Mouse.addListener( clickObj );

createBitmap();

On 3/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:

 Hello,

 Quick question.

 private function createBitmap():Void {
 var bitmap:BitmapData = new Bitmap(200, 200, false, 0xFF);
 clip.attachBitmap(bitmap, 0);
 }

 If I never execute .dispose() on the bitmap, does it remain in memory?
 It seems logical to me that it remains there only until the function is
 finished. It's a local variable so I would expect the memory gets freed
 as soon as the local variable dies.

 Thanks!

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

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

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

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


Re: [FlashCoders] BitmapData.dispose()

2006-03-24 Thread elibol
bitmapData remains in memory, even when the bitmapData objects refrence
count reaches zero, in which case, dispose() can no longer be called on the
bitmapData object, causing memory leak.

There is more on this subject, you should find more information on it
searching google, the flashcoders archive, and so forth. To my knowledge,
this behavior persists in the newest commerical player release.

M.

On 3/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:

 Hello,

 Quick question.

 private function createBitmap():Void {
 var bitmap:BitmapData = new Bitmap(200, 200, false, 0xFF);
 clip.attachBitmap(bitmap, 0);
 }

 If I never execute .dispose() on the bitmap, does it remain in memory?
 It seems logical to me that it remains there only until the function is
 finished. It's a local variable so I would expect the memory gets freed
 as soon as the local variable dies.

 Thanks!

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

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

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

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


[Flashcoders] troubles with 'Google searchbox'

2006-03-24 Thread MetaArt
I'm inserting a 'Google searchbox' in a full-Flash website; my needs, is to
set three search chances: on Google, on Google scholar or on Google print.
But, just with this last, I have some troubles.
This is my AS:
Inside a mc, I have an input textfield, called 'query'.
In the (only) frame of mc, I have the AS: myquery = this.query;
The button have this action (here just for Google print):
getURL(http://books.google.com/books?q=+myquery+btnG=Cerca+nei+librihl=
itas_brr=0, _blank, GET);
but when the button is clicked, the new page open with the default search
page of Google print, with the input textfield empty and the cursor
prompted. The URL in address bar result like this:
http://books.google.com/books?q=btnG=Cerca+nei+librihl=itas_brr=0query=s
unmyquery=
where 'sun' is the word typed in the Flash input textfield.
Why this don't work, when all works fine with Google scholar and Google? How
can I solve this?
Any help will be really appreciate!

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

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

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


RE: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread Ettwein, Josh
It was also the only way to get a safe buzz when going out with friends
at a party if you were training and couldn't have alcohol. Not saying it
was smart... It is really safe though when used properly, like anything
else. :) It was legal, and OTC till 1990...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee
McColl-Sylvester
Sent: Friday, March 24, 2006 3:33 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Using Flash with Ruby on Rails

I used to use GammaHydroxyButyrate back in my bodybuilding days (don't
laugh, it's true).  Used to double the effects of some of the other
supplements I used.  It's safe to take, but some people found it
enhanced the effects of hardcore drugs, so it was taken off the
market... Well, made illegal.

Damn snotty nosed, pimple faced, doped up drug taking little sons of
somethingorothers.

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

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


Re: [Flashcoders] Using Flash with Ruby on Rails

2006-03-24 Thread ryanm

'It influences a part of the brain called Shatner's Bassoon'


   I'm stealing that. :-P

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

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


Re: [FlashCoders] BitmapData.dispose()

2006-03-24 Thread Dimitrios Bendilas

Thank you all guys. I think this makes it rather difficult
to deal with if you use bitmaps a lot.

I've built a complex RasterText class that works with bitmaps
and in some cases it's very useful to render the text, get the
resulting bitmap and then destroy the RasterText instance. The
bitmap could then be attached on a movieclip. If you do that
with dozens of bitmaps it's a pain to keep track of all of them in
seperate variables.

Anyway,

Thanks a lot!

Regards,
Dimitrios Bendilas


- Original Message - 
From: André Nachtigall Tessmann [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, March 24, 2006 9:01 PM
Subject: Re: [FlashCoders] BitmapData.dispose()


Hello,

It looks that the garbage collector deal different with BitmapData
objects. You can easily use some Gigabytes of memory putting this code
in some onEnterFrame loop for example. You can find more about this
issue on Grant Skinner blog...it was discussed there a time ago.

http://www.gskinner.com/blog/archives/2005/10/major_flash_pla.html


Good luck!

Andre

On 3/24/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:

Hello,

Quick question.

private function createBitmap():Void {
var bitmap:BitmapData = new Bitmap(200, 200, false, 0xFF);
clip.attachBitmap(bitmap, 0);
}

If I never execute .dispose() on the bitmap, does it remain in memory?
It seems logical to me that it remains there only until the function is
finished. It's a local variable so I would expect the memory gets freed
as soon as the local variable dies.

Thanks!

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

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




--
/*
André Nachtigall Tessmann
[EMAIL PROTECTED]
+55 53 81165721
*/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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

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


Re: [Flashcoders] IE vulnerability

2006-03-24 Thread John Dowdell

Éric Thibault wrote:
How are we going to explain to our clients the new alert box poping up 
when you talk to a function on the HTML page from Flash

Read this : http://isc.sans.org/diary.php?storyid=1212


There's been a good amount of discussion of this issue already on 
FlashCoders, usually referring to the more complete resources that were 
immediately mounted on the Adobe site after Microsoft committed to this 
early distribution in (a) IE7 previews and (b) IE6 users who happened to 
find and select this option in the current Windows Update routines. Link:

http://www.macromedia.com/devnet/ActiveContent

Summary: Content still displays, but needs a confirmation click for user 
interactivity to start. This behavior is similar to how plugins need an 
initial click for the browser's focus to transfer within the content, 
and is not as obtrusive as the behavior of the FlashBlock plugin for 
Firefox.
   You can avoid this new legally-prompted behavior by writing your 
OBJECT and EMBED tags from an external JavaScript file, as advertisers 
usually do, and as people concerned about W3C validation of their markup 
already do.


jd





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

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


[Flashcoders] Beware of depth 9876

2006-03-24 Thread Eskil Janson

I suppose this has been discussed a few times already, but if not:

When you use the Tween class, an Instance of the Class 
mx.transitions.OnEnterFrameBeacon is

created if not already existing.

In that Class the following line is executed:

var mc = _root.createEmptyMovieClip (__OnEnterFrameBeacon, 9876);

which means that if you have anything at that depth (9876) already, it 
will disappear.
You can confirm this by  a simple test like pasting the following code 
in the first frame of your movie:

(change the depth to 9875 or 9877 and see the difference..)
---
import mx.transitions.Tween;
this.createEmptyMovieClip(square_mc, 9876);
square_mc.beginFill(0xFF);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
var myTween:Tween = new Tween(square_mc, _x, 
mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);



So if you are in a large dynamic project swapping depths a lot and using 
Tweens, and been experiencing strange problems,

this may be worth to know...

All cred to Robert Penner (obviously the genius behind the Tween Class), 
but I think this detail could have been improved on before shipping with 
Flash 8.


Sorry if this has been discussed already...

Regards

/Eskil


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

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


[Flashcoders] Flash and Servlet

2006-03-24 Thread Tarun Abhichandani
 
Hi:
 
Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.
 
I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).
 
I can use the servlet using html form.
 
In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?
 
Thanks for considering,
Tarun
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

RE: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Scott Hyndman
With LoadVars, you dynamically assign a property

So basically,

var lv:LoadVars = new LoadVars();
lv.xmlContents = xmlString;
lv.sendAndLoad(...);

The doPost method will be passed the request containing the xmlContents 
variable.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc: 
Subject:[Spam][Flashcoders] Flash and Servlet

 
Hi:
 
Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.
 
I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).
 
I can use the servlet using html form.
 
In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?
 
Thanks for considering,
Tarun
 


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

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

RE: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Scott Hyndman
Just so you know, XML.sendAndLoad() maybe more appropriate for what you are 
doing.

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary856.html

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc: 
Subject:[Spam][Flashcoders] Flash and Servlet

 
Hi:
 
Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.
 
I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).
 
I can use the servlet using html form.
 
In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?
 
Thanks for considering,
Tarun
 


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

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

RE: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Tarun Abhichandani
Well...considering I have a XML file. This string might be really long. I will 
have to set the Content-length ot a high number I guessAm I right?
 
Thanks,
Tarun



From: [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent: Fri 3/24/2006 12:31 PM
To: Flashcoders mailing list
Subject: RE: [Spam][Flashcoders] Flash and Servlet



With LoadVars, you dynamically assign a property

So basically,

var lv:LoadVars = new LoadVars();
lv.xmlContents = xmlString;
lv.sendAndLoad(...);

The doPost method will be passed the request containing the xmlContents 
variable.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc:
Subject:[Spam][Flashcoders] Flash and Servlet


Hi:

Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.

I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).

I can use the servlet using html form.

In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?

Thanks for considering,
Tarun





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

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

RE: [Spam][Flashcoders] Flash and Servlet

2006-03-24 Thread Scott Hyndman
In Flash you mean?

No need. All parts of the request will be filled out for you by Flash. Just set 
your variable, and call the method. :)

In fact, on the servlet side I don't think it's even necessary to specify 
content-length all the time (just so you know).

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:34 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Spam][Flashcoders] Flash and Servlet

Well...considering I have a XML file. This string might be really long. I will 
have to set the Content-length ot a high number I guessAm I right?
 
Thanks,
Tarun



From: [EMAIL PROTECTED] on behalf of Scott Hyndman
Sent: Fri 3/24/2006 12:31 PM
To: Flashcoders mailing list
Subject: RE: [Spam][Flashcoders] Flash and Servlet



With LoadVars, you dynamically assign a property

So basically,

var lv:LoadVars = new LoadVars();
lv.xmlContents = xmlString;
lv.sendAndLoad(...);

The doPost method will be passed the request containing the xmlContents 
variable.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Tarun Abhichandani
Sent:   Fri 3/24/2006 3:23 PM
To: Flashcoders mailing list
Cc:
Subject:[Spam][Flashcoders] Flash and Servlet


Hi:

Really new to Servlet and Flash functionality. So, the doubt may seem basic. 
Any help would be great.

I am trying to call a Java Servlet that supports doPost method. It uploads an 
XML file on the application server and names that file based on certain details 
(userid, etc).

I can use the servlet using html form.

In Flash, I know that we need to use LoadVars. But what function/ method I use 
for specifying the file that needs to be uploaded before actually doing 
LoadVars.sendAndLoad?

Thanks for considering,
Tarun







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

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

RE: [Flashcoders] System.Locale

2006-03-24 Thread Francis Cheng
We changed it as of Flash Player 7 because the locale isn't really a
language setting, it only deals with formatting of dates, times, etc.,
so it was misleading to call it System.capabilities.language. Moreover,
there was no way in Flash Player 6 to get information about the actual
localized OS version. We thought it would be far more useful to get
information about the actual language of the localized version of the
OS, as opposed to the setting for dates, times, etc.

==
Flash Player 6 System.capabilities.language == Windows User Locale
This is an excerpt from the Windows documentation for User Locale
(http://www.microsoft.com/globaldev/reference/localetable.mspx):

The user locale determines, which default settings a user wants to use
for formatting dates, times, currency, and large numbers. Although it's
presented as a language (some in a combination with a country), it's not
a language setting.

==
Flash Player 7+ System.capabilities.language == Windows UI Language
Another excerpt from the Windows docs:

The system language is the language of the localized version that was
used to setup Windows 2000. All menus, dialog, error messages, and help
files are in this language, except on Windows 2000 Multilanguage
Version, where the user can select a different language.


If you would like a new System.capabilities.locale property added that
gives you the user locale, I encourage you to file an enhancement
request on our web page. We do actually tally the responses we get from
those. 

http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform

HTH,
Francis



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Robert Chyko
 Sent: Friday, March 24, 2006 10:05 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] System.Locale
 
 Thanks Ian.
 
 This is pretty much what I need except actual Locale would be better
 (only because it doesn't differential en-us from en-uk). But
apparently
 that is what they did away with in Flash Player 7, according to the
 docs:
 
 In Flash Player 6 on the Microsoft Windows platform,
 System.capabilities.language returns the User Locale, which controls
 settings for formatting dates, times, currency and large numbers. In
 Flash Player 7 on the Microsoft Windows platform, this property now
 returns the UI Language, which refers to the language used for all
 menus, dialog boxes, error messages and help files.
 
 Looks like I am 2 versions too late.  I wonder why they got rid of the
 Locale?
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian
 Thomas
 Sent: Friday, March 24, 2006 12:54 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] System.Locale
 
 
 What you want is System.capabilities.language:
 

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
 whelp.htm?context=LiveDocs_Partsfile=2061.html
 
 Sorry for the long URL - that's livedocs for you!
 
 HTH,
   Ian
 
 On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote:
  Regarding Internationalization - does the Flash Player have access
to
  the language code or is it something that needs to be passed in to
 your
  movie?
 
 
 
  Bob
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] array of movieCLip

2006-03-24 Thread riccardo.roasio
If i create n movieclip with the createEmptyMovieClip giving to anyone a 
different name is possible to know the x and y value from another function?
To me seem no , if i create for example 10 movie clip and in another function 
i write 
trace(x : +movieclip1._x) 
trace(y : +movieclip1._y) 

trace(x : +movieclip2._x) 
trace(y : +movieclip2._y) 


...


it writes always 0...


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

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


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread Merrill, Jason
If you have your scope right - it shouldn't be any problem.  Are you
sure the instance names of the movie clips are correct?  Are you sure
the path to the movie clips are correct?

theMovieClipInstance._x always equals the x position of the movie clip,
no matter how it was created.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, March 24, 2006 4:10 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] array of movieCLip

If i create n movieclip with the createEmptyMovieClip giving to anyone
a
different name is possible to know the x and y value from another
function?
To me seem no , if i create for example 10 movie clip and in another
function
i write
trace(x : +movieclip1._x)
trace(y : +movieclip1._y)

trace(x : +movieclip2._x)
trace(y : +movieclip2._y)


...


it writes always 0...


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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread riccardo.roasio
I tryed to trace the movieclip ?width and height properties and it works, 
but if i try with x and y it write 0 ...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] array of movieCLip

2006-03-24 Thread Byron Canfield
The initial coordinates of a dynamically created movieclip are always 0.

Unless you have explicitly assigned a new value to the _x property of a
dynamically created movieclip, it will be zero.

-- 
Byron Barn Canfield


 If i create n movieclip with the createEmptyMovieClip giving to anyone a
 different name is possible to know the x and y value from another
 function?
 To me seem no , if i create for example 10 movie clip and in another
 function
 i write
 trace(x : +movieclip1._x)
 trace(y : +movieclip1._y)

 trace(x : +movieclip2._x)
 trace(y : +movieclip2._y)


 ...


 it writes always 0...


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

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


RE: [Flashcoders] System.Locale

2006-03-24 Thread Robert Chyko
Thank you for the information Fracis - I have submitted a Feature
Request.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francis
Cheng
Sent: Friday, March 24, 2006 4:01 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] System.Locale


We changed it as of Flash Player 7 because the locale isn't really a
language setting, it only deals with formatting of dates, times, etc.,
so it was misleading to call it System.capabilities.language. Moreover,
there was no way in Flash Player 6 to get information about the actual
localized OS version. We thought it would be far more useful to get
information about the actual language of the localized version of the
OS, as opposed to the setting for dates, times, etc.

==
Flash Player 6 System.capabilities.language == Windows User Locale
This is an excerpt from the Windows documentation for User Locale
(http://www.microsoft.com/globaldev/reference/localetable.mspx):

The user locale determines, which default settings a user wants to use
for formatting dates, times, currency, and large numbers. Although it's
presented as a language (some in a combination with a country), it's not
a language setting.

==
Flash Player 7+ System.capabilities.language == Windows UI Language
Another excerpt from the Windows docs:

The system language is the language of the localized version that was
used to setup Windows 2000. All menus, dialog, error messages, and help
files are in this language, except on Windows 2000 Multilanguage
Version, where the user can select a different language.


If you would like a new System.capabilities.locale property added that
gives you the user locale, I encourage you to file an enhancement
request on our web page. We do actually tally the responses we get from
those. 

http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform

HTH,
Francis



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Robert Chyko
 Sent: Friday, March 24, 2006 10:05 AM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] System.Locale
 
 Thanks Ian.
 
 This is pretty much what I need except actual Locale would be better
 (only because it doesn't differential en-us from en-uk). But
apparently
 that is what they did away with in Flash Player 7, according to the
 docs:
 
 In Flash Player 6 on the Microsoft Windows platform,
 System.capabilities.language returns the User Locale, which controls
 settings for formatting dates, times, currency and large numbers. In
 Flash Player 7 on the Microsoft Windows platform, this property now
 returns the UI Language, which refers to the language used for all
 menus, dialog boxes, error messages and help files.
 
 Looks like I am 2 versions too late.  I wonder why they got rid of the
 Locale?
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian
 Thomas
 Sent: Friday, March 24, 2006 12:54 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] System.Locale
 
 
 What you want is System.capabilities.language:
 

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
 whelp.htm?context=LiveDocs_Partsfile=2061.html
 
 Sorry for the long URL - that's livedocs for you!
 
 HTH,
   Ian
 
 On 3/24/06, Robert Chyko [EMAIL PROTECTED] wrote:
  Regarding Internationalization - does the Flash Player have access
to
  the language code or is it something that needs to be passed in to
 your
  movie?
 
 
 
  Bob
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your 

RE: [Flashcoders] array of movieCLip

2006-03-24 Thread riccardo.roasio
I found the problem...

i solve it adding the .x and .y properties to every movieclip and passing them 
the movie clip position.

In this way i can retrieve these values with movieclip.x and movieclip.y

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

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


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread Merrill, Jason
With mc.x or mc._x?  Try mc._x

It works, try it again. 

You also might consider posting some code so we can see what you're
trying to do. 

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, March 24, 2006 4:26 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] array of movieCLip

I tryed to trace the movieclip ?width and height properties and it
works,
but if i try with x and y it write 0 ...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] array of movieCLip

2006-03-24 Thread Merrill, Jason
Byron's right, I was assuming since that is the case you had already
moved the movie clip and was polling what the new X and Y values were.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com










-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Byron Canfield
Sent: Friday, March 24, 2006 4:34 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] array of movieCLip

The initial coordinates of a dynamically created movieclip are always
0.

Unless you have explicitly assigned a new value to the _x property of
a
dynamically created movieclip, it will be zero.

--
Byron Barn Canfield


 If i create n movieclip with the createEmptyMovieClip giving to
anyone a
 different name is possible to know the x and y value from another
 function?
 To me seem no , if i create for example 10 movie clip and in another
 function
 i write
 trace(x : +movieclip1._x)
 trace(y : +movieclip1._y)

 trace(x : +movieclip2._x)
 trace(y : +movieclip2._y)


 ...


 it writes always 0...


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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Beware of depth 9876

2006-03-24 Thread Michael Stuhr

Eskil Janson schrieb:

I suppose this has been discussed a few times already, but if not:


  
hadn't heard of that, and i'm sure it wasn't already discussed on this 
list.


thanks for the info.

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

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


[Flashcoders] save as bitmap

2006-03-24 Thread riccardo.roasio
Hi,
there is the possibility to save a movie as a Bitmap?

Something like printAsBitmap but that permit to save as image or to copy as 
image?

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

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


Re: [Flashcoders] Beware of depth 9876

2006-03-24 Thread Michael Bedar
In general it is a good idea not to work on the root level for  
anything making movieclips...  much better to create a container clip  
first on root and play in that.



On Mar 24, 2006, at 2:53 PM, Eskil Janson wrote:


I suppose this has been discussed a few times already, but if not:

When you use the Tween class, an Instance of the Class  
mx.transitions.OnEnterFrameBeacon is

created if not already existing.

In that Class the following line is executed:

var mc = _root.createEmptyMovieClip (__OnEnterFrameBeacon, 9876);

which means that if you have anything at that depth (9876) already,  
it will disappear.
You can confirm this by  a simple test like pasting the following  
code in the first frame of your movie:

(change the depth to 9875 or 9877 and see the difference..)
---
import mx.transitions.Tween;
this.createEmptyMovieClip(square_mc, 9876);
square_mc.beginFill(0xFF);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
var myTween:Tween = new Tween(square_mc, _x,  
mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);
-- 
--


So if you are in a large dynamic project swapping depths a lot and  
using Tweens, and been experiencing strange problems,

this may be worth to know...

All cred to Robert Penner (obviously the genius behind the Tween  
Class), but I think this detail could have been improved on before  
shipping with Flash 8.


Sorry if this has been discussed already...

Regards

/Eskil


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

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


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

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