[Flashcoders] Hiding MD5 shared secret

2006-09-20 Thread Toon Van de Putte

Hi,

I'm building a Flash game that'll store a player's score in a database. To
make sure the posts are coming from the swf, we're using MD5 to hash some
(variable) player data together with a shared secret.
This works fine, until someone downloads and decompiles the swf, and finds
the shared secret.
Do you have any best practices for hiding the shared secret as much as
possible? I don't know enough about how the Flash IDE compiles swf's to
figure this out on my own.

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

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


[Flashcoders] mpg to fla conversion

2006-08-30 Thread Toon Van de Putte

I've been looking all over the internet for a tool that will convert a batch
of mpg files to flas with (oldskool) video symbols in their library,
preferably with the option to have sound as a separate symbol. Flash itself
can batch-convert to FLV, but that's not what I need as I need some overlay
effects done in the IDE and cue points are simply too unreliable.
The only tools that I've come across are 3-4 years old and seem to date from
the time when you couldn't import video into Flash, so quality isn't up to
par.
Anyone got any ideas? If anyone could code such an app, i'd be willing to
pay for it.

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] Decoding xml text w/no CDATA allowed

2006-07-26 Thread Toon Van de Putte

That does appear to be the case,  i tried the following:

textfield.htmlText = currentPand.firstChild;

which shows 'bthis is bold/b' instead of bold text

On the other hand, this:

textfield.htmlText = currentPand.firstChild.nodeValue;

Shows the text in bold, as would be expected. So i suppose using nodeValue
automatically decodes the entities.


On 6/7/06, Merrill, Jason [EMAIL PROTECTED] wrote:


Thanks Ryan, that's what I was looking for.  So this must be a failing
of XFactorstudio's Xpath classes - and Flash's xml.parseXML() or
nodeValue does the decoding automatically?  Or does anyone know a way to
get Xfactorstudios Xpath classes to decode entities?

Jason Merrill
Bank of America
Learning Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Ryan Matsikas
Sent: Wednesday, June 07, 2006 11:30 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed

Why not let flash do the work for you?

function convertEntities(p_str:String):String {
var x:XML = new XML(p_str);
x.parseXML();
return x.firstChild.firstChild.nodeValue;
}

var xmlStr:String = 'itemThis is the quot;String I want in
quotesquot;
please help./item';
trace(convertEntities(xmlStr)); // This is the String I want in
quotes
please help.


On 6/7/06, Merrill, Jason  [EMAIL PROTECTED] wrote:

 Jim - I tried out your static class and it works great for my
problem -
 thanks!

 Jason Merrill
 Bank of America
 Learning Technology Solutions







 -Original Message-
 From: [EMAIL PROTECTED]
[mailto: flashcoders-
 [EMAIL PROTECTED] On Behalf Of Jim Cheng
 Sent: Tuesday, June 06, 2006 6:39 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Decoding xml text w/no CDATA allowed
 
 Merrill, Jason wrote:
 
  Is there an Actionscript 2.0 or Xpath equivalent to Javascript
and
  Actionscript 3.0's
 
  decode(theStringWithquot;Specialquot;Characters);
 
 Hey Jason,
 
 I've run into the same issue about a month ago with XML documents
that
 a
 client had generated from their database, character entities
included.
 
 I couldn't find a built-in solution for converting the character
 entities back into Unicode characters, so I went online, found the
 specs, wrote a little scraper utility to grab the mappings for me
and
 then wrote a small utility class to use the data for encoding and
 decoding. It's a simple static class with inline JavaDoc-style
 documentation.  Hope this works for you.
 
 You can grab it here:
 
  http://dev.psalterego.com/CharacterEntity.as
 
 
 Regards,
 Jim
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Toon Van de Putte
Pannenhuisstraat 63
2500 Lier
Belgium

mobile: +32 (0)497 52 74 51

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

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


[Flashcoders] looking for experienced freelance Actionscript developers

2006-03-01 Thread Toon Van de Putte
preferably with some design skills too, for a +- 15-day project.
We would like you to work at our offices in Antwerp, for easier
communication.
If you're interested, just send me an e-mail at toon [at] amphion [dot] be
and include some (links to) work samples.

--
Toon Van de Putte
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading consecutive swfs into the same holder movieclip

2006-02-02 Thread Toon Van de Putte
I'm sure this problem has cropped up before for lots of people, so I'd like
to know what your approaches are for solving it:

I have a navigation bar with buttons that each load a different swf into the
same holder movieclip. These swf's are quite large, so they take a while to
download.
Now, whenever a user clicks on a number of navigation buttons in quick
succession, this potentially messes up the whole navigation, because the
previous loadmovie actions are not aborted by the new loadmovie.
What happens is this:

click on button A - loading of swf A is started
click on button B - loading of swf B is started
B has completed loading first
Then A completes loading and replaces B
navigation now shows button B as active, but swf A is being shown.

Is this something the MovieClipLoader class can resolve? Are there any other
good approaches for making sure it works as it should?

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: SV: [Flashcoders] Microsoft Sparkle

2006-01-25 Thread Toon Van de Putte
3D on the web is a niche market at best. So are all '3d desktop' metaphors.
It doesn't simplify the user experience one bit, quite to the contrary. As
long as computer screens are flat surfaces, 3D desktop interfaces and 3d
websites will never have the ease of use, flexibility and editability of a
traditional 2D window metaphor. 3D is not the solution to desktop clutter,
good interface design is.
Sure, doing 3D-ish stuff in Flash is cool, but it has almost no real-world
use. There are some 3D kitchen and bathroom designers out there, but that's
about it. This whole 'virtual 3D environment' idea as a website interface is
very, very dated. The 'feel' of being in a 3D richly textured space can be
emulated by using 2.5D with parallax scrolling and clever use of (edited)
photographs, which is generally cheaper and faster than building a 3D world.
Most of the time, it's also easier to use, because it's flatter, as is your
screen.

On 1/25/06, Andreas Rønning [EMAIL PROTECTED] wrote:

 I couldn't give less of a crap about putting 3d on the web, and i'm
 pretty sure the average consumer agrees  with me. Content rules.
 I seem to recall Shockwave 3d not ever really taking off, and if 3d is
 the only thing sparkle has over Flash it ain't gonna do much good as a
 competitor.

 - Andreas

 David Skoglund wrote:
 so why does someone post it to this list ?
 
  Since it's going to be a direct competitor/alternative to Flash, and
 since
  it's pushed by Microsoft. Wether you like it or not you'll need to keep
 your
  eyes on what happening over there.
  Personally I think it's great to finally see a promising new standard
 for
  creating web 3d. Hopefully Adobe can create a competitive 3d-solution to
  integrate i flash, but looking at Acrobat 3d I'm not impressed, and they
  stopped developing Shockwave 3d a long time ago (still the best solution
  despite lack of updates last 5 years).
  /David
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
Toon Van de Putte
Pannenhuisstraat 63
2500 Lier
Belgium

mobile: +32 (0)497 52 74 51

[EMAIL PROTECTED]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash website statistics

2006-01-23 Thread Toon Van de Putte
Hi,

I'm looking for something that can generate clean Flash site statistics.
Currently, we're using the stats package the hosting company provides, but
its output is not especially practical.
Our websites are generally built around a central canvas.swf file that loads
all the pages as swf files.
We can see those as downloaded files in the stats interface, but any
querystring parameters are omitted, which is a bit annoying.
Being able to track screen resolution would also be nice. With existing
stats packages, we can only track screen resolution by including some
special gif in the main page or something, which isn't particularly handy,
especially since that could all be detected from within Flash, together with
a whole load of other useful information like available microphone, webcam,
etc.
I've thought about building our own simple stats system using a database
call through PHP each time a new page is loaded, but I'm afraid it might put
too much of a burden on the database.

Has anyone got any experience with something like this?

Kind regards,

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Math question: find coordinates of a point

2005-12-27 Thread Toon Van de Putte
I'd already found the solution where you'd rotate the triangle until it's
base is horizontal, but unfortunately i know absolutely nothing about
matrices. Seems like an interesting subject, mathematically rotating shapes
is quite a useful skill.

Couldn't i adapt the 'circle-method' to AS? No idea how i'd figure out the
equation of these circles, but it should be possible, since i've got their
centre and their radius.

Thanks for the help so far, now i definitely now i need to get cozy with
matrices, however much i'm fearing the subject

On 12/27/05, Alan Shaw [EMAIL PROTECTED] wrote:

 On 12/26/05, Toon Van de Putte [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I've got a math question:
 
  How can i find the x,y coordinates of a point at a known equal distance
  from
  two other, known, points?


 Well if it is strictly a math question the most straightforward way
 might be analytic: solve the system of two equations
 for the circles of radius d about the two points, as shown at
 http://www.ping.be/~ping1339/circle.htm#Intersection-points-

 But I guess you might be wanting to find a code solution.  I think
 I have an idea:

 Use matrix operations to rotate the line connecting P1 and P2
 to horizontal and translate it to the X axis with midpoint at the
 origin.  Concat these operations into a single Matrix.

 The desired point(s) will now be found on the y axis with ordinate
 equal to + or - sqrt(d * d - x * x), where d is your desired distance
 and x is the current transformed abscissa of P2 (if d = x that is).

 The invert the matrix  and apply it to the points you found.

 What do you think?

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


--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Math question: find coordinates of a point

2005-12-26 Thread Toon Van de Putte
Hi,

I've got a math question:

How can i find the x,y coordinates of a point at a known equal distance from
two other, known, points?
I know this is an isosceles triangle  and i can probably figure out all the
distances by just using the Pythagorean theorem, but finding the actual x,y
coordinates is a bit tricky, since the two known points are not both on the
same axis, so it's a rotated isosceles triangle...
I'm having a look at Mathworld to figure it out, but any help would be
greatly appreciated.

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] jumpy horizontal motion

2005-12-22 Thread Toon Van de Putte
I think Ralph's problem there is that Flash hasn't finished redrawing frame
1, when it has to start drawing frame 2.
As for David's choppy animation, it's typical for too much animation in too
little time.
60 fps is way too high, 25 or 30 fps is more than enough for smooth
animation. The player won't be able to keep up 60fps for anything but the
simplest animations, so there's no use in trying it. This might explain the
choppy animation (at least partly), the player is just skipping frames.

On 12/22/05, Hauwert, Ralph [EMAIL PROTECTED] wrote:

 I've run into this several times now, with no solution as of yet.
 For some reason, when doing more heavy things on the graphical side of
 things, it seems like vsyncing is stopped. Like the renderer only renders
 half a frame. I did a demo for the Flash 8 launch, using optimizations
 using
 only bitmaps and scrollrect to scroll for instance, and still ran into
 this
 v-sync issue.


Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] IE vs Firefox performance

2005-12-22 Thread Toon Van de Putte
1.5 Does not remedy it, it's a Flash player issue.
I'm noticing a general flash player performance hit in Firefox. I think the
Firefox player runs less efficiently than the IE player, and is therefore a
bit of a resource hog. I can definitely notice a system-wide slowdown when
i'm running a number of Firefox tabs with Flash animations.

On 12/21/05, JesterXL [EMAIL PROTECTED] wrote:

 There was an old bug with Moz, but I remember people reporting Firefox
 would
 not give you enough CPU cycles, so you framerate suffered.  It was clearly
 posted as a Firefox problem, but not sure if 1.5 remedies it or not.

 Ref:
 https://bugzilla.mozilla.org/show_bug.cgi?id=106397

 - Original Message -
 From: Mike Boutin [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, December 21, 2005 2:46 PM
 Subject: [Flashcoders] IE vs Firefox performance


 I recently installed and have been using Firefox as my main browser.  I
 have noticed that all my flash sites  in firefox perform noticably
 slower than they do in internet explorer.  Is this an issue with firefox
 plugin itself or should I just go back to oh no internet explorer.


 Mike Boutin
 ___
 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




--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] jumpy horizontal motion

2005-12-22 Thread Toon Van de Putte
Maybe there is some threshold beneath which the player will refresh the
frame anyway? Some sort of minimum frame rate that is maintained at all
times, even if frames cannot be fully drawn.

On 12/22/05, Hauwert, Ralph [EMAIL PROTECTED] wrote:

 I realize that that is the correct analysis of my problem. Strangly
 enough,
 this isn't really how the flashplayer seems to work; since I am using the
 onEnterFrame to update, I shouldn't be able to go out of sync with the
 renderer. The render should send out an ontenterframe when it's done
 rendering a frame, draw the new one on a framebuffer, swap the buffers,
 and
 send out the event again.

 Ralph.

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Verzonden: donderdag 22 december 2005 16:45
 Aan: Flashcoders mailing list
 Onderwerp: Re: [Flashcoders] jumpy horizontal motion

 I think Ralph's problem there is that Flash hasn't finished redrawing
 frame
 1, when it has to start drawing frame 2.
 As for David's choppy animation, it's typical for too much animation in
 too
 little time.
 60 fps is way too high, 25 or 30 fps is more than enough for smooth
 animation. The player won't be able to keep up 60fps for anything but the
 simplest animations, so there's no use in trying it. This might explain
 the
 choppy animation (at least partly), the player is just skipping frames.

 On 12/22/05, Hauwert, Ralph [EMAIL PROTECTED] wrote:
 
  I've run into this several times now, with no solution as of yet.
  For some reason, when doing more heavy things on the graphical side of
  things, it seems like vsyncing is stopped. Like the renderer only
 renders
  half a frame. I did a demo for the Flash 8 launch, using optimizations
  using
  only bitmaps and scrollrect to scroll for instance, and still ran into
  this
  v-sync issue.
 

 Toon Van de Putte
 ___
 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




--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Pathfinding

2005-12-22 Thread Toon Van de Putte
Does anyone have a good implementation of a pathfinding algorithm,
preferably for a typical side scrolling adventure game type interface?

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] floating point

2005-12-07 Thread Toon Van de Putte
var i = 0;
var j= 0.8;
j*=10

onEnterFrame = function () {
   i = i + 1;
   trace (i);
   if (i == j) trace(here);
}

Or is that just not possible (ie you don't know how many decimal spaces j
will have)?

On 12/4/05, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi peeps,
 related discussions have been on here before, but i didn't find a real
 answer.
 Imagine this piece of code:
 var i = 0;

 onEnterFrame = function () {
 i = i + 0.1;
 trace (i);
 if (i == 0.7) trace(here);
 }

 as you might expect, after running for 7 frames, it traces here.
 However if you change 0.7 to 0.8, it stops working.

 I assume this is to floating point math and rounding errors and stuff?
 In what way can i check for equality to 0.7 then? With a bigger than,
 smaller than construction?

 This seems so weird to me...

 greetz
 Hans

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




--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] emoticons in a chat component

2005-11-24 Thread Toon Van de Putte
On 11/22/05, Karina Steffens [EMAIL PROTECTED] wrote:

1. Unembedded, it looks nice and crispy, but embedded there's a fuzziness to
 it, even with anti-aliasing switched off (in fact that looks even worse).
 Verdana didn't produce any better results. Should I use a different font,
 perhaps?


I know that up until MX 2004, pixel fonts have to be perfectly aligned with
the pixel grid not to anti-alias.
This means that your textfield should be positioned on an integer pixel
position, as seen from _root (ie x300 y400 and not x299.5 y400.2).
When your textfield is buried deep inside other symbols, trying to get this
figured out can be tricky, the solution that works best for me is to
dynamically create all text fields that need exact positioning.

In Flash 8, this problem no longer exists, thankfully.

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Swfs embedded in an email

2005-11-24 Thread Toon Van de Putte
On 11/24/05, Danny Kodicek [EMAIL PROTECTED] wrote:

  Standard practice is to put a link in the email pointing to the swf.

 Except that in my experience, no one ever clicks on them. Hey ho, thanks
 anyway.


That depends entirely on the rest of the copy of the e-mail. If you can
incorporate a personalised message into the swf file and hint at that in
your text mail, you'll get a lot more clickthroughs. The more personal and
'unspanny' it looks and feels, the more clicks you'll get

--
Toon Van de Putte
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders