[Flashcoders] problem with combobox within another clip

2006-12-22 Thread natalia Vikhtinskaya

Hi to all
Can anybody help me with this problem?
I have combobox in swf file.
This loading works well
_root.loadMovie("movie.swf");

but with this
_root.holder.loadMovie("movie.swf");
combobox does not work

I need to load this swf in holder clip and don't know how to solve the
problem.
Thank you for help.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Remove elements from Array

2006-12-22 Thread Brake, Stephen
I have a Flex question.  I have been considering FLEX 2.0, but when I spoke 
with the guy at Adobe, the first thing he told me was that FLEX could not 
consume web services without Flex Data Services and the price he quoted me for 
the Departmental License was (well, lets not say).
 
Is this true, or can FLEX consume a web serivce but with limiations?  By 
limitations, for example, not being able to consume a .Net dataset directly - 
needing to pass the data into an array.
 
Thanks,
 
Steve



From: [EMAIL PROTECTED] on behalf of Mike Cobb
Sent: Thu 12/21/2006 11:58 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Remove elements from Array



-

Hi everyone,

I'm having a braindead moment today, which I was hoping someone could
help me with.

I have the following array...

//Create array with 5 elements
var myArray1:Array = new Array();
myArray1.push( new Array("A:", -1) );
myArray1.push( new Array("B:", -1) );
myArray1.push( new Array("C:",  0) );
myArray1.push( new Array("D:",  0) );
myArray1.push( new Array("E:", -1) );
myArray1.push( new Array("F:",  1) );
myArray1.push( new Array("G:",  0) );
myArray1.push( new Array("H:", -1) );
//name, score

...and I'm trying to remove all the elements in myArray1 with a score of
less than 0 without sorting/reordering the array at all.

I was trying to use a 'for loop', but obviously as the elements are
removed, the length of the array changes & causes the wrong elements to
be deleted.

Can anyone help?

Thanks,


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

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. Thanks.

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

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


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

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

[Flashcoders] Help with custom button (AS3)

2006-12-22 Thread Reid Priedhorsky

Hi folks,

I am trying to create a custom Button in AS3 using the Flex 2 SDK. It is 
pretty simple; I just want it to be a wedge shape that I can rotate to 
point in an arbitrary direction. My code is attached below, but I'm 
stuck on two issues:


1. Making it behave as regular buttons do in terms of mouse-over and 
mouse-down behavior (i.e. draw it differently in these cases).


2. Currently, when I rotate it, e.g.:

  

   it rotates around its 0,0 point, causing it to swing out of the area 
where Flash "thinks" it is, messing up the layout.


I've been wandering through the docs and Google all afternoon, but I 
haven't figured these things out.


Any help or pointers to appropriate documentation would be very much 
appreciated.


TIA,

Reid


// This class defines a button which looks like an arrow. It points up 
// and relies on the rotation property to be pointed in the right

// direction.

package {

   import flash.display.Graphics;
   import mx.controls.Button;
   import mx.core.UIComponent;

   public class Arrow_Button extends Button
   {

  override protected function updateDisplayList(wd:Number,
ht:Number) :void
  {
 var gr:Graphics = this.graphics;
 gr.clear();
 gr.lineStyle(1);
 gr.beginFill(0xff8800);
 gr.moveTo(0, ht);
 gr.lineTo(wd, ht);
 gr.lineTo(wd/2, 0);
 gr.lineTo(0, ht);
  }

   }

}

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:AS2 AS3 and loop speed

2006-12-22 Thread greg h

Hi jbach,

You ask about "differences for as2, and as3".  But you preface it with "I
know this has been discussed ad nauseam for as1".

I think any performance comparisons of AS1 to AS3 would be the same for AS2
to AS3.

fwiw, my understanding is that *at runtime* AS1 and AS2 are
one-and-the-same.  Or as the  post at following link put it 2 weeks ago AS2
"was just syntactical sugar on top of AS1":
http://www.flashmagazine.com/1363.htm

As of Flash Player 9, there are now 2 "virtual machines" in the Flash
Player:  AVM1 and AVM2.  The AVM and AS numbering are not synchronized.  So,
AS3 compiles into bytecode rendered by AVM2.  And both AS1 and AS2 compile
into bytecode rendered by AVM1.  (btw ... the "1" on AVM1 likely was added
retroactively upon the appearance of AVM2.)

If my understanding is correct, the performance comparisons at the following
link comparing AS2 and AS3 imply similar performance for AS1 as those shown
for AS2:
http://oddhammer.com/actionscriptperformance/set4/

If I am incorrect in any of this, I would appreciate someone correcting me.

hth,

g


On 12/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I know this has been discussed ad nauseam for as1, but what's the scoop on
loop speed differences for as2, and as3?

Is there as much of a difference between for, do while loops etc?


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca



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

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


Re: [Flashcoders] A little AS3 & AMFPHP 1.9 HowTo

2006-12-22 Thread eka

Hello :)

You can try to use my OpenSource AS2/AS3/SSAS Framework who contains a
remoting package :

- http://vegas.riaforge.org/

1 - install the sources in your system with subversion or the zip file in
RIAForge

2 - use Vegas in your flex AS3 or MXML project

3 - use the package asgard.net.remoting :

Example :

1 - class test.User

package test
{

import flash.net.registerClassAlias ;

public class User
{

// o Constructor

public function User(name:String="", age:uint=0, url:String="")
{

trace( "> User constructor : " + this ) ;

this.name = name ;
this.age = age ;
this.url = url ;

}   

// -o Public Properties

public var age:uint ;
public var name:String ;
public var url:String ;

// o Public Methods

static public function register():void
{

registerClassAlias("test.User", User) ;   

}   

public function toString():String
{

return "[User name:" + name + ", age:" + this.age + ", 
url:" +
this.url + "]"  ;

}

}

}

2 - main class to test the AMFPHP services :

package
{

import asgard.events.ActionEvent ;  
import asgard.events.RemotingEvent ;

import asgard.net.remoting.RemotingService;
import asgard.net.remoting.RemotingAuthentification;

import flash.display.Sprite ;

import test.User ;

public class TestAsgardRemoting extends Sprite
{

// o Constructor

public function TestAsgardRemoting()
{

// o Register your shared Class.

User.register() ;

// o Create Service

var service:RemotingService = new RemotingService() ;

service.addEventListener(RemotingEvent.ERROR, onError) ;
service.addEventListener(RemotingEvent.FAULT, onFault) ;
service.addEventListener(ActionEvent.FINISH, onFinish) ;
service.addEventListener(RemotingEvent.RESULT, 
onResult) ;
service.addEventListener(ActionEvent.START, onStart) ;
service.addEventListener(RemotingEvent.TIMEOUT, 
onTimeOut) ;

service.gatewayUrl = 
"http://localhost/work/vegas/php/gateway.php"; ;
service.serviceName = "Test" ;
service.methodName = "getUser" ;  
service.params = ["eka", 29, 
"http://www.ekameleon.net";] ;

// o Launch Service

service.trigger() ;

}

// o Public Methods

public function onError(e:RemotingEvent):void
{
trace("> " + e.type + " : " + e.code) ;
}

public function onFinish(e:ActionEvent):void
{
trace("> " + e.type) ;
}

public function onFault(e:RemotingEvent):void
{
trace("> " + e.type + " : " + e.getCode() + " :: " + 
e.getDescription()) ;
}

public function onProgress(e:ActionEvent):void
{
trace("> " + e.type ) ;
}

public function onResult( e:RemotingEvent ):void
{
trace("---") ;
trace("> result : " + e.result) ;
trace("---") ;
}

public function onStart(e:ActionEvent):void
{
trace("> " + e.type ) ;
}

public function onTimeOut(e:RemotingEvent):void
{
trace("> " + e.type ) ;
}

}
}

in the PHP services you can use class mapping :

1 - The User php class in services/test directory  :

/**
* @author ekameleon
*/

