Skip to main content
Participant
November 19, 2006
Question

Load Function

  • November 19, 2006
  • 2 replies
  • 214 views
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
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
November 19, 2006
what's the problem? (path is unused but that shouldn't cause a problem unless you think you're using it.)
Inspiring
November 19, 2006
in your root:

#include "Graphic Function.As"

JG

"^}{yPeR^" <christopherjack2k@hotmail.com> wrote in message
news:ejqapd$qi0$1@forums.macromedia.com...
> 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
>


___yPeR_Author
Participant
November 19, 2006
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

quote:

Originally posted by: Newsgroup User
in your root:

#include "Graphic Function.As"

JG

"^}{yPeR^" <christopherjack2k@hotmail.com> wrote in message
news:ejqapd$qi0$1@forums.macromedia.com...
> 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
>