Using FLARToolKit

So, never coded in ActionScript before. What to do?

Downloaded the starter kit from Saqoosha.net.

Went through the samples.

First step was to print out the marker that came with the started kit. Tested the SimpleCube sample. Everything works.

Now, try to generate a marker using my own image.

Found this online generator.

Substituted the name of my marker’s pattern in the code. Marker does not register now.

Why?

A little searching led to this:

new FLARCode( i_width:int , i_height:int , i_markerPercentWidth:uint = 50 , i_markerPercentHeight:uint = 50 );

I need to change the values passed to the constructor in the SimpleCube sample code because I had generated my marker with different settings.

After changing the values, the sample code works again.

Trying To Code

|

Comments (0)

Permalink

Help Me! I Can’t Replicate These Events.

I have been obsessing over two events that have happened when using Firefox. I tried to replicate them but only managed to do it once for each case but not able to consistently trigger the events. Please do help me see if you face the same issues.

The first event happens when I’m typing a URL directly into Firefox. For example, when I type “singaporedaily.wordpress.com” I get redirected to the search.com site. I tried to figure out why this was happening so I typed in “singaporedaily.wordpress.com.com” and got redirected to the same site. I then realized whenever I key in a subdomain of com.com, I would get redirected to the search.com site.

Here is the thing. I’m pretty sure the URL I’m typing is “singaporedaily.wordpress.com” so how is the ‘.com’ being appended to make it “singaporedaily.wordpress.com.com”? This doesn’t happen all the time when I manually enter URLs. In fact, it has only happened twice. How am I sure that I’m using the correct URL? I typed the URL into TextMate and copied it.
Has anyone experienced anything similar?

The other thing I’ve been trying to replicate has to do with this Flash app to display Flickr photos – PictoBrowser. PictoBrowser has a function that generates the code which you can use to embed a similar browser into your own site. The problem is this. When I try to copy the code (i.e. select the text, right click, choose copy), I got redirected to this page which details a Apple Quicktime exploit. When I saw this happening, I immediately backed to the previous page with the PictoBrowser and tried again. And I got the same page again. I tried a third time. Nothing happened. Code got copied.

I have been trying again and again and this event isn’t occurring anymore. So I’m wondering, has anyone ever been redirected to a page when trying to copy stuff off a Flash swf file.

Tangled Web We Weave

| |

Comments (0)

Permalink