Saturday, April 21, 2007

PP: Development Coding

This part of the development i am having major problems with and i know that i can work but getting the code to communicate with the server is a different story. I am starting to worry that it isnt going to be possible. I have encountered a number of hurdles. The first one being trying to get the buttons to work on the mobile when you use the right hand button on the top right of the phone, it goes to an in phone menu rather than allowing the user to select.

This was overcome by removing the select button and then just using the joystick to navigate and select the right options. The second problem that i have had is that the program that is given by streamload doesnt run on my computer so trying for find the .api code is becoming harder and harder to use.

I have found out that flash 2.2 the idea is to get the .api to write and .xml document of the file and the link so that it can be imported in to flash allowing the user to select the link they require so that they can stream the file that they wish to use. The main problem that i am facing is there is alot of coding at i feel it is going to take longer than the time i have atm. The main things that need to be coded are the following

1. Interactive Menu
I need to get the menu's to communicate with the server to allow the data to be represented within the table. This is going to be dynamic content so it needs to contact the server before it lists the files available.
Adobe XML driven photo gallery

the menu's were borrowed from this to save time in the coding sense to give an idea of what it was going to look like.

2. Streaming into the program its self.
When the user clicks a video file the file is retrieved from the server and in flash 2.2 you can do this by using this command.


play (Video.play method)
public play() : Boolean
video1.play( "http://www.macromedia.com/samples/videos/clock.3gp" );
This allows the player to stream the video into flash lite so that it can be viewed within the program.

Streaming music

This action script allows the program to play the music files with in the program. This would also have to corrospond with the buttons below and bring in the data from the songs.

on(press) {
canStreamSound = _capStreamSound;
if (canStreamSound) {
// play a streaming sound in a movieclip with this button
tellTarget("music") {
gotoAndPlay(2);
}
}
}
4. The upload menu.
This one is going to be tricky i think the easiest way to do this is that allows the user to sms the file to the server using this function. Flash lite allows this and would be a quick and easy way to implement it.

5. The login menu
The user name and login gives the user a chance to join the server for a short period of time. This would have to communicate with the server.

http://www.mediamax.com/webservices/screenshots.aspx?product=winapp

This shows more about the .api application that would be used to create this and login correctly i get the feeling tho flash may have to be integrated into something else to allow the entry i.e java or html.

Due to the shear complexity this shows how things can be accomplished within the actual project but unfortunatly on my own its going to take longer than expected to develop. I aim to make a prototype for the project and will continue looking at ways for building this when the course is finished because i will be unable to complete this come deadline.


Click Here
this gives a list of the commands available in 1.1

0 comments: