[Flashcoders] looking for flv and synchronized slides app or template

2006-12-20 Thread jon
I need to find a way to deliver an flv of a talking head with synchronized
slide images (typically from PPT) and a table of contents that can be
clicked to access specific parts of the synchronized presentation. All
this delivered in swf or flv, with the ability to change various parts of
the look and feel of the delivery template. There are a few tools out
there that do similar things like Camtasia when it decides to work, and
Openworld Presenter, but none that allow customization of the delivery
interface (to enable corporate branding for example), and a simple way to
build them.
 Any thoughts?


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

2007-03-14 Thread Jon

Works ok for me too - FF 2.02 Flash player 8.

-Jon

- Original Message - 
From: "Sherif Elshazly" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, March 14, 2007 4:13 PM
Subject: Re: [Flashcoders] Site Check


works fine with me... went over 9% before i closed the window. IE 7 flash 
player 9


- Original Message 
From: Adrian Lynch <[EMAIL PROTECTED]>
To: Flashcoders 
Sent: Wednesday, March 14, 2007 3:37:02 PM
Subject: [Flashcoders] Site Check


Could I get some of you to check this site:

http://www.simon-mills.co.uk/test/

Some people are saying that it gets stuck at 1% or 2%. Can anyone confirm
this?

Cheers.

Adrian Lynch

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

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




We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New to the list - got a question

2006-08-02 Thread Jon
Hi All,

I'm new to the list, so appologies if I don't get the posting right on this - 
but I have a question.

I'm trying to load in a set of XML data, manipulate it and then get it to 
display on the stage. So far so good on the first two fronts - I can get the 
data in and get everything I want out of it.

Now the amount of XML is dynamic, so I have pushed the needed data into an 
array.

For example.

XML:





 

 


The amount of "data" elements is dynamic (and there is a lot of other rubbish 
in the XML) so I've pushed all the "data" elements into an array.

So far, so good, I can cycle through the array and access the XML elements 
using Xpath.

The problem is - for each "data" element, I want to create a new instance of a 
MovieClip on the stage (thats already created in the library) and set varaibles 
inside it, and change it's X and Y positions.

No problems creating it - but I can't access the MovieClip! Because the data is 
dymanic, I need to be able to create "x" amount of MovieClips.

So I'm using the following code to do this:

//For each Data Element in the Array (x = 0; x < numDataElementsInArray; x++)
{
var newItemDividerName:String = "itemDividerStageRecord" +x;
attachMovie("itemDivider", newItemDividerName ,x);

//Now this all works, a newMovieClip is created on the stage (for as many 
elements as I have), 10 at the moment

}

Now the problem is - I then can't access the MovieClip dynamically. Basically I 
want to be able to access it by the variable name
i've just assigned it.

For example - I now have (when it is published), 10 elements on level0, named 
itemDividerStageRecord0-9.

So I want to set their cords. So what i've been doing is:

_root._level0.newItemDividerName._x = nextItemDivider; //nextItemDivider is a 
Number which does increment

And thats not working at all - nothing is changing.

I've traced it down to the name I'm using to access it - if in the same loop I 
put:

_root._level0.itemDividerStageRecord6._x = nextItemDivider;

That works for one MovieClip (obviously).

But I want to be able to access each MovieClip dynamically.

Is there any way to do this? I want to pass the instance name the varaible when 
setting the cord, not use the absolute element name "newitemDividerName".

Please let me know if this is confusing, I can explain better!

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] New to the list - got a question 2

2006-08-02 Thread Jon
Cheers Jason,

Unfortunately I have no control over the XML produced.

The code you provided didn't work. 

"_root._level0.["itemDividerStageRecord"+x]._x = nextItemDivider;"

I get an error when compiling the actionscript now - 

"Expected a field name after '.' operator."

-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] Re: New to the list - got a question 2

2006-08-02 Thread Jon
I have now manage to get this working - using the following code:

setProperty(newItemDividerName, _x , nextItemDividerX);

Although why wouldn't my previous code work?

Regards,


-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] Local Video Window and VU meter

2006-08-02 Thread jon
Hi,
 We are looking for a resource to build a simple 320x240 video window that
displays an uncropped image from a local camera source, along with a
simple VU meter that displays the level from a local microphone. Pretty
basic. If you got the chops, drop me a note and we'll make something
happen. Include your rate, any samples and an estimate of effort to be
considered. We would like this done in the next 1-2 weeks.

 Thanks.

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

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


Re: [Flashcoders] 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] Another random number generator

2005-10-28 Thread Jon Bradley

Thanks, Jim (nice blog content you got btw).

I found that linking to a .as file didn't work on Wordpress, so I've 
changed the file type to .txt. It's downloadable now, sorry about that.


And if anyone else is reading this thread... someone has to know (or at 
least know who to ask) why Flash can't handle the 32-bit and 53-bit hex 
values, 0x1 and 0x20. I don't know if Tinic U. 
follows Flashcoders, so maybe I'll drop him a line to see if he can 
offer up a reason or two.


cheers.

Jon


On Oct 27, 2005, at 6:10 PM, Jim Armstrong wrote:


At 05:32 PM 10/27/2005 -0400, you wrote:


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


This is always useful.



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


thanks and good work!

- jim


