Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Jon Bradley

On Oct 27, 2005, at 10:14 AM, Mike Britton wrote:


That makes sense Robert.

In the same line of thinking, as the Flex stuff evolves, I see the 
Flash IDE

turning into a sort of Photoshop for Flash where graphical assets are
designed/maintained, and FlexBuilder 2 (eclipse) becoming the 
programming

environment.


I don't think that's likely to happen at all. I suspect a vast majority 
of users will continue to use the IDE.


This is just a prediction on my part: the number of people who use the 
IDE or a combination of the IDE and a text editor will probably 
outnumber the FlexBuilder/Eclipse platform users 3:1, or even much more 
(10:1?).



So FlexBuilder 2 will be for development, period, rapid or
otherwise, and Flash or the Flash IDE will be a designer's tool. 
Both
sit on top of the Flash Platform and are the foundation for 
implementing the

technology.


Still doubt that a lot. FlexBuilder 2 will probably used for 
development of _enterprise_applications_. I don't think Macromedia will 
be able to push it's use too much further outside those limits.


Don't get me wrong, I love the metaphor and what it could possibly do 
for my Flash development. But, the random project that comes along 
which could benefit from that environment doesn't nearly justify the 
resources and time I'd need to devote to really knowing the platform.


In the Flash community, we've got designers, designer/developers 
(design with some programming) and serious developers (strictly 
programming). I'd say the former two in that list far outnumber the 
latter.


Jon

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


[Flashcoders] Another random number generator

2005-10-27 Thread Jon Bradley
I saw a post on a forum recently about random number generators and the 
ability to create on that could be seeded.


So, I took up the challenge and converted the Mersenne Twister 
algorithm to AS2 (probably one of the best, and fastest, pseudo-random 
number generators out there).


Code is available of course.

Not that any of you need something like this, but ya never know:

http://magicsnacks.com/shiftedpixels/?p=8

One thing I found out is that Flash chokes on a 32-bit and a 53-bit hex 
number. Flash should represent 0x1 as 2^32 or 4294967296. The 
same goes for a 53-bit hex, say 0x20, which is 2^53 or 
9007199254740992.


Anyone know why that is - aside from the fact that the number type is 
32-bit in Flash (AS2)? I'd love to work that out but have a feeling 
that until I get this to AS3, there won't be any chance of that.


cheers,

Jon

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


Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Jon Bradley

On Oct 28, 2005, at 1:55 PM, Shaw, Matt wrote:


Assuming the Game class is your root/stage class:


Public class Game extends MovieClip {
public function Game(){
var gameworld:MovieClip = new MovieClip(); //new GameWorld()?
this.addChild( gameworld );

var game_bg:MovieClip = new MovieClip();
gameworld.addChild( game_bg );
}


What I don't get is why it needs this.addChild instead of just 
addChild.  I've been sick of the keyword this for a long time and 
have since avoided it in AS2.


Any reason that it needs to be back in for AS3?

- Jon

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


[Flashcoders] Player 8.5 standalone on OSX?

2005-10-28 Thread Jon Bradley
No answer from MM on their labs forums, or anywhere else for that 
matter.


Anyone locate the standalone player for OS X yet? It aint in the 
FlexBuilder2 installer or in the plug-in installer.  Only the PC exe 
files are standalone.


??

thanks...

Jon

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


Re: [Flashcoders] bidimensional array in as

2005-10-31 Thread Jon Bradley

On Oct 31, 2005, at 7:22 AM, cornel wrote:


hi
maybe a silly question, but here i go anyway:
how would you write something like this in actionscript:

int matrix[3][3];
for(i=0;i3;i++)
  for(j=0;j3;j++)
matrix[i][j]=0;

i've done something like this in my code, mtasc doesnt complained, but
the program doesnt work, and i have a feeling that something wrong.

i would appreciate any help
cornel


Unlike C, Actionscript can't create a two-dimensional array like that.

var matrix = [];
for (;i3;i++) matrix[i] = [0];


That's the super shorthand way of doing it.

cheers,

Jon

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


Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Jon Bradley
Ok.  Since I was the 'ass' that started this junk by asking why this 
was needed, maybe I can be the 'ass' that will end it.


This thread started with Andreas asking about addChild.  Fair enough.

I asked about a specific example that used this on a method which was 
a member of the same class and was invoked by using this.member.  I was 
curious why that was there, nothing more, as I haven't explored AS3 too 
much.


Is it too hard to just answer the question at hand without providing 
more information than is really necessary and making some of us think 
we're being patronized?


Can we move on to some more high-level stuff already?

cheers,

Jon

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


Re: [Flashcoders] bidimensional array in as

2005-10-31 Thread Jon Bradley


On Oct 31, 2005, at 9:24 AM, Gregory wrote:



You must create empty arrays first, like this:

// bidimensional array in AS
var matrix2:Array = [];
for(i=0;i3;i++){
matrix2[i] = [];
for(j=0;j3;j++){
matrix2[i][j]=0;
}
}
trace(matrix2);



Yea, I'm a dufus. I think I was in AS3 mode when i posted that - then 
again, I didn't test it either...


i'll be quiet now. :)

Jon

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


Re: [Flashcoders] Math.random()

2005-11-17 Thread Jon Bradley

On Nov 17, 2005, at 2:56 PM, Ron Wheeler wrote:
If the game is for money and the client side code can be hacked for 
profit, you need to move more of the game engine onto the server and 
only present results and table state on the client side.
Dice rolls can not be generated by the client in that case. Your 
client could be easily replaced by a version of your client that lets 
the player chose his own rolls which makes Backgammon not fun for the 
opponent but a really lucrative way to pass an afternoon for the guy 
choosing his rolls. You probably only need to chose 3 or 4 rolls 
during a game to win almost every time. (An interesting test on a real 
board for someone with time to kill and a friend who does not mind 
losing.)


Ron


Actually, part of the roll work can be done client-side. The issue is 
with the seed to any particular random number generator. One needs a 
secure hash of two generated keys from the server, then using a 
client-side random number algorithm with this key as the state input, 
this is completely possible.


Check out my conversion of the mersenne twister algorithm for things 
like this (minus the crypto part with a server). The secure hash part 
is fairly easy to implement. Aside to this thread - never use 
Math.random() because it's inherently insecure.


http://magicsnacks.com/shiftedpixels/?p=8


Jon Bradley
Visual Effects / Interactive / Animation
Post Central, Inc.
[EMAIL PROTECTED]

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


Re: [Flashcoders] Qauternions for avoiding gimbal-lock in 3D?

2005-11-28 Thread Jon Bradley


On Nov 27, 2005, at 6:39 PM, keith wrote:

I read all over the internet about Quaternions are the solution for 
avoiding Gimbal-lock,but I

dont understand the math enough to use them for rotating 3D points.

I've looked at 
http://www.macromedia.com/devnet/flash/articles/3d_classes_03.html.
Its a nice tutorial, however I need more examples to study with 
Quaternions used in Actionscript.


Please post links or tutorials with Actionscript using Quaternions.

Thanks,
-- Keith H --



Quats are not the 'solution' for avoiding gimbal lock.  Gimbal lock 
happens because euler rotations are expressed relative to a global 
coordinate system and need to be performed in a certain order to 
achieve a certain rotation. You get gimbal lock when you try to perform 
a local rotation of an object and then apply global transformations on 
top of that, which easily results in an improper rotation of an object 
if you don't code it properly.


Quats are primarily used for camera animation in 3d applications 
because they are higher order and include transformations and rotations 
in the same matrix set. They are great for path animation in 3d space 
because of the capability of using smooth interpolation.


A quick overview and simple description:
http://www.gamedev.net/reference/articles/article1199.asp

Not to convince you otherwise, but there really isn't a reason to use 
quaternions. Use axis/angle representation instead of quaternions for 
3d rotations, unless you really really need to do a lot of spherical 
linear interpolation (unlikely).


Jon Bradley
Visual Effects / Interactive / Animation
Post Central, Inc.
[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RE: 3D in Flash

2005-12-14 Thread Jon Bradley

On Dec 14, 2005, at 10:37 AM, nik crosina wrote:

This IKEA thingy is just brilliant! But I think it is a bit out of our 
reach

time-wise and buclient budget wise.

Techniology wise I wanted to get an idea from you guys as to whcih 
solution
you would gravitate towards to. My gut feeling would be to use 
Shockwave
because of its 3D features, but install wise flash is more wide spread 
and

would cause less hassle for our clients.

I guess it depends on how easy and painless we make the process for 
the site

visitors, and how good lokonig / easy to use we make it

Thanks!!!

Nik C


Not necessarily. The flash portion of this work isn't the real 
budget-breaker or time element in a project like this. This is all 
about studio setup and setting up camera rigs with a flash controller 
and a lot of cameras at that - at least 30-40 with remote capabilities. 
There are studios that do this as a service, and you may be suprised at 
what you find.


The compositing system used for something like this is typically a 
flame or inferno (autodesk/discreet) seat which can then motion blend 
between the still sequences. There are also some cheaper plugins for 
AfterEffects and Shake that will do this, albeit not nearly as good, 
which is why this doesn't look perfect in some regards. RE-Flex Morph 
which comes with Autodesk Combustion 4 will also do this (with a decent 
amount of hand massaging).


Full 3d rendering is also an option if your environments are available 
for use in some 3d package.


good luck!

Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
170 Linden Oaks, Suite B
Rochester, NY  14625
585.385.1530  x273
[EMAIL PROTECTED]
www.cherrycrushthemovie.com

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


Re: [Flashcoders] Elastic ribbon

2005-12-20 Thread Jon Bradley

On Dec 20, 2005, at 5:58 AM, franto wrote:


i just have this, but it's implemented in AS3
http://www.franto.com/blog2/as3-cloth-simulation-verlet-algorithm


That's interesting. Only thing is that cloth doesn't stretch (unless 
it's spandex or something).  :) Aside: a particle spring system is 
better for cloth simulation than verlet integration.



Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
[EMAIL PROTECTED]
www.cherrycrushthemovie.com



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


Re: [Flashcoders] flash.geom.* and drawing API

2006-01-14 Thread Jon Bradley

On Jan 14, 2006, at 4:50 AM, Benjamin Dobler wrote:

So my question is anything like that out there already? What would bet 
he

best way to do it (e.g. moveTo2(p:Point)).

Do i have to expect performance decrease?


I'm not aware of anything currently.. and don't know if this is 
implemented yet in AS3 (anyone?).


I would definitely expect a performance decrease. It all depends on 
what you do - whether it will be noticeable or not.


Anytime you add in a separate scope, it'll slow things down. Plus, the 
Point class (and matrix and other geom classes) are implemented in AS, 
not in C, so they really aren't that fast in the first place. Those 
classes are more of a timesaver than anything else.


cheers,

jon

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


Re: [Flashcoders] Doh! Converting a floating point string to numberloses precision

2006-03-08 Thread Jon Bradley

On Mar 8, 2006, at 12:13 AM, JesterXL wrote:

Something about how certain numbers are only so big in
Flash Player, and there was talk of porting BigInt from Java.


Far as I know, number accuracy in Flash is +/- 1e16 and no better. I 
believe that's 32-bit precision.


On Mar 8, 2006, at 10:10 AM, Ron Wheeler wrote:
You could also implement a decimalNumber Class that does its 
arithmetic in decimal.
You need to carry guard digits through calculations to ensure that 
rounding is done properly.
You can make the numbers as large as you want with whatever precision 
you want.


Not in Flash. Flash is limited in it's numeric accuracy, either with 
decimal or integers.


That was one of the winning technology bits that IBM had in the 1960s 
and on. Their mainframe processors (1400,360,370 series) actually 
supported decimal number format with arithmetic operations that made 
financial applications easier to deal with and made the COBOL decimal 
structures work well. This is one of the ways that they dominated the 
financial world.


Back in the 60s maybe. There wasn't anything else at the time that 
could do it.


Now, it's not really an issue as numeric accuracy is fairly easy to 
deal with and there are many different ways to do it in a variety of 
languages. Flash just isn't suited for it.


- Jon

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 targeting Quicktime to open in QT Player

2006-04-17 Thread Jon Bradley

This one is tough.

I'm trying to have Flash (version 8) call a javascript function that 
will write a quicktime object to the page and open this quicktime in 
the QT player, not in the page.


I've got the usage of QT write object javascript functions (from Apple) 
that will write out an embed or object tag to put a quicktime in a 
page. Problem is that we're running a Flash 8 site that needs to target 
this qt object to open up in the Quicktime Player, not into an embedded 
movie on the page.


Popup windows are a no go, so I need to figure out a way for Flash to 
communicate with the page to tell it to write an embed to the page and 
load up the QT player, without changing the current window.


Unfortunately, any getURL call I make always changes the location of 
the page - and I can't even figure out how to keep it from changing the 
page location. Is this possible with an FSCommand?


Has anyone ever done anything like this?

Many many many thanks if anyone can help out. I've got a site I need to 
make live today and I have everything working fine except this (major) 
part.


thanks,

Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
[EMAIL PROTECTED]
www.cherrycrushthemovie.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 targeting Quicktime to open in QT Player

2006-04-17 Thread Jon Bradley

On Apr 17, 2006, at 10:44 AM, Jim Kremens wrote:


Could you do something with javascript and css and ExternalInterface?

Something where a div of the QT player is hidden, and a javascript call
would supply the embed src param and turn the visibility of the div on 
or

something?

You can definitely do that (I've done it) but I don't think that's
what he wants.  He wants the file to open in the standalone Quicktime
Player (right?).

I can't think of how to do that... sorry.

Jim Kremens


I definitely want it to open in standalone QT Player, not the plugin.

I think that solution could work, provided I can figure out how to call 
getURL without my page changing it's window location.


I've not done much javascript - flash communication so, I have no 
idea why calling getURL(javascript:something) changes the browser 
location.  So odd.


I think I'll have to have the div there anyway, because the Player is 
opened through the target tag in the embed object. So, it's as if the 
quicktime movie is there, just not used inside the page.


Argh.

Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
[EMAIL PROTECTED]
www.cherrycrushthemovie.com



On Apr 17, 2006, at 10:44 AM, Jim Kremens wrote:


Could you do something with javascript and css and ExternalInterface?

Something where a div of the QT player is hidden, and a javascript call
would supply the embed src param and turn the visibility of the div on 
or

something?

You can definitely do that (I've done it) but I don't think that's
what he wants.  He wants the file to open in the standalone Quicktime
Player (right?).

I can't think of how to do that... sorry.

Jim Kremens

On 4/17/06, eric dolecki [EMAIL PROTECTED] wrote:

Could you do something with javascript and css and ExternalInterface?

Something where a div of the QT player is hidden, and a javascript 
call
would supply the embed src param and turn the visibility of the div 
on or

something?

On 4/17/06, Jon Bradley [EMAIL PROTECTED] wrote:


This one is tough.

I'm trying to have Flash (version 8) call a javascript function that
will write a quicktime object to the page and open this quicktime in
the QT player, not in the page.

I've got the usage of QT write object javascript functions (from 
Apple)

that will write out an embed or object tag to put a quicktime in a
page. Problem is that we're running a Flash 8 site that needs to 
target
this qt object to open up in the Quicktime Player, not into an 
embedded

movie on the page.

Popup windows are a no go, so I need to figure out a way for Flash to
communicate with the page to tell it to write an embed to the page 
and

load up the QT player, without changing the current window.

Unfortunately, any getURL call I make always changes the location of
the page - and I can't even figure out how to keep it from changing 
the

page location. Is this possible with an FSCommand?

Has anyone ever done anything like this?

Many many many thanks if anyone can help out. I've got a site I need 
to
make live today and I have everything working fine except this 
(major)

part.

thanks,

Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
[EMAIL PROTECTED]
www.cherrycrushthemovie.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




--
Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 targeting Quicktime to open in QT Player

2006-04-17 Thread Jon Bradley

On Apr 17, 2006, at 4:05 PM, John Dowdell wrote:

Does this become How does Apple recommend showing a QuickTime video 
in the standalone QuickTime Player (if available), rather than a new 
browser window?? or...?


Not quite. It's pretty straight forward to do that.  Apple has a set of 
javascript QT object functions that will write an XHTML or HTML tag to 
your page with the proper information in the embed and object params.


One of the properties is target, which when set to Quicktime Video 
Player will automatically launch the Quicktime application to play the 
URL provided in the embed tag.


The problem is two-fold here, and neither of which I can figure out:

1. Use a getURL call to call a javascript function without loading up a 
new page. For some reason, no matter what I do, getURL will always 
change the browser page (ie, it changes to a blank page removing the 
content you were looking at). I have no idea why it does this.


2. Call the javascript function to actually write the XHTML/HTML object 
immediately after the flash embed, so that this will work properly.


With the javascript function call on a button in an HTML/XHTML page, 
this is no problem - as the script for the button is replaced with the 
embed tag. Not so with Flash.


Delivering the video as Flash is not really an option, because it's no 
where near as good a the H.264 encoded QT video that I want to provide. 
I just wish there were an easier solution.


cheers,

jon

Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
[EMAIL PROTECTED]



On Apr 17, 2006, at 4:05 PM, John Dowdell wrote:

[I missed this new thread at first, because it was listed as part of 
the  Talking to Flash from JavaScript thread. Using New for a new 
message keeps new topics from being hidden within old topics, as 
occurs when using Reply-To in the emailer.)


Does this become How does Apple recommend showing a QuickTime video 
in the standalone QuickTime Player (if available), rather than a new 
browser window?? or...?


jd






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

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


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

2006-05-01 Thread Jon Bradley
I've seen sharedfonts.com and checked it out. I've also checked out  
some archived pages on shared fonts, how they load, etc. and a few  
other thoughts.


What's the difference between the SFM component and the methods  
described in the archives to share fonts with a library and a movie  
clip so that dynamic and static fields will work (and TextFormat).


It seems that the SFM component, which costs money, is literally just  
a tad of code to load up the fonts into an array in the global space,  
and it uses what seems to be the same process as described in the  
Flashcoders archives.


Does anyone know what the benefits are of just following the examples  
used in the archives, or using the sharedfonts.com code?


Has anyone come up with a snippet of AS that will take a loaded  
shared font(s), parse out the name(s) and push it into a global array  
so that it's accessible by name throughout your loaded file?


It seems to me that this is all the sharedfonts extension does, so  
I'm trying to figure out what the benefit of it is over the known  
processes. I'm not at all knocking the work Ivan did, just trying to  
get all the info to do what I need to do.


I need to ensure that the method I'm using will work with  
getTextExtent method, because I need to get the metrics from the font  
in a field that has a text format applied.


Does anyone have any other examples or info? It seems all I can find  
is from back in late 2003 or early 2004, old information, apparently  
still applicable to Flash 8.


cheers,

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

2006-05-02 Thread Jon Bradley

Brody -

Thanks for that bit. Very good info to have.

I decided to bite the bullet and write my own approach, which has all  
of the functionality as shared fonts manager and the added ability to  
load in a set of configuration files - and doesn't cost anything.


I was actually surprised how easy it ended up being. I think I'll  
keep with the two-file approach because there's an .mxp to build the  
sources automatically. Plus, the two file approach seems to avoid the  
problems pointed out in that article.


Finally, shared fonts. Somewhere around 10 hours of research and only  
2 hours of actual programming to make an AS2 class for this. I guess  
5 times as much research time to figure it out wasn't too bad. heh.


cheers,

Jon


On May 1, 2006, at 4:54 PM, Brody Welch wrote:


http://tinyurl.com/fufs4

Here is another possible solution. It is translated
from Spanish to English so it may take some piecing
together.

What I have found in researching these two solutions
is that one not need to create an .fla and .swf file
for the fonts and then via shared library add the
shared fonts to each new .fla that requires these
fonts. Basically a two step process. As well the
sharedFont.swf can be stored in a directory outside of
the directory containging the .swf's that share the
font.

One concern I encountered using Macromedia's approach
which has worked fine, is that if I moved the
sharedFont.swf to another directory the fonts would no
longer load. Obviously this makes since. But if I
changed the path within the .fla's that were sharing
the font to say ../../sharedFont.swf the fonts would
load in BUT they would reload into every new .swf that
used them bascially making the SHARED part pointless
and quickly wasting bandwidth.

This is a big advantage to me as from my understanding
it lets one change the directory of the sharedFont.swf
if needed without having to go into say 150 .fla's and
make changes to the linkage/properties etc.

broD




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

2006-05-02 Thread Jon Bradley

On May 2, 2006, at 12:18 PM, Brody Welch wrote:


Glad to hear you worked it out. Would you be willing
to share your solution?


Once finished, I'm definitely considering it. There's only one  
downside - it might not be good news for sharedfonts.com.


Although everything their extension does is based on prior art, I'm  
still hesitant because I do have some semblance of a conscience. :)


cheers,

jon



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

2006-05-02 Thread Jon Bradley


On May 2, 2006, at 6:38 PM, erixtekila wrote:


Hep, there is no magic at all.
Zarate also found a solution.


Of course - that's the solution Brody pointed out. The problem is that 
solution has problems that the shared fonts manager and a few other 
solutions do not.



I published also a solution that IMO easier with swfmill.
http://www.v-i-a.net/blog/archives/43.html


That's pretty straightforward... nice. But, this also has same problems 
as the solution Zarate published.


You can't give the average designer swfmill to deal with, or 
command-line (or XCode as I use) compilation of SWF files. It has to be 
an FLA format, IDE solution only.



Look in archive for translation.
The trick is not so hard.
So come on.


No, it's not that hard, it only took a couple hours to program with the 
added benefit that I can load any number of fonts, with events to 
notify anything listening (not just fields) and have parsed formats 
that are available for specific uses.


- jon

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

2006-05-03 Thread Jon Bradley


On May 3, 2006, at 10:14 AM, [EMAIL PROTECTED] wrote:


Hi
Anyone been able to use the convolution filter to create realistic  
motion blur effects?


I do not believe a convolution operation cannot perform a zoom and  
spin blur alone. Those need to be performed separately on every  
single pixel in an image. You can get a similar result from  
transforming the bitmap using a transformation matrix that's offset  
from the center of the zoom or spin, rotating or scaling the copied  
bitmap and overlaying the pixels onto the original.


Motion blur can be done to an extent. The problem that you will find  
is that it doesn't work for fast curved motion. Slower curved motion  
it works fine.


The code below is what I posted on my now-defunct site shiftedPixels.  
It's a simplified method to do motion blur by using sampled locations  
and linearly interpolating filter-applied copies of the source.


A better choice would be to use a spline-based sampling system on  
your object and motion blur along points of the spline using a surve  
or slerp method. Of course, doing so will be much slower due to point- 
on-curve routines.


cheers,

Jon

//  
//  Temporal Anti-aliasing (motion blur)
//  jon bradley, 2005
//
//  Create a movie clip on your stage named src.
//  Copy the following code in the first frame.
//  Set the frame rate of your file high, like 120.
//  

import flash.display.BitmapData;
import flash.filters.*;
import flash.geom.*;

_quality = medium;
src.startDrag(true);
Mouse.hide();
src._visible = false;


// set up the filters:
colorM = new ColorMatrixFilter 
([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0.4,0]);

blurFilter = new BlurFilter(5, 5, 1);

src.cacheAsBitmap = true;

var blurImg:BitmapData = new BitmapData(550, 400, true, 0xFF);
blurImg.transparent = false;

var blurClip:MovieClip = createEmptyMovieClip(blurClip, 99947);
blurClip.attachBitmap(blurImg, 0);
blurClip.cacheAsBitmap = true;

var rect = new flash.geom.Rectangle(0,0,Stage.width, Stage.height);
var pt = new flash.geom.Point(0,0);

//  Linear interpolation to get points between object position points
//  A more accurate choice would be to use spline interpolation based on
//  a motion path of the object - of course this will run much slower.
function lerp(t,a,b)
{
return a+t*(b-a);
}

var x = _xmouse;
var y = _ymouse;

function updateBlur()
{
var m = src.transform.matrix;
var xa = _xmouse;
var dx = Math.sqrt(Math.abs(xa*xa - x*x));
var ya = _ymouse;
var dy = Math.sqrt(Math.abs(ya*ya - y*y));

blurFilter.blurX = dx/20;
blurFilter.blurY = dy/20;

var i = 15;
var t = 1/i;
while (i--)
{
m.tx = lerp( (i+1)*t, xa, x);
m.ty = lerp( (i+1)*t, ya, y);
blurImg.draw(src,m);
}

blurImg.applyFilter(blurImg, rect, pt, colorM);
blurImg.draw(src,m);
blurImg.applyFilter(blurImg, rect, pt, blurFilter);

x = _xmouse;
y = _ymouse;
}

//  Pprocessor intensive - stick with onEnterFrame
//  blurInterval = setInterval(updateBlur,0);

onEnterFrame = function()
{
src._x = _xmouse;
src._y = _ymouse;
updateBlur();
}

//  END CODE
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Convolution filter and Zoom blur effect

2006-05-03 Thread Jon Bradley
Since I didn't post a solution for zoom or spin blur, here's a method  
you can try out.


A way to account for zoom or spin blur is to do the following:

Perform a polar transform on the bitmap.
Horizontal blur (or vertical blur) the transformed image
Reverse polar transform
Result is a spin blur (or zoom blur if vertical blur is used)

The problem there is that a polar transformation on a bitmap requires  
a loop over every pixel.  No bueno for real-time effects.


cheers,

Jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anti-aliasing distorted bitmapData?

2006-05-08 Thread Jon Bradley


On May 7, 2006, at 7:05 AM, Sander wrote:


Hi there,

I'm trying to do some 3Dish distortions on bitmapData instances,  
using loops to copy colons or rows of pixels. It's fast enough for  
real-time.


But the result is an aliased picture. I thought I could use the  
Convolution filter to influence each pixel by its neighbors,  
basically anti-aliasing. Does anyons have experience with this?  
Would a slight blur be faster to compute?



A blur is usually a 3x3 convolution matrix. So, no, it's not 'faster'  
than a convolution because it is implemented as a convolution anyway  
(and if it isn't, a 3x3 convolution should be identical in speed).


You could feasibly try a 3x3 triangle or a 4x4 mitchell filter  
instead (you can find the convolution matrix for these online pretty  
easily).


Remember, bitmap distortions only respect 256 levels. You could also  
perform a scaling matrix into a temporary bitmap, then copy those  
results with a reverse scale into the final display matrix with  
smoothing turned on. That may work well enough to smooth out any  
artifacts you're seeing.


good luck,

jon


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] MPG1 video compression: Best settings? CD playback?

2006-05-15 Thread Jon Bradley


On May 15, 2006, at 10:23 PM, Micky Hulse wrote:


Hi all,

Anyone ever encode their video files with MPG1 for use on an 
interactive CD?


If so, what kind of settings do you use?


It depends on what you term as a good quality.  What's the dimensions, 
how will it be played (Quicktime, Windows Media)?


For CD use, just keep your data rate low enough so that the CD isn't 
going to choke trying to play the file.


Jon

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

2006-06-01 Thread Jon Bradley

http://actioncrypt.sourceforge.net/

Beware though. Even using the same keys, mcrypt and actioncrypt end up 
returning differing results. There's something wonkey with the 
algorithm.


Also...
http://www.meychi.com/archive/31.php

This one has the Rijndael algorithm implemented apparently. I haven't 
had much time to test.


good luck.

Jon

On Jun 1, 2006, at 4:33 PM, Paul Chang wrote:

I'm looking for an encryption package for Flash, particularly one that 
uses the Blowfish algorithm. Does anyone have knowledge if such a 
package exists?


Thanks,
Paul
[EMAIL PROTECTED]

--
Paul Chang, Ph.D.
PCD.
2412 Harrison Street, #103
San Francisco, CA 94110
415-550-7230
415-358-5614 (Fax)
[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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Whats the deal with AS3 Math.random?

2006-11-27 Thread Jon Bradley
And yet another random number generator library (was posted at were- 
here.com a long long time ago). All open source, credit for use is  
nice though. :)


This one is a linear congruential generator. I've never tested the  
output against anything, so at best, this may or may not work  
properly for your needs.


cheers,

jon

Jon Bradley
VFX Artist / Animator
Post Central, Inc.
[EMAIL PROTECTED]
www.cherrycrushthemovie.com



/** BEGIN LCG.as */

/**
* Class com.jbradley.math.LCG
* AuthorJon Bradley
* Version   1.0
* Description 	Implementation of 48-bit Linear Congruential Pseudo- 
Random Number Generator
*  
 
---

* Last update: November 3, 2005 - Converted to AS 2.0
*  
 
---

* 48-bit Linear Congruential Algorithm
* Produces pseudo-random number which can be seeded manually or by a  
default time variable.

*
* Source: Computational Nuclear Physics Group, United States Government
* RNG - Random Number Generator algorithms
*
* This implementation is limited to the 48-bit version, which is  
still computationally
* inaccurate in Flash due to a 32-bit limitation. It is also not  
statistically a sound
* random number generator due to patterns in the low order sequences  
and is not a
* cryptographically secure algorithm. It can be made secure by using  
a cryptographic hash
* function to generate an initial random number state from a pair of  
integers (keys).

*
* The algorithm implementation is as described in the RNG library  
published by the
* Lawrence Livermore National Laboratory - http://nuclear.llnl.gov/ 
CNP/rng/rngman/

*
* Converted to Actionscript by Jon Bradley, 2003
*  
 
---

* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions  
are met:

*
* - Redistributions of source code must retain the above  
copyright notice,

*   this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above  
copyright
*   notice, this list of conditions and the following disclaimer  
in the
*   documentation and/or other materials provided with the  
distribution.

*
* - Neither the name of this software nor the names of its  
contributors
*   may be used to endorse or promote products derived from this  
software

*   without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  
AS IS AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
THE IMPLIED

* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS  
BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR  
CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR  
SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER  
CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR  
TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE  
USE OF THIS

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*  
 
---

*
* Usage:
*
*Default:
*rGen = new LCG();
*
*Specific seed - may use new Date.getTime() ):
*rGen = new LCG( 1 );
*
* Methods:
*
*init(t:Number)
*Initializes LCG with a time seed. If t is not supplied or
*is NaN, default is used.
*
*getSeed():Number
*Returns initial time seed used to start the system. Recall  
that the actual seed
*used in the algorithm is timeM, where M is 2.8^14. The  
returned number maybe

*be passed back in to init to restart the random sequence:
*
*rGen.init( rgen.getSeed() )// Will restart system  
with original seed
*rGen.init()// Will restart system  
with new seed

*
*random()
*Shortcut method to randomReal48()
*
*randomReal48()
*Returns a random 48-bit floating point number on interval  
[0,1).
*Note that this currently will not work properly in Flash due  
to the limitations
*of the number type. Results are with only 32-bit precision.  
(verify this?)

*
**/

class com.jbradley.math.LCG {

/* Period parameters */
static var M = Math.pow(2.8, 14);   /* Period of LCG */
static var A = 2862933555777941757; /* 48-bit Mersenne Prime */
static var C = 3037000493;  /* 16-bit prime? */

var time:Number = 0;
var seed:Number = 0

[Flashcoders] Loading SWF and FLV in sync?

2006-11-27 Thread Jon Bradley
Haven't really done much work with cue points and FLV files lately,  
and I did some serious searching of the archives but came up blank.   
Any help is appreciated.


I've got a 7 min. FLV file (one single file) which may or may not get  
broken up into separate FLVs for better interaction with the video  
online. I also will have an SWF file that will contain a variety of  
'screens', or labeled frames, that will need to get triggered as the  
FLV plays back.


No streaming server will be used - this is all progressive playback.  
I'm relying on the FLV playback for Flash 8 to control buffering/ 
loading, but need to also guarantee that the SWF file is loaded up to  
the proper point so that the cue points will be triggered properly  
and won't stall during playback.


Has anyone done anything like this recently and would be able to  
offer any knowledge? Specifically, is there any way to check as the  
FLV and SWF are loading at the same time that it's safe to start  
playback?  I've also read of issues with loading multiple FLVs in at  
the same time (ie, it breaks), so separating this long FLV and SWF  
into multiple scenes may not work properly.


thanks in advance ...

Jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] How to send Audio objects as MP3 via XML-RPC?

2006-11-28 Thread Jon Bradley


On Nov 28, 2006, at 5:29 AM, Leo Burd wrote:


Hello there,

I am new to Flash and I am wondering what is the best way to send  
Audio objects via XML-RPC.  More specifically, I wonder if anyone  
could send me suggestions on:


a) How to convert a Sound object to MP3 programatically?


You need an MP3 encoding library. If you want a command line solution  
that you may be able to hack to work in a server environment, I'd  
look into ffmpeg.



b) How to convert the resulting MP3 into a base64 string


PHP has a base64 library. Look there for starters. I believe you can  
pass it an argument to encode a file (which would be the mp3 file on  
your server).


To encode the MP3 into a base64 string dynamically is going to kill  
your server CPU. You're better off running a chron job on your server  
to execute PHP code to encode the file when placed in a certain  
directory. If the base64 version is already encoded, don't do  
anything, just send the stored encoded version.



c) How to send the base64 string to my server via XML-RPC


I don't know if XML-RPC is not going to handle that amount of data  
very effectively. The base64 encoded version of the MP3 file will be  
huge.



BTW, shall I use AS2 or AS3 for this?


I don't know if it will matter. Once you have the base64 encoded  
string in Flash, what do you plan to do with it? I don't see how  
you'll be able to attach it to a sound object. I never tried this  
though, so the sound object should be able to take the raw mp3 data  
and use it, but who know?


This whole process may be best done with a socket connection with AS3  
and using binary data to send the result directly to a sound object.


good luck.

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

2006-12-05 Thread Jon Bradley

Java is still faster than the Flash AVM2.

If you really want to get into doing 3d viz work, use Java and OpenGL  
- and skip Processing unless you just want to jump right in and be  
able to see your results faster.


That said, it really depends on what you want to do with it and how  
far you plan on taking the results.


cheers,

jon


On Dec 5, 2006, at 10:26 AM, [EMAIL PROTECTED] wrote:

has anyone done a performance comparison between AS3 FP9 and Java/ 
Processing?

I'm interested primarily in the area of 3d data visualisation.

[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


Re: [Flashcoders] syntax highlighting

2007-02-07 Thread Jon Bradley


On Feb 7, 2007, at 2:17 PM, Jason Boyd wrote:

I think what I'm getting at is that to really be useful, it ought  
to scan

the document for code elements, then parse the text of these nodes,
applying styles (or adding classed span tags or whatever) to the  
words
based on a look-up of keywords, and syntax checking etc. This way,  
it truly
could be used on any page that uses code to show code, and could  
be easily
extended to allow users to specify which language to use (AS, Java,  
etc).
Would make a nifty extension for Mozilla-based browsers, for  
instance. If
you don't have all the skills to put together these pieces, would  
be a good

project for SourceForge or something.


Well, if you want to send the whole HTML page to Flash to have it  
syntax highlighted then sent back to html ... then maybe you could do  
that.


IV's tool works by re-write of a DIV layer that is properly named. It  
just snags the HTML source, parses it and outputs it back.  Simple  
string parsing actually.


It's a neat idea, as an experiment, but not for broad acceptance imho.

At that point, might as well just use Flash to display the syntax  
highlighting itself without using any overflow CSS tags for scrolling  
and stuff. But that already exists...


cheers,

jon


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

2007-02-07 Thread Jon Bradley


On Feb 7, 2007, at 2:50 PM, Iv wrote:


For example in our field Adobe declaration of AS code html-formatting
standard is enougth for start support this standard by big number
of developers.


Problem 1 is that the tool is re-writing the HTML content of the  
page, which I don't particularly like. It's a great thought, but  
Flash projects that take text input and parse and display it with a  
user-customizable color space are already out there.


Problem 2) there are no standards. I don't like the Adobe  
highlighting standard. Friends of mine that are colorblind have their  
own issues to deal with when it comes to syntax highlighting.


- jon



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyone hate flash 9 already?

2007-02-13 Thread Jon Bradley

Isn't there a flash newbie list?



On Feb 13, 2007, at 8:33 AM, Arseniy Shklyaev wrote:


Ah Craig List. that u mean about I have no money yet :D lol
Yeah. Really. It fits. The only thing could make u think I m not  
trying to
catcha that u can look into a games I made myself. And I will take  
GFX SFX

music part on myself.
Could this community help me more than flashkit boards?
I even afraid to post anything here really that is question about
actionscript itself :\
Every post on flashkit and similar just make me angree... So  
actually I hate

not flash/AS1,2,3 itself but my progress around _

On 2/13/07, Ian Thomas [EMAIL PROTECTED] wrote:


*hangs a large Do Not Feed The Troll sign on this thread.*

On 2/13/07, Arseniy Shklyaev [EMAIL PROTECTED] wrote:
 I m not easy person but my ideas much better than most of games out
there.
 Also this is good to be offensive for director/producer I guess.

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

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





--
-Arseniy Shklyaev
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ru.bezier geom package beta

2007-02-27 Thread Jon Bradley

Not bad Ivan.

I created a general polygon clipping library (Weiler-Atherton) a  
couple years ago that I'm converting to AS3 and adding bezier support  
for. It's been pretty fun to work on - especially the curve support.


Is this a pretext to something larger, or just a demo of bezier  
intersection testing?


cheers,

jon



On Feb 26, 2007, at 5:26 AM, Iv wrote:


Hello,

beta version of bezier.ru geom package:
http://www.bezier.ru/rus/AS2/sources/ru.bezier.zip
(now comments in russian only).

please send me private bugs and requests.

good luck,
iv

--
Ivan Dembicki
__ 
__
[EMAIL PROTECTED] || http:// 
www.design.ru


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] OT:How was this done?

2007-03-28 Thread Jon Bradley


On Mar 28, 2007, at 10:41 AM, [EMAIL PROTECTED] wrote:

I find most of my inspiration from the world of 3d and broadcast  
graphics, and, increasingly I think we are going to see more and  
more 'hybrid' work that is a marriage of broadcast and web based  
media /techniques.


http://www.universaleverything.com/recent_activity/204

Anyone care to shed some light on how this was produced? (software,  
tools, etc)


Truly beautiful and inspiring!


Particles in Processing using fields I believe.

I definitely think the piece has some sweet particle effects - but I  
don't really think it's a 'hybrid' work per-se and def. not anything  
novel. I can't count the number of particle effects I've seen, some  
even very similar to that done in Processing (just not avoiding a car  
outline using fields).


 ... then again my comments may be a bit biased as a 3d vfx artist  
that does mostly broadcast animation work. :)


I'd like to see what 3d board they used to run it and what their  
definition of HD is. I'm guessing they did it in 720p, but with the  
right hardware I think 1080p could be remotely possible.


cool link.

cheers,

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

2007-03-28 Thread Jon Bradley

On Mar 28, 2007, at 6:24 PM, Omar Fouad wrote:


but when the Flash CS3 Full version (not update) will be available??


End of April is when it ships I believe, the 20th rings a bell. The  
Master Collection isn't slated until June I think ... which is quite  
a while (ugh).


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


On Mar 29, 2007, at 6:36 PM, Hairy Dog Digital wrote:

I'm surprised that any of the CS3 bundles are available via  
download. I
would think they are only available via physical shipment due to  
sheer size.


Back to the subject at hand, I know that UK and EU pricing  
typically runs
higher on software, but to the extent that it is cheaper to fly to  
the US,
take a mini-holiday, purchase your software, then fly home seems  
ludicrous.


If you're purchasing the Master Collection, the price deviation from  
USD is somewhere around $1500 (or more). An outright purchase of the  
Master Collection in US is close the _upgrade_ pricing, depending on  
what you are upgrading from, for those in the UK after you apply a  
VAT of 17.5% (if that's applicable?).


I think anyone on this list in the UK could fly to the US round trip  
and crash with a US Flashcoder buddy - and still have some money left  
over for a hundred pints or so to help you forget how much you spent.  
You certainly would be getting more for your money that way.


cheers,

jon



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

2007-03-30 Thread Jon Bradley


On Mar 30, 2007, at 7:32 PM, [EMAIL PROTECTED] wrote:

Personally, I think it's a pretty bogus feature, one of those  
things that
look nice on paper but when you stop to look at it it's far from  
useful
except on extremely specific cases and still far from the magic  
that will

save lives like many people tend to think it is. It's still better to
either use direct code tweening where it fits, or use timeline  
tweening
where it fits (animated characters and so on). But it's not out  
yet, so I

don't know if I've missed something.


Don't be so sure. I believe there are many more flash designers and  
casual flash users than there are developers and those familiar  
enough with actionscript to code tweens. I'd venture that it's easily  
10 fold or more on the design side.


I worked for a while at an e-learning joint (Element-K) and was  
developing components for various aspects of some of the learning  
tools (written in flash, deployed with director at the time). I can't  
imagine having a load of designers trying to deal with a whole mess  
of FLA files with re-usable motion tweens. Just trying to get  
designers to adhere to consistent style guides for color or graphics  
was hard enough. :) Too many variables.


Code is explicit, and as long as all a designer (or programmer short  
on time) has to do is copy/paste, the better it is. In the case of an  
XML motion library - it would've been a godsend at the time, and it's  
one of the things we recommended to MM shortly after v7 was released.


cheers,

jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Question: FMS 2 and CMS managed FLV files

2007-04-03 Thread Jon Bradley

I've got a bit of a question that I'm trying to wrap my head around.

Can Flash Media Server 2 take dynamic paths to FLV content?

We're working within the constraints of a pretty high end post  
production solution that will end up storing many hours of video  
content, probably in MXF format in a high-res storage environment.  
There will be FLV files generated from this original content and  
stored in alternate locations.


Right now as I understand it, FMS requires you to determine virtual  
directory paths. Unfortunately, these paths will need to be entirely  
dynamic (edge-type system) and may include both network and local  
system paths.


The web front end will read file information from the CMS and pass a  
dynamically generated location path to FMS for it to grab the FLV  
file to stream (the file will not have an flv extension either).


Has anyone done anything like this or knows if this is even possible?  
I can't seem to find any resources that goes into this depth. Bunch  
of bright people here so I figured I would ask.


cheers,

Jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] simple code- should work but is not.

2007-04-03 Thread Jon Bradley

On Apr 3, 2007, at 2:34 PM, Thomas Collins wrote:

might anyone know why my wineback_btn is not registering the  
onPress?


i know for sure that my playhead reaches frame 21 where the code is.
instance names are specified


Are you disabling trace during publishing? That's what I'd check  
first ... check out your publish settings first.


- jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Question: FMS 2 and CMS managed FLV files

2007-04-04 Thread Jon Bradley


On Apr 3, 2007, at 10:34 PM, john robinson wrote:



On Apr 3, 2007, at 3:41 PM, Jon Bradley wrote:


I've got a bit of a question that I'm trying to wrap my head around.

Can Flash Media Server 2 take dynamic paths to FLV content?


As long as the path exists, then yeah it should be fine. I'm not  
sure if I understand your question correctly though. Are you saying  
you'll get a path like below from the CMS?


someserver.com/flash/videos/somefolder/somevideo

If that path exists on the FMS, then it shouldn't be a problem at all.



A bit different actually. The CMS system and application we are  
building is written with Java running on Apache Tomcat. File system  
paths will be stored like follows:


serverURL/fileServlet/filename.flv?GET_ITEM_ID=347TransformationID=234

Where the item id is a link to the metadata of the asset stored in a  
database and the transformation id is the transformed file from that  
asset. Our servers (flip factory, etc) will generate low res previews  
and a high res FLV from the original asset, which is mpeg-2.


I can probably build a direct path on the HD to the file, but from  
what I gather, you need to edit virtual paths in FMS for it to  
recognize the location of the files. I can't do this because each  
'asset' is a collection of files, including the FLV I want to stream.  
Each asset is a folder basically and there may be lots of 'em - 10s  
of thousands.


I don't know. Maybe it's server-side AS that grabs the path from the  
client side application (also flash) and somehow uses it to retrieve  
and stream the file. This is definitely unchartered AS territory for me.


I'm testing the dev edition of FMS to get a grips on whether or not  
it'll be best for the job. Red5 or some other tomcat-type  
installation of a streaming server may be a better selection as I  
look into it more.


thanks,

jon

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

2007-04-04 Thread Jon Bradley


On Apr 3, 2007, at 8:12 PM, Kerem İşeri wrote:

I couldnt find any software directly converts avi to flv better  
then flash.

I am open for other ideas : )


FFmpeg is free and it also will do it just as well as Flash. It's  
just tricky to use and get running, more so if you're on a windows  
platform. OSX setup is a breeze I found.


cheers,

jon___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Question: FMS 2 and CMS managed FLV files

2007-04-05 Thread Jon Bradley


On Apr 4, 2007, at 2:54 PM, john robinson wrote:

So the Flash front-end gets this path from the CMS, correct? If  
that's the case, then in your Java application, you you then copy  
the actual flv somewhere like so:


FMS/applications/myApplication/streams/347/filename.flv


That's one problem I have to overcome. The files that FMS would read  
(or any streaming solution that can run alongside Tomcat) cannot be  
copied to some 'streaming' directory. We're talking about hundreds of  
hours of broadcast footage that need to be organized in a specific way.


The paths would need to be dynamically generated by the CMS and those  
paths fed to the streaming server.


With the path you provided, you should be able to rip it apart in  
Flash and build the correct FMS path from there. Does that help at  
all? You shouldn't need to setup virtual paths at all. If you do  
need to setup virtual paths, I believe the FMS has an admin service  
that you could call from your Server-side AS to add those virtual  
paths dynamically as needed.


I thought of doing some server-side AS but then I run into the  
problem that each separate asset is contained in a separate folder  
along with all it's transformations - thumbnails, 00:00:10 FLV  
previews, storyboard jpg sequences, etc. I'd hate to have to add  
virtual paths all over the place.


Anyhow, I think my question at this point is probably well OT for the  
list so I'll see if I can find a FMS list or something where I can  
pose the question. I've never used FMS (from an administrative  
standpoint) so it'll be an interesting learning experience.


thanks for the help john.

jon



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Editors in use by Actionscript Programmers

2007-04-09 Thread Jon Bradley

Another:

Subethaedit for mac

Just the fact that it's collaborative editing makes it worthwhile.  
I've yet to get into all the code-hinting/folding, etc. jazz offered  
by many of these editors. Though, now I'm getting into more Flex 2  
work, I have a feeling I might be making a switch (but will keep to  
subetha for collab. editing with coworkers).



On Apr 8, 2007, at 2:14 PM, Ron Wheeler wrote:


Revised List of editors

FlashDevelop
Flexbuilder
SciTe Flash
Eclipse with Flex SDK
Eclipse with ASDT
Eclipse with FDT
Eclipse with HXDT
Eclipse with EHX
SEPY Actionscript editor
Flash 9 IDE
Flash 8 IDE
Vim
Notepad++
EditPlus with ActionScript profile
TextMate
jEdit
BBedit
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Adobe Media Player vs. the competition..??

2007-04-18 Thread Jon Bradley

On Apr 18, 2007, at 12:09 PM, thotskee wrote:

Anyone have any thoughts on what the Adobe Media Player means for  
Youtube/Brightcove/Veoh/Google Video/etc. ?


