A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: making AS inside a MC perform

  1. #1
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212

    making AS inside a MC perform

    im builing a website the loads external .swf from the main movie. now im no pro so i cant get the external movie's action script to work.

    if the external movie is called "section3.swf" and the rollover has a instance name of "how" how do i make it perform its rollover????

    i thought it would b something like so

    section3.swf.how.onRollOver = function(){
    section3.swf.how.gotoAndPlay("overIt");
    section3.swf.how.back = false;
    section3.swf.how.play();
    }

    section3.swf.how.onRollOut = function(){
    section3.swf.how.back = true;
    }

    any suggestions?

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    You would have to do that coding in the section3.swf and then compile it.
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212
    sorry but im a rook. whats compile? and what part of the code in section3 needs to b edited

  4. #4
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    in the section3.swf place the code you want:
    how.onRollOver = function(){
    how.gotoAndPlay("overIt");
    how.back = false;
    how.play();
    }

    how.onRollOut = function(){
    how.back = true;
    }

    Compile just means publish the SWF.
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  5. #5
    Senior Member
    Join Date
    May 2005
    Location
    Canada
    Posts
    212
    perfect. thanks alot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center