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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
free flash maker 5 222
Adobe Presenter not Publishing Slide Theme 17 136
Download Adobe Flash Player 6 71
Create animated movies for web page 18 165
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

732 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