*blog... kind of... *rss 



Understanding Flash Player Global Security Settings in just 20 steps
This is something I keep facing every time I develop a flash app on Windows. You'll get to the point that you want to access online data and the flash player will tell you that you are not allowed:

SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Documents%20and%20Settings/mrdoob/Desktop/hi%2Dres/jaegermeister/modules/deploy/TestSuite.swf cannot access Internet URL http://...


Then, at some point you'll Google the problem, and start trying things. Eventually you'll do this:

1 - Right click on the flash movie
2 - Click on settings
3 - Click on the second icon, the screen with an eye (!)
4 - Click on advanced

And if getting here wasn't confusing enough already, now you're presented with a internet page full of text text text.

5 - Click on Global Security Settings Panel on the left column.

Here it's The Almighty Global Security Settings Panel! I remember the first time I did this, it was like "WTF? I need to access a website to configure the Flash player ssetings?!". Ok, lets leave this aside.

You may have forgotten what we were trying to do at this point. I'll remind you, we want to access the internet from our flash app.

So we are on this window were we can add "trusted" locations. So:

6 - Click on Edit Locations... (?)
7 - Click on Add Location...
8 - Click on Browse for folder
9 - Select the folder were your flash app is
In this case mine is:

C:\Documents and Settings\mrdoob\Desktop\hi-res\jaegermeister\modules\deploy


And then you'll see the new item on the list. Great you say, and then you go back and try your flash app again.

- Blimey! it doesn't work!
- Why could this be?

You double check everything you have done from the start. It's all fine. Then you realise that on the error message you got, the folder path has another format. In this case it looks like this:

file:///C|/Documents%20and%20Settings/mrdoob/Desktop/hi%2Dres/jaegermeister/modules/deploy/TestSuite.swf


Now you're ready to continue the process:

10 - Click on the location you just added
11 - Click on delete location
12 - Click on confirm
13 - Execute your flash app again
14 - Copy the path as it appears on the error
15 - Go back to The Almighty Global Security Settings Panel.
16 - Click on Edit locations...
17 - Click on Add location...
18 - Paste the path you just copied
19 - Click confirm
20 - Test your app, cry in happiness, and go to sleep cos it's 6am already

You gotta love the attention to detail on User/Developer Experience that Adobe has some times.

9 comments
Succumbed to Twitter :S
http://twitter.com/mrdoob

I think it's a interesting way for logging dev progress and save useful links.

Thanks... ;)

no comments
Legal Age Verification with Actionscript
Here it's a quick snippet I had to do for this site I'm working on...

I did a quick google search to see if there was a snippet for it already but didn't find anything so I though I would share it here. I though it was going to be a nightmare job but ended up quite simple:

var legalAge : int = 18; // or 21
			
var userDOB : Date = new Date(year,month-1,day);
var today : Date = new Date();
			
var diff : Date = new Date();
diff.setTime( today.getTime() - userDOB.getTime() );
			
var userAge : int = diff.getFullYear() - 1970;
			
if (userAge >= legalAge)
	trace("lets get pissed!");	
else
	trace("go away!");

6 comments
What.CD invites anyone?
http://what.cd/

My ears need something new. Anyone happen to have any invite? :$

4 comments
Papervision3D Previewer 1.3
Trent Grover from iMed Studios missed some features and went ahead and did them himself. Once done he shared the code. I say, way to go! ;)



Here is the list of his changes:

  • updating to compile against PV3D public beta 2 (updated from svn on 09/02/01)
  • rewrote the camera system (too much has changed, but ends up simpler)
  • included loading for more model types (DAE, Ase, 3ds, kmz, MD2)
  • added animation playback for DAE and MD2 files
  • added model scale change via up and down arrow keys
  • mouse click selects current mesh for scale change

I cleaned the code (my part mostly) and made it FDT friendly. While at it I also cleaned the repository a bit.

2 comments
n0theen - 24/7 open source, netaudio stream


What I always wanted! \o/ Via Patécrème.

no comments
Sennheiser HD201


More and more people at Hi-ReS! are getting these headphones. We should get sponsored or something...

For their price (£15), the audio quality is pretty good, and the best feature, they are very lightweight and comfortable which is something hard to find even with the expensive ones.

3 comments
Following
One the right column you'll now see a list of all the feed's I follow. Uhm, on nevtibes didn't look like there were so many.

4 comments
Being economical is a sure way to be forgotten.
http://news.quelsolaar.com/#post36

Can't agree more. It also amazes me how he managed to structure the post/article so well.

no comments
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69