class test.User
{

Re: [Flashcoders] A little AS3 & AMFPHP 1.9 HowTo

2006-12-22 Thread slangeberg

Are you going to post the PHP code for 'Phonebook.getAll'?

I know what webservices look like in CF, but not PHP.

Thanks,

-Scott

On 12/22/06, Morten Reinholdt <[EMAIL PROTECTED]> wrote:


Hey All

If it is of any interest I have made a small and simple tutorial about
how to connect actionscript 3 whit AMFPHP 1.9 you can find it on my blog
at http://flashorbit.com/?page_id=53

--

Morten Reinholdt - Flash Developer - TBWA\PLAY
blog: flashorbit.com 

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

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





--

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

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


Re: [Flashcoders] A little AS3 & AMFPHP 1.9 HowTo

2006-12-22 Thread T. Michael Keesey

One of the comments was asking how to set credentials. You can do it like so:

gateway.addHeader("Credentials", true, {userid: xxx, password: xxx});

I've actually developed a little AS3 package for AMFPHP remoting. It
includes these classes: Credentials, RemoteCall, RemoteMethod,
RemoteService. I'll try and post it later.

On 12/22/06, Morten Reinholdt <[EMAIL PROTECTED]> wrote:

Hey All

If it is of any interest I have made a small and simple tutorial about
how to connect actionscript 3 whit AMFPHP 1.9 you can find it on my blog
at http://flashorbit.com/?page_id=53

--

Morten Reinholdt - Flash Developer - TBWA\PLAY
blog: flashorbit.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




--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:Simulate HTML anchors in html text

2006-12-22 Thread vipin chandran

I have also faced same issue, where i wanted to put anchors in html display
of one of my projects, and i could not do it.
If you can be little more specifics, that will be geat!

On 12/21/06, Jason Lutes <[EMAIL PROTECTED]> wrote:


I made a couple of glossary-type applications that use the same kind of
anchor mechanism.

The solution to simulating this involves writing text to the field in
chunks. You need to capture (into an array, or similar) the number of the
last occupied line (using the maxscroll and bottomScroll TextField
properties) before writing each new chunk. Doing this creates a scroll
position index. Create code to scroll to some line number in the index,
based on whatever corresponding criteria suits you.

I left a few details out, but that's the general idea. I can be more
specific if needed.


-
Jason

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of [EMAIL PROTECTED]
> Sent: Thursday, December 21, 2006 8:47 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Q:Simulate HTML anchors in html text
>
> Hi
> Did a search but so far haven't found a solution.
>
> Is there a way to simulate HTML anchors in a HTML text field??
>
> I have a long, scrollable text list with an associated
> calendar...I want to be able to simply scroll to a specific
> text description when I click on a calendar event.
>
> Thanks in advance!
> Jim Bachalo
>
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
>  - Bruce Mau,'LifeStyle'
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Flash Game - Post Encrypted Score to server sidescript

2006-12-22 Thread Ron Wheeler
There was a long discussion about this a while ago. You might try 
searching the archives or using Google.


One of the suggestions was to track the progress of the game rather than 
just the final score.


If you build a small Finite State Machine on the server side and have 
the client report the state of the game to the server, you can check to 
see if the player is actually playing the game and you can track scores 
and game position(whatever this means in your game) to make sure that 
the player goes through all of the "right stages" in the game and that 
the interim scores are possible pre-cursors to the final score that the 
user claims to achieved.
Encrypting all of these messages will also help but this forces the 
hacker to reverse engineer quite a bit of your game to show the "right 
path" to the final result. The "right path" through the state machine is 
only stored on the server so that makes it even harder since the client 
side code shows no evidence of what the server is checking for state 
transitions; it only sends the state to the server.)
If you include timestamps, you can make sure that a player takes a 
"reasonable" amount of time to pass through each step (For example. you 
can not claim to have solved a New York Times crossword puzzle in 50 
ms.; you have to submit each Down or Across word with an inter-answer 
gap of at lease 2 seconds and take at least 5 minutes to solve the whole 
game).


Mix and match to fit your game.

Ron

JulianG wrote:

Thanks Danny!
There is a prize involved, but no money. I mean users do not pay for 
this.


I'll take a look at the  SHA-1 algorithm.
Of course hackers will be able to find the encryption string by 
"decompiling" the SWF.

So I might need some code obfuscation, which I'm not a big fan of.

Thanks,
JulianG

Danny Kodicek wrote:
Depending on how secure you need it to be (ie, whether there's money 
or a

prize involved), a simple solution is to use SHA-1 (I think Branden Hall
made a SHA-1 encryption algorithm a while back, and it's standard in 
PHP).

Have a long key string which both your Flash file and the PHP page know,
then append the score to this key string and hash it. Send the score in
plain and the hash alongside, then your server script can 
authenticate the
score with the hash to make sure it's the right answer. This will 
stop the

casual hacker.

Danny

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

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


  

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

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



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ActionScript switch/default syntax and interpretation

2006-12-22 Thread Mark Lapasa

Good question. Great thread. -mL

T. Michael Keesey wrote:

On 12/21/06, Wagner Amaral <[EMAIL PROTECTED]> wrote:

The last break on default is considered by some to be a coding
standard, by which you explicitly say you wanted to leave the default
block empty, and not just simply forgot.
Also, if unadvised people add code at the end of the switch without
realizing the missing break, your default will fall-through.


Good point. Well, in any event, it doesn't hurt, I suppose.




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

2006-12-22 Thread Dustin Krysak

great! Thanks for the links!

Dustin

On 12/21/06, Arul <[EMAIL PROTECTED]> wrote:

actionscript.vim
http://mannu.livejournal.com/350826.html

Flex 2 for Linux
http://www.mepis.org/node/11682


Visual Guide.Flex 2: Setting up Flex 2 SDK on Fedora Core 6 - Part 1 -
Installing Flash Player 9
http://www.shockwave-india.com/blog/?archive=2006_12_01_archive.xml#116617365373230749


Ubuntu's default JRE doesn't like Flex SDK
http://renaun.com/blog/2006/12/06/164/

HTH,
Arul


- Original Message -
From: "Dustin Krysak" <[EMAIL PROTECTED]>
To: "Flashcoders" 
Sent: Friday, December 22, 2006 2:03 AM
Subject: [Flashcoders] AS 3 IDE linux info


> Hi there
>
> I am looking to convert my dev system over to linux (my preference),
> but was wondering if anyone had seen any tutorials, software, etc that
> has been published RECENTLY on hte subject? Most things i find are
> dated, etc.
>
> I know this is a long shot, but hey, just thought i would ask around!
>
> Dustin


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

2006-12-22 Thread natalia Vikhtinskaya

Hi
I have form in separate swf file with
Selection.setFocus("name_txt");

When I test this file this text box has focus and everything works well.
When this swf loads to main file I don't see a focus and I can not enter a
text to any of  the text box.
What kind of problem can be with this situation?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Remove elements from Array

2006-12-22 Thread Steven Sacks | BLITZ
That's a fantastic example of over-architecting if I ever saw one. 
Put away your epeen!  ;)
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Arindam Dhar
> Sent: Friday, December 22, 2006 12:10 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Remove elements from Array
>  
>   function removeElements(arr, level) {
>  
>  for (var i = 0; i  {
>   var tempArr = arr[i];
>   
>if(Number(tempArr[1] ) < Number(level))
>{
> arr.splice(i, 1);
> arguments.callee(arr, level);
>}
>
>  }
> }
> removeElements(myArray1, 0);
> trace( myArray1);
>
>     Arindam
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server side script

2006-12-22 Thread Mick G

You can also try checking the HTTP referrer in PHP to make sure people
can only post data to your PHP script from your page on your site.


On 12/22/06, JulianG <[EMAIL PROTECTED]> wrote:

Thanks John!
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server side script

2006-12-22 Thread JulianG

Thanks John!



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

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


[Flashcoders] Flash on Wii

2006-12-22 Thread Josh Santangelo
The Wii's "Internet Channel" launched today, which is basically a  
downloadable version of Opera. Of course the first thing I did after  
getting it was check out what version of Flash was included.  
getVersion() returns "WII 7.0.70.0".


Kind of lame that it's only Flash 7. It looks like wiicade.com, a  
site full of Flash games to play on the Wii, was surprised too:  
http://wiicade.com/


I wonder if there's any kind of hidden API to trap events from the  
Wii remote control.


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

2006-12-22 Thread Dave Mennenoh

You can do it with a Delegate:

import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;

class tweeny extends MovieClip {
private var theClass;

function test() {
 theClass = this;
}

function onLoad() {
 this["mc"].onRelease = function():Void  {
 var p:Tween = new Tween(_parent["mc2"],, "_y",Regular.easeOut, 0, 50, 10, 
false);

 var ch = function(){
  trace(this);
 }
 p.onMotionChanged = Delegate.create(theClass, ch);
};
};
}




Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


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

2006-12-22 Thread natalia Vikhtinskaya

THANK YOU!

2006/12/22, INK <[EMAIL PROTECTED]>:


Hi there!
Truncate a CDATA text a little like this


and check this out. Working for me just great.

var aaa = new XML();
aaa.ignoreWhite = true;
aaa.load("in.xml");
aaa.onLoad = function() {
   str= new
XML(this.firstChild.firstChild.firstChild.firstChild
).firstChild.toString();
   txt.htmlText =new XML(str).firstChild.nodeValue;
};
//
function showScript(script) {
trace("script")
}


_
Ruslan Shestopal, Senior Flash Developer
Envisionext, Inc.
Phone: +380 66  999, ICQ: 122 0 355

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of natalia
Vikhtinskaya
Sent: Friday, December 22, 2006 4:40 PM
To: Flashcoders mailing list
Subject: [Flashcoders] asfunction problem

Hi
I have xml file with with asfunction







and
function showScript(script) {

}

in the clip with text box on the layer. Clip has only one frame.
When I click on the link function does not work. What is wrong? Please
give
me advice.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] asfunction problem

2006-12-22 Thread INK
Hi there!
Truncate a CDATA text a little like this


and check this out. Working for me just great.

var aaa = new XML();
aaa.ignoreWhite = true;
aaa.load("in.xml");
aaa.onLoad = function() {
str= new
XML(this.firstChild.firstChild.firstChild.firstChild).firstChild.toString();
txt.htmlText =new XML(str).firstChild.nodeValue;
};
//
function showScript(script) {
 trace("script")
}


_
Ruslan Shestopal, Senior Flash Developer
Envisionext, Inc.
Phone: +380 66  999, ICQ: 122 0 355

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of natalia
Vikhtinskaya
Sent: Friday, December 22, 2006 4:40 PM
To: Flashcoders mailing list
Subject: [Flashcoders] asfunction problem

Hi
I have xml file with with asfunction


 
  
 


and
function showScript(script) {
 
}

in the clip with text box on the layer. Clip has only one frame.
When I click on the link function does not work. What is wrong? Please give
me advice.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server sidescript

2006-12-22 Thread JulianG

Thanks Danny!
There is a prize involved, but no money. I mean users do not pay for this.

I'll take a look at the  SHA-1 algorithm.
Of course hackers will be able to find the encryption string by 
"decompiling" the SWF.

So I might need some code obfuscation, which I'm not a big fan of.

Thanks,
JulianG

Danny Kodicek wrote:

