Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to create a simple website using AS3

New Here ,
Oct 18, 2008 Oct 18, 2008

Hi everyone. I am very new with AS3 and i am writing a project on how to design a simple website that will just display text, graphics and upload video using AS3. I am so so lost because i do not even know where to start from. Can anyone pls pls help me out here.
Thanks alot everyone in advance
TOPICS
ActionScript
638
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2008 Oct 19, 2008
hi good good .. i can help you but you need to start with something .. mabe write out you project plans .. and there are loads of person that will help you ..... What you know about AS so far
?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 19, 2008 Oct 19, 2008
thanks alot openParenthesis for replying.i know a little bit about eventhandling, textfields and other types of texts, but after looking at what my website should have they are not really needed.been looking for a way to get the codes to upload sound files and video files because those are the main thing my project needs.
Thanks alot openParenthesis
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2008 Oct 19, 2008
so what you waiting for ...get started .. and let me see what you have ..and we could take it from there..

let me see some codes;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2008 Nov 02, 2008
LATEST
Hi everyone, i tried working on sounds but i kept getting errors. heres my code:
package
{
import flash.display.Sprite;
import flash.media.Sound;
import flash.net.URLRequest;

public class SoundApp1b extends Sprite
{
public function SoundApp1b()
{
var mp3File:String = "LOVE.mp3";
mySound=new Sound();
mySound.load(new URLRequest(mp3File));
mySound.play();
}
}
}

but i keep getting access of undefined property mySound=new Sound();
access of undefined property mySound.load(new URLRequest(mp3File));
access of undefined property mySound.play();
Hi can anyone please help me out here because i really dont know what to do anymore.

Thanks in advance
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 19, 2008 Oct 19, 2008
"how to design a simple website that will just display text, graphics and upload video using AS3"

Ok, display text and graphics, easy. Upload video, not as easy. Upload video will require some backend code, like PHP, so it goes beyond Flash. The Flash part is fairly easy, but only if you understand the basics about event listeners (sounds like you do), objects, and making URL requests.

First of all, if you are making "simple website" I recommend that you:
1. Open Publish Settings, go to the Flash tab, and click "Permit debugging" - this will give you line numbers when an error occurs
2. In the same tab, click "Settings..." next to the "ActionScript 3.0" dropdown and uncheck "Strict Mode" -- this will make working with simple code in the timeline easier
3. Recognize that with AS3, development will take you longer than AS2. You probably won't see benefits that justify the added development time for using AS3 vs AS2, but it will be helpful if you intend to make more complex things in the future. Consider your goal.

To create text you can just use the text tools in Flash. If you want load text into Flash dynamically (good idea) using an .xml file or .txt file with url variables, then in AS3 you should learn about:
URLLoader
URLRequest
XML
Textfield.text and Textfield.htmlText
Giving Textfields and symbols instance names so they can be referenced in code
addEventListener and events such as "progress" and "complete" to react to stuff you load

For graphics, you can just add them in Flash as well. If you want to load in graphics at runtime (also a good idea when reasonable) then you should also look into the Loader class.

For uploading video, you will need to at least look into the FileReference class, which allows you use browse() to let the user pick a file off their system with a dialog box, and after adding event listeners to listen for when the user selects something, you use upload() to send it to a server. The server then needs to do something with it (write it to a file on the server, for instance), which they have some sample PHP code for in the help docs.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines