Skip to main content

AS3 1010 Responses

Last post: 5 years, 10 months ago | Thread started: Oct 7, 08, 4:40 a.m.

RespondNew TopicDisable Images

  • Haydesign

    Urgent help if possible.
    I created a banner in Flash.
    Stupidly i selected AS3 not knowing that it would effect much.

    So the link to my site doesn't work.
    Is there a way of converting the document to AS2 or can someone quickly tell me what the AS3 version of this is please.

    on(release){
    getURL("http://www.mysite.com" , "_blank");
    }

    Thanks.

    Oct 7, 08, 4:40 a.m. – Permalink
  • mikotondria3

    yourButton.addEventListener(Mous... MouseUp);

    function MouseUp(event:MouseEvent):void
    {
    var request:URLRequest = new URLRequest("http://mysite.com");
    navigateToURL(request);
    }

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 4:50 a.m. – Permalink
  • mikotondria3

    hrm... Mous... should be:
    "MouseEvent.MOUSE_UP", MouseUp

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 4:51 a.m. – Permalink
  • Haydesign

    Thanks mate! I'll try now.

    • Dude, AS3 is a different language. I'm practically outdated now after 11 years experience.CyBrain
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 4:55 a.m. – Permalink
  • Haydesign

    I still get this though?

    WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 5:07 a.m. – Permalink
  • Haydesign

    How do i just add a frickin link to a URL these days?
    *Anger aimed at Flash not helpers!

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 5:08 a.m. – Permalink
  • sixfngers

    take the code off of the button/movieclip.
    Make an blank keyframe on the timeline directly above where ever the cut and paste the code from where it is now and into that blank frame.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 5:12 a.m. – Permalink
  • sixfngers

    take the code off of the button/movieclip.
    Make an blank keyframe on the timeline directly above current frame then cut and paste the code from where it is now and into that blank frame.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 5:13 a.m. – Permalink
  • mikotondria3

    we all feel your pain, Hay - more often than not I think it would have been easier to get up to speed with 3.0 if I'd not spent the last few years blasting out 2.0 without really having to think...
    I have been helped greatly by the OReilly 'Essential Actionscript 3.0', and Lee Brimelows GotoAndLearn.com.. stick at it, it really is a far more grown-up language than the spasmodic paper and string of 2.0 :)

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 5:38 a.m. – Permalink
  • modern

    It's not a problem at all, simply go into publish settings and choose Actionscript 2 and do it as normal.

    You can't use AS3 on most banner systems anyway so advising Haydesign to do it the proper AS3 way is pointless.

    • Good point. I can't think of any of our vendors at work that will take Flash 9. Half won't even take Flash 7CyBrain1/2
      extremely true.
      Well done.
      mikotondria32/2
    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 7, 08, 5:53 a.m. – Permalink
  • Haydesign

    Oh man thanks Modern. You were late but priceless in your advice.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earOct 8, 08, 9:41 a.m. – Permalink

Login or Register to respond to this

Skip to main content