My guess is ... not too much.

My take on it: It's just a glorified FLV player that talks to various  
video services and can be branded. It obviously can only deal with  
services that share up FLV files. If it were a full Media Player in  
the sense of being platform and format agnostic, then Adobe would  
have something to shake a stick at.


I'm not quite sure what the big deal is really supposed to be. Maybe  
there's more going on behind the scenes, but it looks to me like  
something a few advanced flex/flash developers could knock out in a  
couple weeks, or less.


my 0.02.

jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Adobe Media Player vs. the competition..??

2007-04-19 Thread Jon Bradley


On Apr 18, 2007, at 10:49 PM, ben gomez farrell wrote:

I'd say it stands a decent chance of supporting a bunch of formats  
eventually.  Remember this thing is built on Apollo, and you can  
build your Apollo app with HTML.  Maybe Apollo won't support HTML  
pages with plugins (except for Flash) at launch, but it would be in  
their best interest to render webpages as they appear in your  
browser, which means bringing in Quicktime support and others.

Just speculation though!


Initially there is not going to be any support for any motion video  
format other than FLV. In the 1.0 release, Adobe 'might' include the  
ability to run external applications to handle a file of a certain  
type, but it definitely won't be integrated into the application any  
time soon.


Although WebKit includes support for plugin libraries, Adobe might be  
getting itself into a legal quagmire if it tried to 'pipe' the video  
data through any other player plugin (WMP, Quicktime, Real) into it's  
own interface. That remains to be seen though.


All they'd really need to do to kill other media players would be to  
add support for the libavec libraries (FFMpeg and MPlayer) and they'd  
be able to playback a few hundred different formats.


Definitely going to be interesting though ...

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

2007-04-19 Thread Jon Bradley


On Apr 19, 2007, at 1:09 PM, Randy Tinfow wrote:


We have not had much luck deploying video that is more demanding than
the following:

720x540 pixels, at 15fps, 1.2mbps.

If we do larger than that, we get stuttering video.  Even jacking  
up the

frame rate to 29.97 causes hesitation problems.
Are there ways to hook into video board acceleration to run On2VP6?

We've used PowerDVD Deluxe to playback H264 at 1080-24p via an Nvidia
board acceleration.  Hoping there is a way to do this with On2.
Otherwise, I don't get the point to Adobe's announced Flash Video
Player.


On2 VP6 is a software decoded format, it's not supported in any  
hardware decoding systems that I am aware of.


You shouldn't need hardware acceleration for H.264. If you need  
hardware acceleration, then your system is too slow (honestly). I can  
play back 1080p, 4:2:0 in realtime, 24/30 fps no problem.


Playback of H.264 is dependent on the data rate you're working with,  
which, unless you're a broadcast firm is most likely to be well under  
20 MB/s. Encode a 1080p H.264 Quicktime file (mid-profile is all it  
supports for now) and play that back. At best quality you shouldn't  
have any problem if you have a fast enough system.


H.264 is way more demanding than the OnVP6 codec. It's also quite a  
bit higher quality and can handle much higher data rates.


I'm not sure what your system specs are but I've got HD FLV files  
that playback quite nicely, from 720p up to1080p.


cheers,

Jon


Jon Bradley
Animation / Interactive / Visual FX
Post Central, Inc.
170 Linden Oaks, Suite B
Rochester, NY  14625
585.385.1530  x273
[EMAIL PROTECTED]
www.cherrycrushthemovie.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] seek() in VideoPlayer class

2007-04-23 Thread Jon Bradley


On Apr 23, 2007, at 1:08 PM, Ash Warren wrote:

Why do I feel like it's a constant 1 step forward 2 steps back with  
these

new releases???


Well.. you are running Vista ...  :)

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

2007-04-26 Thread Jon Bradley

On Apr 26, 2007, at 10:29 AM, Jiri Heitlager | dadata.org wrote:


Can somebody help me out with dynamically building a matrix of clips.
Well it is not really a matrix, see example:

1   2  3  4
12 5
11  6
10  9  8  7


Here's a solution for a square spiral matrix. Never converted it to  
NxM format ... if you do that, please send me the adjusted code.


I'll let you figure out only using the values you want (full outer  
ring on matrix).


cheers,

Jon

Jon Bradley
VFX Artist / Animator
Post Central, Inc.
[EMAIL PROTECTED]
www.cherrycrushthemovie.com


/**
*   SpiralMatrix class
*/

class com.jbradley.geom.SpiralMatrix {

private var size:Number;
private var mat:Array;
private var isInnerSpiral:Boolean;

function SpiralMatrix(s) {
size = s;
mat = [];
calcMatrix();
}

/**
*   calcMatrix loops over the matrix and calculates the final
*   value based on the base and delta values.
*
*   If inner is set to true, values increase from the
*   center. Otherwise, they increase toward the center
*   starting from the [0][0] position in matrix
*/
private function calcMatrix() {
var offset = isInnerSpiral ? 0:size*size;
for (var i=0; isize; i++)
{
mat[i] = [];
for (var j=1; jsize+1; j++)
{
mat[i][j-1] = Math.abs( Math.pow(base(i,j),2) + delta 
(i,j) - offset);

}
}
}

/**
*   Base returns a ring position in the matrix
*/
private function base(x:Number,y:Number):Number
{
return size - 2*Math.min(Math.min(x,y),Math.min(size-x,size- 
y));

}

/**
*   Delta returns an offset used to determine the final value
*   added to the current position in the matrix
 */
private function delta(x:Number,y:Number):Number
{
var d = Math.min(x,y);
if (x + y  size ) { d = size - Math.max(x,y); }
if (y  x) { return -1 * (x + y - 2*d); }
return x + y - 2*d;
}

public function setSize(s:Number) {
size = s;
mat = [];
calcMatrix();
}

public function toString():String {
var str = ;
for (var i = 0; i  size; i++)
{
str += mat[i] + newline;
}
return str;
}

public function get matrix():Array { return mat; }
public function set inner(b:Boolean) { isInnerSpiral = b;  
calcMatrix(); }

public function get inner():Boolean { return isInnerSpiral; }
}

/**
*   SpiralMatrix usage
*/

import com.jbradley.geom.SpiralMatrix;

var spiral = new SpiralMatrix(5);
trace(spiral);

spiral.inner = true;
trace(spiral);

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

2007-05-03 Thread Jon Bradley

On May 3, 2007, at 12:50 AM, Marc furman wrote:


Hi
can anyone tell me if there is a way to use jpeg 2000 compression in
flash mx 2004 or flash 8  also if it is used in a movie can jpeg
2000 compression be viewed in flash player 7
Thank you
marc


The IDE does support JPG2k though I do not know how to explicitly  
force it to do so though. When you export the SWF I believe it  
converts it internally to a PNG format so that the alpha channel is  
retained. Don't take my word for this tough ... I might be off base.


An application from Strata (Strata Video?) exported animation  
sequences into Flash as JPG2k and retained the alpha channel, which  
Flash would use.


I did some experimentation with that a while back, so if I can dig up  
any info I'll post it here. I vaguely recall that there's no easy way  
to bring in a JPG2k image directly into Flash.


good luck,

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

2007-05-09 Thread Jon Bradley

On May 8, 2007, at 9:53 AM, Tim Arney wrote:

Dashboard is seeking a fulltime flash developer to join our growing  
team


For details -


Ah... I'd love to move to Toronto. It's quite nice this time of year.

Alas, I'm stuck across the pond in Rochester ... loving the lake  
effect snow I get every year.


:)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FLV CuePoints - discrepancies between CuePoint time and actual time

2007-05-18 Thread Jon Bradley

How are you inserting the cue points?

If you are not embedding the cue points directly into the file, then  
your callback will only happen on the previous, closest key frame.


Also, Sorenson has had issues in the past with mis-aligned cue points  
and keyframes. I stopped using it altogether a while back, so I'm not  
sure what the options are but you should be able to force a keyframe  
at all cue points if you are embedding it into the actual video. I  
didn't think Sorenson could embed cue points into the FLV (at least  
in one of the older versions).


When all else fails, use the Flash Video Encoder.

cheers,

jon


On May 17, 2007, at 5:25 PM, Martin Tremblay wrote:



Video newbie!

I inserted multiple CuePoint into a flv.

The problem is when onCuePoint is call on the netstream, is it not  
being

called directly on time, but almost a full seconds before the actual
cuepoint time.

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

2007-05-24 Thread Jon Bradley
Has anyone here approached Cairngorm development without remoting  
services?


I'm developing in Flash 8 still - no case to go to Flash 9 yet since  
the penetration is way less than the business requirements.


I've got a prototype I'm putting together and am using Delegates that  
return stub data right now to my Commands. In the end, the data will  
be loaded from a .NET application in the form of XML, not using  
Remoting objects.


What I'd like to know is if anyone has implemented other service  
types, and how, with Cairngorm in Flash (0.99 at the moment). The  
Responder framework is just not going to work, obviously, so I'd  
rather use XML calls that have their onResult and onFault events  
returned to the Delegate that is making the request.


Also, if any of the cairngorm team is still listening on the  
Flashcoders list, is there a newer package available with the  
org.osflash project structure? I'm still using the nevis formatting.  
From what I gather the only change is to the package formatting ...  
nothing else.


Any takers?

thanks for any input.

best,

jon

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

2007-05-24 Thread Jon Bradley
That's great, Muzak. It's right in line with what I thought needed to  
be done - import the remoting classes and use them only for what's  
necessary.


It does seem like quite a lot of effort for something that should be  
pretty simple - since the built in XML loading already has events  
that could be used.


cheers,

jon

On May 24, 2007, at 11:58 AM, Muzak wrote:

I don't know if anything like this exists for Cairgorm, I do know  
that people have written extensions for ARP.

One of them is an XMLService written by Christophe Herreman:

http://www.herrodius.com/upload/arp_extensions.zip

More custom services here
http://www.swapdepths.nl/2006/01/27/customservice-and- 
sharedobjectservice-for-arp/


If all you need/want is an XMLService, try this one (should be the  
same is the one in arp_extensions.zip though):
http://svn1.cvsdude.com/osflash/arp/labs/cherreman/actionscript/org/ 
osflash/arp/xml/


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


Re: [Flashcoders] Bitmap text (no anti-alias) still aliasing?

2007-06-13 Thread Jon Bradley


On Jun 13, 2007, at 10:51 AM, matt stuehler wrote:


In other words, if you're using a device font, Flash will properly
calculate the height if the font is _sans, _serif, or _typewriter
(which is exactly what you suggested); but not if you use another
font.


This little bit of code properly calculates the height of a text  
field in Flash - snagged from one of the components in the V2  
framework (DataGrid?)


public function getTextHeight(txtField:TextField):Number {
var oldText = txtField.text;
txtField.text = ^g_p;
var tH = txtField.textHeight + 4;
txtField.text = oldText;
return tH;
}

cheers,

jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 CS3 over 400 MB! and 25 minutes to install!

2007-06-20 Thread Jon Bradley


On Jun 19, 2007, at 4:31 PM, JulianG wrote:

I saw this coming... Once Adobe take over Macromedia, things would  
start to happen.

Bad things, I mean.


Still searching to see what can be defined as bad in this thread.

How come Flash CS3 Installer is over 400 MB, when Flash 8 was only  
110 MB??
While I'm writing this the application in being installed (less  
than 50% progress).

How is it possible that it's taking AGES to do finish!


Cause it's a large install and there are a lot of pieces. Hundred  
thousand or so lines of code just for the class support and thousands  
of documents for help alone.


If it were one large file it'd take only a few minutes to write.  
Rather, it's thousands upon thousands of files. That is what takes a  
long time to install - hard drives do not function efficiently with  
read/write on tons of tiny files. They are efficient on large files.


And if your drive is fragmented... oh boy, have fun with that.

It almost seems like I was installing... I don't know Photoshop, or  
some other buggy Adobe software. Oh! s**t I am!


I mean honestly, why do I keep reading things about Adobe products  
being so buggy. Photoshop and Adobe products are some of the least  
buggy software products around. Consider yourself lucky.


I'm scared! I hope they don't screw it with the Flash Player.  
That'd be quite harmful for us. I think.
I don't see people updating Flash Player if it's 30MB or annoying  
in some other way.


That won't happen. There's a very explicit development process when  
adding features or adjusting the Flash Player. The team has very  
detailed requirements for coding and there are, I imagine, impact  
analyses for every addition to the Player.



Perhaps you guys had this discussion some time ago.
Do you have any URLs I can read about this, so I can find out if it  
is just me paranoid?


Paranoid. Who cares if the installer is big? Honestly. Get a bigger  
hard drive.


400 MB for an installer is a drop in the bucket. Even a couple gigs  
is a drop in the bucket with the size of drives today.


cheers,

jon

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

2007-07-11 Thread Jon Bradley


On Jul 11, 2007, at 1:08 PM, Nick Weekes wrote:

In any case, this very useful link was put up and I think its  
closer to the

original request:

http://www.reflektions.com/miniml/template_permalink.asp?id=344


This effect would probably be much quicker by performing rectangular  
region copies from one BitmapData object to another and use a matrix  
for the transformation - all that's needed is a draw routine and loop  
that modifies the rect and matrix for the copy.


It would definitely be an interesting test...

cheers,

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

2007-07-17 Thread Jon Bradley

On Jul 17, 2007, at 2:05 PM, Jim Berkey wrote:

Congratulations, I obviously have more holes to plug, my methods  
are no good. I will continue trying . . .


You can't do it Jim - there aren't any holes to plug.

It's just technically impossible.

cheers,

- Jon

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

2007-07-18 Thread Jon Bradley


On Jul 18, 2007, at 7:24 AM, Jim Berkey wrote:

I found early on that so many people can tear down a wall and  
condemn it easily when they see the skeleton, without ever trying  
to climb the wall, and that is not a good judge of the  
effectiveness of the wall. But if you do not see the skeleton, it  
is much harder to climb that wall. All of a sudden instead of  
multitudes saying how silly, only a few can actually climb the  
wall . . . maybe one day only one or two will be able to climb the  
wall. Yesterday Rákos captured the swf, and then others decompiled  
and re-compiled it. I have slept on the method that I believe Rákos  
used to capture the swf, and may have an answer for it later today.


We all definitely appreciate that you are trying. Just remember  
there's a huge difference in making it difficult to get the file and  
making it impossible to get the file (the latter being, literally,  
impossible).


The simple fact is that the SWF needs to be sent to the client, in a  
form the Flash Player can render. At this point in time, the  
technology does not exist in the Player or in the communication  
between the server and the Player (browser/plugin). It is absolutely  
impossible to keep the end user from gaining access to the SWF  
content in some manner or another.


You can obfuscate, but you cannot hide the content itself. I think  
what some of us are saying is - there is no way to keep us from  
getting the file.


The most difficult method I am aware of is by using FP9 (AS3) and  
Loader.loadBytes (combined with ByteArray). You could use a secured  
socket connection and load binary data, decrypted through ByteArray  
and a client-server handshake (say Blowfish as the encryption method  
- it'll just take forever to decrypt the data).


That still won't protect you. All one needs is a packet sniffer to  
get the data (including any keys or other information) and use the  
SWF that loaded the data in the first place to decrypt it. It'll take  
a bit longer to get the file (a long time if implemented properly)  
but you can still get the file.


http://www.bytearray.org/?p=32

good luck.

- jon

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

2007-07-18 Thread Jon Bradley

Or, if you're a masochist:

http://www.kirupa.com/forum/showthread.php?t=256400

- Jon

On Jul 18, 2007, at 1:13 PM, Mark Winterhalder wrote:


On 7/18/07, Douglas Pearson [EMAIL PROTECTED] wrote:
Since we're talking about obfuscation/encryption does anyone know  
of a tool

that works for AS3 yet?

All the standard tools seem to stop with Flash 8/AS2.


I don't think there are any decompilers for AS3 yet, but I could be
wrong, and it's just a matter of time anyway.
If you want to take a shot at adding some obfuscation yourself, you
could get Swfmill off svn and hack something together that jumps
around in the ABC tags a bit. Ralf just added AVM2 opcode support the
other day.

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

2007-07-18 Thread Jon Bradley
Anyone attempt a DragManager class in AS3 for use with Flash CS3 (not  
the flex sources).


Specifically a singleton that takes a proxy (bitmap) and uses that  
for the dragging, with a method to have acceptable targets.


Trying to work that out and would like to know if I'm re-inventing  
the wheel here.


cheers,

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

2007-07-19 Thread Jon Bradley

It's basically a macro process for compiling AS classes.

One of the side effects is that it can be to obfuscate SWF files by  
using your own re-write rules. Hit up the second page of the thread  
to see a bit more information.


Macros are pretty cool stuff. Though the author of the toolset isn't  
quite accurate in the decompiling aspect of things - basically saying  
you can munge the intrinsic classes, which isn't possible. Those  
classes still make calls to Player internals and can be followed  
backward through the classes to 'fix' any obfuscation. So, maybe half  
your code in the end will be pretty funked up. That's still probably  
more than enough to make use of the decompiled code.


Bit tricky to setup and use, but it's pretty powerful if you need to  
do conditional compiling and get some serious speed boosts (similar  
to flasm hacking). Though, one could just use Haxe instead...


cheers,

jon


On Jul 18, 2007, at 7:32 PM, Latcho wrote:


whats this?

Jon Bradley wrote:

Or, if you're a masochist:

http://www.kirupa.com/forum/showthread.php?t=256400

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

2007-07-19 Thread Jon Bradley

A better link for those interested in obfuscation of AS3 code.

http://www.kirupa.com/forum/showthread.php?t=266992

peace,

jon

On Jul 18, 2007, at 7:32 PM, Latcho wrote:


whats this?

Jon Bradley wrote:

Or, if you're a masochist:

http://www.kirupa.com/forum/showthread.php?t=256400

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

2007-07-19 Thread Jon Bradley

On Jul 19, 2007, at 8:29 AM, Mark Winterhalder wrote:


But I wonder, did anybody compare haXe vs AS3 bytecode yet? A
decompiler is likely to assume AS3 has been used, and maybe haXe
creates sufficiently different bytecode to confuse it.


That doesn't really matter.  If it's FP9, it's AS3. The bytecode has  
to be AVM2 bytecode no matter where it comes from.


The general point is - intrinsic methods in the Player are hardcoded  
and available. References or calls to those methods can be followed,  
no matter if they're named funky or not.


Let's say you call blahblah.mask = something and that gets  
obfuscated to _3457._3 = _537.  Any sufficiently designed decompiler  
will be able to mark that as _3457.mask = _537. Following those  
references, a decompiler could then figure out the raw type of _537  
and _3457 and mark those as maybe spriteInstance1 or  
shapeInstance45 or whatever.


Then, the decompiler results in spriteInstance1.mask =  
shapeInstance45. Legible enough to work with. I don't believe that  
scenario can be avoided, no matter what compiler/obfuscator you use.


- jon



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Splitting TextField into Lines - Simple?

2007-08-16 Thread Jon Bradley

Check out Jack's great Text Metrics class. He just posted this Aug. 7th.

http://www.greensock.com/ActionScript/TextMetrics/

cheers,

Jon


On Aug 16, 2007, at 8:47 AM, Dan Efergan wrote:


Hello FlashCoders.

The seemingly simple task of splitting a Textfield into it's (soft)  
wrapped lines is alluding me.


How can you tell the Text content of a particular line within a  
Textfield?  I'm trying to split out the individual lines to animate  
them.


Thanks,
Dan

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Flash Player update and Impact on 3D in Flash

2007-08-21 Thread Jon Bradley


On Aug 21, 2007, at 9:10 AM, [EMAIL PROTECTED] wrote:

I was just wondering what impact if any this will have on the  
future of 3d in Flash.


Well, all the video updates will have zero effect. Those have nothing  
to do with 3d. This is basically the inclusion of the MainConcept  
MPEG4 decoding engine - which is the same code in FlipFactory and  
almost all other licensed h.264 decoders.


The multi-threaded (multi-core CPU) work they are doing will have an  
effect though.


cheers,

jon
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 TextFields with filters - game performance?

2007-09-14 Thread Jon Bradley

On Sep 13, 2007, at 9:52 AM, Dimitrios Bendilas wrote:

My major concern is performance, because of the use of filters. By  
the way, I want to use
the filters so that I won't have to make a new Raster Font Engine  
in Flash (I've already done

one for AS2.0)


First thought for performance considerations - don't use embedded  
fonts. That's a performance hit right there. Flash uses the native  
system rendering to get the curve information for non-embedded fonts,  
rather than rendering it itself - that comes with it's own set of  
problems of course.


good luck.

jon


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] how are they doing this? Papervision3d or pre-rendered 3d?

2007-09-16 Thread Jon Bradley

It's video.


On Sep 15, 2007, at 1:27 AM, Carl Welch wrote:


Hi All,

Does any one know how this site achieved its card flipping effect?
Papervision3d or pre-rendered 3d?

http://www.tripleslanguage.com/?CMP=BAC-1TO1Q3TP7042

Thanks.

--
Carl Welch
[EMAIL PROTECTED]
805.403.4819
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] how are they doing this? Papervision3d or pre-rendered 3d?

2007-09-17 Thread Jon Bradley
Whether they blit or not, everything is still a pre-rendered  
sequence, except the text. The clip layout is identical every time.


I don't believe any distorian or 3d library API was used (ie PV3D or  
Sandy). There are a whole bunch of pre-rendered sequences that they  
are applying color transforms to to get the final cards. Anything to  
do with the card is pre-rendered. It's a 3MB file - look at the  
graphics.


It's not 'composited' at runtime. Content is placed in a hierarchal  
layout - ie, old school Flash 6 style mc layout to get the look of  
perspective on a clip. The clips are separated into center content  
and bottom content (possibly top). The content is placed inside of that.


Doing this through PV3D or Sandy, or any distortion API in  
actionscript wouldn't be a good approach anyway for something like  
this - not easily modified.


Aside from the content on the card, it's still 'video' in the sense  
of all the pre-rendered sequences.


cheers,

jon


On Sep 16, 2007, at 10:36 PM, Snepo - Arse wrote:

I disagree, IMO tthe only video involved would be the initial  
sequence of the cards falling though that could easily be an image  
sequence.


It is more likely that just the card turning effect is pre-rendered  
and the card content is composited at runtime.


When the card turns you can see a slight crease in the middle of  
the content. It appears as though they are blitting the content to  
two bitmap objects (one left and one right side) then using a  
distortion technique to make the content conform to the card  
flipping animation. I would imagine that they have a single pre- 
rendered animation that they are applying a hue difference to in  
order to reuse it for all cards. They developers also seem to be  
doing some clever stuff to make each card unique... so perhaps the  
static cards are pre-rendered for each and only the flip animation  
is re-used.

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

2007-10-18 Thread Jon Bradley

Whoohoo.

Good job guys. Glad to see the server up and running again.

Looking forward to massive amounts of email in my inbox all day long  
from all the flash coders out there.


cheers,

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


Re: [Flashcoders] Two Solutions: Flex swc’s ( RPC) and or Intrinsic classes within Flash CS3!

2008-01-02 Thread Jon Bradley


On Jan 2, 2008, at 5:12 AM, Sander wrote:


Hi FlashCoders!,

I’ve been trying to evangelize my solution to the flash community  
but I don’t think it came through, really... I hope someone on this  
list will pick it up!



Woah. That's pretty freakin cool.

This almost seems as though it will let you use the entire Flex 2/3  
framework within a Flash IDE developed application - including all UI  
controls, binding and everything else that goes along with that.


Is this true? I would absolutely love to be able to use the Flex  
containers (boxes, lists, tiles) in all their glory with drag and  
drop and all that. Add in the ability to load CSS at runtime and have  
CSS style the application, just as you do with Flex would completely  
rock. Of course, it doesn't negate the need to have Flex (or another  
dev environment) to compile these CSS files ... but still.


If you ever come up with a demo of using the Flex controls, let us  
know. I'd be highly interested.


Plus, all my Flex work uses either  the Cairngorm or PureMVC  
frameworks, so moving that to a Flash dev process would be mighty cool.


peace,

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


Re: [Flashcoders] 9-section scalable graphic

2008-01-03 Thread Jon Bradley


On Jan 3, 2008, at 1:41 PM, Andrew Sinning wrote:

I know there's a term for what I looking for, but I don't know it  
and my searches are coming up empty.


What do you call the technique of dividing a graphic into 9  
different areas so that when you scale it the outer borders don't  
get distorted?


And, more germane to this list, can anybody point me to a component  
related to this subject?


It's called Scale-9. It is an option enabled for movie clips in the  
movie clip properties dialog (*accessed through the library)


Check your object in the library and edit the Properties. Enable  
Scale-9. Edit the graphic asset (it has to be a movie clip).


You will be presented with 4 (2 vertical, 2 horizontal) intersecting  
guides to define the regions that are scaled. You do not need  
'divide' up your graphic manually (chop it up, that is).


1. Top Left, Top Right, Bottom Left, and Bottom Right are not scaled.  
They are chopped up during runtime and moved dynamically.

2. The top and bottom middle portions are scaled horizontally only
3. The left and right are scaled vertically only.
4. The center portion is scaled to fix the size you set your graphic  
to when you use it (minus the outside portions).


Finally, scale 9 properties for any movieclip can be added and  
defined at runtime through Actionscript. Look it up in the help docs.


have fun.

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


Re: [Flashcoders] Problems with Gradient Banding

2008-01-18 Thread Jon Bradley


On Jan 17, 2008, at 5:34 PM, Ed McManus wrote:

Does anyone know what causes this? It's as if for large gradients  
flash
doesn't perform enough steps making the transition from the start  
to end
colors, so on a large scale the color difference between steps is  
clearly

visible.


This is just me thinking aloud but, that's a problem with 32-bit  
color space (only 8 bits per channel, RGBA). Flash does not support  
anything greater than 32-bit color space (no 10 or 12 bit), so  
gradient banding will always be there.


Do the same in Photoshop. Choose two colors that are relatively close  
in value and fill a document the same size with any gradient type -  
banding will occur if you are in an 8-bit color space.


The only way to partially alleviate this problem is by adding a  
slight amount of noise (at least in Photoshop). It can do wonders for  
larger gradients. In Flash, I don't think this would work out too  
well (at least not in a performance-wary manner).


cheers,

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


Re: [Flashcoders] LoadVars maximum?

2008-01-31 Thread Jon Bradley


On Jan 31, 2008, at 11:00 AM, Dave Mennenoh wrote:

I've been looking and looking and cannot find the info... I am  
trying to send an array containing many thousands of entries to a  
php page for db storage. However when I get too much info into a  
loadvars property, it just stops working and sits there. What's the  
max I can send in one LV property? I am doing toString() on the  
array, but I guess I need to break the array into multiple arrays -  
just wondering what granularity if best for speed and such.


Make sure you are using POST.

POST and GET is limited to 2048 characters (in IE) in the request  
URL. If you are using POST, you need to ensure that the POST data is  
in the header of the transaction and not in the URL itself.


IE, with loadVars, you send the request to a URL. The variables  
defined in the timeline where the loadVars is occurring is what gets  
added to the request header (if I understand the process correctly).


If you're appending all these variables to the URL, it will not work.

cheers,

jon


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


Re: [Flashcoders] multiple TextFormats in one TextField

2008-02-06 Thread Jon Bradley

Mendelsohn, Michael  wrote:

How can I preserve certain substrings of the text to keep their  
assigned

TextFormats?


Before you add text to a text field that has a different format than  
the default that  you've specified (with setTextFormat), use  
setNewTextFormat() on the field and then apply that text.


Loop that process (setNewTextFormat ... add text ...  
setNewTextFormat ...)


Try that out.

- jon

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


Re: [Flashcoders] wierd easter egg?

2008-03-05 Thread Jon Bradley


On Mar 5, 2008, at 9:31 AM, Allandt Bik-Elliott (Receptacle) wrote:


hey this is odd

i'm testing my movie at http://qsworld.co.uk/index.php? 
extcategory=Designextdesigner=Darkest%20Starextproduct=Jacket and  
when i tried right clicking the top right corner and selecting zoom  
in, i got linked to http://whatisthematrix.warnerbros.com/


i'm on osx 10.4, firefox 2.0.0.12



Nice. That's a new one.

Firefox right-click zoom on OS X is screwed up with Flash Player. It  
does all sorts of weird crap on different machines.


For me, it always jumps to a hotkey to bookmark the current page.  
Pretty fricking annoying if you ask me.


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


Re: [Flashcoders] Source Control [WAS] to mac or not to mac

2008-03-15 Thread Jon Bradley


On Mar 15, 2008, at 6:36 AM, Muzak wrote:

There's a new(er) plugin, called subversive that might be worth  
looking into.

I haven't tried it yet, but heard good things about it:
http://www.polarion.org/index.php?page=overviewproject=subversive
http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink- 
cid-611.html


That's what I use, while running subversion on OS X and a remote  
linux machine.


Before I used Eclipse as my primary IDE, I used TortoiseSVN, but  
having it all in one IDE makes life easier.


SVNx on OS X is pretty good. Eclipse does it fairly well too with the  
subversive pack, but I still like the GUI tool.


Of course, you can't beat the command line (I almost always have it  
open). Just cd'ing to my source directory and running svn on any  
google code or sourceforge project is priceless, and way faster than  
opening an application and filling in all the required params to  
check out a trunk.


I just have to get better at actually using the source control for  
small projects where I'm pretty much the main person working.


:)

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


Re: [Flashcoders] AS2: Tweening a very large vector file causes shaking

2008-03-21 Thread Jon Bradley


On Mar 21, 2008, at 9:57 AM, Matt S. wrote:


 It seems like the problem started when I
added _rotation to the the mix. The file is vector, imported from AI.

is anyone familiar with this problem? Any recommendations for handling
this sort of basic (or so I thought) effect?



There's a bug in Flash on certain operating system configs. I just  
don't know what it is.


I've yet to find an appropriate solution for this myself. The issue  
is related to the rotation.


I've actually resorted to using Combustion to do some of my animation  
work because of it.


I too would 'love' to know if anyone has found the core issue or a  
work around.


thanks!

jon


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


Re: [Flashcoders] Help needed AS3 -- [Embed(source='library.swf' symbol='backgroud_mc')]

2008-03-24 Thread Jon Bradley


On Mar 24, 2008, at 8:30 AM, Cor wrote:



This throws an error:
TypeError: Error #1007: Instantiation attempted on a non-constructor.

What am I doing wrong?



You can't call new Background_mc() when it's an instance of Class -  
there's no constructor for it that the compiler recognizes.


My suggestion if you don't need to extend UIMovieClip is as follows.

In your Library.fla file, check your export for the Background_mc  
symbol.


Give it a class name (com.something.myBackground) and have it extend  
flash.display.MovieClip.


Export an SWC of the Library file and then set your compiler prefs to  
include that SWC into the project.


Then, in your class just do:

import com.something.myBackground

and the usage is:

private var myBG : MovieClip;
private var Background_mc:MovieClip;

myBG = MovieClip( new Background_mc() );

At least, that's one way of doing it. I do it that way for non- 
component UI elements that do not need to extend UIMovieClip. Also  
because I use the same SWC as an SWF file for CSS embedding of  
graphical elements.


good luck,

jon

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


Re: [Flashcoders] Help needed AS3 -- [Embed(source='library.swf' symbol='backgroud_mc')]

2008-03-24 Thread Jon Bradley
Oops... my last email was kinda based on the idea that you were  
running this in Flex.


My bad - replying to two lists at once.

http://www.digitalflipbook.com/archives/2007/03/associating_cus.php

- jb

On Mar 24, 2008, at 8:30 AM, Cor wrote:

This throws an error:
TypeError: Error #1007: Instantiation attempted on a non-constructor.

What am I doing wrong?

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


Re: [Flashcoders] ot : Flex RIA running on multiple servers

2008-03-26 Thread Jon Bradley


On Mar 26, 2008, at 4:35 PM, artur wrote:


is this possible?
if so does it HAVE to be on a Flash Communication Server?
or can it run on others?

any links to sample setups would be great too..thanks


??

 Flex compiles to an SWF file.

However you'd do what you want to do with Flash, you would do with Flex.

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


Re: [Flashcoders] ot : Flex RIA running on multiple servers

2008-03-27 Thread Jon Bradley


On Mar 26, 2008, at 8:34 PM, artur wrote:


the CMS webservice i want to build will be done in FLEX / AMF / MySQL.

and i want to make sure that it can scale and be redundant.


Ok but that doesn't have anything to do with Flex. Flex is just a  
different application to build an SWF file. It is only the front-end  
solution.


Flex SWF == Flash SWF, plus a whole bunch of code for handling the  
UI. The Flex SDK is like using a framework (vegas, arp, etc.) for  
Flash, but on crack.


If you're talking about your server solution scaling and being  
redundant, you need to be way more concerned with other things.  
You'll most likely need some type of J2EE server.


Your best bet is to find a content management system that utilizes  
JSR-170 (Java Content Repository) and can use MySQL or PostgresSQL  
(or even oracle) for serious scalability and capability to handle  
clustering, etc.


Check Alfresco.com as a nice, forward looking solution for that (it's  
open source and free, if you don't need support). You'll still need  
to write the API on the server with Java to allow the AMF library  
(GraniteDS or BlazeDS) to speak with the CMS services.Drupal or  
DSpace might be additional options but I don't know how they  
scalability and redundancy.


There is also an open source project that wasn't started too long  
ago: Igenko  The goal of this project is to act as a JSR-170 (with  
Apache Jackrabbit) with data services (GraniteDS at the moment). the  
link is: code.google.com/p/igenko


Either way, your issue is server-side, not Flex/Flash.

- jon


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


Re: [Flashcoders] Image colorization / contrast adjusting

2008-03-27 Thread Jon Bradley


On Mar 27, 2008, at 7:37 AM, Alistair Colling wrote:

Hello, I would like to know if it is possible for flash to process  
a regular photograph to produce a pop-arty image like this:


http://www.popartuk.com/g/l/lgpo7028+pop-art-andy-warhol-1962-che- 
guevara-poster.jpg


A little Warhol-style transformation huh?

I am not sure if this is possible or the best way to go about this.  
If someone could let me know if this would be possible to do and  
maybe give me some direction as to how to do it that would be great.


100% possible.

Check out BitmapData.paletteMap() as one option. Additionally, you  
could use BitmapData.threshold() to get different value areas,  
colorize them and recombine them.


Lots of options.

cheers,

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


Re: [Flashcoders] ot : Flex RIA running on multiple servers

2008-03-27 Thread Jon Bradley


On Mar 27, 2008, at 9:07 AM, Cutter (FlashRelated) wrote:

You could also use Adobe ColdFusion, which has native AMF support  
built-in, as well as a gateway for interacting with Flex apps. Then  
you have the power of a J2EE app server, the agility of RAD  
development with ColdFusion and Flex, plus the scalability of  
ColdFusion, with it's clustering support, etc.


Great addition to the discussion. There are a lot of options out there.

cheers,

jon

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


Re: [Flashcoders] PureMVC vs Cairngorm // who's better?

2008-04-11 Thread Jon Bradley


On Apr 11, 2008, at 4:14 PM, [EMAIL PROTECTED] wrote:

And if it is a small to medium size app you may want to try EasyMVC  
from

Tom Bray
(http://www.tombray.com/2007/10/16/my-easymvc-seminar-wasnt- 
recorded/). His

presentation on 3/28/08 was recorded as an Adobe ondemand seminar and
describes how to use EasyMVC and also compares it to Cairngorm.  
There is

also easyMVC from Simeon Bateman but I haven't looked at that one.


To add my 2 cents ... by the time a developer has gone through Easy  
MVC (Clockwork Objects) or something similar, they are already 50% of  
the way through knowing how Cairngorm works.


It really isn't much of a leap. Cairngorm adds in the ServiceLocator  
and the events, commands, delegate chain.


That said, Cairngorm does lack some things for enterprise development  
and large applications/teams that are pretty needed. Some of these  
things I've recently run into (better command chaining architecture)  
and am looking into various solutions for (UM Cairngorm extensions is  
one).


just a thought.

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


Re: [Flashcoders] Is Adobe fixing this big FP9 problem?

2008-04-16 Thread Jon Bradley


On Apr 16, 2008, at 9:49 AM, Jer Brand wrote:



   myMovie.iDontCareIfYouHaveListeners_DIE_DAMN_YOU_DIE() ;




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


Re: [Flashcoders] Using FlexBuilder3 profiler with FlashCS3

2008-04-25 Thread Jon Bradley

Good question. I haven't tried that yet.

What you could try to do, off the top of my head, is use the  
SWFLoader and load up the SWF file into a simple Flex application. I  
believe the profiler will also profile the content loaded through  
SWFLoader, but I'm not certain of it.


good luck!

jon

On Apr 25, 2008, at 12:59 PM, Martin Tremblay wrote:



Hello,

Is there a way to use the Flexbuilder3 profiler with a FlashCS3  
file? I
just want to take a swf and run it through the profiler. Is it  
possible?


Martin t.
LVL


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


Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-08 Thread Jon Bradley


On May 7, 2008, at 1:06 PM, Steven Sacks wrote:

The fact of the matter is, running at a higher frame rate makes  
things look smoother.  Period, end of statement.


That's not an accurate generalization. Higher frame rate != smoother  
display in all cases. It matters for progressive elements (flash  
movies, games like Quake) but that statement is not applicable to  
other forms of media.


If you take a time-based animation inside a 30fps movie and a 60  
fps movie, the 60 fps version will look a lot smoother.


In Flash yes. I just want to say for the record that this argument  
has absolutely nothing to do with braodcast/animation work. In the  
context of Flash, sure, it will look smoother.



It's not an opinion, it's a fact.


Fact for a limited set of time-based animation systems - primarily  
games and content like Flash that display progressive frames without  
motion blur.


- jon

Post • Central
Visual FX  |  Animation  |  Interactive
170 Linden Oaks, Suite B  |  Rochester, NY  |  14625
P:  585.385.1530 x273  |  F: 585.218.9219
[EMAIL PROTECTED]  |  www.postcentral.com



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


Re: [Flashcoders] FPS limit of flash player inside browser?

2008-05-09 Thread Jon Bradley

On May 8, 2008, at 4:27 PM, Zeh Fernando wrote:

But it's important to remember movies work well at 24fps because  
they capture slices of time and not static frames. An entire 1/24  
of a second is present on each of those frames, while with computer  
graphics we have a moment frozen in time.



You're right on the 'slice of time' aspect, but it is still a static  
frame (progressive). It's just that it captures motion blur.


 a good example is some parts of the animated movie Akira and  
specially Ghost in the Shell, where they created the original cut  
at 60fps or 120fps (!) and then frame blended back into 24 to give  
the impression it was a movie.


That's because they didn't have the ability to 'render' motion blur.  
You wouldn't do that today though because there are other efficient  
ways around that (optical flow is one example).


- jon


Post • Central
Visual FX  |  Animation  |  Interactive
170 Linden Oaks, Suite B  |  Rochester, NY  |  14625
P:  585.385.1530 x273  |  F: 585.218.9219
[EMAIL PROTECTED]  |  www.postcentral.com

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


Re: [Flashcoders] Re: Usage of [Event....]

2008-06-02 Thread Jon Bradley


On Jun 2, 2008, at 4:38 PM, Helmut Granda wrote:


Can you pass custom properties with this kind of event handling?


All that this notation allows you to do is to define the event (as a  
string) and it's handler (the event class handling the event).


It doesn't have anything to do with any properties or custom  
parameters for the instance of the event type (again, it's just the  
definition).


You still have to dispatch the event manually, so if you want to pass  
your own properties, just set up your custom event class to handle  
those properties


good luck,

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


Re: [Flashcoders] Insert breakpoints and run debugger withoutFlashCS3?

2008-06-16 Thread Jon Bradley


On Jun 16, 2008, at 4:54 AM, EDELSTAR wrote:

Данный почтовый ящик не  
обрабатывает подгрузки, заявки и  
прочие сообщения. Вам нужно написать  
на адрес, присвоенный Вашему СПО.


List admin -  can you block this?




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


Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Jon Bradley


On Jun 18, 2008, at 11:27 AM, [EMAIL PROTECTED] wrote:


Yes but...

In my case I can have scaleX  1000, so I loose too much quality  
with this

method.

I'm triing to embbed fonts outlines in my TextTield but the result  
is not very

good (bad antialiasing). I guest that I have no other choice :)

Thanks again,


Don't use scaleX or width/height modifications.

Use transformation matrices.

I have an application that allows the user to scale, rotate, move  
(unconstrained and constrained) a TextField (flash and flex) without  
problems.


The only issues are with the fact that there's a bug in the Flash  
Player with certain settings on the antialiasing - which causes the  
kerning of the text field to jump around wildly.


In my case since this bug rears it's ugly head when text fields are  
rotated or scaled, I apply the transformations to the type and re- 
render the result back into a BitmapData object with the new  
dimensions of the field.


- jon

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


Re: [Flashcoders] scaleX on TextField

2008-06-18 Thread Jon Bradley


On Jun 18, 2008, at 1:05 PM, Matt S. wrote:


Is this online somewhere? Sounds interesting :)


var m:Matrix = new Matrix();
m.scale(100,1);

myDisplayObject.transform.matrix = m;

cheers,

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


Re: [Flashcoders] Maintain position on rotation

2008-06-18 Thread Jon Bradley


On Jun 18, 2008, at 1:27 PM, eric e. dolecki wrote:


While rotating, I want to place another MC's x,y (each frame) on that
rotating MC. However the x,y never updates. I tried localToGlobal,  
but that
doesn't seem to change either during the rotation. Can this be  
easily done?



Give something like this a shot. Note that this is completely  
untested because I wrote it right here ... this is the general idea  
though.


var m:Matrix = mainMC.transform.matrix;
var pt:Point = new Point( mainMC.theChild.x, mainMC.theChild.y);

var position:Point = m.transformPoint(pt);

// You might need to add in the tx,ty offsets
var matchMoveClipX:Number = position.x + m.tx;
var matchMoveClipY:Number = position.y + m.ty;

That assumes, of course, that you're applying your transformations  
using matrices.


If you use dot notation on the properties (rotate, scale, x y), I'm  
not 100% certain that those properties are updated in the  
transformation matrix of the object.


good luck.

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


Re: [Flashcoders] How to avoid fake data being sent to server?

2008-06-18 Thread Jon Bradley


On Jun 18, 2008, at 12:25 PM, Ricky Bacon wrote:

Security through obscurity is not a very good idea.  You also still  
have the problem of someone decompiling the swf and modifying it to  
their needs.


If Flash Media Server 3 is being used, for a very nice level of  
protection it can hash the game SWF engine (just place it in the  
application directory and turn on the feature in the application .asc  
file).


If the SWF requesting doesn't match the swf in the FMS3 app directory  
then it won't allow it to run.


Still doesn't negate the idea that the game logic should be on the  
server.  :)


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


Re: [Flashcoders] Netstream fails to close

2008-07-08 Thread Jon Bradley


On Jul 8, 2008, at 3:44 AM, Jason Van Cleave wrote:

I could cast the sound onto a separate object and mute it, so that  
you

don't see or hear any ill effects, but my proxy tells me the flv is
still downloading, so if one of my clients users clicks on 10 video
clips their connection will crawl to a halt.


First tip: use the video and sound classes instead of net stream.

Embed an 'empty' video object in your library with a linkage id. When  
you want to kill the stream, attach this video which will force the  
player to close any streaming connection. Then do what Steven said -  
and null out the stream elements. This will force it to close out.


I've seen the streams still stick around with 'just' pausing, closing  
and nulling out the stream connection. The only way I'm pretty sure  
it will work every time is by attaching this dummy vid.



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


Re: [Flashcoders] flex 3 // Tile Component // Mutliple Drag Selection

2008-07-23 Thread Jon Bradley


On Jul 23, 2008, at 12:39 PM, artur wrote:


would it be possible to Extend the Tile Component?
instead of making a new one from scratch?


Here's how I'd do it...

Add a child to the container that's holding the TileList component.  
On click (mouse event), start drawing a rectangle (mouse move event).


Intersect the boundary of this rectangle with the children of the  
TileList (interesting exercise) and select them if they intersect.  
Finally clear out the rect on release.


interesting challenge.

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


Re: [Flashcoders] Upload PDF into SWF?

2008-08-11 Thread Jon Bradley


On Aug 11, 2008, at 7:16 PM, Dave Watts wrote:

It is possible, however, to load the Acrobat ActiveX control into a  
Flex
application, and have it load a PDF. I'm not exactly sure how this  
works,
but the LiveCycle Workspace application does this. That wouldn't  
really be

helpful to the original poster though, I suppose.


As an AIR application, right?

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


Re: [Flashcoders] how many coders here actually have a degree related to computer science?

2008-08-20 Thread Jon Bradley

On Aug 19, 2008, at 5:25 PM, Anthony Pace wrote:

Do you have a degree related to computer science? if not, how  
difficult is it getting jobs programming AS3 without one?


I think comp sci is much more geared toward software and computer  
engineering, as opposed to programming for rich media.


Personally, I went to school for optical engineering and physics. I  
dropped out senior year, second semester, to start my own interactive/ 
web company. Ten years later and I'm now a 3d vfx artist - certainly  
a difference from where I started.


I definitely believe that my education has had a profound effect in  
my career choice and overall skill level in my niche. I do wish I  
completed my degree, at the very least for the feel-good aspect.


A degree in some field of new media study and course work that has a  
fair amount of interactive (programming and design included) may get  
you further than a comp sci degree.


Actionscript development is not just programming. It requires both  
sides of the brain to do well because much of what you do when  
programming in Flash has a direct visual effect.


just my 0.02.

good luck!

-jon


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


Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-25 Thread Jon Bradley


On Aug 25, 2008, at 6:39 PM, Omar Fouad wrote:

But what the hell is an interface!!! I've read lots of books  
and
posts without getting the answer. I bought Essential AS3 to read  
about
interfaces and he says that helps for multi inheritance. In other  
places I
read that it is a deal to ensure that a class has some methods and  
so on.
But what is the real benefit that I can come out with using  
interfaces


If you are using a cracked out language like VB, they might be  
marginally useful in weird circumstances that are, in my opinion,  
probably poor programming choices in the first place.


They serve little purpose in general, and even less in actionscript.

My 0.01 is that you certainly need to know them, because you might run  
into some libraries that use them.


My remaining 0.01 is that you need to know them so you can get rid of  
them from anyone else's code library.


:P

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


Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-25 Thread Jon Bradley


On Aug 25, 2008, at 10:07 PM, Juan Pablo Califano wrote:


This strikes me as the typical gratiutous bashing of some product just
because it's made by MS. But perhaps you could elaborate a bit more  
on the

idea...


Nah, it doesn't have anything to do with Microsoft. I don't have  
anything against them personally.


I just think VB is weird, and interfaces in VB are even weirder. A  
coworker in the past did a lot of that stuff and I paid a modicum of  
attention to the code.


I do think VB is slightly cracked out though - but that has nothing to  
do with MS. :)


- jb

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


  1   2   >