Skip navigation
budworld
Currently Being Moderated

trying to center my website, error 1093. please help

Apr 19, 2012 9:38 PM

Scene 1, Layer 'action', Frame 1, Line 241093: Syntax error.

 

import flash.events.MouseEvent;

 

 

stop();

 

 

function button1_clicked(e:MouseEvent):void{gotoAndStop("page1");}

function button2_clicked(e:MouseEvent):void{gotoAndStop("page2");

}

 

 

button1.addEventListener(MouseEvent.CLICK, button1_clicked);

button2.addEventListener(MouseEvent.CLICK, button2_clicked);

 

 

site.addEventListener(MouseEvent.CLICK,goThere);

function goThere(e:MouseEvent){

          var request:URLRequest = new URLRequest("http://www.youtube.com/user/TheBudWorld/videos");

          navigateToURL(request);

}

 

 

body {

    margin: 50;px 0;px;

    padding: 0;px;

    text-align; center;

}

 

 

div=#main {

    width: 600px;

    margin: 0px auto;

    text-align: left;

    padding: 15px;

    border: 1px solid #000000;

    background-color: #eeeeee;

}

 

 

Im still learning actionscript

 
Replies
  • Currently Being Moderated
    May 3, 2012 4:18 PM   in reply to budworld

    Everything you have from body down does not belong with your actionscript.  It is css styling code that goes in an html file in the head section within style tags.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points