blog

Tag Archive for solution at Jozef Chúťka's blog

November 15, 2009

11 Comments

9 slice scale Bitmap Flash Flex solution

9 slice scale for bitmaps in flash (no hacks)

9slice_result_flash

9 slice scale is a nice feature, but when you try to use 9 slice in flash ide on MovieClip with bitmap, you will notice a problem. It will just not work as expected. So first thing you try is “Break Apart”, with same result. You are almost there, but due to the solution is not documented you need a small hint: After break apart (ctrl + b), select each of nine slices one by one and group (ctrl + g) individually and voilà its done. See snapshot and result images…

Read the rest of this entry »

October 19, 2009

25 Comments

api Facebook facebook api JavaScript solution

FB.Connect.showPermissionDialog

Facebook dialog requesting permission to publish posts to a user’s feed.

If your facebook iframe applications need extra permissions granted, you can use Facebook JavaScript Api to generate modal window over your content to request permissions from users. For this purpose I created a simple FB_test_perm() function. It takes 4 arguments:

api_key – your application api key

xd_receiver – path to xd_receiver.htm file (Cross-Domain Receiver Page)

permission – publish_stream, read_stream …

callback – your function with boolean return (true if permission granted, false if not granted)

Read the rest of this entry »

October 12, 2009

1 Comment

browser crash Flash Media Server serialize SharedObject solution

SharedObject goes RangeError: Error #2006

If you keep getting RangeError: Error #2006: The supplied index is out of bounds. with SharedObject, you probably not gonna fix it. In my case this happend when I tried to write non primitive values too frequently into persistant SharedObject’s properties. After reconnect, before any event from your SharedObject dispatched, you get exception that will cause browser crash.

I was not able to solve it by excluding saving advanced objects, nor by using just simple Objects, AMF0 or AMF3, nor by any other method I imagined. To solve the problem I decided to write only serialized objects (strings) and deserialize again on client after synchronization.