Groups | Blog | Home
all groups > flash actionscript > november 2006 >

flash actionscript : Load Function


Jose Guevara
11/19/2006 3:55:15 PM
in your root:

#include "Graphic Function.As"

JG

[quoted text, click to view]

Jose Guevara
11/19/2006 5:07:12 PM
No there is no way. Maybe what you want to look into is classes and OOP, you
will have a little more control, specially if you need to have more controls
later one with all your created movieclips etc....

JG



[quoted text, click to view]

^}{yPeR^
11/19/2006 7:20:13 PM
Hi,

How would I load this function from my Graphic Function.As file into the main
root

function displayDynamicGraphic (instanceName,xcoord,ycoord, path )
{
var nextDepth:Number=this.getNextHighestDepth();
_root.createEmptyMovieClip(instanceName,nextDepth)
target._x=xcoord;
target._y=ycoord;
instanceName.loadMovie();
}

Any help much appreciated

Chris
kglad
11/19/2006 9:00:19 PM
^}{yPeR^
11/19/2006 9:50:14 PM
Thanks for the reply JG,

So if I was to add another function in the Graphic Function.As it would load
that as well.
Is there any way to reference part of a as file rather than load it all ?

Many Thanks

Chris

[q][i]Originally posted by: [b][b]Newsgroup User[/b][/b][/i]
in your root:

#include "Graphic Function.As"

JG

[quoted text, click to view]


[/q]


AddThis Social Bookmark Button