Posts Tagged ‘flash’

data visualisation tools

Saturday, May 16th, 2009

I’ve been looking at developing the screen mockups for the conversation tree generator for our game. BTW – I’ve changed the name from Gotchi Sim back to Making Friends as I think that is more indicative of what the game is all about.

I have found some visualisation tools in Flash that may be useful if I ever get around to making the conversation tree interface. Without any further ado, here are the links:

I think I am most likely the only person who will ever read this blog post but just in case I’m not…. have you used any of the above tools? If so, could you leave me a comment to tell me what you thought of them?

Ellie.

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});
       
       
   }

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

Two helpful resources on Flash, objects & arrays

Saturday, April 11th, 2009

For the Gotchi-Sim project, I am planning to store data from an XML file into an array of objects.

I think these two sites will be helpful to me when trying to program that:

Complex data types: Arrays and Objects
http://flash-creations.com/notes/actionscript_complexdata.php

briening.com: Flash Data Structures: Array vs Object
http://briening.com/flash/flash-array-vs-object

using xml with flash

Sunday, April 5th, 2009

I am currently working through the best way to use XML with Flash. My previous experience has been in using text files with Flash – not XML files…. so I’m trying to find information about best practice before I dive in… I’m also trying to decide on the best structure for the conversation interchanges too – but that’s another story!

Here are some links that I’ve found helpful so far:

Peach pit guides (links to a series of articles on XML are near the bottom of the page)
Recursive functions & XML in Flash

more to come…

Peach pit recommends the XML fox editor.