___
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;i<3;i++)
  for(j=0;j<3;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 (;i<3;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] Profiling the clients CPU

2005-10-31 Thread Jon Bradley

What I'm wondering is the doing something timeconsuming part - I need a
simple operation that will be reasonably consistent across player 
types - is

there any operation that *hasn't* been improved or that has always been
fast? The target player is FP6 (pre 6.65), so I need an operation that 
will

be consistently slow or fast on every player since then

Has anyone done this much?


I've found that just testing a simple for loop may sometimes be worthy 
to profile the users' machine.


t = getTimer();
for (i=0;i<1;i++) { }
r = getTimer() - t;
trace(r);

(r < 40) ? trace("fast"):trace("slow");

This is just going to test AS execution speed, not redraw. Redraw is a 
different game that usually needs to be dealt with separately. Even my 
dual G5 may be 'slow' when profiling redraw speed using an older 
player.


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;i<3;i++){
matrix2[i] = [];
for(j=0;j<3;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] How to draw a copy of a curve?

2005-11-03 Thread Jon Bradley

On Nov 3, 2005, at 12:44 PM, Gregory_GOusable wrote:


Unfortunately, this is not appropriate for me :-( .
Also, I've just found the answer (negative) here:
http://www.faqs.org/faqs/graphics/algorithms-faq/

Thanks to all who tried to help.


You mean to draw a parallel curve? Not with bezier, but with cubic 
curves you can - and you can approximate a cubic curve with a set of 
bezier curves, so the result is close enough ( <<<1pixel difference 
from original curve normal).


As you were checking the graphics gem FAQ, I don't think you worded 
your question accurate enough for people here to help out.  Maybe 
rephrasing what you are looking for may lead to better responses?


cheers,

jon

Jon Bradley
http://www.magicsnacks.com/shiftedpixels

___
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] Registration points

2005-12-29 Thread Jon Bradley


On Dec 29, 2005, at 9:11 AM, Danny Kodicek wrote:

Thanks to all for your comments. That's very helpful - although now 
I'm possibly even *more* confused about how to make this work...


Best
Danny


Simple and effective suggestion - make sure all content in movie clips 
starts at 0,0.



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


[Flashcoders] Flash File Question - AS2.0 - Adding Extra Functionality to a Slider

2009-10-16 Thread Jon Billett
Hello! I am new to the flashcoders community. Thanks for welcoming me!

Unfortunately at my job, I am unable to attach files in my email so I had to
upload an .fla to senduit.com
http://senduit.com/ed40e7

So, I have a fairly mid to high range skill level in AS2. I am scripting a
bar chart that dynamically expands bars to their size based on percentages.
The trick is also that a ton of information needs to go in a small banner ad
(Pharma company - go figure!) There is a long list of variables that need to
be in this bar chart, not all viewable at once, hence why I need to build a
slider to go along with it. This is currently just using dummy graphics so
that I focus on getting the coding down pat before I stylize it.

I am happy with how everything is working. It was previously built with JUST
a slider bar. Now the client would also like to add UP AND DOWN ARROWS along
with the slider. While I have found a few examples online of .fla's that
have something like this built in them, I would like to implement the arrows
using the code that I already have built. I'm stumped on how to coordinate
my pre-existing slider code with arrows. Remember when pressing/rolling over
an arrow button, not only does the content have to move up or down, but the
slider needs to move on its track in accordance with where the content is
loaded.

The arrow graphics are on there, instance names of "btnUp" and "btnDown".
The AS is one the top level of the timeline. The sooner I can get this, of
course, the better.

Thanks so much guys! Looking forward to being a member of flash coders.
-J

-- 
--------
Jon A. Billett

Graphic/Interactive Design


726 Tasker St. Apt.#1
Philadelphia, Pa 19148
jonbill...@gmail.com

585.315.6696 - cell

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


Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Jon Bradley
You can embed a range of characters through AS3. The unicodeRange  
property of the embed directive handles this.


[Embed(source='pathToFond', fontName='NameOfFont',  
unicodeRange='Range1Start-Range1End,, RangeNStart-RangeNEnd')]


- jon


On Feb 11, 2010, at 6:35 AM, Geografiek wrote:


Hi Glen,
I don't think it's possible to embed a range of characters through  
AS3.

It's all or nothing I'm afraid/
Willem van den Goorbergh

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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Jon Bradley

It's an Adobe AIR application running on an unknown tablet device.

It's not an iPad and has nothing to do with it. Someone made a mistake  
with the copy for the article.


FYI, it's not impossible to do this in other languages or  
environments. There are other, more powerful frameworks that are  
robust for UI development and multi-touch systems than Flash.



- jon


On Feb 16, 2010, at 7:55 PM, Ktu wrote:

Looks like a great example of how Flash with AIR can create  
experiences that

would otherwise be impossible. Too bad it will be on the iPad.


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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Jon Bradley
I think the statement was justified... this is Flashcoders. I just  
wanted to state that developing UIs like that isn't limited to Flash,  
that's all. :)


After doing more research, it's entirely possible that this is running  
on an iPad. We just can't tell from the video if that really is, in  
fact, the case. Whether or not it's an iPad though doesn't mean much  
in the context of the coolness of the application itself.


I think any technology could be used to develop an application like  
this - from WPF/SL, Flash to more complex environments using Cocoa,  
openFrameworks and .


That last comment though – whether or not it makes sense – is probably  
the largest unknown. I can see many reasons why choosing Cocoa would  
be better than choosing Flash, in the case of iPhone development. Or,  
in the case of a windows platform target, I can see reasons why WPF/SL  
or Surface would be chosen.


I think we're all past the question of 'what framework/kit/language  
can we do that in?' If given the time, we can do pretty much anything  
in any language.


I like to think that these days, it's the hardware that limits us.

- j



On Feb 16, 2010, at 9:47 PM, Ktu wrote:

My mistake for saying such a strong statement. Of course there are  
other
frameworks available to do the same thing. Glad its not actually an  
iPad.


I think I'm just glad to see Flash being used for more than just  
flashy
websites and games. Flash can do a lot more than I see it get credit  
for on
a day to day basis. (And I know flash is used for more than just  
websites.

I've developed quite a few things outside the website realm)

I would like to see it in my hands to evaluate the usability. In  
theory it
could be brilliant but yes, people will have to warm up to it, and  
it will

have to be standardized.

Strictly out of curiosity Jon, would anyone actually choose a  
different

framework to develop this type of application? Does it make sense
considering development life cycle and platform availability?

Ktu


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


Re: [Flashcoders] @#$% New iPhone Developer Agr eement Bans the Use of Adobe’s Flash-to-iPhon e Compiler

2010-04-12 Thread Jon Bradley
I wouldn't call that amazing – I would call that whining. No offense  
to Lee, of course.


Although all of us would love to develop iPhone and iPad applications  
using the Flash platform, frankly that is not a proper methodology for  
developing for these systems, in my opinion.


Learn C, C++ or Objective-C. They are not that hard, you have much  
more control and you are not at the beck and call of a translation  
governed by something like LLVM, which you have no control over.


- j


On Apr 12, 2010, at 5:00 AM, allandt bik-elliott (thefieldcomic.com)  
wrote:



thanks lee brimelow for this amazing post
http://theflashblog.com/?p=1888


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


Re: [Flashcoders] @#$% New iPhone Developer Agr eement Bans the Use of Adobe’s Flash-to-iPhon e Compiler

2010-04-12 Thread Jon Bradley
I would never recommend an enterprise client to take that direction.  
Want to do a little game or don't care much about being able to debug,  
or have to rely on a middle-man? By all means that's fine but clients  
I deal with generally would not appreciate that direction.


This whole thing has nothing to do with Adobe. Too may folks are  
taking this personally. I guess I am not as passionate as others in  
the Flash community about this. I'll move along and develop however  
it's accepted. Again, it's their device and their platform.


Apple creates excellent consumer devices and is a market worth  
targeting, regardless of the limitations they impose. They are not  
standing alone in their decision to limit the way software is written  
for their devices. Blame them or not, they have the right to choose  
that path. Of course, they will also have to deal with the  
consequences of those decisions.


my 0.02.

- j

On Apr 12, 2010, at 11:45 AM, Glen Pike wrote:

IMHO, I don't think people have an issue with the correct  
methodology of making apps - if that were the case we might still be  
in the dark ages of development.  Flash gave and still gives a lot  
of people the power to develop ideas for programs quickly, without  
having to wade through rubbish like DirectX and other stuffy system  
API's.


If I want to develop crap applications for the app store, I should  
be able to do it in the language and on the system of my choice.


If I want to develop good applications for the app store, I should  
go and buy some books on the language and system of my choice, then  
develop aforementioned apps.



Your point about the compiler maybe true, but hey, there are plenty  
of people writing compilers out there.  Surely it's my choice  
whether I write something that runs like a snail and does not make  
any money.


Jon Bradley wrote:
I wouldn't call that amazing – I would call that whining. No  
offense to Lee, of course.


Although all of us would love to develop iPhone and iPad  
applications using the Flash platform, frankly that is not a proper  
methodology for developing for these systems, in my opinion.


Learn C, C++ or Objective-C. They are not that hard, you have much  
more control and you are not at the beck and call of a translation  
governed by something like LLVM, which you have no control over.


- j


On Apr 12, 2010, at 5:00 AM, allandt bik-elliott  
(thefieldcomic.com) wrote:



thanks lee brimelow for this amazing post
http://theflashblog.com/?p=1888


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




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



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


Re: [Flashcoders] iPhone viable solutions???

2010-04-30 Thread Jon Bradley


On Apr 30, 2010, at 3:19 AM, Julio Protzek wrote:


HTML5 is less powerfull than Flash. But it is in the right way.
We will see Tweeners and TweenLites done for canvas in no time.  
Flash guys

can amuse with any technology.
Just give us some time :)



HTML 5 is s standard for describing content to be rendered in some  
runtime. It is not something that can be compared to Flash at this  
time. It may be compared to another specification, say the SWF format.


The combination of all browser technologies into one runtime is  
something that may be compared to Flash, but comparing HTML 5 and  
Flash is not applicable.


Fact remains:

There is no way today, or in the foreseeable future, to develop an  
application using HTML 5, CSS, Javascript or ANY combination of these  
technologies that can compare interactively or creatively to an  
application developed with Adobe tools.



- j

___
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=Design&extdesigner=Darkest%20Star&extproduct=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=overview&project=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


Re: [Flashcoders] all useless: removeMovieClip, destroyObject, DepthManager.setDepthTo

2008-09-03 Thread Jon Bradley


On Sep 3, 2008, at 2:16 PM, Mendelsohn, Michael wrote:

I can't seem to figure out in AS2 how to get V2 components off the
stage.  I've tried destroyObject, removeMovieClip and even used the
DepthManager class to try to get the depth within range to be removed.
It's showing as -32000.

Any ideas how to get the movieClip off the stage?


This might help.

http://board.flashkit.com/board/showthread.php?t=702902

I have never used DepthManager and createClassObjectAtDepth, or  
createClassObject ... mainly because they suck. So, I've never had a  
problem because I've always just casted any v2 component as a  
MovieClip in any AS2 class (I never needed code completion on them).


good luck with that one.

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


Re: [Flashcoders] Dynamic Scrollable textfield

2008-09-04 Thread Jon Bradley


On Sep 4, 2008, at 12:50 PM, Lehr, Theodore M (N-SGIS) wrote:


Thanks, but I am talking about having it scroll, not just be
multilined... Ideally, I would like to do it as simple as a div  
does in

html (style="overflow:auto; height:400px;") is there a simple way like
this in as?


TextFieldInstance.scroll

and

TextFieldInstance.maxscroll

Only works if the field is set to multLine. You need to generate your  
own scrollbars, or if using AS2 link a UIScrollBar instance to it (or  
use a TextArea component).


You don't get any automatic scrollbars with text fields in Flash,  
only text fields themselves. For anything with scrollbars you need to  
use components.


cheers,

Jon

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


Re: [Flashcoders] avoid red-eye effect library in photographs made in actionscript - possible?

2008-09-09 Thread Jon Bradley


On Sep 9, 2008, at 5:06 AM, Claudio M. E. Bastos Iorio wrote:


Hi, is possible the subject?
Is there any library/algorithm to avoid the red eye effect in a
photograph made in actionscript? I'm working on AIR, so access to file
system is covered.
If not, has any of you tried some library/solution? Any
help/link/idea is welcome. I'm making my research on this but can't
find anything..


As far as any libraries available, I'm not aware of anything  
particular.  Here's one example online (not good quality, but it  
works sorta).


http://pixelfumes.blogspot.com/2005/11/red-eye-removal-with-flash-8.html

Automatic red eye removal is very complex. You'll first need an  
algorithm that will find the eye in a photograph. Be careful here,  
there are quite a few patents that cover various techniques for  
finding eyes and facial features automatically.


good luck,

jon


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


Re: [Flashcoders] TextArea class properties

2008-09-09 Thread Jon Bradley

On Sep 9, 2008, at 12:05 PM, Merrill, Jason wrote:


Have you tried selectable = false?


I think it might be:

textAreaInstance.enabled = false;

Getting rid of the focus rect is generally a separate issue though,  
but when the component 'enabled' property is set to false, the focus  
rect shouldn't show.


- jon


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


Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Jon Bradley


On Sep 24, 2008, at 9:57 AM, Claus Wahlers wrote:

Hey Claus, one of the reasons I can't use it is because of its  
inability

to work with a .zip file created on Mac OSX.


AS3 Zip from nochump avoids the alder32 issue by implementing the  
deflate() mechanism in software.


http://nochump.com/blog/?p=15

It's not as fast as the native bytearray methods though (which only  
works in AIR anyway).


The only thing you might have to deal with is re-writing the parsing  
routines so that you don't get a script timeout error on large zip  
archives. I had to do this recently for a project.


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


Re: [Flashcoders] LMS -- Moodle

2008-10-17 Thread Jon Bradley


On Oct 17, 2008, at 11:42 AM, Cor wrote:

Can anyone tell me how to read and write to Moodle (SCORM 2004 3e  
edition)??


Every hint is welcome!


What are you trying to do?

Moodle is just a CMS system at it's core. What do you want to write  
back to Moodle?


If it's test results and whatnot:

http://docs.moodle.org/en/Flash_module

As far as any API, I can't really offer any suggestions. See if there  
is any API plugin available to read-write additional content to it.


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


Re: [Flashcoders] LMS -- Moodle

2008-10-17 Thread Jon Bradley


On Oct 17, 2008, at 2:10 PM, Cor wrote:


Just a CMS???
I thought it is L(C)MS.
The main thing we are looking for is a LMS.


Itis an LMS - but it's still a content management system.

Either way, you just need to figure out how to communicate to Moodle  
to do what you want to do, if it's not something already out of the box.


It can take Flash modules, and the link I provided shows you how to  
pass data to the system through a custom PHP script. If it's not  
provided, you'll have to write your own server code to do what you need.


Look at the Moodle site and see what you can find out.

- j


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


Re: [Flashcoders] Flex Builder: AS Application files outside of /src root?

2008-11-04 Thread Jon Bradley

Hmm I haven't had the time to check this one.

But, content in the src folder doesn't need to be 'added' as an  
individual source path to your application. So, for other application  
files (AS) you may want to add explicitly the source path of it's  
parent folder to the project properties (ie, src/com/yourcompany/ 
applicationname/). Then, you might be able to add that file as a  
separate application.


Otherwise, I'm not 100% certain.

- jon

On Nov 4, 2008, at 7:13 AM, Henry Cooke wrote:


Something that's been bugging me for a while: why can only AS files in
the root of a Flex Builder project's source folder be nominated as an
application?

Like, I've got a bunch of classes all neatly packaged up in packages
inside /src, but in the Project / Properties / Actionscript Properties
dialog, upon clicking "Add", these files do not appear in the tree
view of possible files to add.


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


Re: [Flashcoders] Congratulations America.

2008-11-05 Thread Jon Bradley
Yea ... now we can all look forward to a re-incarnation of the  
Welfare State.


Yay.  :P

- jon


On Nov 5, 2008, at 3:57 AM, John McCormack wrote:


It's off topic, but it is a very special day.

You give us hope.
Hope that we can help each other.
This forum is also proof of that.

John


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


Re: [Flashcoders] How much would you charge?

2008-11-14 Thread Jon Bradley


On Nov 14, 2008, at 2:28 AM, Carl Welch wrote:

Good point. I'd recommend using SlideShowPro. It's cheap ($29),  
looks slick, and you'll be done in no time - your client will be  
none the wiser and you'll be $350 richer.


http://slideshowpro.net/



At least there will be an email post in the public domain that shows  
exactly how "not" to rip off a client.


:P

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


Re: [Flashcoders] How much would you charge?

2008-11-14 Thread Jon Bradley


On Nov 14, 2008, at 9:30 AM, Eric E. Dolecki wrote:

Not sure thats really ripping them off considering they probably  
don't know

how to use the thing even if they bought it themselves.


Well, yea.

Charging setup, installation and customization of some store bought  
product is one thing. Just selling back with the minor effort it  
takes to add images to SlideShow Pro is dishonest.


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


Re: [Flashcoders] How much would you charge?

2008-11-14 Thread Jon Bradley


On Nov 14, 2008, at 12:27 PM, Carl Welch wrote:

using tools of the trade is far from ripping clients off.  
Ridiculous statement.



It's not ridiculous at all. Read my reply to my initial email where I  
elaborated a bit more.


The comment about a client being 'none the wiser' and the implication  
that you're just making the extra dough by handing off some crap  
someone else did is what's not cool.


The point was, if you're repackaging something that someone already  
did without any value add, then that's dishonest. Hands down, end of  
story.


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


Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-16 Thread Jon Bradley


On Dec 14, 2008, at 8:04 PM, Ashim D'Silva wrote:

Right. I recreated everything slowly in a new file, introducing  
things one
by one and here's the culprit - Advanced Anti-Aliasing.Now I really  
would
like to use advanced, because text looks dramatically better, but  
there has

to be a solution, doesn't there?


The issue affects more than just static fields (with hovers). It  
dramatically affects applications where users are allowed to rotate  
and scale dynamic text fields. In that instance, the kerning, leading  
and character positions are offset and randomly jump around in value.  
The kerning is the worst - as a field is scaled the kerning will jump  
anywhere between 0-2 em on the characters ... randomly between each.


The only work around is to have the text field rotated by a small  
amount (0.01, for example). I submitted this bug to Adobe quite while  
back, along with the 'workaround.'


Sorry to be the bearer of bad news. At least you can give the  
rotation of the field a shot. You may need to use AS to set the  
rotation via a Matrix.


var m:Matrix = new Matrix();
m.rotate(0.01);
myTextfield.transform = m;

The rotaion might need to be tweaked a tad - I don't have my bug app  
open right now to check out the exact value that I ended up using.


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


Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-17 Thread Jon Bradley


On Dec 16, 2008, at 10:49 PM, Ashim D'Silva wrote:


I always round everything I place. That was one of the first things I
checked. Rotated bitmaps and text often have this problem, which is  
fair

enough because half pixels don't exist.


Actually, they do. The native coordinate space for Flash is a twip,  
which is 1/20th of a pixel. The rasterizer in Flash has to do some  
funky stuff anyway with rotated content.


There are some really annoying display bugs in Flash for this -  
consider a nice vector shape that's rotated through AS very, very  
slowly. You'll actually see it jump around when zoomed up. I  
discovered this one when rendering content for a 1080p animation  
project ... so annoying.


One of the most interesting tests  is to create a rounded rectangle  
and add a 1 pixel border line around it. Notice it looks funky and  
isn't smooth. Position the rounded rectangle on a half pixel (+0.5 on  
x and y). It's all nice and smooth again.


cheers,

jon

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


Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-17 Thread Jon Bradley
Mostly on rounded rectangles and things with arcs. Kinda limited but  
the rounded rectangle is a unique case because 1-pixel rounded rects  
have always been a problem.


Course, with the 0.5 rule, not so much (unless you're tweening).

best,

jon


On Dec 17, 2008, at 4:41 PM, Ashim D'Silva wrote:

Now that is odd. Is 0.5 the general rule to follow or is it simply  
different

for every object you put down?

2008/12/18 Jon Bradley 

One of the most interesting tests  is to create a rounded  
rectangle and add
a 1 pixel border line around it. Notice it looks funky and isn't  
smooth.
Position the rounded rectangle on a half pixel (+0.5 on x and y).  
It's all

nice and smooth again.

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


Re: [Flashcoders] Flash vs. Flex libraries

2008-12-23 Thread Jon Bradley


On Dec 23, 2008, at 5:10 PM, Jason Boyd wrote:


1. Can Flex libraries (mx.*) be used in Flash CS3/4? Is this as simple
as adding source files and/or SWCs to an FLA project's classpath? And,
where are all these libraries (Windows XP or Vista)?


Yes.

http://labs.wichers.nu/2007/12/25/using-flex-compiled-code-within-flash/

Theoretically, you can use every Flex library and component within  
Flash. It's all SWF bytecode in the end. There are some tricks to  
placement of SWC files from the Flex library at the root of your  
source FLA to get it to recognize and compile the code.


It's just very awkward and very difficult to manage in any larger  
scale application.


I actually requested something on flexcoders quite a while back and  
'lo and behold the author of this blog responded and added some  
additional examples to his description of how to get the RPC classes  
in Flash.


http://labs.wichers.nu/2007/12/25/using-flex-compiled-code-within-flash/

There are a couple other posts on that blog that may help you along as  
well.


cheers,

jon

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


Re: [Flashcoders] Fuse Kit Sequence

2006-10-18 Thread Jon Bennett

I usually do it like this...

mport com.mosesSupposes.fuse.*;
ZigoEngine.register(PennerEasing, Fuse);

this.mcOne._alpha = 0;
this.mcTwo._alpha = 0;

var dur=3;
var delay=.5;
var ease="easeOutQuad"

this.mcOne.tween(["_alpha","_x"],[100,400],dur,ease,delay);
this.mcTwo.tween(["_alpha","_x"],[100,300],dur,ease,delay);

Your end property value(s) are supposed to be a number or array of numbers.


doh, should've realised that :)

thanks,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Fuse kit: tweening xscale / yscale += not =

2006-10-20 Thread Jon Bennett

hi,

I'm building a Map application, for which I'm using Fuse to control
the zooming etc.

I have a series of moviecips, which trigger the zooming, and I need
the map to zoom to exact co-ordinates, eg:

// set basic map props
map._x = 50;
map._y = 50;
map._xscale = map._yscale = 25;

// works as expected
mc.onRelease = function ()
{
  map._x = 50;
  map._y = 50;
  map._xscale = map._yscale = 90;
}

I'm trying to simulate the above with Fuse, so I tried:

var fSequence:Fuse = new Fuse();
var objTween:Object = {
  target:this.objRef.mcMap,
  x:50,
  y:50,
  xscale:90,
  yscale:90,
  time:3,
  ease:"easeOutQuad"
}
fSequence.push (objTween);
fSequence.start ();

but for some reason, the xscale values are being += to the existing
value, not overwriting as I was expecting.

This meant that rather than the map being scaled to 90%, it was in
fact being scaled to 115%!!

is it possible to make this igore it's current value, and instead base
it on 100%

thanks in advance,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Re: Fuse kit: tweening xscale / yscale += not =

2006-10-20 Thread Jon Bennett

I cross posted to the Fuse list and got an answer...


Unless you quote the value it should be absolute
not relative you are right. (btw you can use scale:90 to do both at
once)


AHH! well, that's probably it then, as these values are currently
coming from an XML doc! I tried the values hard coded into my class
and it worked flawlessly!

Which leads me to my next point. I have in my xml:



so my numbers are coming in as strings, and are therefore being
treated as relative values by Fuse, so I tried converting them to
numbers...

var intRegionX:Number   = objRegionXml.attributes.X;
var intRegionY:Number   = objRegionXml.attributes.Y;
var intRegionWidth:Number = objRegionXml.attributes.Width;
var intRegionHeight:Number = objRegionXml.attributes.Height;
var intRegionScale:Number = objRegionXml.attributes.Scale;

mcCountry.intRegionX = intRegionX;
mcCountry.intRegionY = intRegionY;
mcCountry.intRegionWidth = intRegionWidth;
mcCountry.intRegionHeight = intRegionHeight;
mcCountry.intRegionScale = intRegionScale;

but they're still being treated as Strings, any ideas how to do this?

thanks,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Re: Fuse kit: tweening xscale / yscale += not =

2006-10-20 Thread Jon Bennett

but they're still being treated as Strings, any ideas how to do this?


not to worry, got it...

var intRegionX:Number   = new Number (objRegionXml.attributes.X);
var intRegionY:Number   = new Number (objRegionXml.attributes.Y);
var intRegionWidth:Number   = new Number (objRegionXml.attributes.Width);
var intRegionHeight:Number  = new Number (objRegionXml.attributes.Height);
var intRegionScale:Number   = new Number (objRegionXml.attributes.Scale);

thanks,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Re: Fuse kit: tweening xscale / yscale += not =

2006-10-20 Thread Jon Bennett

var intRegionX:Number   = new Number (objRegionXml.attributes.X);
var intRegionY:Number   = new Number (objRegionXml.attributes.Y);
var intRegionWidth:Number   = new Number (objRegionXml.attributes.Width);
var intRegionHeight:Number  = new Number (objRegionXml.attributes.Height);
var intRegionScale:Number   = new Number (objRegionXml.attributes.Scale);


the above wasn't quite right, didn't need the 'new'

jb


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Fuse kit: tweening xscale / yscale += not =

2006-10-20 Thread Jon Bennett

I've always been told parseInt() is better/more consistent to convert
numbers than Number()  - I've tried both and always had better results
with parseInt().


ok mate, looks like parseInt() it is!

cheers,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] tieing AS2 classes together, confused on approach

2006-10-24 Thread Jon Bennett

Hi,

I'm working on my first commercial AS2 project. It's pretty simple,
it's an interactive map, but really only a couple of classes at the
moment, but I think I could split them down a bit as in my previous
AS1 projects, I would have have broken things down into smaller
classes, that each listen to each other (and broadcast events etc).
Which brings me to my point, I'm a little confused as to how to tie my
classes together.

I have one class which is my menu, this is basically an accordian
style menu, which uses the FuseKit library for animation. I then have
a Map class, which is the graphics of the map, which also uses the
FuseKit class to control it's zooming. Both of these classes are
driven by the same data set, a single XML file, which I'm parsing into
an Object using Sepiroth's xml2object class.

Whilst testing I've been importing my classes etc from the same
location as my fla, using an .as file, but I now want to move all this
logic in an AppController class, which loads  handles all the imports,
parses the xml, instanciates my objects etc, but I've having some
trouble doing so.

If I have 3 classes: App.as, Map.as, Menu.as - should I only import
App.as in the first frame of my movie, and let the App class import
the classes it requires, or should I  import all required files
manually? Whichever way I do it, how can I place my files in a sub
directory in the folder I'm working in (like 'classes')?

Both Map.as and Menu.as use the FuseKit classes, do I need to import
them for each class, once in the App class or once in the first frame.

If this is all a bit hypothetical, I'll post some code ;)

Thanks in advance!

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] tieing AS2 classes together, confused on approach

2006-10-24 Thread Jon Bennett

I have a similar application that I wrote in ActionScript w/ mtasc. I
have a class that corresponds to your app.as class. I do all of my
imports there. The app.as class instanciates the map.as and all of the
UI stuff. Since I didn't use the IDE, my app.as class has a main method.
I used an event model similar to the Java swing event model to control
what happens when files load or buttons are clicked. I don't know if any
of that is useful. You can look at the app here:

http://www.flashmaprealtor.com/


so I can do:

// classes
import com.mosesSupposes.fuse.*;
import Menu;
import Map;

class App {

   private var objMenu:Menu;
   private var objMap:Map;

   function App ()
   {
this.objMenu = new Menu ();
this.objMap = new Map ();

ZigoEngine.simpleSetup(Shortcuts,Fuse,PennerEasing);
   }
}

Will my Map and Menu classes then have access to the Fuse Kit ?

Thanks,

Jon


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] EventDispatcher and Delegate - where am I going wrong...

2006-10-26 Thread Jon Bennett

Hi,

I'm knocking up some simple tests to get EventDispatcher and Delegate
working, but I can't seem to get my rather simple example to work:

// MyButton.as

// EventDispatcher
import mx.events.EventDispatcher;
// Delegate
import mx.utils.Delegate;

class MyButton
{
public var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;
public var dispatchQueue:Function;

private var mcButton:MovieClip;

function MyButton (mcButton)
{
EventDispatcher.initialize (this);
this.mcButton = mcButton;
this.init ();
}

function init ()
{
this.mcButton.objRef = this;

this.mcButton.onRelease = function ()
{
Delegate.create(this.objRef, onClick)
}
// clearInterval(timeInt);
}

function onClick ()
{
dispatchEvent ({type:'click', target:this, message:'Hey dude the
button was clicked'});
}

};


// ButtonListener.as

// EventDispatcher
import mx.events.EventDispatcher;
// Delegate
import mx.utils.Delegate;

class ButtonListener {

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

private var myButton:MyButton;

function ButtonListener ()
{
myButton = new MyButton(_root.mcButton);

myButton.addEventListener('click', Delegate.create(this, 
onClick));
}

function onClick (eventObj)
{
   trace(eventObj.target);
   trace(eventObj.type);
   trace(eventObj.message);
   trace(eventObj.time);
}
};


// Timeline
import MyButton;
import ButtonListener;
var myButtonListener = new ButtonListener();


I'm sure it's something blindingly obvious, but how do I get my
ButtonListener class to hear the 'click' event ?

Thanks,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] EventDispatcher and Delegate - where am I going wrong...

2006-10-26 Thread Jon Bennett

it seems you are mixing two approaches.



approach 1)
this.mcButton.onRelease =  Delegate.create(this, this.onClick)

approach 2)
this.mcButton.objRef = this;
this.mcButton.onRelease = function ()
 {
this.objRef.onClick();
}


yep, certainly was!

thanks, option 2 it was, as I need to set some vars in the class

many thanks!

jon


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

hi,

I'm scaling a large-ish MovieClip to specific width/height
combinations. Within this MovieClip I have numerous link MCs, which I
want to keep at 100%, regardless of their containing MovieClip's
width/height, and the maths involved has me a little stumped!

some example code:

// attach map symbol from the stage (_width: 744 _height: 445)
var mcMap:MovieClip = this.attachMovie ('map', 'map', 20);

// attach link within mcMap (_width: 140 _height: 21)
var mcLink:MovieClip = mcMap.attachMovie ('link', 'link'+1, 200);

// example function
_root.onPress = function ()
{
  mcMap._width = 2710;
  mcMap._height = 1620;

  mcLink._xscale = mcLink._yscale = ARRGGHH!
}

I need a formular to obtain the scale to set to the the link MC so it
stays it's original size, but I'm stumped as to what it is, anyone got
any ideas?

Thanks!

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

So in general to keep a child scaled at 100% independents of its parents,
you need to divide 100% by the result of multiplying all its parent's scale
factors.

Eg, to keep e at 100%, you'd scale e to : 1/ (
a.scale*b.scale*c.scale*d.scale/100^4)


so My original MC is 744 px wide, and I scale it so it's width is
2710, which is a scale of 364%, which means I need to scale my links
to, umm...

also long day, brain's super fuzzy, sorry for being a dullard!

Thanks!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

> So in general to keep a child scaled at 100% independents of its parents,
> you need to divide 100% by the result of multiplying all its parent's scale
> factors.
>
> Eg, to keep e at 100%, you'd scale e to : 1/ (
> a.scale*b.scale*c.scale*d.scale/100^4)

so My original MC is 744 px wide, and I scale it so it's width is
2710, which is a scale of 364%, which means I need to scale my links
to, umm...


I've tried:

var intMapScale:Number = mcMap._width / 744; // width = 2710
var btnScale:Number = intMapScale / 100;

that can;t be right though, as it gives me a tiny number, any pointers
as to where I've gone wrong?

Thanks,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

yeah my example was downscaling, while you are upscaling:).
var intMapScale:Number = mcMap._width / 744; // width = 2710 // 364% (3,64)
so btnScale is 100/intMapScale.

Imagine mcMap._width had been 1000 and original was 500, you'd have 1000/500
= 200%
so btnScale 100/200% is 50.

Note about the percentages, they make for easy errors. Multiplying/dividing
by one hundred too many, tends to give awesome, though wrong, results:).


thanks Hans, have totally sussed it now!

wicked.

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scale MC using another MC as registration point

2006-11-08 Thread Jon Bennett

Hi,

I've built a simple location plotting app. It consists of a map, in a
scrollpane, which you can zoom to different percentages, move a dot
around (the dot is not inside the scrollpane, but locked to its
dimensions), and a textfield outputs the x and y co-ords at 100% using
globalToLocal.

This works fine, the problem is though that when you zoom in, it zooms
in from the registration point of the map in the scrollpane, which is
at 0,0. The client has requested (and it does make sense!) that when
the map scales, it does so using the dot as the registration point,
anyone got an idea how I can go about this?

I'm sure it's possible, but my math is failing me (again!).

many many thanks,

Jon
--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Framework ARP vs PixLib

2006-11-08 Thread Jon Bennett

i gotta say, even though it makes it a little more difficult to pick one to
go with, I'm really glad to see all these different frameworks out there.


I wish I'd thought to look out for them! especially since I recently
adopted cakephp for all my php apps, that's made my life a whole load
easier - I'm sure an AS framework would do the same (once I've figured
them out ;))

jon


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scale MC using another MC as registration point

2006-11-08 Thread Jon Bennett

The math for this is luckily just algebra and doesn't require any
complex trig or calculus, and there are a few different ways to do it.
This might help you on your way:

http://www.darronschall.com/weblog/archives/54.cfm


looks perfect, thanks!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scale MC using another MC as registration point

2006-11-08 Thread Jon Bennett

> The math for this is luckily just algebra and doesn't require any
> complex trig or calculus, and there are a few different ways to do it.
> This might help you on your way:
>
> http://www.darronschall.com/weblog/archives/54.cfm

looks perfect, thanks!


umm, thought it was perfect - but after a couple of hours, I'm still
struggling to get it to work, I've put the fla online, if someone's
got a sec to look through, I'd really appreciate it!

http://jben.net/temp/dynamic_reg_test.zip

thanks!

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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:Framework ARP vs PixLib

2006-11-08 Thread Jon Bennett

I currently also use CakePHP for the back-end and pixlib for the client-side :)


ahh, got anytihing you care to share?!?!?!??!?!?!?! nothing major,
just something real basic for me to look through, no worries if not
though :)

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] scale MC using another MC as registration point

2006-11-09 Thread Jon Bennett

umm, thought it was perfect - but after a couple of hours, I'm still
struggling to get it to work, I've put the fla online, if someone's
got a sec to look through, I'd really appreciate it!


sorted it!

was a combination of having a central registration point on the
affected clip, not using the scrollpane, and having the DOT inside the
affected clip - works flawlessly now :)

thanks,

Jon


--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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
* Author        Jon 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 time&M, 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;

[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


[Flashcoders] brain is dead: Syntax Error, why?

2007-02-06 Thread Jon Bennett

Hi folks,

been away from Flash for a couple of months, why can't I have a
directory structure like the following for my project:

/project
/project/core/Folder1/Folder2/

import core.Folder1.Folder2.App

**Error** /project/firstframe.as: Line 2: Syntax error.
import core.Folder1.Folder2.App;

actually, whilst I'm on this, what do you guys use as a common project
structure to start with? I'm still a bit AS1 centric I fear, and would
appreciate some guidance.

thanks,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] brain is dead: Syntax Error, why?

2007-02-06 Thread Jon Bennett

Have you defined:

class core.Folder1.Folder2.App
{
   //
}

At that location to import?

I would suggest the Java style:

com.company_name.project_name.package.class


that's what I've been doing!

I have a folder, which is Version1

inside that I have my FLA

bia_region_map.fla

Then I have a folder called 'as' which has an as file 'firstframe.as'

then, I have the following structure:

com/3Sixty/BIARegionMap/

inside of which I have:

class com.3Sixty.BIARegionMap.App
{
   //
}

does that help?

Where am I going wrong!

thanks,

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] brain is dead: Syntax Error, why?

2007-02-06 Thread Jon Bennett

Good luck! If all else fails, post your code in a zip and we'll take a look.


ahh, got ya.

Think I'm going to go a quicker route, because I've only got till
morning to sort this job (and it's only small!).

I'll be back though soon for help getting this all correct.

Thanks all!

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] 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  elements, then parse the text of these nodes,
applying styles (or adding classed  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  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


  1   2   >