# Problems with as3 in flash CS5

**URL:** <https://forum.kirupa.com/t/problems-with-as3-in-flash-cs5/313318>\
**Category:** flash\
**Created:** [August 25, 2010, 9:28pm UTC](https://forum.kirupa.com/t/problems-with-as3-in-flash-cs5/313318 "2010-08-25T21:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunomiani](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@brunomiani](https://forum.kirupa.com/u/brunomiani)\
**Post date:** [August 25, 2010, 9:28pm UTC](https://forum.kirupa.com/t/problems-with-as3-in-flash-cs5/313318/1 "2010-08-25T21:28:03Z")

</div>

[COLOR=black][FONT=Verdana]Hi.[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]I’m talking from Brazil, so excuse me if my write is not so good.[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]I’m a photographer and I did all my personal website in flash cs5 with as3.[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]I made all the pages and at the index page a made a lens turn around and go to the left side of the page. Then appears the link bottoms. So, what I want to do is: when the person clicks at the portfolio bottom the page appears at the right part of the page.[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]When I tried to put as3 codes nothing happened. It appears this error code:[/FONT][/COLOR]  
[COLOR=blue]TypeError: Error #1010: Um termo é indefinido e não tem propriedades.  
at index\_fla::MainTimeline/frame85()[/COLOR]  
[COLOR=#0000ff][/COLOR]  
[COLOR=#0000ff]This is the code I used:[/COLOR]  
stop();  
function newvid(event:MouseEvent) {  
trace(“you clicked me”);  
var loadit = new Loader();  
addChild(loadit);  
loadit.load(new URLRequest(“perfil.swf”));  
}  
mcVazio.bt\_perfil.addEventListener(MouseEvent.MOUSE\_DOWN, newvid);  
function newvid1(event:MouseEvent) {  
trace(“you clicked me”);  
var loadit = new Loader();  
addChild(loadit);  
loadit.load(new URLRequest(“contato.swf”));  
}  
mcVazio.bt\_contato.addEventListener(MouseEvent.MOUSE\_DOWN, newvid1);  
function newvid2(event:MouseEvent) {  
trace(“you clicked me”);  
var loadit = new Loader();  
addChild(loadit);  
loadit.load(new URLRequest(“portfolio.swf”));  
}  
mcVazio.bt\_portfolio.addEventListener(MouseEvent.MOUSE\_DOWN, newvid2);  
function newvid3(event:MouseEvent) {  
trace(“you clicked me”);  
var loadit = new Loader();  
addChild(loadit);  
loadit.load(new URLRequest(“home.swf”));  
}  
mcVazio.bt\_home.addEventListener(MouseEvent.MOUSE\_DOWN, newvid3);  
[COLOR=#0000ff][/COLOR]  
[COLOR=#0000ff]I would love if you could help me.[/COLOR]  
[COLOR=#0000ff][/COLOR]  
[COLOR=#0000ff]thanks[/COLOR]
