Forum

> > Off Topic > Actionscript 2.0 für Flash8 Hilfe
Forums overviewOff Topic overviewLog in to reply

German Actionscript 2.0 für Flash8 Hilfe

4 replies
To the start Previous 1 Next To the start

old Actionscript 2.0 für Flash8 Hilfe

sOn_of_a_BirCH
User Off Offline

Quote
Hey leute ich such jemand der bisschen Ahnung von AS hat, bzw mehr als ich und da ich keine hab ist das schon viel.

Ich habe einen Banner mit flash erstellt und möchte nun das wenn ich drauf klicke das sich eine Seite im Web öffnet.

Das banner besteht aus 2 teilen

Aus einem Image (bzw hintergrund)
und aus einem Symbol das über den hintergrund hinwegzieh (Animation)

jetzt habe ich den hintergrund zu einem symbol typ movieclip konvertiert

actionscript geöffnet und click und getURL ausgewählt
und jetzt errort er nur rum

kann mir einer weiterhelfen?

das wäre was ich geschrieben hab
1
2
this.addEventListener("click",getURL(http://www.???);
);

Und die error message:
Quote
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
this.addEventListener("click",getURL(http://www.???);

Total ActionScript Errors: 1       Reported Errors: 1
edited 3×, last 28.05.09 05:12:33 pm

old Re: Actionscript 2.0 für Flash8 Hilfe

DC
Admin Off Offline

Quote
Benutze bitte [ code ] [ /code ] tags (ohne die leerstellen) um scripts/codes im forum vom normalen text abzuheben!

kA wie das mit dem event listener geht, aber wie wärs damit:
1
2
3
onClipEvent (mouseDown) {
	getURL("http://www.cs2d.com");
}
(natürlich dem movieclip direkt zuordnen und nicht einem frame im moveclip oder so)
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview