Home Projects Flash CS3 Create a Simple Flash Site using AS3 in Flash CS3





Forgot your password?
Forgot your username?
No Account Yet? Create an account

Like it? Share it!

Add to: JBookmarks Add to: Facebook Add to: Windows Live Add to: Ximmy Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Information

Create a Simple Flash Site using AS3 in Flash CS3 PDF Print E-mail
User Rating: / 14
PoorBest 
Projects - Flash CS3
Written by drooza   
Saturday, 13 December 2008 02:15
Article Index
Create a Simple Flash Site using AS3 in Flash CS3
Creating Pages
The ActionScript
Example
All Pages

Ever just need that starting foundation?  Here's a quick one to jump-start some flash developing.  This tutorial will show you how to create a simple flash site using AS3.  Many products can developed from this simple flash site "engine".  A full flash site, or a simple slideshow, are a couple of examples.

 

 

 

Setting up the .fla file

First, create a new ActionScript 3.0 file. Then add a several MovieClips to the stage - I created a rectangle and converted it to a MovieClip, then held CTRL while clicking and dragging the new symbol, creating 4 instances on the stage. I named these instances page1_mc ... page4_mc.

 

MovieClip instanced added to stage

 



Comments
Add New Search
Anonymous (173.32.82.xxx) 2009-02-15 08:26:42





design
mohamed idris (122.164.203.xxx) 2009-03-13 21:30:14


you dont describe well
kayla (164.236.0.xxx) 2009-08-27 08:13:37

you place the code but you dont explain where to put it, what object, what it
means, what it does or anything.
Felippe (200.201.179.xxx) 2010-05-24 05:51:18

I'm trying to insert more buttons, but isnt work.

Already created 3 news
instances (page5_mc, page6_mc and page7_mc)

Like that:

const PAGE1:int =
0;
const PAGE2:int = 1;
const PAGE3:int = 2;
const PAGE4:int = 3;
const
PAGE5:int = 4;
const PAGE6:int = 5;
const PAGE7:int = 6;

...

var
currentSlide:int = 0;
var pageArray:Array = new Array();
pageArray[PAGE1] = new
Page1();
pageArray[PAGE2] = new Page2();
pageArray[PAGE3] = new
Page3();
pageArray[PAGE4] = new Page4();
pageArray[PAGE5] = new
Page5();
pageArray[PAGE6] = new Page6();
pageArray[PAGE7] = new
Page7();

...

setButton(page1_mc, PAGE1);
setButton(page2_mc, PAGE2);

setButton(page3_mc, PAGE3);
setButton(page4_mc, PAGE4);
setButton(page5_mc,
PAGE1);
setButton(page6_mc, PAGE2);
setButton(page7_mc, PAGE3);

When i create
the swf shows it in Compile Errors:

1180: Call to a possibly undefined method
Page5.
1180: Call to a possibly undefined method Page6.
1180: Call to ...
drooza (SAdministrator) 2010-05-24 06:08:21

In this version you have to create new MovieClip instances and Export for
Actionscript as Page5, Page6, and Page7
I have a problem
Jajcys (62.87.204.xxx) 2010-07-26 02:02:40

I do as you say and my buttons dont works. When i download your .swf file, in my
computer, not working too.
drooza (SAdministrator) 2010-07-26 02:53:15

got example code or .fla?
When
Jajcys (78.8.77.xxx) 2010-07-26 04:50:01

I downloaded your .fla file. And when i open in Adobe Flash CS5, and Published
to a html and .swf file i see "website" but buttons dont work.

Thanks
for fart reply and sorry for my bad English
drooza (SAdministrator) 2010-07-26 05:04:19

Thanks for bringing that to my attention. I'll have to test it with CS5 and
maybe post a new zip for it.
Jajcys (62.87.204.xxx) 2010-07-27 00:52:13

Let me know when you test it
just tested
drooza (SAdministrator) 2010-07-29 04:57:44

I just tested it using Flash CS5/Win 7 with no problems. I just downloaded the
.fla and ctrl+enter (test movie) and it worked for me. Do you see any errors
going on?
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
:angry::0:confused::cheer:B)
:evil::silly::dry::lol::kiss:
:D:pinch::(:shock::X
:side::):P:unsure::woohoo:
:huh::whistle:;):s:!:
:?::idea::arrow:
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Tuesday, 16 December 2008 22:55 )
 

Make a Donation!

Advertisement
Banner

HomeProjectsSnippetsContact Me

Copyright © 2008, Drooza.com