Pages

open all | close all

Category

open all | close all

Archive

open all | close all

Meta

Recent Posts

Conference

July 2009
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031EC
View Morten Reinholdt's profile on LinkedIn
<head> web conference: October 24-26, 2008

Flash Security “Local-with-filesystem”

Normally when I am working on projects my projects are fairly small, loading some external xml, images, movies etc. and that is no problem getting around the Flash Players security by passing the compiler the -use-network=”false”

However when working on larger projects, using local xml and socket connection it is not enough to add the use-network=”false” as a compiler argument, than you will still get a “Error #2010: Local-with-filesystem SWF files are not permitted to use sockets.” error, to get around this one you need to add the swf file of your project to the Flash Players list of trusted files, if you are fairly organized you only have to add the path to the folder where you keep all your projects.

On os x go to /Users/your-user-name/Library/Preferences/Macromedia/Flash Player/#Security/FlashPlayerTrust

On Windows go to C:\Documents and Settings\your-user-name\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust

Here you’ll find a flexbuilder.cfg file, this is just a text file, open it in a text editor and add the path to the folder where you keep your projects, mine is /Users/morten/projects/ save the file and keep the .cfg extension and that is it!

  • Share/Save/Bookmark

Flash Player 10, 10 min fun Effect

Just played around with Flash Player 10 for about 10 minutes, I’m really looking forward to see what effects people are gonna be constructing whit the new x, y, z api :-)

download source

  • Share/Save/Bookmark

Flex Builder installing Ant

Ant is great there is so many task you can automate with Ant, but Flex Builder don’t support Ant out of the box, however since Flex Builder is based on Eclipse you can easy install it just follow these simple 5 steps and you will have Flex Builder with Ant.

Read more »

  • Share/Save/Bookmark

Flashorbit got a new suit!… finally

Finally i found time to setup a new design for the blog, there is still some corrections here and there ;-)

I have created a conference calendar in the right menu, I’ll try to put in as many “Flash Platfom” related conferences as possible, you can add it to your iCal or Goggle calendar to keep your conference radar up to date!

Hope you like it!

  • Share/Save/Bookmark

Single unique random number.

I can be very useful to be able to generate a random number, but occasionally we need a random number with in an range but not the last random number generated.

The following method takes 3 parameters, you can define the range by passing a minimum value to parm “min:int” and a maximum value in parms “max:int”

If you do not want a certain value you can specify that in “notValue”.The method is saving a random number and checks if that random number equals the notValue, if the random number is the same as the notValue it finds a new random number in an recursive manner and returns a random number that is not equal to the notValue! :-)

1
2
3
4
5
6
7
8
9
10
11
public function singleRandomInt(min : int, max : int, notValue : int = -1) : int {
 
		var intFount : int = Math.floor(Math.random() * max) + min;
 
		if (intFount == notValue) {
			return singleRandomInt(min, max, notValue);
		} else {
			return intFount;
		}
 
	}

Here is a test class using the singleRandomInt method.

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
package com.flashorbit {
	import flash.display.Sprite;
 
	/**
	 * @author morten reinholdt
	 */
	public class Test extends Sprite {
		public function Test() {
 
			trace ("randomValue : " + singleRandomInt(0, 10));
			trace ("randomValue not 5 : " + singleRandomInt(0, 10, 5));
			trace ("randomValue not 6 : " + singleRandomInt(0, 10, 6));
 
		}
 
		public function singleRandomInt(min : int, max : int, notValue : int = -1) : int {
 
			var intFount : int = Math.floor(Math.random() * max) + min;
			if (intFount == notValue) {
				return singleRandomInt(min, max, notValue);
			} else {
				return intFount;
			}
 
		}
	}
}

Trace results:randomValue : 8

randomValue not 5 : 0

randomValue not 6 : 7 

  • Share/Save/Bookmark

WOW almost a year sins last blog :-(

I’ll try to make up for this.

  • Share/Save/Bookmark

Papervision3D 2.0 public Alpha

Ralph Hauwert has just announced on his blog that the Papaervision3d is now released in a 2.0 public Alpha version, just 4 days after Papaervision3d first birthday as an open source project.


Get the code using SVN from Google code.

  • Share/Save/Bookmark

FOTB workshop “Game Development”

I am at the Flash On The Beach conference in Brighton, and right now at the “Game Development” workshop, the morning started with some overall game design followed whit some graphics, now the graphic part was not really me, but now we are doing the coding for the game :-) it is a bit basic bow man type of game.

  • Share/Save/Bookmark

Now introducing: Dexgames

My colleague  Barklund has just blogged about our project “DexGames” :-)

True to that, and I am really looking forward to “Dex Empire” the only thing that I can add to the description is “World domination” ;-)

read more | digg story

  • Share/Save/Bookmark

Adobe Max 2007 coming to Europe

It seams that adobe is giving Europe a little more attention this year by also making a Max conference in Barcelona, the conference is held from October 15 to 18.

Highlights:

  • Over 100 technical sessions organised in five tracks
  • Comprehensive training on Adobe products, services, and solutions
  • One-on-one interaction with Adobe certified experts
  • Hands-on access to Adobe products
  • Special networking events
  • I don’t know if I’m going!!!

    • Share/Save/Bookmark