[Flashcoders] Loading xml in AS 2

2007-07-30 Thread Omar Fouad
class LoadXML {

function LoadXML() {
var xmlData:XML = new XML();

xmlData.ignoreWhite= true;
xmlData.onLoad = function (success) {
if(success) {
trace("loaded");
}
}
xmlData.load("data.xml");
trace(xmlData);
}
}
this is not working

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Papervision 3D for 'simple' rotating cube effect

2007-07-30 Thread Sunil Jolly
Hi J.Bach,

It would be interesting to see/hear how you get along with this if you
can post a link back here when it's done?

Thanks,

Sunil
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: 30 July 2007 17:35
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Q:Papervision 3D for 'simple' rotating cube
effect

Use PV3D. Just create a couple of planes, place them on the correct 
position, rotate them, and you're done. Works with AS2 and AS3 and 
should be something pretty simple as long as you understand the concept 
of 3d space and cameras.

Zeh

[EMAIL PROTECTED] wrote:
> I am trying to achieve an effect similar to the 3D User switching
effect in OSX.
> 
> Would implementing Papervision 3D be overkill for something like this?
> 
> Or is there an 'open source' solution available somewhere that uses
matrix transformations, etc.
> 
> My concerns for implementing this in order of priority are:
> 1) Must be AS2 compatible (but ideally easilly upgraded to AS3)
> 2) File size, don't want to add 80k in code to achieve this!
> 3) Learning curve, I need to implement within 2 days!!
> 
> 
> Thanks for any advice!
> 
> 
> [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] Integrating Flash SWFs with Flex

2007-07-30 Thread Troy Rollins


On Jul 30, 2007, at 11:56 AM, matt stuehler wrote:


Two questions -

1. The client has asked about the feasibility of developing this in
Flex instead of Flash. Since I'm only beginning to learn Flex, I can't
really answer this. But my simplistic understanding is that, at a high
level, Flex is a language for tying together individual Flash
components into an overall UI/RIA. So, if you're building a low-level
highly customized, unique "component" - Flash is the right tool for
that, not Flex. Is this correct?


Basically true, though unique components can be created in Flex/AS3  
as well, the process is a bit harder.




2. Assuming 1. is correct, what special considerations are there for
developing a Flash movie/widget/component that might be embedded in an
HTML page, AND/OR used within a Flex application?


Check out the "FlexComponentKit", which I think is still on  
labs.adobe.com as a beta. It allows you to wrap MovieClips into a  
UIComponent in Flash, export them as an SWC, and reference them in  
Flex. Works really really well, and takes a lot of the effort out of  
the process of doing it in other ways.


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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Papervision 3D for 'simple' rotating cube effect

2007-07-30 Thread Zeh Fernando
Use PV3D. Just create a couple of planes, place them on the correct 
position, rotate them, and you're done. Works with AS2 and AS3 and 
should be something pretty simple as long as you understand the concept 
of 3d space and cameras.


Zeh

[EMAIL PROTECTED] wrote:

I am trying to achieve an effect similar to the 3D User switching effect in OSX.

Would implementing Papervision 3D be overkill for something like this?

Or is there an 'open source' solution available somewhere that uses matrix 
transformations, etc.

My concerns for implementing this in order of priority are:
1) Must be AS2 compatible (but ideally easilly upgraded to AS3)
2) File size, don't want to add 80k in code to achieve this!
3) Learning curve, I need to implement within 2 days!!


Thanks for any advice!


[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] Integrating Flash SWFs with Flex

2007-07-30 Thread matt stuehler
All,

I'm working on a project for a client - my assignment is essentially
to develop an interactive charting widget with a number of unique
display options and behaviors.

Because of those unique features, I'm developing the SWF from scratch,
instead of modifying an existing pre-developed component.

My plan is that the chart widget will be a single SWF, which the
client will be able to embed in any HTML page.

Two questions -

1. The client has asked about the feasibility of developing this in
Flex instead of Flash. Since I'm only beginning to learn Flex, I can't
really answer this. But my simplistic understanding is that, at a high
level, Flex is a language for tying together individual Flash
components into an overall UI/RIA. So, if you're building a low-level
highly customized, unique "component" - Flash is the right tool for
that, not Flex. Is this correct?

2. Assuming 1. is correct, what special considerations are there for
developing a Flash movie/widget/component that might be embedded in an
HTML page, AND/OR used within a Flex application?

Many thanks in advance for your advice and insight!

Cheers,
Matt
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Papervision 3D for 'simple' rotating cube effect

2007-07-30 Thread moveup
I am trying to achieve an effect similar to the 3D User switching effect in OSX.

Would implementing Papervision 3D be overkill for something like this?

Or is there an 'open source' solution available somewhere that uses matrix 
transformations, etc.

My concerns for implementing this in order of priority are:
1) Must be AS2 compatible (but ideally easilly upgraded to AS3)
2) File size, don't want to add 80k in code to achieve this!
3) Learning curve, I need to implement within 2 days!!


Thanks for any advice!


[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] Q: loop speed AS2 and AS3

2007-07-30 Thread Andy Herrman
Wow.  I know Flash 9 was faster than 8, but I didn't realize it was
that big a difference.

Anyone know what the difference is in image processing speed?  I've
been looking at porting an application we have to Flash that does a
bunch of image processing (needs to be able to download raw image data
at runtime, decompress it and then render it) but from what I heard
from other Flash users Flash 7/8 isn't fast enough to handle that.

  -Andy

On 7/27/07, greg h <[EMAIL PROTECTED]> wrote:
> Hi moveup,
>
> Here is pretty much a repeat on my response when you asked this same
> question back on 12/22/06 here on this list  ;-)
>
> Loops and then some ...
>
> Props to Mike Lyda for running the following tests over time (and to JD for
> originally bringing it to my attention.)
>
> Mike Lyda runs performance tests across various
> engines(JavaScript vs.
> ActionScript vs Java)
> November 24, 2006
> Flash ActionScript performance vs JavaScript (includes Flash Player 9)
> http://oddhammer.com/actionscriptperformance/set4/
>
> JD on EP
> May 22, 2006
> AS3 performance tests
> http://weblogs.macromedia.com/jd/archives/2006/05/as3_performance.cfm
> (Note:  Mike subsequently updated the tests with the GA version of Flash
> Player 9 on November 24, 2006)
>
> Beyond, raw comparisons, last month Adobe Flex PM Matt Chotin presented on
> ActionScript 3 Performance tips.  Slides and Code here:
>
> ActionScript 3 Performance
> http://weblogs.macromedia.com/mchotin/archives/2007/06/slides_and_samp.cfm
>
> Ted Patrick presented on the same last year at MAX.  This google search
> surfaces stuff on Ted's site regarding performance:
> http://www.google.com/search?q=site%3Aonflex.org%20performance
>
> hth,
>
> g
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] EventDispatcher and Delegate not working in flash develop...

2007-07-30 Thread Omar Fouad
thanks dude

On 7/30/07, eka <[EMAIL PROTECTED]> wrote:
>
> Hello :)
>
> if you want use only EventDispatcher class and not the adobe mx components
> V2... you can use my event model in my opensource framework :
>
> VEGAS page project : http://code.google.com/p/vegas/
> Install the sources :
> http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
>
> Tutorials about event model :
> http://code.google.com/p/vegas/wiki/VegasTutorialsEvents
>
> For me the AS2 EventDispatcher class of Adobe(Macromedia) is realy poor to
> implement applications.
>
> My framework is MTASC compatible... you must add the AS2/trunk/src
> directory
> in the classpaths of MTASC with the argument -cp :)
>
> EKA+ :)
>
> 2007/7/30, Omar Fouad <[EMAIL PROTECTED]>:
> >
> > Um using flash develop to write some as2 classes.. The problem is that
> > apparently mtasc is not compiling mx packages. I set the "useMx" option
> to
> > true and i get the same result. what can i do?
> >
> > thanks
> >
> > --
> > Omar M. Fouad - Digital Emotions
> > http://www.omarfouad.net
> >
> > +2010 - 2346633 - +2012 - 261
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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
>



-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] EventDispatcher and Delegate not working in flash develop...

2007-07-30 Thread eka
Hello :)

if you want use only EventDispatcher class and not the adobe mx components
V2... you can use my event model in my opensource framework :

VEGAS page project : http://code.google.com/p/vegas/
Install the sources :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Tutorials about event model :
http://code.google.com/p/vegas/wiki/VegasTutorialsEvents

For me the AS2 EventDispatcher class of Adobe(Macromedia) is realy poor to
implement applications.

My framework is MTASC compatible... you must add the AS2/trunk/src directory
in the classpaths of MTASC with the argument -cp :)

EKA+ :)

2007/7/30, Omar Fouad <[EMAIL PROTECTED]>:
>
> Um using flash develop to write some as2 classes.. The problem is that
> apparently mtasc is not compiling mx packages. I set the "useMx" option to
> true and i get the same result. what can i do?
>
> thanks
>
> --
> Omar M. Fouad - Digital Emotions
> http://www.omarfouad.net
>
> +2010 - 2346633 - +2012 - 261
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] EventDispatcher and Delegate not working in flash develop...

2007-07-30 Thread Omar Fouad
Um using flash develop to write some as2 classes.. The problem is that
apparently mtasc is not compiling mx packages. I set the "useMx" option to
true and i get the same result. what can i do?

thanks

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Textfield over Bitmap Issue

2007-07-30 Thread Michael Trim
Thank you Zeh, will give that a try.

Michael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh
Fernando
Sent: 26 July 2007 17:25
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Textfield over Bitmap Issue

> Is the following a known issue? If so anyone know what I can do about
> it? If you look at the screenshot (linked below) there is a coloured
> line along the top of the word Germany (it appears all around while 
> tweening, on the outline of the textbox).

Hey Michael,

I've seen this happening before on different situations, but it's not 
very consistent - it basically depends on the number of objects piled on

top of each other, player version, amount of data on memory, etc. 
There's no sure way to trigger it, nor to fix it.

The only solution I've found is changing the way some of the objects are
rendered - either by using different blend modes, turning on
cacheAsBitmap, or applying dummy filters - just something to make it
"snap" out of the wrong rendering path. At one previous work I've even
found that if I had one transparent box on top of the offending area,
it'd force a complete redraw on every frame and fix the issue
completely.

Also, if you're using the beta player, well, it has a lot more of these
issues than the normal versions, so I wouldn't use it as a reference.


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

2007-07-30 Thread Adrian Ionut Beschea
with your flash, in your swf you can send an encrypted key together with the 
vote 

say you send a string like: 
str = MD5.encrypt("userID"+todayDate+someOtherStuff);

and then decode it in PHP 
There are MD5 classes for both actionscript and php. 

This is not 100% proof. Once the evil doer decompiles the swf he might figure 
what to send but if you obfuscate the code and maybe throw some misleading 
lines (eg userId stand in fact for date and date stands for user id) it might 
do the trick. 

Thomas Nordahl <[EMAIL PROTECTED]> wrote: I got an flash that loads images 
posted by users, and then anyone can  
vote for their favorite, but the problem is that
some people have made an bot running from an proxy to update the php  
vote-string, wich means I cant trace their ip and
then narrow it down to one vote per picture per ip.

is there anyway I can make shure the vote is comeing from the swf,  
and that in a way that cant be traced so there can be made a new bot?

does anyone here have an solution to my problem?


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

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


   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] prevent bot updating voting

2007-07-30 Thread Thomas Nordahl
I got an flash that loads images posted by users, and then anyone can  
vote for their favorite, but the problem is that
some people have made an bot running from an proxy to update the php  
vote-string, wich means I cant trace their ip and

then narrow it down to one vote per picture per ip.

is there anyway I can make shure the vote is comeing from the swf,  
and that in a way that cant be traced so there can be made a new bot?


does anyone here have an solution to my problem?


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

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