So there were a variety of problems that came up when I tried to put the animations into the augmented reality Flash files.
Firstly, the animations would appear with a black rectangular background instead of a transparent one, which looks sort of bad because it makes the mushrooms look more like a video than a character that you’re holding, which isn’t the desired effect. So, I asked Matt how he managed to retain the transparency of his videos and found that it was as easy as ticking an “Encode Alpha Channel” box when converting the movs to flvs.
Then the main problem that then caused many other problems was that the video/sound files would play even before the marker was held up and wouldn’t stop playing when the markers were put away. All the marker managed to do at this point was make the video visible and invisible depending on whether or not it was held up. I tried my best to find out how to get the video to stop and start at the right time, but the code was too complex to figure out. So, I spoke to Adam, as he has very extensive knowledge of Flash and he understood what was going on with the code so he told me that my easiest option was to import the sound separately into each Flash file and just use some much simpler code to tell the sound to stop and start at the right times. Thus, I rendered out versions of the animations that were transparent with no sound and then added sound to each Flash file and with Adams help, managed to get the marker to trigger the sound and video at the right times!
However, we did encounter a few errors along the way, such as, for some reason when we first imported the sound, the initial code we used just made the sound loop every frame, so it played the track twenty five times per second! So, after much experimentation we managed to get it to work, which was very satisfying!
So after figuring out how to get it to work perfectly on one Flash file, I then applied that to the seven other Flash files, resulting in eight Flash files; each with a mushroom animation in!
The video below shows one of the Flash files working!
(VIDEO)
Now all I need to do it check that this will work on eight different computers at uni and also print out eight markers on paper, as markers on paper are supposed to work a lot better.








