Calling function within movieclip from _root level

Posted on 2006-06-09
Last Modified: 2010-04-03
Seems like a stupid question  but.....

1. I have created a movie clip
2. Inside that movie clip I have defined a function, in this case call it this

function TestDemo(ImageURL:String):Void {



3. I have created two instances on the _root level, named 'ClipOne' and 'ClipTwo'
4. When I call my function from the _root level like this:


Nothing seems to happen at all, I don't get the trace result at all.
Is there something stupid I have done, or can I not call a function like this in Studio 8? I did it all the time in Flash 5.....


Question by:butterhook
  • 2
LVL 14

Expert Comment

ID: 16869965
seems perfectly fine to me, i suggest you check your publish settings (file menu). Try to see if the "omit trace actions" check box is checked, if so, uncheck it.


Author Comment

ID: 16870020
Found the problem - I was attempting to call the function in the first frame of the _root timeline. Moved it to the second frame and it worked perfectly. Thanks
LVL 14

Expert Comment

ID: 16870035
good to know that you solved your problem :)


Accepted Solution

DarthMod earned 0 total points
ID: 17642140
PAQed with points refunded (500)

Community Support Moderator

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
air/as3 : is there a way to simulate TouchEvents? 1 404
Microsoft WSUS 4 91
Adobe Flash Player won't install on Windows 7 3 228
File conversion question 5 85
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now