Re: [Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Ron Wheeler
You might want to read Head First Design Patterns for some good ideas 
about how to write good code.
Lots of practical ideas about many of te situations that you need to 
resolve.


Ron

Andrew wrote:

Hi

I'm new to OOP programming in AS2.

I'm writing two classes right now. One which creates/manipulates an 
array of XMLNodes and one which watches for an internet connection. 
When it finds a connection, it starts to send the XMLNodes from the 
queue back to a server one by one.


So far I've written the Queue class.

class com.Queue {
private var _milestoneXMLNode:XMLNode;
private var _aQueue:Array;
//Constructor
public function Queue() {
_aQueue = new Array();
}
//Methods
public function addMilestoneToQueue(milestoneXMLNode:XMLNode):Void {
_aQueue.push(milestoneXMLNode);
}
private function getQueue():Array {
return _aQueue;
}
private function getFirstMessageInQueue():XMLNode {
return _aQueue[0];
}
private function deleteFirstMessageFromQueue():Void {
_aQueue.splice(0,1)
}
}

Now the real question I have is how to get the first element from the 
Queue, i.e. _aQueue[0] from the Queue class into the Connection class 
so that it can be sent back to the server?


class com.Connection {
private var _isConnection:Boolean;
//Constructor
public function Connection() {
//No connection by default
_isConnection = false;
}
//Methods
private function detectConnection():Void {
//
}

}

How do I do this? Or does this break encapsulation? I'm a bit stuck, 
would appreciate any advice.


Cheers
Andrew


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

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



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

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


Re: [Flashcoders] text attribute!

2007-04-24 Thread 阿本
sherif79,你好
I want change the input textbox to static textbox !

[EMAIL PROTECTED]
2007-04-24 
- Original Message - 
From: Sherif Elshazly 
To: james.miao 
Sent: 2007-04-23, 19:12:21
Subject: Re: [Flashcoders] text attribute!


What attribute do you want to change?


- Original Message 
From: 挨塑 [EMAIL PROTECTED]
To: flashcoders flashcoders@chattyfig.figleaf.com
Sent: Monday, April 23, 2007 10:17:38 AM
Subject: [Flashcoders] text attribute!


flashcoders・�斑�?br Has someone tell me how to change the textbox's 
attribute use AS ??
I want a inputtextbox when I was type something in it and press one button ,the 
textbox's attribute changd!
Thanks!!

Ben James

[EMAIL PROTECTED]
2007-04-23
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

Re: [Flashcoders] help with datagrid flash 8

2007-04-24 Thread Stefan Thurnherr

Hi Gustavo,

I assume that myBlog is a DataGrid component.

First of all dataProvider is a property, so the syntax to set it is as follows:
myBlog.dataProvider = myParsedRssData;

Second I think you need something in between your RSS feed and your
DataGrid component. This something must parse your rss.cfm and format
it so that it can be fed into your DataGrid's dataProvider property. I
have no experience in binding a DataGrid to Web data, but a quick
Google search turned up this:
http://www.flash-db.com/Tutorials/databind/CatalogTutorial.php?page=6
. It should be applicable for your case (although its DB access and
flash MX).

HTH,
stefan.


On 4/23/07, Merrill, Jason [EMAIL PROTECTED] wrote:

I don't know what your cfm returns, but it needs to match what
dataProvider expects.  See info on dataprovider in the help docs.

Jason Merrill
Bank of America
GTO Learning  Leadership Development
eTools  Multimedia Team



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] The great CS3 Swindle

2007-04-24 Thread Zárate

Hi guys,

Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the subject. He gathers lots of data with really
clear graphics about prices and countries. Then a couple of questions
for Adobe:

http://web.mac.com/libine/iWeb/Site/Article.html

I think we really should keep the pressure up and force Adobe to
at least give a public, official explanation. Hopefully a review of
the prices.

Cheers,

Juan

On 4/7/07, Søren Christensen [EMAIL PROTECTED] wrote:



Yes it is totally f*ckd up - production bundle upgrade:
us: $1199 / €897 eu/spain: $2630 / €1967

So guess which side of the atlantic i am buying my upgrade ;-)

Cheers,
 B) Søren

On Mar 28, 2007, at 4:27 PM, Joe Wheeler wrote:

 Has anyone checked out the international prices on CS3?

 I can hardly believe how badly the UK is getting fleeced.

 I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design
 Premium. In
 the US that's $599.00 dollars, but in the UK pounds it works out to
 £703.82.
 Take the exchange rate into account and UK customers are paying...


 1,384.51 USD!!!

 Sales tax in the UK is 17.5% but the Adobe price hike is a whopping
 231% - W
 T F?

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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




--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.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] The great CS3 Swindle

2007-04-24 Thread Cedric Muller
I will  print this PDF and distribute it around ... to consumer  
associations and the students

It has to be done whatever the reasons. Things must be fair and correct.
Thanks
Cedric



Hi guys,

Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the subject. He gathers lots of data with really
clear graphics about prices and countries. Then a couple of questions
for Adobe:

http://web.mac.com/libine/iWeb/Site/Article.html

I think we really should keep the pressure up and force Adobe to
at least give a public, official explanation. Hopefully a review of
the prices.

Cheers,

Juan

On 4/7/07, Søren Christensen [EMAIL PROTECTED] wrote:



Yes it is totally f*ckd up - production bundle upgrade:
us: $1199 / €897 eu/spain: $2630 / €1967

So guess which side of the atlantic i am buying my upgrade ;-)

Cheers,
 B) Søren

On Mar 28, 2007, at 4:27 PM, Joe Wheeler wrote:

 Has anyone checked out the international prices on CS3?

 I can hardly believe how badly the UK is getting fleeced.

 I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design
 Premium. In
 the US that's $599.00 dollars, but in the UK pounds it works out to
 £703.82.
 Take the exchange rate into account and UK customers are paying...


 1,384.51 USD!!!

 Sales tax in the UK is 17.5% but the Adobe price hike is a whopping
 231% - W
 T F?

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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




--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.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] The great CS3 Swindle

2007-04-24 Thread Ian Thomas

Excellent article. I'll pass it around.

Ian

On 4/24/07, Zárate [EMAIL PROTECTED] wrote:

Hi guys,

Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the subject. He gathers lots of data with really
clear graphics about prices and countries. Then a couple of questions
for Adobe:

http://web.mac.com/libine/iWeb/Site/Article.html

I think we really should keep the pressure up and force Adobe to
at least give a public, official explanation. Hopefully a review of
the prices.

Cheers,

Juan

On 4/7/07, Søren Christensen [EMAIL PROTECTED] wrote:


 Yes it is totally f*ckd up - production bundle upgrade:
 us: $1199 / €897 eu/spain: $2630 / €1967

 So guess which side of the atlantic i am buying my upgrade ;-)

 Cheers,
  B) Søren

 On Mar 28, 2007, at 4:27 PM, Joe Wheeler wrote:

  Has anyone checked out the international prices on CS3?
 
  I can hardly believe how badly the UK is getting fleeced.
 
  I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design
  Premium. In
  the US that's $599.00 dollars, but in the UK pounds it works out to
  £703.82.
  Take the exchange rate into account and UK customers are paying...
 
 
  1,384.51 USD!!!
 
  Sales tax in the UK is 17.5% but the Adobe price hike is a whopping
  231% - W
  T F?
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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



--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.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] The great CS3 Swindle

2007-04-24 Thread Dave Wood
A related issue which has got me wondering is what to do with some of  
my old software...


The upgrade path to either CS3 Web Premium or Design premium assumes  
that we have one of several existing versions of software including  
Creative Suite 2 OR Macromedia Studio 8.


I'm sure there are many others on this list who own BOTH of these,  
yet that counts for nothing when upgrading.


I'm contemplating using Studio 8 to unlock the upgrade package then  
selling Creative Suite 2 - with the proper licence transfer of course.


I suppose I could also purchase two copies of the Cretaive Suite 3 -   
use CS2 to unlock one and Macromedia Studio 8 to unlock the other,  
then onsell one of the CS3 bundles.


Any thoughts?

David
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shared Font Symbol

2007-04-24 Thread gantulga tsenguun

Hello Dembicki
  I am Mongolian student. I can't Do this. sorry Don't write mail again Please

Иван Дембицкий [EMAIL PROTECTED] wrote: Hello Matheus,

http://www.sharedfonts.com/eng/faq.html#include

 A don't use all the caracters that it�s being embeded and I need my file to
 be smaller...

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

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

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread Vivek Lakhanpal

Hi Everyone,

Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?

I don't want to use flashvars or javascript. Pure swf/AS.

--
Thanks  Regards,
Vivek Lakhanpal
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Re: Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread Vivek Lakhanpal

sorry i repeated this question. I found answer to this question on
flashnewbie posted yesterday.

On 4/24/07, Vivek Lakhanpal [EMAIL PROTECTED] wrote:


Hi Everyone,

Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?

I don't want to use flashvars or javascript. Pure swf/AS.

--
Thanks  Regards,
Vivek Lakhanpal





--
Thanks  Regards,
Vivek Lakhanpal
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shared Font Symbol

2007-04-24 Thread Иван Дембицкий

Hello Gantulga,

Don't worry.
Relax.
And try again.

--
iv

2007/4/24, gantulga tsenguun [EMAIL PROTECTED]:


Hello Dembicki
 I am Mongolian student. I can't Do this. sorry Don't write mail again Please

Иван Дембицкий [EMAIL PROTECTED] wrote: Hello Matheus,

http://www.sharedfonts.com/eng/faq.html#include

 A don't use all the caracters that it�s being embeded and I need my file to
 be smaller...

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

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


-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Can we know the domain name from where swf file is currently playing?

2007-04-24 Thread opto-type

You can use _url like this:

nomRoot = this;
src = nomRoot._url;

Patrick

2007/4/24, Vivek Lakhanpal [EMAIL PROTECTED]:


Hi Everyone,

Is there anyway we can check where from the current swf file is being
played? Something similar to location.href of javascript?

I don't want to use flashvars or javascript. Pure swf/AS.

--
Thanks  Regards,
Vivek Lakhanpal
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] there is a problem plz help

2007-04-24 Thread Waseem Shahzad

/*

to find greater no. from the array whats the problem with this algo.

 please help


 */



#includeiostream.h


void main(){

int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};

int greater=0;

for(int i=0; i15;){

 if(arr[i++]greater){
  greater=arr[i];

 }

}

coutgreater is greaterendl;


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

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


Re: [Flashcoders] flash and paypal

2007-04-24 Thread allandt

super-useful guys, thankyou

how secure is this? are there any passwords or seller account details  
sent by flash to paypal?


Quoting Jordan Snyder [EMAIL PROTECTED]:


That was helpful John!

FYI, it seems your Google Checkout code is broken!


Cheers

On 4/23/07, John Hattan [EMAIL PROTECTED] wrote:
You don't need any third-party API's to talk to paypal. Since the   
paypal site accepts standard GET and POST CGI data, sending a   
transaction to Paypal can be done by setting up a LoadVars object,   
setting the parameters to your shopping cart in the object, then   
sending that LoadVars object to PayPal's little processor at   
https://www.paypal.com/cgi-bin/webscr


(note that there's apparently a long-standing bug in Flash's   
POST-handler, so I just use GET. It makes for ugly URL's, but it   
works)


As for doing back-end processing from Paypal (i.e. being notified   
that somebody bought something and you need to act on that   
purchase), google for IPN, which is Paypal's spec for creating   
and acting on transactions. Paypal's got good sample code in   
several server-side languages along with developer forums and a   
sandbox (i.e. a fake paypal where you can test your code without   
spending real money).


The process basically goes like this. . .

1. You send your shopping cart data to paypal (either from Flash or  
 some other browser-based shopping-cart solution)

2. The user is sent to paypal where he pays for the transaction.
3. Paypal contacts some server-side code telling you that somebody   
bought something.
4. You verify the transaction with paypal (to make sure you're not   
being spoofed)
5. If verified, do whatever's necessary to complete the   
transaction, like email the user a download link.


Here's my little shopping-cart. Note that it also talks to Google   
Checkout, which has a few more steps but is otherwise similar.


http://www.thecodezone.com/buy.html



- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 23, 2007 11:23:40 AM
Subject: [Flashcoders] flash and paypal

i'm going to be producing a site which sells some exclusive, single
and multiple (ie shopping cart) products which i'd like to do in flash.

the client wants to use paypal to begin with (it's a startup).

Does anyone have any experience with using flash with paypal? Can you
recommend any good tutorial sites or 3rd party api's?

Hope you guys can help

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

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



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

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




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.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] there is a problem plz help

2007-04-24 Thread Petrus Rademeyer

you check if the arr[i] is greater than greater and then you increment i
rather do

for(int i=0; i15;i++){

if(arr[i]greater){
 greater=arr[i];
 }

}

:)

Waseem Shahzad wrote:

/*

to find greater no. from the array whats the problem with this algo.

 please help


 */



#includeiostream.h


void main(){

int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};

int greater=0;

for(int i=0; i15;){

 if(arr[i++]greater){
  greater=arr[i];

 }

}

coutgreater is greaterendl;


}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] there is a problem plz help

2007-04-24 Thread Claus Wahlers



to find greater no. from the array whats the problem with this algo.
please help



int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int greater=0;
for(int i=0; i15;){
 if(arr[i++]greater){
  greater=arr[i];
 }
}


First of all, it's C.

Second, try incrementing i inside the for statement, otherwise the 
algorithm reports the wrong value:

for(int i=0; i15; i++)

The Actionscript equivalent would be something like this:
var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
for(var i:Number = 0; i  arr.length; i++){
if(arr[i]  greater) {
greater = arr[i];
}
}
trace(greater is  + greater + \n);

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shifting points 90 degrees

2007-04-24 Thread Adrian Lynch
Hey all,

I'm using the tutorial on building a carousel from gotoandlearn.com as the
basis of one that has a few more things it can do.

I'm having trouble with the placement of items on the circle at the
beginning.

The angle is derived with:

t.angle = i * ((Math.PI * 2) / numOfItems);

The x and y coords are derived with:

t._x = Math.cos(t.angle) * radiusX + centerX;
t._y = Math.sin(t.angle) * radiusY + centerY;

This starts the placement of the items on the circle starting at 3
o'clock(east), whereas I would like them to start at 6 o'clock(south).

How would I go about adding 90 degrees to the initial placement?

Cheers.

Adrian

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Shifting points 90 degrees

2007-04-24 Thread Adrian Lynch
Through playng about, I've come up with changing:

t.angle = i * ((Math.PI * 2) / numOfItems);

to:

t.angle = (i * ((Math.PI * 2) / numOfItems)) + (Math.PI * .5);

Adding 90 degrees to all items.

Seems to work :O)

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian
Lynch
Sent: 24 April 2007 11:22
To: Flashcoders
Subject: [Flashcoders] Shifting points 90 degrees


Hey all,

I'm using the tutorial on building a carousel from gotoandlearn.com as the
basis of one that has a few more things it can do.

I'm having trouble with the placement of items on the circle at the
beginning.

The angle is derived with:

t.angle = i * ((Math.PI * 2) / numOfItems);

The x and y coords are derived with:

t._x = Math.cos(t.angle) * radiusX + centerX;
t._y = Math.sin(t.angle) * radiusY + centerY;

This starts the placement of the items on the circle starting at 3
o'clock(east), whereas I would like them to start at 6 o'clock(south).

How would I go about adding 90 degrees to the initial placement?

Cheers.

Adrian

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] there is a problem plz help

2007-04-24 Thread Sherif Elshazly
Could be irrelevant or could be useful so I'll mention it anyway.

That looks fine to me, but i would create a new variable to hold the value of 
arr.length to test against, it'll be more efficient to access a variable than 
an array's property.
 
var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
var loopCount:Number = arr.length;
for(var i:Number = 0; i  loopCount; i++){
greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

Sherif

- Original Message 
From: Gilles Roquefeuil [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 11:51:18 AM
Subject: Re: [Flashcoders] there is a problem plz help


Hello,


is this better ?

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
for(var i:Number = 0; i  arr.length; i++){
greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

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

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] there is a problem plz help

2007-04-24 Thread opto-type

And what about that ?

var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
arr.sort(16);
trace(arr[arr.length-1]);

Patrick




2007/4/24, Sherif Elshazly [EMAIL PROTECTED]:


Could be irrelevant or could be useful so I'll mention it anyway.

That looks fine to me, but i would create a new variable to hold the value
of arr.length to test against, it'll be more efficient to access a
variable than an array's property.

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
var loopCount:Number = arr.length;
for(var i:Number = 0; i  loopCount; i++){
greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

Sherif

- Original Message 
From: Gilles Roquefeuil [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 11:51:18 AM
Subject: Re: [Flashcoders] there is a problem plz help


Hello,


is this better ?

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
for(var i:Number = 0; i  arr.length; i++){
greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

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

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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] flash and paypal

2007-04-24 Thread John Hattan
Yes it is. That's what happens when you make minor code changes without testing 
'em. It's working now if you want to try it again.

- Original Message 
From: Jordan Snyder [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 23, 2007 4:19:53 PM
Subject: Re: [Flashcoders] flash and paypal

That was helpful John!

FYI, it seems your Google Checkout code is broken!


Cheers

On 4/23/07, John Hattan [EMAIL PROTECTED] wrote:
 You don't need any third-party API's to talk to paypal. Since the paypal site 
 accepts standard GET and POST CGI data, sending a transaction to Paypal can 
 be done by setting up a LoadVars object, setting the parameters to your 
 shopping cart in the object, then sending that LoadVars object to PayPal's 
 little processor at https://www.paypal.com/cgi-bin/webscr

 (note that there's apparently a long-standing bug in Flash's POST-handler, so 
 I just use GET. It makes for ugly URL's, but it works)

 As for doing back-end processing from Paypal (i.e. being notified that 
 somebody bought something and you need to act on that purchase), google for 
 IPN, which is Paypal's spec for creating and acting on transactions. 
 Paypal's got good sample code in several server-side languages along with 
 developer forums and a sandbox (i.e. a fake paypal where you can test your 
 code without spending real money).

 The process basically goes like this. . .

 1. You send your shopping cart data to paypal (either from Flash or some 
 other browser-based shopping-cart solution)
 2. The user is sent to paypal where he pays for the transaction.
 3. Paypal contacts some server-side code telling you that somebody bought 
 something.
 4. You verify the transaction with paypal (to make sure you're not being 
 spoofed)
 5. If verified, do whatever's necessary to complete the transaction, like 
 email the user a download link.

 Here's my little shopping-cart. Note that it also talks to Google Checkout, 
 which has a few more steps but is otherwise similar.

 http://www.thecodezone.com/buy.html



 - Original Message 
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Monday, April 23, 2007 11:23:40 AM
 Subject: [Flashcoders] flash and paypal

 i'm going to be producing a site which sells some exclusive, single
 and multiple (ie shopping cart) products which i'd like to do in flash.

 the client wants to use paypal to begin with (it's a startup).

 Does anyone have any experience with using flash with paypal? Can you
 recommend any good tutorial sites or 3rd party api's?

 Hope you guys can help

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

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



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

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



-- 
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.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] WhITE SNOW and Seven Dwarf - MAth Problems!

2007-04-24 Thread Erich Erlangga
  I have a problem concerning Math. My app need to draw points 
using movieclip from library. the data comes from the xml file. there are 
nearly 7000 nodes in the xml describing each points, esp it's X and Y 
coordinate.
Using a single for loop (counting 1, 2, 3, ...and so forth)  doesn't let me 
give a visual cue that application is still drawing. So I switch to setInterval 
method to attach the same points and let some animation play while drawing the 
nodes, BUT this STILL requires some time to render.
   
  my current thought was to use the same event but with more variables who act 
as counter. for example to be able to enumerate all 7000 nodes i just assign 
variables namely a, b, c,d, e, f, g that counts the number with different 
starting number. a starts counting from 1 and add 7 to each counts. b 
starts from 2 and add 7 to each counts, c starts from 3 and add 7 to each 
counts, and the same also goes to rest. 
   
  Using onEnterFrame, the code look like this (on frame 1) :
   
  //run 7 times faster for attaching symbol in the library
//(depends on how many people count)
var a = 1;
var b = 2;
var c = 3;
var d = 4;
var e = 5;
var f = 6;
var g = 7;
trace(first Number =  + a +  -  + b +  -  + c +  -  + d +  -  + e +  
-  + f +  -  + g);
trace(Next Number = + newline);
_root.onEnterFrame = function(){
 
 a +=7;
 b +=7;
 c +=7;
 d +=7;
 e +=7;
 f +=7;
 g +=7;
 
 trace(a +  -  + b +  -  + c +  -  + d +  -  + e +  -  + f +  -  + 
g);
   if (g == 70){
  delete _root.onEnterFrame ;
 }
 
}
   
  Does anyone has a simpler function to achieve this pattern? 
also assuring that all nodes are read?
thanks in advanced
  erich erlangga

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

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

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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


   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] flash and paypal

2007-04-24 Thread John Hattan
You don't send passwords to paypal. Just the transaction details (item
numbers, quantities, and prices) and your paypal address. The user enters all 
the secure stuff on the paypal site so you don't have to mess with that. The 
transaction you get from paypal only includes the user's info (name, email, and 
snailmail address) and details about the transaction (items purchased, 
quantities, and price). There's no way for me to sneakily charge extra money 
from one of my buyers' accounts.

As for security the other way (i.e. people faking a purchase to you), there's a 
verify step. When paypal first contacts you to tell you that somebody bought 
something, they send you a key, which is a big string of random characters. You 
send this key to Paypal's verification-server, and it sends you back a 
VERIFIED or NOT VERIFIED. If you get a VERIFIED, then you can be sure 
that the transaction came from Paypal.

Again, the sample-code takes care of all of this. Most of your paypal solution 
will involve downloading their sample code in your favorite server language 
(PHP, Perl, CF, etc) and modifying it to serve your needs.


Google checkout is similar, security-wise, although it's entirely XML-based and 
requires an encrypted connection so you can't talk to it directly from Flash 
(at least not easily). In my case, I talk to a little piece of PHP on my site 
that sends the transaction to Google Checkout, because PHP has all the 
secure-connection stuff built in.

One nice thing Google Checkout adds is that buyers can hide their emails from 
sellers. I've gotten a couple of these with game purchases. Instead of the 
user's real email address, I get something like [EMAIL PROTECTED]. This email 
forwards to the buyer, but only for a limited time. That way buyers don't have 
to worry about getting spammed by sellers after the fact.



- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 4:42:01 AM
Subject: Re: [Flashcoders] flash and paypal

super-useful guys, thankyou

how secure is this? are there any passwords or seller account details  
sent by flash to paypal?

Quoting Jordan Snyder [EMAIL PROTECTED]:

 That was helpful John!

 FYI, it seems your Google Checkout code is broken!


 Cheers

 On 4/23/07, John Hattan [EMAIL PROTECTED] wrote:
 You don't need any third-party API's to talk to paypal. Since the   
 paypal site accepts standard GET and POST CGI data, sending a   
 transaction to Paypal can be done by setting up a LoadVars object,   
 setting the parameters to your shopping cart in the object, then   
 sending that LoadVars object to PayPal's little processor at   
 https://www.paypal.com/cgi-bin/webscr

 (note that there's apparently a long-standing bug in Flash's   
 POST-handler, so I just use GET. It makes for ugly URL's, but it   
 works)

 As for doing back-end processing from Paypal (i.e. being notified   
 that somebody bought something and you need to act on that   
 purchase), google for IPN, which is Paypal's spec for creating   
 and acting on transactions. Paypal's got good sample code in   
 several server-side languages along with developer forums and a   
 sandbox (i.e. a fake paypal where you can test your code without   
 spending real money).

 The process basically goes like this. . .

 1. You send your shopping cart data to paypal (either from Flash or  
  some other browser-based shopping-cart solution)
 2. The user is sent to paypal where he pays for the transaction.
 3. Paypal contacts some server-side code telling you that somebody   
 bought something.
 4. You verify the transaction with paypal (to make sure you're not   
 being spoofed)
 5. If verified, do whatever's necessary to complete the   
 transaction, like email the user a download link.

 Here's my little shopping-cart. Note that it also talks to Google   
 Checkout, which has a few more steps but is otherwise similar.

 http://www.thecodezone.com/buy.html



 - Original Message 
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Monday, April 23, 2007 11:23:40 AM
 Subject: [Flashcoders] flash and paypal

 i'm going to be producing a site which sells some exclusive, single
 and multiple (ie shopping cart) products which i'd like to do in flash.

 the client wants to use paypal to begin with (it's a startup).

 Does anyone have any experience with using flash with paypal? Can you
 recommend any good tutorial sites or 3rd party api's?

 Hope you guys can help

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

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



 ___
 Flashcoders@chattyfig.figleaf.com
 

Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Waseem Shahzad

Thanx Nice solution.

On 4/24/07, opto-type [EMAIL PROTECTED] wrote:


And what about that ?

var arr:Array = [17, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
arr.sort(16);
trace(arr[arr.length-1]);

Patrick




2007/4/24, Sherif Elshazly [EMAIL PROTECTED]:

 Could be irrelevant or could be useful so I'll mention it anyway.

 That looks fine to me, but i would create a new variable to hold the
value
 of arr.length to test against, it'll be more efficient to access a
 variable than an array's property.

 var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
 var greater:Number = 0;
 var loopCount:Number = arr.length;
 for(var i:Number = 0; i  loopCount; i++){
 greater = Math.max(greater,arr[i]);
 }
 trace(greater is  + greater + \n);

 Sherif

 - Original Message 
 From: Gilles Roquefeuil [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, April 24, 2007 11:51:18 AM
 Subject: Re: [Flashcoders] there is a problem plz help


 Hello,


 is this better ?

 var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
 var greater:Number = 0;
 for(var i:Number = 0; i  arr.length; i++){
 greater = Math.max(greater,arr[i]);
 }
 trace(greater is  + greater + \n);

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

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

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

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


Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Waseem Shahzad

thanx for ur help.

On 4/24/07, Sherif Elshazly [EMAIL PROTECTED] wrote:


Could be irrelevant or could be useful so I'll mention it anyway.

That looks fine to me, but i would create a new variable to hold the value
of arr.length to test against, it'll be more efficient to access a
variable than an array's property.

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
var loopCount:Number = arr.length;
for(var i:Number = 0; i  loopCount; i++){
   greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

Sherif

- Original Message 
From: Gilles Roquefeuil [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 11:51:18 AM
Subject: Re: [Flashcoders] there is a problem plz help


Hello,


is this better ?

var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
for(var i:Number = 0; i  arr.length; i++){
   greater = Math.max(greater,arr[i]);
}
trace(greater is  + greater + \n);

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

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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] WhITE SNOW and Seven Dwarf - MAth Problems!

2007-04-24 Thread Danny Kodicek
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Erich Erlangga
 Sent: 24 April 2007 14:27
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] WhITE SNOW and Seven Dwarf - MAth Problems!


   //run 7 times faster for attaching symbol in the library
 //(depends on how many people count)
 var a = 1;
 var b = 2;
 var c = 3;
 var d = 4;
 var e = 5;
 var f = 6;
 var g = 7;
 trace(first Number =  + a +  -  + b +  -  + c +  -  + 
 d +  -  + e +  -  + f +  -  + g);
 trace(Next Number = + newline);
 _root.onEnterFrame = function(){
  
  a +=7;
  b +=7;
  c +=7;
  d +=7;
  e +=7;
  f +=7;
  g +=7;
  
  trace(a +  -  + b +  -  + c +  -  + d +  -  + e +  
 -  + f +  -  + g);
if (g == 70){
   delete _root.onEnterFrame ;
  }
  
 }

Yes, that does look a bit odd. How about something like:

var tIndex = 1
_root.onEnterFrame = function() {
for (var i=0; i7 i++) {
trace(tIndex++) 
}
if (tIndex == 70) { 
delete _root.onEnterFrame 
}
};

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] Error installing Flash CS3

2007-04-24 Thread Ruben Sainz de la Maza
Hi

I have a friend with a problem when try install the new Flash CS3.
The error ocurs when he executes Setup.exe file:

Critical errors were found in Setup
- Session has dependencies that cannot be satisfied
Please see the Setup log file for details

He don´t found any setup.log.
Any idea?

Ruben


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

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


Re: [Flashcoders] flash and paypal

2007-04-24 Thread allandt

thanks guys. You've been amazingly helpful

3 flashcoders

Quoting John Hattan [EMAIL PROTECTED]:


You don't send passwords to paypal. Just the transaction details (item
numbers, quantities, and prices) and your paypal address. The user   
enters all the secure stuff on the paypal site so you don't have to   
mess with that. The transaction you get from paypal only includes   
the user's info (name, email, and snailmail address) and details   
about the transaction (items purchased, quantities, and price).   
There's no way for me to sneakily charge extra money from one of my   
buyers' accounts.


As for security the other way (i.e. people faking a purchase to   
you), there's a verify step. When paypal first contacts you to tell   
you that somebody bought something, they send you a key, which is a   
big string of random characters. You send this key to Paypal's   
verification-server, and it sends you back a VERIFIED or NOT   
VERIFIED. If you get a VERIFIED, then you can be sure that the   
transaction came from Paypal.


Again, the sample-code takes care of all of this. Most of your   
paypal solution will involve downloading their sample code in your   
favorite server language (PHP, Perl, CF, etc) and modifying it to   
serve your needs.



Google checkout is similar, security-wise, although it's entirely   
XML-based and requires an encrypted connection so you can't talk to   
it directly from Flash (at least not easily). In my case, I talk to   
a little piece of PHP on my site that sends the transaction to   
Google Checkout, because PHP has all the secure-connection stuff   
built in.


One nice thing Google Checkout adds is that buyers can hide their   
emails from sellers. I've gotten a couple of these with game   
purchases. Instead of the user's real email address, I get something  
 like [EMAIL PROTECTED]. This email  
forwards  to the buyer, but only for a limited time. That way buyers  
don't  have to worry about getting spammed by sellers after the fact.




- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 4:42:01 AM
Subject: Re: [Flashcoders] flash and paypal

super-useful guys, thankyou

how secure is this? are there any passwords or seller account details
sent by flash to paypal?

Quoting Jordan Snyder [EMAIL PROTECTED]:


That was helpful John!

FYI, it seems your Google Checkout code is broken!


Cheers

On 4/23/07, John Hattan [EMAIL PROTECTED] wrote:

You don't need any third-party API's to talk to paypal. Since the
paypal site accepts standard GET and POST CGI data, sending a
transaction to Paypal can be done by setting up a LoadVars object,
setting the parameters to your shopping cart in the object, then
sending that LoadVars object to PayPal's little processor at
https://www.paypal.com/cgi-bin/webscr

(note that there's apparently a long-standing bug in Flash's
POST-handler, so I just use GET. It makes for ugly URL's, but it
works)

As for doing back-end processing from Paypal (i.e. being notified
that somebody bought something and you need to act on that
purchase), google for IPN, which is Paypal's spec for creating
and acting on transactions. Paypal's got good sample code in
several server-side languages along with developer forums and a
sandbox (i.e. a fake paypal where you can test your code without
spending real money).

The process basically goes like this. . .

1. You send your shopping cart data to paypal (either from Flash or
 some other browser-based shopping-cart solution)
2. The user is sent to paypal where he pays for the transaction.
3. Paypal contacts some server-side code telling you that somebody
bought something.
4. You verify the transaction with paypal (to make sure you're not
being spoofed)
5. If verified, do whatever's necessary to complete the
transaction, like email the user a download link.

Here's my little shopping-cart. Note that it also talks to Google
Checkout, which has a few more steps but is otherwise similar.

http://www.thecodezone.com/buy.html



- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, April 23, 2007 11:23:40 AM
Subject: [Flashcoders] flash and paypal

i'm going to be producing a site which sells some exclusive, single
and multiple (ie shopping cart) products which i'd like to do in flash.

the client wants to use paypal to begin with (it's a startup).

Does anyone have any experience with using flash with paypal? Can you
recommend any good tutorial sites or 3rd party api's?

Hope you guys can help

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

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




Re: [Flashcoders] Error installing Flash CS3

2007-04-24 Thread sean
Don't know if it's relevant, but if he was on the Flash CS3 beta, he will
have to make sure he did the FULL uninstall on it forst. Any remnants will
cause problems when you try to install the new version .

Sean

 Hi

 I have a friend with a problem when try install the new Flash CS3.
 The error ocurs when he executes Setup.exe file:

 Critical errors were found in Setup
 - Session has dependencies that cannot be satisfied
 Please see the Setup log file for details

 He don´t found any setup.log.
 Any idea?

 Ruben


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

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



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

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


Re: [Flashcoders] RE: Cross domain issue

2007-04-24 Thread Michael Boski

Both apps are using delagate and eventdispature.

problem I am having:

the shell

sets up this


function onLoadInit (mc : MovieClip)
{
trace (MOB onLoadInit:  + mc);
passAlongParameters ();
this.getPlayer = function ()
{
 return placeHolder_mc.embeddedPlayer.getPlayer ();
}
placeHolder_mc.embeddedPlayer.onInitError = Delegate.create (this,
onInitError);
placeHolder_mc.embeddedPlayer.onInitComplete = Delegate.create(this,
onInitComplete);
placeHolder_mc.embeddedPlayer.getEmbedOverrides = Delegate.create (this,
getEmbedOverrides);
}

function onInitComplete ()
{
trace (MOB:onInitComplete: clipID= + clipID);
}
and the swf being loaded in loads and I can see it traces out: onReady. We
killed it, people. config.autoStart

so i can tell this is fireing
function onReady()
{
trace(onReady. We killed it, people. config.autoStart:  +
config.autoStart);
inited = true;
onInitComplete();
/*_parent.onInitComplete();
_level0.embeddedPlayer.onInitComplete();
_parent._parent.onInitComplete();
_parent._parent._parent.onInitComplete();
/*
}

however it doesn't work.

if I load an swf right next to the shell it does work??

Thanks in advance,

mike






On 4/23/07, Michael Ypes [EMAIL PROTECTED] wrote:


I have had exactly the same problem as I have been doing a lot of cross
domain policy stuff for sony recently so I know most of the pitfalls.

It depends on the how you want to use your classes and where you have
created the instance of the class. My example was using singletons.

Can you explain a bit further how you are using your classes and how the
two
different swf's are using them and i shall try to help???

Cheers

Michael Ypes


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

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


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

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


Re: [Flashcoders] RE: Cross domain issue

2007-04-24 Thread Michael Boski

thanks it was the Security.allowDomain issue


*ActionScript 2.0 Language Reference*
[image: 
Previous]file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/ActionScriptLangRef/2646.html
  [image: 
Next]file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/ActionScriptLangRef/2648.html
 ActionScript 
classesfile:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/ActionScriptLangRef/1893.html
security
(System.security)file:///C:/Documents%20and%20Settings/All%20Users/Application%20Data/Macromedia/Flash%208/en/Configuration/HelpPanel/Help/ActionScriptLangRef/2646.html
allowDomain (security.allowDomain method)   allowDomain (security.
allowDomain method)

public static allowDomain(domain1:String) : Void

Lets SWF files and HTML files in the identified domains access objects and
variables in the SWF file that contains the allowDomain() call.

If two SWF files are served from the same domain -- for example,
http://mysite.com/movieA.swf and http://mysite.com/movieB.swf -- then
movieA.swf can examine and modify variables, objects, properties, methods,
and so on in movieB.swf, and movieB.swf can do the same for movieA.swf. This
is called *cross-movie scripting* or simply *cross-scripting*.

If two SWF files are served from different domains -- for example,
http://mysite.com/movieA.swf and http://othersite.com/movieB.swf -- then, by
default, Flash Player does not allow movieA.swf to script movieB.swf, nor
movieB.swf to script movieA.swf. A SWF file gives SWF files from other
domains permission to script it by calling System.security.allowDomain().
This is called *cross-domain scripting*. By calling System.security.
allowDomain(mysite.com), movieB.swf gives movieA.swf permission to script
movieB.swf.

In any cross-domain situation, two parties are involved, and it's important
to be clear about which side is which. For the purposes of this discussion,
the side performing the cross-scripting is called the *accessing
party*(usually the accessing SWF), and the other side is called
*the party being accessed* (usually the SWF being accessed). To continue the
example, when movieA.swf scripts movieB.swf, movieA.swf is the accessing
party, and movieB.swf is the party being accessed.

Cross-domain permissions that are established with System.security.
allowDomain() are asymmetrical. In the previous example, movieA.swf can
script movieB.swf, but movieB.swf cannot script movieA.swf, because
movieA.swf has not called System.security.allowDomain() to give
othersite.com permission to script movieA.swf. You can set up symmetrical
permissions by having both SWF files call System.security.allowDomain().

In addition to protecting SWF files from cross-domain scripting originated
by other SWF files, Flash Player protects SWF files from cross-domain
scripting originated by HTML files. HTML-to-SWF scripting can be performed
with older Flash browser functions such as SetVariable or callbacks
established by using ExternalInterface.addCallback(). When HTML-to-SWF
scripting crosses domain boundaries, the SWF file being accessed must call
System.security.allowDomain(), just as when the accessing party is a SWF
file, or the operation will fail.

Specifying an IP address as a parameter to
System.security.allowDomain()does not permit access by all parties
that originate at the specified IP
address. Instead, it permits access only by parties that were loaded by
explicitly specifying that IP address in their URLs, rather than by a domain
name that maps to that IP address.

*Version-specific differences* Flash Player's cross-domain security rules
have evolved from version to version. The following table summarizes the
differences.

Latest SWF version involved in the cross-scripting operation.

allowDomain() needed?

allowInsecureDomain() needed?

Which SWF must call allowDomain() or allowInsecureDomain()?

What can be specified in allowDomain() or allowInsecureDomain()?

5 or earlier

No

No

N/A

6

Yes, if superdomains don't match

The SWF file being accessed, or any SWF file with the same superdomain as
the SWF file being accessed

  - Text-based domain (mysite.com)
  - IP address (192.168.1.1)

7

Yes, if domains don't match exactly

Yes, if performing HTTP-to-HTTPS access (even if domains match exactly)

The SWF file being accessed, or any SWF file with exactly the same domain as
the SWF file being accessed

8 or later

SWF being accessed

  - Text-based domain (mysite.com)
  - IP address (192.168.1.1)
  - Wildcard (*)

The versions that control the behavior of Flash Player are *SWF
versions*(the published version of a SWF file), not the version of
Flash Player
itself. For example, when Flash Player 8 is playing a SWF file published for
version 7, it applies behavior that is consistent with version 7. This
practice ensures 

[Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Andreas R
basic banner. you click on something, a url opens. However, this process 
has to go through a delegate. User clicks, releases; bam,

Adobe flash player has stopped a potentially unsafe operation

Banner has a search bar, enter key, when this inputfield has focus, 
calls getURL. Nuh uh.

Adobe flash player has stopped a potentially unsafe operation

anything using externalinterface
Adobe flash player has stopped a potentially unsafe operation

getURL calls through event bubbling or event chains
Adobe flash player has stopped a potentially unsafe operation

getURL calls through onPress (bear with me)
Adobe flash player has stopped a potentially unsafe operation

The amount of shit we have to go through to make stuff work in browsers 
is one thing (such as raping our own script to the point of hilarity), 
but why, oh dear sweet baby jesus why, is Adobe forcing endusers to use 
their ridiculous fucking security manager page?!


I have rarely seen a more user unfriendly piece of garbage. Nothing is 
clear, descriptions are vague, and somehow the whole tone seems directed 
at.. developers?


Either i'm doing something fundamentally wrong, and by fundamentally i'm 
talking triangular wheels type shit, or someone needs to explain to me 
the thought process behind putting users through such a meat grinder of 
a security control panel, because the way i see it right now, we're up 
shit creek if we want to deliver content with a semblance of proper 
usability and avoid users getting smushed into that security alert again 
and again.


My mom would have *no idea whatsoever* why that thing showed up, nor 
what the security manager site even does.


To remain objective:
Here's my problem. X number of buttons in a class where button presses 
broadcast click events that do a number of things, including opening a url.
Also, the search bar problem described above. In an ideal world all 
these cals would go through javascript with externalinterface (it's a 
somewhat complex banner and i'd like the client to be able to alter 
where URLs point for instance), but that's a surefire way of forcing 
endusers to go through the grinder if they haven't already, degrading 
the whole application to the power of max.


I have a hell of a time figuring out how to do this, and it's beginning 
to royally anger me.


So please, smarter people than i; How do you facilitate user 
interactions with the browser without crashing into this lunatic 
security management solution? What are the rules of thumb?


*sigh*

- Andreas R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 datagrid flash 8

2007-04-24 Thread Gustavo Duenas
thanks guys, I've just download  a data connection wizard and a grid  
wizard from adobe exchange, I found it here:

http://www.adobe.com/devnet/flash/articles/datawizards.html

is quick to use and nice, the thing I have to figured out is how to  
assign the link property (open a webpage) to the links in xml.


by the way the file has .cfm but is a rss or xml file inside...xml  
tags and all of that.


Regards


Gustavo


On Apr 24, 2007, at 3:24 AM, Stefan Thurnherr wrote:


Hi Gustavo,

I assume that myBlog is a DataGrid component.

First of all dataProvider is a property, so the syntax to set it is  
as follows:

myBlog.dataProvider = myParsedRssData;

Second I think you need something in between your RSS feed and your
DataGrid component. This something must parse your rss.cfm and format
it so that it can be fed into your DataGrid's dataProvider property. I
have no experience in binding a DataGrid to Web data, but a quick
Google search turned up this:
http://www.flash-db.com/Tutorials/databind/CatalogTutorial.php?page=6
. It should be applicable for your case (although its DB access and
flash MX).

HTH,
stefan.


On 4/23/07, Merrill, Jason [EMAIL PROTECTED] wrote:

I don't know what your cfm returns, but it needs to match what
dataProvider expects.  See info on dataprovider in the help docs.

Jason Merrill
Bank of America
GTO Learning  Leadership Development
eTools  Multimedia Team



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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] browser security aggrevations (rant alert)

2007-04-24 Thread Иван Дембицкий

Andreas,

try test your movies in internet.

--
iv
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] browser security aggrevations (rant alert)

2007-04-24 Thread Holth, Daniel C.

Andreas,

Are you testing on a webserver or locally?  I rarely get errors from
using ExternalInterface or getURL calls when testing online... 

Flash security is horrible to work with locally (hard-drive, CD-ROM,
etc) and it can be a real nuisance to have to always upload your files
to the webserver in order to test, but once online it goes pretty
smooth.
  
Daniel Holth
I.S. Programmer


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas
R
Sent: Tuesday, April 24, 2007 11:14 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] browser security aggrevations (rant alert)

basic banner. you click on something, a url opens. However, this process

has to go through a delegate. User clicks, releases; bam,
Adobe flash player has stopped a potentially unsafe operation

Banner has a search bar, enter key, when this inputfield has focus,
calls getURL. Nuh uh.
Adobe flash player has stopped a potentially unsafe operation

anything using externalinterface
Adobe flash player has stopped a potentially unsafe operation

getURL calls through event bubbling or event chains
Adobe flash player has stopped a potentially unsafe operation

getURL calls through onPress (bear with me)
Adobe flash player has stopped a potentially unsafe operation

The amount of shit we have to go through to make stuff work in browsers
is one thing (such as raping our own script to the point of hilarity),
but why, oh dear sweet baby jesus why, is Adobe forcing endusers to use
their ridiculous fucking security manager page?!

I have rarely seen a more user unfriendly piece of garbage. Nothing is
clear, descriptions are vague, and somehow the whole tone seems directed

at.. developers?

Either i'm doing something fundamentally wrong, and by fundamentally i'm

talking triangular wheels type shit, or someone needs to explain to me
the thought process behind putting users through such a meat grinder of
a security control panel, because the way i see it right now, we're up
shit creek if we want to deliver content with a semblance of proper
usability and avoid users getting smushed into that security alert again

and again.

My mom would have *no idea whatsoever* why that thing showed up, nor
what the security manager site even does.

To remain objective:
Here's my problem. X number of buttons in a class where button presses
broadcast click events that do a number of things, including opening a
url.
Also, the search bar problem described above. In an ideal world all
these cals would go through javascript with externalinterface (it's a
somewhat complex banner and i'd like the client to be able to alter
where URLs point for instance), but that's a surefire way of forcing
endusers to go through the grinder if they haven't already, degrading
the whole application to the power of max.

I have a hell of a time figuring out how to do this, and it's beginning
to royally anger me.

So please, smarter people than i; How do you facilitate user
interactions with the browser without crashing into this lunatic
security management solution? What are the rules of thumb?

*sigh*

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

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

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] browser security aggrevations (rant alert)

2007-04-24 Thread Muzak
 So please, smarter people than i; How do you facilitate user interactions 
 with the browser without crashing into this lunatic 
 security management solution? What are the rules of thumb?

You might want to start here:

http://www.adobe.com/resources/security/
http://www.adobe.com/ap/products/flashplayer/security/

http://www.adobe.com/devnet/flashplayer/articles/flash_player_8_security.pdf
http://www.adobe.com/devnet/flashplayer/articles/fp8_security-related_apis.pdf

regards,
Muzak


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scoping issue (?) with static, recursive function

2007-04-24 Thread me myself

Okay, so I have an FLA with a series of embedded movieclips:

garden  tree  branch  twig  flower.

I want a static function -- in an as 2.0 class -- that, when given
flower, returns tree. In other words, you can give in an embedded
movieclip and it finds that clips ALMOST outermost parent.

Here's my class  function:

class com.research.StaticRecurse
{
public static function
getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
{
if (mc._parent._name == garden)
{
trace(inside getOuterMostParent:  + mc);
return mc;
}
else
{
getOuterMostParent(mc._parent);
}
}
}


and inside the fla, I use the following code:

import com.research.StaticRecurse;

var innerMostChild:MovieClip = garden.tree.branch.twig.flower;
var mc:MovieClip = StaticRecurse.getOuterMostParent(innerMostChild);
trace(outside getOutMostParent:  + mc);

the trace is as follows:

inside getOuterMostParent: _level0.garden.tree
outside getOutMostParent: undefined

As you can see, the first trace -- which works beautifully -- occurs
RIGHT BEFORE the return statement. But the value that's actually
returned is undefined. I've never encountered anything like this
before. To me, it seems as if I'm doing this:

function x():Number
{
 var n:Number = 1000;
 trace(n); //1000
 return n;
}

trace(x()); //undefined

... which would be insane. I'm guessing it's a scoping issue that has
to do with recursion and the fact that this is a static function
(which it kind of has to be). Why is this happening? Is there a
workaround? 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] scoping issue (?) with static, recursive function

2007-04-24 Thread Andy Herrman

You need a 'return' before the recursive call:


class com.research.StaticRecurse
{
  public static function
getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
  {
  if (mc._parent._name == garden)
  {
  trace(inside getOuterMostParent:  + mc);
  return mc;
  }
  else
  {
  // Add a return here:
  return getOuterMostParent(mc._parent);
  }
  }
}

 -Andy

On 4/24/07, me myself [EMAIL PROTECTED] wrote:

Okay, so I have an FLA with a series of embedded movieclips:

garden  tree  branch  twig  flower.

I want a static function -- in an as 2.0 class -- that, when given
flower, returns tree. In other words, you can give in an embedded
movieclip and it finds that clips ALMOST outermost parent.

Here's my class  function:

class com.research.StaticRecurse
{
public static function
getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
{
if (mc._parent._name == garden)
{
trace(inside getOuterMostParent:  + mc);
return mc;
}
else
{
getOuterMostParent(mc._parent);
}
}
}


and inside the fla, I use the following code:

import com.research.StaticRecurse;

var innerMostChild:MovieClip = garden.tree.branch.twig.flower;
var mc:MovieClip = StaticRecurse.getOuterMostParent(innerMostChild);
trace(outside getOutMostParent:  + mc);

the trace is as follows:

inside getOuterMostParent: _level0.garden.tree
outside getOutMostParent: undefined

As you can see, the first trace -- which works beautifully -- occurs
RIGHT BEFORE the return statement. But the value that's actually
returned is undefined. I've never encountered anything like this
before. To me, it seems as if I'm doing this:

function x():Number
{
  var n:Number = 1000;
  trace(n); //1000
  return n;
}

trace(x()); //undefined

... which would be insane. I'm guessing it's a scoping issue that has
to do with recursion and the fact that this is a static function
(which it kind of has to be). Why is this happening? Is there a
workaround? Thanks!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


Re: [Flashcoders] scoping issue (?) with static, recursive function

2007-04-24 Thread me myself

duh!

Thanks, Andy.

On 4/24/07, Andy Herrman [EMAIL PROTECTED] wrote:

You need a 'return' before the recursive call:


class com.research.StaticRecurse
{
   public static function
getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
   {
   if (mc._parent._name == garden)
   {
   trace(inside getOuterMostParent:  + mc);
   return mc;
   }
   else
   {
   // Add a return here:
   return getOuterMostParent(mc._parent);
   }
   }
}

  -Andy

On 4/24/07, me myself [EMAIL PROTECTED] wrote:
 Okay, so I have an FLA with a series of embedded movieclips:

 garden  tree  branch  twig  flower.

 I want a static function -- in an as 2.0 class -- that, when given
 flower, returns tree. In other words, you can give in an embedded
 movieclip and it finds that clips ALMOST outermost parent.

 Here's my class  function:

 class com.research.StaticRecurse
 {
 public static function
 getOuterMostParent(mc:MovieClip,mcRoot:MovieClip):MovieClip
 {
 if (mc._parent._name == garden)
 {
 trace(inside getOuterMostParent:  + mc);
 return mc;
 }
 else
 {
 getOuterMostParent(mc._parent);
 }
 }
 }


 and inside the fla, I use the following code:

 import com.research.StaticRecurse;

 var innerMostChild:MovieClip = garden.tree.branch.twig.flower;
 var mc:MovieClip = StaticRecurse.getOuterMostParent(innerMostChild);
 trace(outside getOutMostParent:  + mc);

 the trace is as follows:

 inside getOuterMostParent: _level0.garden.tree
 outside getOutMostParent: undefined

 As you can see, the first trace -- which works beautifully -- occurs
 RIGHT BEFORE the return statement. But the value that's actually
 returned is undefined. I've never encountered anything like this
 before. To me, it seems as if I'm doing this:

 function x():Number
 {
   var n:Number = 1000;
   trace(n); //1000
   return n;
 }

 trace(x()); //undefined

 ... which would be insane. I'm guessing it's a scoping issue that has
 to do with recursion and the fact that this is a static function
 (which it kind of has to be). Why is this happening? Is there a
 workaround? Thanks!
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

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


[Flashcoders] mc alpha not effecting static text

2007-04-24 Thread Andrew Sinning
When I change the alpha of a movie clip, the alpha of static text inside 
the clip remains at 100%.  It looks just fine within Flash, but in the 
Player it stays at 100%.


I'm using MX04.

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] mc alpha not effecting static text

2007-04-24 Thread Andrew Sinning
Totally weird.  If I change my static text fields  to #dynamic and embed 
the characters then the alpha works.  This is exactly the opposite of 
what it says in this article here:


http://www.connectedpixel.com/blog/fonts/embedding

What the heck?

Andrew Sinning wrote:

When I change the alpha of a movie clip, the alpha of static text 
inside the clip remains at 100%.  It looks just fine within Flash, but 
in the Player it stays at 100%.


I'm using MX04.

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

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



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

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


Re: [Flashcoders] mc alpha not effecting static text

2007-04-24 Thread Andrew Sinning

Figured it out:  I don't have the font's installed on this machine.  duh.

Andrew Sinning wrote:

When I change the alpha of a movie clip, the alpha of static text 
inside the clip remains at 100%.  It looks just fine within Flash, but 
in the Player it stays at 100%.


I'm using MX04.

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

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



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

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


[Flashcoders] AS2.0 Question - passing data between classes

2007-04-24 Thread Andrew
Is there also some way to do this using a command called getinstance() ? 
I've seen it in some AS script and it looks like it passes data between 
classes?


Cheers
Andrew

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Changing Green (halogreen) highlight color

2007-04-24 Thread Helmut Granda

Is there anyway to change the green highlight color for components without
having to create a custom skin (The green/orange/blue highlight when the
component has focus) ?

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread Johan Nyberg

Hi, just wanted to know if there is a best practice when creating a class for 
the mother movie (i.e. the flash-movie itself). Is
this the way to go?

var mother:MyFabFlashApp = new MyFabFlashApp();

..or is there a better way? Seems kind of a stupid question, but I wanted to 
put it anyway in case I've missed something.  ;-)  I'veput my main code on the 
first frame of the _root timeline for too long, and want to move it into a 
class.

Regards, 


/Johan Nyberg

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2.0 Question - passing data between classes

2007-04-24 Thread Ron Wheeler
I do not think that this passes any data but it does let you grab an 
instance (usually of a singleton) so that you can use setters and 
getters to pass the data.
If the object is not a Singleton, I am not sure which instance you get 
so it is only part of the solution.


Look at the book Head First Design Patterns if you want to see how 
communication can be achieved.


Look at the Observer pattern and the Factory for a start. Other books 
will have these common patterns but I have found Head First Design 
Patterns to be clear and a fairly easy read (lots of pictures).



Ron

Andrew wrote:
Is there also some way to do this using a command called getinstance() 
? I've seen it in some AS script and it looks like it passes data 
between classes?


Cheers
Andrew

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] The great CS3 Swindle

2007-04-24 Thread Newsdee

I wouldn't hold my breath waiting for prices changing from this,
unfortunately.

At the end of the day pricing is purely a marketing function, and in that
world the only rule is to charge as much as the customer is willing to pay.
Then there are hundreds of ways to justify the price by calling accounting
and agreeing on what costs are being covered by the price. For all you know
the price difference is to pay for the private jets that the sales reps are
taking to go around Europe..! (*)

In addition, it is likely that the target for these prices are companies,
not individuals. Said companies can get the VAT off in some countries, and
may benefit from other tax cuts (e.g. passing this as an expense) which
makes them much more willing to foot the bill than your average developer
guy/gal, who has to pay from his/her net income and pay VAT on top of it.

So... I don't believe it's going to change unless some of the subsidiaries
see drops in profits. It's going to take some massive boycotting or perhaps
push from an open-source competitor product for things to change... both
unlikely.


(*) ...or more likely, it must be paying for a lot of local country
specialists, lawyers, etc. which are unique to each country, thus driving
the overhead costs through the roof.



On 4/24/07, Zárate [EMAIL PROTECTED] wrote:


Hi guys,

Sorry to bring this up again, but Danielle Libine has put up a really
interesting pdf about the subject. He gathers lots of data with really
clear graphics about prices and countries. Then a couple of questions
for Adobe:

http://web.mac.com/libine/iWeb/Site/Article.html

I think we really should keep the pressure up and force Adobe to
at least give a public, official explanation. Hopefully a review of
the prices.

Cheers,

Juan

On 4/7/07, Søren Christensen [EMAIL PROTECTED] wrote:


 Yes it is totally f*ckd up - production bundle upgrade:
 us: $1199 / €897 eu/spain: $2630 / €1967

 So guess which side of the atlantic i am buying my upgrade ;-)

 Cheers,
  B) Søren

 On Mar 28, 2007, at 4:27 PM, Joe Wheeler wrote:

  Has anyone checked out the international prices on CS3?
 
  I can hardly believe how badly the UK is getting fleeced.
 
  I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design
  Premium. In
  the US that's $599.00 dollars, but in the UK pounds it works out to
  £703.82.
  Take the exchange rate into account and UK customers are paying...
 
 
  1,384.51 USD!!!
 
  Sales tax in the UK is 17.5% but the Adobe price hike is a whopping
  231% - W
  T F?
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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



--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
http://loqueyosede.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] AS2.0 Question - passing data between classes

2007-04-24 Thread Andy Herrman

getInstance() is usually used for accessing Singleton classes.  These
are classes of which only a single instance can exist.  This way any
class can call getInstance (a static method) to get the class, and
that class can store shared data.

Take a look at this:
http://en.wikipedia.org/wiki/Singleton_pattern
for an overview of singletons.  It's a very useful design pattern.

 -Andy

On 4/24/07, Andrew [EMAIL PROTECTED] wrote:

Is there also some way to do this using a command called getinstance() ?
I've seen it in some AS script and it looks like it passes data between
classes?

Cheers
Andrew

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2.0 Question - passing data between classes

2007-04-24 Thread R�kos Attila

A Is there also some way to do this using a command called getinstance() ?
A I've seen it in some AS script and it looks like it passes data between 
A classes?

There is no such method in Flash's built-in classes, so propably it
occured in someone's custom class. In general getInstance is a commonly
used method name in singleton classes (see Singleton design pattern:
http://en.wikipedia.org/wiki/Singleton_pattern).

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Changing Green (halogreen) highlight color

2007-04-24 Thread Matt Samet
_global.style.setStyle(themeColor, 0x6092B8);

Replace 0x6092B8 with whatever color you want.  You can even use string
literals like haloGreen, haloBlue, etc.

-=matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Helmut
Granda
Sent: Tuesday, April 24, 2007 12:04 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Changing Green (halogreen) highlight color

Is there anyway to change the green highlight color for components
without
having to create a custom skin (The green/orange/blue highlight when the
component has focus) ?

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread Robert Brisita

One way:
In the same directory as your SWF.  Have a main class with a static 
function that takes in a movie clip.

In your FLA put code in Frame 1 like:
MainClass.main(this);

The this is the root movie clip.  The static function main will pass 
it around to who ever needs it in your application.  It depends how you 
want to handle it but this is a starting point.


Hope this helps,
Rob.

Johan Nyberg wrote:
Hi, just wanted to know if there is a best practice when creating a 
class for the mother movie (i.e. the flash-movie itself). Is

this the way to go?

var mother:MyFabFlashApp = new MyFabFlashApp();

..or is there a better way? Seems kind of a stupid question, but I 
wanted to put it anyway in case I've missed something.  ;-)  I'veput 
my main code on the first frame of the _root timeline for too long, 
and want to move it into a class.


Regards,
/Johan Nyberg

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Changing Green (halogreen) highlight color

2007-04-24 Thread Andy Herrman

I believe you can use the setStyle function to do it.  For instance,
in some of my code where I'm setting up a combo box I have this (I
forget which color setting actually changes the focus rectangle, but I
think it's 'themeColor'):

   comboBox.setStyle('themeColor', 0x007CBA);
   comboBox.setStyle('borderStyle', 'solid');
   comboBox.setStyle('borderColor', 0x6E6E6D);
   comboBox.setStyle('fontSize', 10);

Or, to turn it off I do:

   comboBox.drawFocus = null;

 -Andy

On 4/24/07, Helmut Granda [EMAIL PROTECTED] wrote:

Is there anyway to change the green highlight color for components without
having to create a custom skin (The green/orange/blue highlight when the
component has focus) ?

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Changing Green (halogreen) highlight color

2007-04-24 Thread John Mark Hawley
setStyle(themeColor, red ( or 0xFF or whatever ) );

 
 From: Helmut Granda [EMAIL PROTECTED]
 Date: 2007/04/24 Tue PM 02:04:23 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Changing Green (halogreen) highlight color
 
 Is there anyway to change the green highlight color for components without
 having to create a custom skin (The green/orange/blue highlight when the
 component has focus) ?
 
 TIA
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] links behaviors in a data grid component

2007-04-24 Thread Gustavo Duenas
Hi, I've recently downloaded a data grid editor and a data conn  
wizard, it went fine in order to retrieve data from a xml page, but  
I'd like to
use the links in order to go to the site where the news is bigger, do  
you know how?
in the wizard everything went ok, but when I tried to click on the  
link, nothing happens I know is easier in flex, But I'd like to have  
this in flash 8.

Somebody would help me.


Regards



Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] links behaviors in a data grid component

2007-04-24 Thread Matt Samet
I'm not sure what you mean.

Are you trying to display clickable links (instead of just regular text)
inside cells in a DataGrid?
If so, you probably want to use a CellRenderer to do this.

CellRenderers allow you to display custom content in each cell of a
column inside the DataGrid.
They can be a little involved, but the docs cover them pretty well...

-=matt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Tuesday, April 24, 2007 1:20 PM
To: Flashcoders mailing list
Subject: [Flashcoders] links behaviors in a data grid component

Hi, I've recently downloaded a data grid editor and a data conn  
wizard, it went fine in order to retrieve data from a xml page, but  
I'd like to
use the links in order to go to the site where the news is bigger, do  
you know how?
in the wizard everything went ok, but when I tried to click on the  
link, nothing happens I know is easier in flex, But I'd like to have  
this in flash 8.
Somebody would help me.


Regards



Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] links behaviors in a data grid component

2007-04-24 Thread Gustavo Duenas
Thanks Matt,  it is exactly what I'm looking for:  to make clickable  
the cell of the link column. Do you mind to send me where I can learn  
more about this cell renderer?



Regards.


Gustavo Duenas


On Apr 24, 2007, at 4:34 PM, Matt Samet wrote:


I'm not sure what you mean.

Are you trying to display clickable links (instead of just regular  
text)

inside cells in a DataGrid?
If so, you probably want to use a CellRenderer to do this.

CellRenderers allow you to display custom content in each cell of a
column inside the DataGrid.
They can be a little involved, but the docs cover them pretty well...

-=matt

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

Duenas
Sent: Tuesday, April 24, 2007 1:20 PM
To: Flashcoders mailing list
Subject: [Flashcoders] links behaviors in a data grid component

Hi, I've recently downloaded a data grid editor and a data conn
wizard, it went fine in order to retrieve data from a xml page, but
I'd like to
use the links in order to go to the site where the news is bigger, do
you know how?
in the wizard everything went ok, but when I tried to click on the
link, nothing happens I know is easier in flex, But I'd like to have
this in flash 8.
Somebody would help me.


Regards



Gustavo Duenas

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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] links behaviors in a data grid component

2007-04-24 Thread Merrill, Jason
Do you mind to send me 
where I can learn more about this cell renderer?

Google is your friend.  Your bestest bestest friend.

http://www.flash-db.com/Tutorials/cellrenderer/


Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda

Is there any specific reason why after calling clearInterval the variable
with the interval returns 1 instead of undefined/null?

Following the docs and creating a simple item we get different results (no
different but no what our logic might expect)

function callback() {
trace(interval called: +getTimer()+ ms.);
}

var intervalID:Number = setInterval(callback, 1000);
trace(intervalID);

clear_btn.onRelease = function(){
clearInterval( intervalID );
trace(intervalID);//shouldnt this return undefined/null?
trace(cleared interval);
};

start_btn.onRelease = function() {
   intervalID = setInterval(callback, 1000);// this adds 1 to the current
interval
   trace(intervalID);
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Steven Sacks
An interval ID is just a number.  If you clear the interval, it doesn't 
get rid of the number, it just stops the interval of that ID from running.


delete intervalID;



Helmut Granda wrote:

Is there any specific reason why after calling clearInterval the variable
with the interval returns 1 instead of undefined/null?

Following the docs and creating a simple item we get different results (no
different but no what our logic might expect)

function callback() {
trace(interval called: +getTimer()+ ms.);
}

var intervalID:Number = setInterval(callback, 1000);
trace(intervalID);

clear_btn.onRelease = function(){
clearInterval( intervalID );
trace(intervalID);//shouldnt this return undefined/null?
trace(cleared interval);
};

start_btn.onRelease = function() {
   intervalID = setInterval(callback, 1000);// this adds 1 to the current
interval
   trace(intervalID);
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Karina Steffens
Dunno if there's a good reason behind it, but if you need it to return null
you can always use delete intervalID just afar clearing the interval.

Karina

 -Original Message-
 From: Helmut Granda [mailto:[EMAIL PROTECTED] 
 Sent: 24 April 2007 22:19
 To: Flashcoders mailing list
 Subject: [Flashcoders] Clear Set Interval Q:
 
 Is there any specific reason why after calling clearInterval 
 the variable with the interval returns 1 instead of undefined/null?
 
 Following the docs and creating a simple item we get 
 different results (no different but no what our logic might expect)
 
 function callback() {
  trace(interval called: +getTimer()+ ms.); }
 
 var intervalID:Number = setInterval(callback, 1000); 
 trace(intervalID);
 
 clear_btn.onRelease = function(){
  clearInterval( intervalID );
  trace(intervalID);//shouldnt this return undefined/null?
  trace(cleared interval);
 };
 
 start_btn.onRelease = function() {
 intervalID = setInterval(callback, 1000);// this adds 1 
 to the current interval
 trace(intervalID);
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread Steven Sacks

Best practices:

A lot of people use main.swf and main.as.  FLASC/MTASC has a feature to 
support this very functionality.


Never put classes in the same folder as your movie.  Always put them in 
a namespace folder chain.


For instance:

class com.clientname.projectname.Main

HTH,
Steven









Johan Nyberg wrote:
Hi, just wanted to know if there is a best practice when creating a 
class for the mother movie (i.e. the flash-movie itself). Is

this the way to go?

var mother:MyFabFlashApp = new MyFabFlashApp();

..or is there a better way? Seems kind of a stupid question, but I 
wanted to put it anyway in case I've missed something.  ;-)  I'veput my 
main code on the first frame of the _root timeline for too long, and 
want to move it into a class.


Regards,
/Johan Nyberg

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda

Thats what I thought. I just wanted to make sure I wasn't missing anything
else that was essential.

Thanks!

On 4/24/07, Steven Sacks [EMAIL PROTECTED] wrote:


An interval ID is just a number.  If you clear the interval, it doesn't
get rid of the number, it just stops the interval of that ID from running.

delete intervalID;



Helmut Granda wrote:
 Is there any specific reason why after calling clearInterval the
variable
 with the interval returns 1 instead of undefined/null?

 Following the docs and creating a simple item we get different results
(no
 different but no what our logic might expect)

 function callback() {
 trace(interval called: +getTimer()+ ms.);
 }

 var intervalID:Number = setInterval(callback, 1000);
 trace(intervalID);

 clear_btn.onRelease = function(){
 clearInterval( intervalID );
 trace(intervalID);//shouldnt this return undefined/null?
 trace(cleared interval);
 };

 start_btn.onRelease = function() {
intervalID = setInterval(callback, 1000);// this adds 1 to the
current
 interval
trace(intervalID);
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread sean
There are a number of ways of essentially 'hacking' AS2 to behave in a
more classic OO manner. Personally, as it IS a hack no matter what you do
in AS2, I always keep it simple and just import a Main.as file, rather
than go to unnecessarily elaborate lengths to fool myself that I'm really
using a stricly typed, perfectly conventioned OO based language. But fear
not, AS3 will let you create the document class you long for. In the most
mature example of popular commercial OO based code, Java, the best
practice is always to call the main dcument class main. If you stick
with Java best practices you won't go wrong with AS.

Sean McSharry

 Hi, just wanted to know if there is a best practice when creating a class
 for the mother movie (i.e. the flash-movie itself). Is
 this the way to go?

 var mother:MyFabFlashApp = new MyFabFlashApp();

 ..or is there a better way? Seems kind of a stupid question, but I wanted
 to put it anyway in case I've missed something.  ;-)  I'veput my main code
 on the first frame of the _root timeline for too long, and want to move it
 into a class.

 Regards,

 /Johan Nyberg

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Muzak
clearInterval stops an interval from executing, it doesn't remove the ID that 
was assigned to the interval.

From the docs:
quote
setInterval:

Returns
Number - An integer that identifies the interval (the interval ID), which 
you can pass to clearInterval() to cancel the 
interval.
/quote

Each time you call setInterval a numeric identifier is returned, which is auto 
incremented as you can see in your example.
And this also explains why it is so important to clear an interval before 
creating a new one, which was mentioned a few times here 
recently.

regards,
Muzak

- Original Message - 
From: Helmut Granda [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 11:18 PM
Subject: [Flashcoders] Clear Set Interval Q:


 Is there any specific reason why after calling clearInterval the variable
 with the interval returns 1 instead of undefined/null?

 Following the docs and creating a simple item we get different results (no
 different but no what our logic might expect)

 function callback() {
 trace(interval called: +getTimer()+ ms.);
 }

 var intervalID:Number = setInterval(callback, 1000);
 trace(intervalID);

 clear_btn.onRelease = function(){
 clearInterval( intervalID );
 trace(intervalID);//shouldnt this return undefined/null?
 trace(cleared interval);
 };

 start_btn.onRelease = function() {
intervalID = setInterval(callback, 1000);// this adds 1 to the current
 interval
trace(intervalID);
 } 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] mc alpha not effecting static text

2007-04-24 Thread Nick Johnston

Andrew Sinning wrote:

Figured it out:  I don't have the font's installed on this machine.  duh.

Andrew Sinning wrote:

When I change the alpha of a movie clip, the alpha of static text 
inside the clip remains at 100%.  It looks just fine within Flash, 
but in the Player it stays at 100%.


I'm using MX04.

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

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



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

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


Hey Andrew,

Embed the fonts. That will work.

Cheers, Nick
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread eric e. dolecki

you could try

clearInterval( intervalID);
delete intervalID;

and then wait for the garbage truck to drive by and pick it up...

eric


On 4/24/07, Steven Sacks [EMAIL PROTECTED] wrote:


An interval ID is just a number.  If you clear the interval, it doesn't
get rid of the number, it just stops the interval of that ID from running.

delete intervalID;



Helmut Granda wrote:
 Is there any specific reason why after calling clearInterval the
variable
 with the interval returns 1 instead of undefined/null?

 Following the docs and creating a simple item we get different results
(no
 different but no what our logic might expect)

 function callback() {
 trace(interval called: +getTimer()+ ms.);
 }

 var intervalID:Number = setInterval(callback, 1000);
 trace(intervalID);

 clear_btn.onRelease = function(){
 clearInterval( intervalID );
 trace(intervalID);//shouldnt this return undefined/null?
 trace(cleared interval);
 };

 start_btn.onRelease = function() {
intervalID = setInterval(callback, 1000);// this adds 1 to the
current
 interval
trace(intervalID);
 }
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda

So once you create a new interval with the same name you will lose the path
of the original?

/*SAMPLE
Of course we know this is not the way to do it ;)
Its just for testing purposes */

var myInterval:Number = setInterval (this, test, 1000);
var myInterval:Number = setInterval (this, test, 1200);
var myInterval:Number = setInterval (this, test, 1400);
var myInterval:Number = setInterval (this, test, 1600);

clearInterval (myInterval);

function test() {
   trace(hi);
}

In this case we now don't have access to interval 1,2 and 3 and of course 4
was cleared.

...helmut

On 4/24/07, Muzak [EMAIL PROTECTED] wrote:


clearInterval stops an interval from executing, it doesn't remove the ID
that was assigned to the interval.

From the docs:
quote
setInterval:

Returns
Number - An integer that identifies the interval (the interval ID),
which you can pass to clearInterval() to cancel the
interval.
/quote

Each time you call setInterval a numeric identifier is returned, which is
auto incremented as you can see in your example.
And this also explains why it is so important to clear an interval before
creating a new one, which was mentioned a few times here
recently.

regards,
Muzak

- Original Message -
From: Helmut Granda [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, April 24, 2007 11:18 PM
Subject: [Flashcoders] Clear Set Interval Q:


 Is there any specific reason why after calling clearInterval the
variable
 with the interval returns 1 instead of undefined/null?

 Following the docs and creating a simple item we get different results
(no
 different but no what our logic might expect)

 function callback() {
 trace(interval called: +getTimer()+ ms.);
 }

 var intervalID:Number = setInterval(callback, 1000);
 trace(intervalID);

 clear_btn.onRelease = function(){
 clearInterval( intervalID );
 trace(intervalID);//shouldnt this return undefined/null?
 trace(cleared interval);
 };

 start_btn.onRelease = function() {
intervalID = setInterval(callback, 1000);// this adds 1 to the
current
 interval
trace(intervalID);
 }


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clear Set Interval Q:

2007-04-24 Thread Helmut Granda

you could try

clearInterval( intervalID);
delete intervalID;

and then wait for the garbage truck to drive by and pick it up...

eric



haha, nice...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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[2]: [Flashcoders] Clear Set Interval Q:

2007-04-24 Thread R�kos Attila

HG So once you create a new interval with the same name you will lose the path
HG of the original?

An interval has no name, it has a numeric ID - what has a name is the
variable (or more variables if you want) where you store this ID. And
yes, if you doesn't care about storing the ID (e.g. you overwrite it),
you will lose information which is required for clearing a specific
interval.

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread Steven Sacks

If you like Java so much, why don't you marry it?

If you want to make deferential commentary regarding Actionscript, go to 
Java forums and seek validation from your Java friends.  Unlike us 
Flashcoders, I'm sure they'd be happy to oblige.


It's extremely easy to make a document class in AS2 and it is most 
certainly not a hack.  You make an empty movieclip (CTRL+F8), assign 
your main class to it (under Linkage), put it on the root timeline at 
0,0 and you're done.  Doesn't get much easier than that.


It's not a hack, there is nothing negative about it and it has quite a 
few positives.  Just build your entire application within that clip.


The hacks that I have seen about how to force the root to have a class 
assigned to it are complicated at best, and unnecessary (as I have just 
illustrated) at worst, not to mention you can run into issues when you 
take into account FlashVars and other _root considerations.


When I'm developing, I hear two voices in my head:

Judge Judy says, KISS! Keep It Simple, Stupid.
and David Hansson says DRY! Don't Repeat Yourself.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread Patrick Matte | BLITZ
Try this class. Put new ApplicationClass(this); on the first frame of
the timeline.

import mx.events.EventDispatcher;

class ApplicationClass extends MovieClip{

public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

public function ApplicationClass(target){
target.__proto__ = __proto__;
this = ApplicationClass(target);
EventDispatcher.initialize(this);
init();
}

private function init(){
trace(this =  + this);
}

}

You can also use that class as a generic class for all your timelines
and extend it like this

import mx.utils.Delegate;
import it.sephiroth.XML2Object;

class RootClass extends ApplicationClass{


public function RootClass(target){
super(target);
}

private function init(){
trace(override init this =  + this);
}

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

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


RE: [Flashcoders] Papervision3D Terrain Demo with USGS SDTS DEM data

2007-04-24 Thread Palmer, Jim

The documentation is rather lacking - but it's relatively easy once you 
struggle through your first project.
The best thing that's happening right now, beyond just the core PV3D code, are 
all the demos people are putting together with source code released.

It's really tough just doing a tweak-compile-wait-repeat especially with AS3 
taking so long to compile. I've pulled many hairs out no doubt.

Yes - you can position sprites/MCs in 3d space. You can essentially apply 
anything that is an asset in the library as a texture, bitmap at least. I've 
seen a demo or two with animated materials as well. As far as I can tell you 
can make parts of a model clickable. I've seen a couple demo's that will 
highlight the wireframe outline of the specific triangle you're mouse is 
over in 3D space, which would imply you can click on it.

Give it a try if you have the time! I'd suggest messing around with the AS3 
version.

--
Jim Palmer ! Mammoth Web Operations

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf 
 Of Merrill,
 Jason
 Sent: Monday, April 23, 2007 8:23 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Papervision3D Terrain Demo with 
 USGS SDTS DEM
 data
 
 
 Very cool - how hard was papervision to learn? The 
 documentation seems a
 little lacking.  Do you know if you can position sprites or movieClips
 in the 3-D space and/or if you can make parts of a 3-D model 
 click-able?
 
 Jason Merrill
 Bank of America  
 GTO Learning  Leadership Development
 eTools  Multimedia Team
 
 
  
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Palmer, Jim
 Sent: Saturday, April 21, 2007 8:01 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Papervision3D Terrain Demo with USGS 
 SDTS DEM data
 
 
 http://www.overset.com/2007/04/21/papervision3d-terrain-map-of
 -mammoth-mountain-ski-area/
 
 Just put together a simple proof-of-concept by taking the 
 USGS D.E.M. (Digital Elevation Model) data in SDTS format, 
 converted it to a huge array of Vertex3D objects and did a 
 ghetto-fab triangulation of the vertices for the Face3D objects.
 
 I'd honestly LOVE to put together a SDTS DEM to papervision3d 
 Mesh3D conversion utility to literally load SDTS data on the 
 fly, but that will not happen too soon =[
 
 It appears to be 3080 Vertex3D objects and 5933 Face3D 
 objects with my ghetto-triangulation.
 
 The wireframe texture with doubleSided=false seems to do 
 alright in terms of performance and falls within the 15sec 
 script execution limitation. 
 We'll see how this does with a texture applied, if I can even 
 accomplish this easily.
 
 ..comments?
 
 --
 Jim Palmer ! Mammoth Web Operations
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Class for movie - best practice question

2007-04-24 Thread David Ngo
Why would you extend MovieClip and composition a MovieClip as well? Seems a
bit redundant, no?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Matte | BLITZ
Sent: Tuesday, April 24, 2007 7:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Class for movie - best practice question

Try this class. Put new ApplicationClass(this); on the first frame of
the timeline.

import mx.events.EventDispatcher;

class ApplicationClass extends MovieClip{

public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

public function ApplicationClass(target){
target.__proto__ = __proto__;
this = ApplicationClass(target);
EventDispatcher.initialize(this);
init();
}

private function init(){
trace(this =  + this);
}

}

You can also use that class as a generic class for all your timelines
and extend it like this

import mx.utils.Delegate;
import it.sephiroth.XML2Object;

class RootClass extends ApplicationClass{


public function RootClass(target){
super(target);
}

private function init(){
trace(override init this =  + this);
}

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Papervision3D Terrain Demo with USGS SDTS DEM data

2007-04-24 Thread Jordan Snyder

jim, I haven't seen anywhere to download it readily...is it in Beta
only?  Where might I get a copy?

Cheers

On 4/24/07, Palmer, Jim [EMAIL PROTECTED] wrote:


The documentation is rather lacking - but it's relatively easy once you 
struggle through your first project.
The best thing that's happening right now, beyond just the core PV3D code, are 
all the demos people are putting together with source code released.

It's really tough just doing a tweak-compile-wait-repeat especially with AS3 
taking so long to compile. I've pulled many hairs out no doubt.

Yes - you can position sprites/MCs in 3d space. You can essentially apply anything that is an asset 
in the library as a texture, bitmap at least. I've seen a demo or two with animated materials as 
well. As far as I can tell you can make parts of a model clickable. I've seen a couple demo's that 
will highlight the wireframe outline of the specific triangle you're mouse is 
over in 3D space, which would imply you can click on it.

Give it a try if you have the time! I'd suggest messing around with the AS3 
version.

--
Jim Palmer ! Mammoth Web Operations

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf
 Of Merrill,
 Jason
 Sent: Monday, April 23, 2007 8:23 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Papervision3D Terrain Demo with
 USGS SDTS DEM
 data


 Very cool - how hard was papervision to learn? The
 documentation seems a
 little lacking.  Do you know if you can position sprites or movieClips
 in the 3-D space and/or if you can make parts of a 3-D model
 click-able?

 Jason Merrill
 Bank of America
 GTO Learning  Leadership Development
 eTools  Multimedia Team




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Palmer, Jim
 Sent: Saturday, April 21, 2007 8:01 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Papervision3D Terrain Demo with USGS
 SDTS DEM data
 
 
 http://www.overset.com/2007/04/21/papervision3d-terrain-map-of
 -mammoth-mountain-ski-area/
 
 Just put together a simple proof-of-concept by taking the
 USGS D.E.M. (Digital Elevation Model) data in SDTS format,
 converted it to a huge array of Vertex3D objects and did a
 ghetto-fab triangulation of the vertices for the Face3D objects.
 
 I'd honestly LOVE to put together a SDTS DEM to papervision3d
 Mesh3D conversion utility to literally load SDTS data on the
 fly, but that will not happen too soon =[
 
 It appears to be 3080 Vertex3D objects and 5933 Face3D
 objects with my ghetto-triangulation.
 
 The wireframe texture with doubleSided=false seems to do
 alright in terms of performance and falls within the 15sec
 script execution limitation.
 We'll see how this does with a texture applied, if I can even
 accomplish this easily.
 
 ..comments?
 
 --
 Jim Palmer ! Mammoth Web Operations
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.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] Papervision3D Terrain Demo with USGS SDTS DEM data

2007-04-24 Thread Palmer, Jim
Jordan,

It's in bleeding-edge-beta only available through SVN repository. Check out the 
osflash landing page http://www.osflash.org/papervision3d
and subscribe to the mailing list for acquisition information.

--
Jim Palmer ! Mammoth Web Operations

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jordan
 Snyder
 Sent: Tuesday, April 24, 2007 9:28 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Papervision3D Terrain Demo with 
 USGS SDTS DEM
 data
 
 
 jim, I haven't seen anywhere to download it readily...is it in Beta
 only?  Where might I get a copy?
 
 Cheers
 
 On 4/24/07, Palmer, Jim [EMAIL PROTECTED] wrote:
 
  The documentation is rather lacking - but it's relatively 
 easy once you struggle through your first project.
  The best thing that's happening right now, beyond just the 
 core PV3D code, are all the demos people are putting together 
 with source code released.
 
  It's really tough just doing a tweak-compile-wait-repeat 
 especially with AS3 taking so long to compile. I've pulled 
 many hairs out no doubt.
 
  Yes - you can position sprites/MCs in 3d space. You can 
 essentially apply anything that is an asset in the library as 
 a texture, bitmap at least. I've seen a demo or two with 
 animated materials as well. As far as I can tell you can make 
 parts of a model clickable. I've seen a couple demo's that 
 will highlight the wireframe outline of the specific 
 triangle you're mouse is over in 3D space, which would 
 imply you can click on it.
 
  Give it a try if you have the time! I'd suggest messing 
 around with the AS3 version.
 
  --
  Jim Palmer ! Mammoth Web Operations
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Behalf
   Of Merrill,
   Jason
   Sent: Monday, April 23, 2007 8:23 AM
   To: flashcoders@chattyfig.figleaf.com
   Subject: RE: [Flashcoders] Papervision3D Terrain Demo with
   USGS SDTS DEM
   data
  
  
   Very cool - how hard was papervision to learn? The
   documentation seems a
   little lacking.  Do you know if you can position sprites 
 or movieClips
   in the 3-D space and/or if you can make parts of a 3-D model
   click-able?
  
   Jason Merrill
   Bank of America
   GTO Learning  Leadership Development
   eTools  Multimedia Team
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf
   Of Palmer, Jim
   Sent: Saturday, April 21, 2007 8:01 PM
   To: flashcoders@chattyfig.figleaf.com
   Subject: [Flashcoders] Papervision3D Terrain Demo with USGS
   SDTS DEM data
   
   
   http://www.overset.com/2007/04/21/papervision3d-terrain-map-of
   -mammoth-mountain-ski-area/
   
   Just put together a simple proof-of-concept by taking the
   USGS D.E.M. (Digital Elevation Model) data in SDTS format,
   converted it to a huge array of Vertex3D objects and did a
   ghetto-fab triangulation of the vertices for the 
 Face3D objects.
   
   I'd honestly LOVE to put together a SDTS DEM to papervision3d
   Mesh3D conversion utility to literally load SDTS data on the
   fly, but that will not happen too soon =[
   
   It appears to be 3080 Vertex3D objects and 5933 Face3D
   objects with my ghetto-triangulation.
   
   The wireframe texture with doubleSided=false seems to do
   alright in terms of performance and falls within the 15sec
   script execution limitation.
   We'll see how this does with a texture applied, if I can even
   accomplish this easily.
   
   ..comments?
   
   --
   Jim Palmer ! Mammoth Web Operations
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/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
 
 
 
 -- 
 Jordan Snyder
 Applications Developer
 Image Action LLC
 http://www.imageaction.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
 

RE: [Flashcoders] Class for movie - best practice question

2007-04-24 Thread Patrick Matte | BLITZ
This AS2 class acts like the document class in AS3.

You need to extend MovieClip like you need to extend Sprite or MovieClip
in AS3.

Tracing this in the class will result in _level0, its not composition.
Its really useful for swf that you load, gives you the ability to type
check everything on the root timeline without having to create an empty
clip on the timeline etc... And I've thrown in EventDispatcher in there
which is really useful as well.


BLITZ | Patrick Matte - 310-551-0200 x214

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ngo
Sent: Tuesday, April 24, 2007 9:01 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Class for movie - best practice question

Why would you extend MovieClip and composition a MovieClip as well?
Seems a
bit redundant, no?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Matte | BLITZ
Sent: Tuesday, April 24, 2007 7:09 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Class for movie - best practice question

Try this class. Put new ApplicationClass(this); on the first frame of
the timeline.

import mx.events.EventDispatcher;

class ApplicationClass extends MovieClip{

public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

public function ApplicationClass(target){
target.__proto__ = __proto__;
this = ApplicationClass(target);
EventDispatcher.initialize(this);
init();
}

private function init(){
trace(this =  + this);
}

}

You can also use that class as a generic class for all your timelines
and extend it like this

import mx.utils.Delegate;
import it.sephiroth.XML2Object;

class RootClass extends ApplicationClass{


public function RootClass(target){
super(target);
}

private function init(){
trace(override init this =  + this);
}

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Javascript SetVariable -- when does Flash see the change?

2007-04-24 Thread Douglas Pearson
We have a piece of JavaScript like this:

swf.SetVariable(_level1.myvar,myvalue) ;

This JS code is triggered by a piece of Flash code that is executed when the
SWF loads.  However, it appears that the variable is not immediately set:

// Called at load time for the SWF
getURL(javascript:doSet()) ;
trace(_level1.myvar);// Reports nothing

But waiting and tracing the variable's value later seems to work:

this.onEnterFrame = function() {
   trace(_level1.myvar) ;// This prints correct value
}

Can anyone confirm this behavior?  Is there some delay here (e.g. JS takes
100ms to respond) or is that the value is set when the movie clip's timeline
starts up and not until then?

It's all just a bit mysterious...

Doug

P.S. This is Flash 6 code, running in Flash player 9.  Browser is Firefox or
IE 7, both behave the same.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Javascript SetVariable -- when does Flash see thechange?

2007-04-24 Thread John Dowdell
The browser is a big variable in latency of message-passing. You can confirm 
that many SWF will run at different rates in different browsers. The NPRuntime 
API is now implemented pretty well in today's popular browsers, but the size 
and timing of permissible messages may vary among implementations.
http://www.mozilla.org/projects/plugins/npruntime.html

In this case, though, it looks like you're using the old javascript: 
pseudo-URL, and then polling immediately for a result. It may be better to wait 
a frame or two, or an interval, before checking whether the plugin-to-browser 
and browser-to-plugin communication cycles have finished. I don't know how many 
browsers would stop the plugin's execution during the attempted cross-app 
communication.

jd/adobe
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MouseEvent.MOUSE_WHEEL event not working for me.

2007-04-24 Thread Daniel Freeman
I can't get mouse wheel events to work.

stage.addEventListener(MouseEvent.MOUSE_WHEEL,mousewheel);
trace('mousewheel event set');

function mousewheel(ev:MouseEvent):void {
trace('localX='+ev.localX+' localY='+ev.localY');
trace('stageX='+ev.stageX+'
stageY='+ev.stageY);
}

When I run this simple test, and move two fingers over
my trackpad (Apple mousewheel) - nothing happens. 
Why?


Send instant messages to your online friends http://au.messenger.yahoo.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