PDA

View Full Version : Help with website code



GTSRboy
08-12-2009, 10:29 PM
I am learning my way through website code. I will use this thread to post every time i have a question, as not many people know how to help. Right now i cant seem to get this to work....

Its a simple html page with a external css sheet.

EDIT: FIXED


body { color: purple }
body { background-color: #d8da3d }


here is the .php doc that is using it

<html>
<link rel="stylesheet" type="text/css" href="http://www.mcquaide.info/mcqstyle.css" />
<?php
$colors = array('red', 'blue', 'green', 'yellow');
foreach ($colors as $color) {
echo "Do you like $color?\n";
}
?>
</html>

W1zzard
08-13-2009, 05:12 AM
href="http://

css format is invalid .. no html tags, google will tell you more.

in your php file you close the body tag but you dont open it

GTSRboy
08-13-2009, 06:07 PM
Does anyone know how to hyperlink a button in Flash CS4, using Action-script 3?

Googleing hasn't helped me at all, aparently its a very complex process applying a hyperlink in action script 3 that involves writing out code [wtf?].

faster3200
08-14-2009, 01:51 PM
You could always use AS 2.0 if you want. I know I have to for more complex things since I am not as familiar with AS 3.0.

To make an on click link using a button (I am assuming this is what you want):

1. Make a button and give it a name (in this case button)
2. Make a new layer (call it AS if you wish)
3. In the new layer paste this into the actions:


button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.xtremesystems.org/forums/"));
}

That should work, simple enough.