Depending on how secure you need it to be (ie, whether there's money or a
prize involved), a simple solution is to use SHA-1 (I think Branden Hall
made a SHA-1 encryption algorithm a while back, and it's standard in PHP).
Have a long key string which both your Flash file and the PHP page know,
then append the score to this key string and hash it. Send the score in
plain and the hash alongside, then your server script can authenticate the
score with the hash to make sure it's the right answer. This will stop the
casual hacker.

Danny

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

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


  

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

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


Re: [Flashcoders] Flash Game - Post Encrypted Score to server side script

2006-12-22 Thread john

Quoting JulianG <[EMAIL PROTECTED]>:


Hello:

I'm developing a small flash game for a website.
Users must register and log-in before they're allowed to post their
scores to the back-end.
Nevertheless I don't want to have the scores posted in a simple way,
because someone could easily, sign up, log-in, and then post a higher
score without even playing the game.

My idea is to encrypt the score using some algorithm in ActionScript,
something that I can reproduce in PHP on the server side.
I don't want them to be able to read an encrypted score and then try
similar strings in order to get a higher score by chance. I think the
encrypted string should have a check digit or character or something so
it auto-validates.

Do you know of anywhere I could start reading?
or perhaps get an encryption algorithm that I can use?


I use MD5 on my stuff at www.thecodezone.com (which sounds similar to  
what you're trying to do, give it a try). MD5 is built into PHP, so  
that's easy. A quick google-search will find you a couple of  
Actionscript and/or Javascript implementations.


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

2006-12-22 Thread Mendelsohn, Michael
Hi list...

I have a class that has a movie clip "mc" in it that when clicked,
rotates another movie clip "mc2".  As the tween progresses, I want it to
also affect some other things within the class, but I can't seem to
correctly reference instances of this class from within the
onMotionChanged handler.  I've tried this and _parent.  Any ideas?  It
seems like there's a black hole between the Tween class and the instance
of the class it has been spawned from.

Thanks,
- Michael M.

import mx.transitions.Tween;
import mx.transitions.easing.*;
class tweeny extends MovieClip {
function tweeny() {
}
function onLoad() {
this["mc"].onRelease = function():Void  {
var p:Tween = new Tween(_parent["mc2"], "_y",
Regular.easeOut, 0, 50, 10, false);
p.onMotionChanged = function():Void  {
// how to reference the class here??
// this and _parent aren't working
};
};
}
}

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

2006-12-22 Thread natalia Vikhtinskaya

Hi
I have xml file with with asfunction



 



and
function showScript(script) {

}

in the clip with text box on the layer. Clip has only one frame.
When I click on the link function does not work. What is wrong? Please give
me advice.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:AS2 AS3 and loop speed

2006-12-22 Thread moveup
I know this has been discussed ad nauseam for as1, but what's the scoop on loop 
speed differences for as2, and as3?

Is there as much of a difference between for, do while loops etc?


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

"...all improvisation is life in search of a style."
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] form

2006-12-22 Thread kamal Priyashantha

i think this will one be help,

http://proto.layer51.com/d.aspx?f=101

Kamal.

On 12/21/06, Pablo PARRADO <[EMAIL PROTECTED]> wrote:


I have

// get message
remplimsg=1;
vmsg = monclip.msg.text;


I need a function to fill the text with letters, not spaces


APP

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Game - Post Encrypted Score to server sidescript

2006-12-22 Thread Danny Kodicek
 
> I'm developing a small flash game for a website.
> Users must register and log-in before they're allowed to post 
> their scores to the back-end.
> Nevertheless I don't want to have the scores posted in a 
> simple way, because someone could easily, sign up, log-in, 
> and then post a higher score without even playing the game.
> 
> My idea is to encrypt the score using some algorithm in 
> ActionScript, something that I can reproduce in PHP on the 
> server side.
> I don't want them to be able to read an encrypted score and 
> then try similar strings in order to get a higher score by 
> chance. I think the encrypted string should have a check 
> digit or character or something so it auto-validates.
> 
> Do you know of anywhere I could start reading?
> or perhaps get an encryption algorithm that I can use?

Depending on how secure you need it to be (ie, whether there's money or a
prize involved), a simple solution is to use SHA-1 (I think Branden Hall
made a SHA-1 encryption algorithm a while back, and it's standard in PHP).
Have a long key string which both your Flash file and the PHP page know,
then append the score to this key string and hash it. Send the score in
plain and the hash alongside, then your server script can authenticate the
score with the hash to make sure it's the right answer. This will stop the
casual hacker.

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] Flash Game - Post Encrypted Score to server side script

2006-12-22 Thread JulianG

Hello:

I'm developing a small flash game for a website.
Users must register and log-in before they're allowed to post their 
scores to the back-end.
Nevertheless I don't want to have the scores posted in a simple way, 
because someone could easily, sign up, log-in, and then post a higher 
score without even playing the game.


My idea is to encrypt the score using some algorithm in ActionScript, 
something that I can reproduce in PHP on the server side.
I don't want them to be able to read an encrypted score and then try 
similar strings in order to get a higher score by chance. I think the 
encrypted string should have a check digit or character or something so 
it auto-validates.


Do you know of anywhere I could start reading?
or perhaps get an encryption algorithm that I can use?

Thanks,
JuliánG


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

2006-12-22 Thread kamal Priyashantha

I think we can this code for avoid the problem,Thank you all for HELP 

TextField.prototype.setOnPixel = function () {
   this._y = Math.round(this._y);
   this._x = Math.round(this._x);
   this._height = Math.round(this._height);
   this._width = Math.round(this._width);
};

On 12/21/06, Donald Desloge <[EMAIL PROTECTED]> wrote:


Kamal,

Make sure your fonts are on the pixel and not on somehting like 45.2 in
the IDE if the fonts are placed on stage. Especially with dynamic textfields
and embedded fonts. Sometimes the size of the font will make the difference
also. Hope that helps.

Donald

- Original Message 
From: Julien Vignali <[EMAIL PROTECTED]>
To: Flashcoders mailing list 
Sent: Thursday, December 21, 2006 4:59:10 AM
Subject: Re: [Flashcoders] Embed text Problem

Kamal,
Best method I guess is to upgrade to flash 8 (at least publish your movies
for flash 8 with MTASC for example if you can't buy the flash 8 upgrade),
and use the advanced antialiasing system for fonts (see
TextField.antiAliasType in the flash 8 API reference for more info).
Another method if your text is only static, you may also create it in
Photoshop and then export it to an image and load it up in your movie
library...

Regards
Julien


2006/12/21, kamal Priyashantha <[EMAIL PROTECTED]>:
>
> *Hello Flashcoders,*
>
> is there any method  for  avoid letters looks fuzzy when embed the
> font  in
> Text Fields 
>
> IDE - MX2004
> Font - Gill Sans Light
>
> Kamal
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Julien Vignali
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Measuring width of some text

2006-12-22 Thread Van De Velde Hans
Just a txt.textWidth should do the trick


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Perdue,
Blake
Sent: donderdag 21 december 2006 22:28
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Measuring width of some text


I need to measure the width of some text. Here's the function I'm using:

 

private function getTextWidth(txt,fontSize) {

var fmt=new TextFormat();

fmt.font='Univers 67 CondensedBold';

fmt.size=fontSize;

fmt.autoSize='left';

var metrics=fmt.getTextExtent(txt);

return metrics.textFieldWidth;

}

 

This function is not predictable - for the same text, it returns different
numbers on different OSes or flash player versions:

-  works fine in IE/FF for flash player 6

-  doesn't work in Mac Safari for flash player 6

-  works fine in IE/FF for flash player 8 using Service Pack 1

-  doesn't work for IE/FF for flash player 8 using Service Pack
2

 

Is there another function I can use, or another way to go about measuring
the width of some text?

 

Blake Perdue | 212.522.1292 | AIM: blakepCNN

 

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

2006-12-22 Thread Berkay Unal

Well it does not ;)

On 12/22/06, Rákos Attila <[EMAIL PROTECTED]> wrote:



Base64 should work with any characters since it processes simple byte
streams, so doesn't care any character encoding or such things.

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





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

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

Re[4]: [Flashcoders] Encrypt xml

2006-12-22 Thread R�kos Attila

Base64 should work with any characters since it processes simple byte
streams, so doesn't care any character encoding or such things.

  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: Re[2]: [Flashcoders] Encrypt xml

2006-12-22 Thread Berkay Unal

Edited: non latin characters i mean like "çöşğiü".

On 12/22/06, Berkay Unal <[EMAIL PROTECTED]> wrote:


Hi Rakos,

I have another question. Is there any encoding that supports nonunicode
character like "çöşğiü". I have problem in base8 and base64


On 12/22/06, Rákos Attila <[EMAIL PROTECTED]> wrote:
>
>
> BU> i was thinking of the 3rd one embedding the xml into a
> BU> variable in flash.
>
> Or may be better to create a structure of objects and arrays instead
> of an XML string. Once I developed a level designer for a game and it
> saved its quite huge output as XML and as an ActionScript source file
> which contained script creating constant objects and values.
> Processing the latter one was incredible faster than parsing a huge
> external or embedded XML.
>
> BU> Have u got any exprience on ayemeta. can it be decrypt in ease?
>
> I don't use any swf encryptors, since I don't need them :) As far I
> know Burak Kalayci's decompiler ( http://www.buraks.com) competites
> with encryptors and obfuscators, so may be he can tell you more
> concerning this question.
>
> 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
>



--
Berkay UNAL
[EMAIL PROTECTED]





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

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

Re: Re[2]: [Flashcoders] Encrypt xml

2006-12-22 Thread Berkay Unal

Hi Rakos,

I have another question. Is there any encoding that supports nonunicode
character like "çöşğiü". I have problem in base8 and base64


On 12/22/06, Rákos Attila <[EMAIL PROTECTED]> wrote:



BU> i was thinking of the 3rd one embedding the xml into a
BU> variable in flash.

Or may be better to create a structure of objects and arrays instead
of an XML string. Once I developed a level designer for a game and it
saved its quite huge output as XML and as an ActionScript source file
which contained script creating constant objects and values.
Processing the latter one was incredible faster than parsing a huge
external or embedded XML.

BU> Have u got any exprience on ayemeta. can it be decrypt in ease?

I don't use any swf encryptors, since I don't need them :) As far I
know Burak Kalayci's decompiler (http://www.buraks.com) competites
with encryptors and obfuscators, so may be he can tell you more
concerning this question.

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





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

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

Re[2]: [Flashcoders] Encrypt xml

2006-12-22 Thread R�kos Attila

BU> i was thinking of the 3rd one embedding the xml into a
BU> variable in flash.

Or may be better to create a structure of objects and arrays instead
of an XML string. Once I developed a level designer for a game and it
saved its quite huge output as XML and as an ActionScript source file
which contained script creating constant objects and values.
Processing the latter one was incredible faster than parsing a huge
external or embedded XML.

BU> Have u got any exprience on ayemeta. can it be decrypt in ease?

I don't use any swf encryptors, since I don't need them :) As far I
know Burak Kalayci's decompiler (http://www.buraks.com) competites
with encryptors and obfuscators, so may be he can tell you more
concerning this question.

  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] Drawing pie charts?? (using Flash MX)

2006-12-22 Thread Darren Cook
A month ago, Boyd asked:
> Anyone know where to find algorythms or code scraps that would let me
> draw pie graphs using dynamic data? I am using the older Flash 6.

And, also a month ago, Eric Dolecki asked:
> Q: Has anyone seen a dynamic pie chart component that allows one to add
> slices with code, remove them with code, and also allows one to click and
> drag edges of slices around to allow a user to manually change the % data
> for slices? 

Then, nearly a month ago, Millie Niss asked:
> Are there good free charting (I need customizable bar graphs and line
> graphs of small data sets) components or class libraries? ...
> I would prefer not to have to learn an entire framework just to get
> the charts, and I definitely don't want something that weights down
> the published swfs.


Sorry for the late reply. dcflash is an open source ActionScript 2
library with a main focus on charting (also support classes for storing
time series data, statistics - especially for financial charting,
back-end connections, etc.).

Version 0.1.0 was release a month ago. Some chart styles are still to be
brought in, but the pie chart class is quite solid and quite advanced.
You can see my pie chart demo here:
   http://dcook.org/work/charts/pie_chart_demo.html

To Boyd: all classes in the library work with Flash 6 (the above demo is
Flash 7 solely because of using Aswing for the UI).

To Eric: you can add/remove slices easily enough (modify the data array
and redraw). Support for mouse actions is not in yet, sorry. (Actually,
I've never seen an interactive pie chart like you describe - are you
free to describe the application?)

To Millie: for simple bar charts look in the Line/Shapes classes for the
drawVerticalColumns(); for line charts look at drawLinesToRight() and
drawMountain(). More complex charts, will be in the 0.3.0 release, a
month or two away.


Some other examples of what the library can do, or will do Real Soon Now:
  http://dcook.org/work/charts/

The library is hosted on sourceforge, here:
  http://dcflash.sf.net/

Please join the users or announce mailing lists if interested!

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

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


Re: [Flashcoders] Encrypt xml

2006-12-22 Thread Berkay Unal

Hi

Thanks for the reply. i was thinking of the 3rd one embedding the xml into a
variable in flash. Then use ayemata  encrypt it.

Have u got any exprience on ayemeta. can it be decrypt in ease?

thanks


On 12/22/06, Rákos Attila <[EMAIL PROTECTED]> wrote:



Well, unfortunatelly you cannot encrypt it to be totally secure, since
you can use any kind of encryption, by decompiling your swf it can be
decrypted, too. However for most of the cases I think there are some
solutions, but everything depends on the skills and resolution of
those, who are trying to gain access to your file:
- place your xml on your own server, so nobody can modify it without
  your permission (this is the most secure and even you don't need
  encryption - but if somebody can modify the URL of the xml file to
  be loaded in your application, then he/she can create his/her own
  xml based on your one)
- you can use a kind of decryption algorithm (a simple XOR or a more
  sophisticated one)
- place your xml inside a swf as a string constant and encrypt it
  with your swf encryptor software (if you trust it for encrypting
  the application, probably it will be enough for encrypting the data,
  too) - then load an swf instead of an xml with your required data

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





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

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

Re: [Flashcoders] Encrypt xml

2006-12-22 Thread R�kos Attila

Well, unfortunatelly you cannot encrypt it to be totally secure, since
you can use any kind of encryption, by decompiling your swf it can be
decrypted, too. However for most of the cases I think there are some
solutions, but everything depends on the skills and resolution of
those, who are trying to gain access to your file:
 - place your xml on your own server, so nobody can modify it without
   your permission (this is the most secure and even you don't need
   encryption - but if somebody can modify the URL of the xml file to
   be loaded in your application, then he/she can create his/her own
   xml based on your one)
 - you can use a kind of decryption algorithm (a simple XOR or a more
   sophisticated one)
 - place your xml inside a swf as a string constant and encrypt it
   with your swf encryptor software (if you trust it for encrypting
   the application, probably it will be enough for encrypting the data,
   too) - then load an swf instead of an xml with your required data

 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


[Flashcoders] Job openings in Hilversum, The Netherlands

2006-12-22 Thread Dennis - I Sioux
Hey,

The company i work for is searching for new flash (and php) people.
There are several job openings, for people with lots of experience but also 
with acceptable flash knowledge.. experience with FMS is a plus.
We are located in Hilversum in The Netherlands.

If anyone is intrested for more information, please contact me on [EMAIL 
PROTECTED] .

Many thanks,


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

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


[Flashcoders] A little AS3 & AMFPHP 1.9 HowTo

2006-12-22 Thread Morten Reinholdt

Hey All

If it is of any interest I have made a small and simple tutorial about 
how to connect actionscript 3 whit AMFPHP 1.9 you can find it on my blog 
at http://flashorbit.com/?page_id=53


--

Morten Reinholdt - Flash Developer - TBWA\PLAY
blog: flashorbit.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] Re: Encrypt xml

2006-12-22 Thread Berkay Unal

Anyone has an idea?

On 12/22/06, Berkay Unal <[EMAIL PROTECTED]> wrote:


Hi Coders,

I have created an application that is working on xml. The swf is secured
with an encryptor. My problem is since the application is based on xml if
some changes the xml file the content of the swf changes.

What i want to achieve is that is there any way thay i can encrypt xml
file and read the data in flash 8?

thanks

--
Berkay UNAL
[EMAIL PROTECTED]





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

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


Re: [Flashcoders] AS 3 IDE linux info

2006-12-22 Thread Arul

actionscript.vim
http://mannu.livejournal.com/350826.html

Flex 2 for Linux
http://www.mepis.org/node/11682


Visual Guide.Flex 2: Setting up Flex 2 SDK on Fedora Core 6 - Part 1 - 
Installing Flash Player 9

http://www.shockwave-india.com/blog/?archive=2006_12_01_archive.xml#116617365373230749


Ubuntu?s default JRE doesn?t like Flex SDK
http://renaun.com/blog/2006/12/06/164/

HTH,
Arul


- Original Message - 
From: "Dustin Krysak" <[EMAIL PROTECTED]>

To: "Flashcoders" 
Sent: Friday, December 22, 2006 2:03 AM
Subject: [Flashcoders] AS 3 IDE linux info



Hi there

I am looking to convert my dev system over to linux (my preference),
but was wondering if anyone had seen any tutorials, software, etc that
has been published RECENTLY on hte subject? Most things i find are
dated, etc.

I know this is a long shot, but hey, just thought i would ask around!

Dustin 



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

2006-12-22 Thread Arindam Dhar
Try this,
   
  var myArray1:Array = new Array();
myArray1.push( new Array("A:", -1) );
myArray1.push( new Array("B:", -1) );
myArray1.push( new Array("C:",  0) );
myArray1.push( new Array("D:",  0) );
myArray1.push( new Array("E:", -1) );
myArray1.push( new Array("F:",  1) );
myArray1.push( new Array("G:",  0) );
myArray1.push( new Array("H:", -1) );
trace( myArray1);
   
  // the function with recursion 
   
  function removeElements(arr, level) {
 
 for (var i = 0; i wrote:
  -

Hi everyone,

I'm having a braindead moment today, which I was hoping someone could 
help me with.

I have the following array...

//Create array with 5 elements
var myArray1:Array = new Array();
myArray1.push( new Array("A:", -1) );
myArray1.push( new Array("B:", -1) );
myArray1.push( new Array("C:", 0) );
myArray1.push( new Array("D:", 0) );
myArray1.push( new Array("E:", -1) );
myArray1.push( new Array("F:", 1) );
myArray1.push( new Array("G:", 0) );
myArray1.push( new Array("H:", -1) );
//name, score

...and I'm trying to remove all the elements in myArray1 with a score of 
less than 0 without sorting/reordering the array at all.

I was trying to use a 'for loop', but obviously as the elements are 
removed, the length of the array changes & causes the wrong elements to 
be deleted.

Can anyone help?

Thanks,


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

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. Thanks.

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

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


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