Posts Tagged ‘flash lite’

local shared object

Monday, May 25th, 2009

I am currently trying to figure out how to use a local SharedObject in Flash Lite to store the users’ scores and avatar choices. It seems to be writing to the phone’s hard drive ok but I can’t get it to read them back.

Here is the list of sites that I’ve found helpful so far:

  1. http://www.kirupa.com/developer/mx/sharedobjects.htm - provides a good intro
  2. http://www.permadi.com/tutorial/flashSharedObject/index.html - talks about some scenarios where it will and won’t work and has a good tutorial
  3. http://forums.adobe.com/message/1985522;jsessionid=1710A33F13972826B52B34BA64B967AA.node0
    I was having a problem not being able to read the SharedObjects I was saving. This URL and the next one helped me
  4. http://www.adobe.com/devnet/devices/articles/persistent_data.html - This tutorial helped me get my SharedObjects working

woohoo – found info on using Google Maps with Flash Lite!

Saturday, May 23rd, 2009

ok – so I haven’t read it through yet… but I’m just so excited… I had to blog it!

On this web page:

http://wiki.forum.nokia.com/index.php/Displaying_GPS_position_using_Google_Maps_images_in_Flash_Lite

I think we’ll find instructions on how to use Google Maps with Flash Lite! Yay!

How cool is that!

 

loving the learning – ellie.

Using Python with Flash Lite

Friday, May 22nd, 2009

For my Gotchi-Sim project (which incidentally, I’ve renamed back to Making Friends), I’m going to see if I can get GPS and text-to-speech working with Flyer (an open source python framework for Flash Lite developers). Only problem has been that I don’t have a phone with an up to date Symbian OS. Good news! I’ve found two web-based emulators that allow you to test your mobile products on phones on the web. One of them looks like a pay-for solution – however it gives you a free 21 day trial and the other is put out by Forum Nokia. You do have to book time on them to use them but I think this could be really useful.

I just had a bit of play with the Forum Nokia one. I used the N79 device which is a Symbian S60 3rd Edition, Feature Pack 2 device. Flash 3.0 is preinstalled – so my 2.1 application, should work ok.

So…. the two URLs for the emulators are:

http://www.forum.nokia.com/ –> http://apu.ndhub.net/ - this one is the free one where you reserve time.

www.deviceanywhere.com

…so now I have to figure out:

(1) how to install Flyer

(2) how to get it and Flash Lite to talk to each other!

Good luck to me!

which handsets support Adobe Flash Lite?

Saturday, May 16th, 2009

It seems I keep losing this bit of information – so thought I’d post it to my blog before I forget.

To find out what mobile phone handsets support Adobe Flash Lite, go to:
http://www.adobe.com/mobile/supported_devices/handsets.html

Some other pages that may be of use include:

Flash things I learnt tonight

Wednesday, May 6th, 2009

Here are a few things I learnt this evening – I should have remembered them as I’ve done them all before… but over time you forget things! If only I’d been blogging back then!

 1. How to load a movie clip or graphic from the library

To do this, you first must right click the object in the library and choose Linkage.
Then check the export for actionscript box
Give the object a name (best if it doesn’t have spaces)
Then to load the object in ActionScript, use the attachMovie command.

Example:

attachMovie(”headMovie”, “avatar”, this.getNextHighestDepth(), {_x:10, _y:5, _xscale:40, _yscale:40});

2. how to mirror something in actionscript

For my movie, I wanted to create a mirror image of the eyes. To do this, set the _xscale to an appropriate negative value.

3. how to append a variable name to the end of a string so that it can be used to indicate a specific variable

Use the eval command.

Example:

eval(”_root.item” + counter)

4. how to do multiple things on the one object

Use the with command.

I actually used this in conjunction with number 3 and the reason I did it is I didn’t know how to tell my actionscript to tell _root.item1, then _root.item2, then _root.item3 to go and stop and different playheads… especially when I wanted the end of the variable name to come from a variable called counter.

Example:

   with (eval(”_root.item” + counter)) {
      _visible=true;
        attachMovie(”headMovie”, “avatar”, this.getNextHighestDepth(), {_x:10, _y:5, _xscale:40, _yscale:40});
        attachMovie(”hairMovie”, “hair”, this.getNextHighestDepth()+1, {_x:10, _y:5, _xscale:40, _yscale:40});
        attachMovie(”eyesMovie”, “eye1″, this.getNextHighestDepth()+2, {_x:35, _y:25, _xscale:40, _yscale:40});
        attachMovie(”eyesMovie”, “eye2″, this.getNextHighestDepth()+3, {_x:30, _y:25, _xscale:-40, _yscale:40});
        attachMovie(”nose”, “nose”, this.getNextHighestDepth()+4, {_x:30, _y:35, _xscale:40, _yscale:40});
        attachMovie(”mouth”, “mouth”, this.getNextHighestDepth()+5, {_x:27, _y:50, _xscale:40, _yscale:40});
       
       
   }

New Discoveries about Flash Lite

Friday, April 24th, 2009

I’ve been having some problems getting the sound to play properly on a Nokia 6300 phone whereas it’s been playing fine on Windows Mobile. I’ve found out that the Nokia 6300 is a Series 40 Nokia phone and it has Flash Lite 2.0 installed on it instead of Flash Lite 2.1. What I’ve read indicates that it should still work though – and it’s not… so I’m going to dowm more investigating.

I currently have a post on the Adobe forum about it.

I just found out about a beta Flash Packager for Nokia phones. I’ve just uploaded my application to it and will see if it works soon! So exciting!

ok – just discovered that the Flash Packager won’t work on my Nokia 600. It only works on Series 40 Nokia’s that are Fifth edition with feature pack 1 or newer. The phone I’m working with is 3rd edition with feature pack 2. I think I’m just going to have to get another Nokia phone!

navigating the conversation tree

Friday, April 17th, 2009

I’ve got the XML data loading in my Flash movie now and the first items pop up in the conversation box. The two sites that I posted in my previous blog entry were extremely helpful!

Now I have to get the game to respond correctly to user input from a mobile phone. Whilst I have done this in Flash Lite before, it’s been a while… and I’ve never done it with Flash Lite 2.1 – only Flash Lite 1.0.

This web page has some great video tutorials that are really helping me. I’m hoping I’ll be able to get the key presses working basically before I go to sleep tonight. The guy speaking in the tutorials has an Aussie accent which is kinda cool. It’s nice to hear a familiar accent when you’re watching videos on the web – doesn’t happen that often. I did notice that he says the word “gonna” an awful lot! lol