A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Call function from action panel in second frame

  1. #1
    Junior Member
    Join Date
    Dec 2014
    Posts
    1

    Call function from action panel in second frame

    I am starting to learn Adobe Flash. I'm using Flash CS6.

    I have a file called `test.fla` and another called `bikertest.as`

    Bikertest has this code:

    Code:
        package as3.grey{
        	import com.grey.utils.Console;
        	//import com.grey.utils.ClickTag;
        	import flash.display.MovieClip;
        	import com.greensock.TweenNano;
        	import com.greensock.easing.*;
        	import flash.events.*;
        
        public class bikertest extends MovieClip {
        
        private var mc:MC;
        		private var console:Console;
        
        public function ray():void{
        	init();
        	trace("hi from here");
        	mc=new MC  ;
        	addChild(mc);
        }
        
        ....................



    I tried:

    Code:
      import as3.grey.bikertest.as;
        
        var t = new bikertest();
        
        t.ray();

    I want to be able to call `ray()` from the Action Panel in the second frame in `test.fla` . I hope this is clear. How can I do that? /Thanks!

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    not sure, looks okay, except for the import line, try removing .as

    Code:
    import as3.grey.bikertest;
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Banned
    Join Date
    Jun 2014
    Location
    US
    Posts
    9
    really not sure but looks not bad

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