We help IT Professionals succeed at work.

Flash Target not found: error, any suggestions welcome as to what is wrong with my AS?

surfjoe
surfjoe asked
on
203 Views
Last Modified: 2010-04-03
I am using the following action script to tween movie clips when entering a frame, the tween is done using the Fuse kit and the ZigEngine. The following action script is used on several frames works for all except for the first frame.

Here is a sample of the script...

import com.mosesSupposes.fuse.*;
ZigoEngine.register(Fuse,PennerEasing,FuseFMP);

// plays movie floor code tween

ZigoEngine.doTween(Home_MC2,'_x,_y', [0,-625], 1, Strong.easeInOut);
ZigoEngine.doTween(AboutSection_MC, '_x,_y', [0,0], 1, Strong.easeInOut);
ZigoEngine.doTween([newsRoom_MC,Clients_MC,oiadvertising_MC,recruitment_MC,oidirect_MC,ContactUs_MC,Portfolio_MC], '_x,_y', [0,625], 1, Strong.easeInOut);
      
//this swaps the depths
_root.x +=2;
// change movieclip ref below to current floor
_root.AboutSection_MC.swapDepths(_root.x);

when testing it in flash I get the following error out put and cannot work out why, I have no _mcHolder or mcContent in the flash file?

Target not found: Target="/AboutSection_MC/instance304/_mcHolder/mcContent" Base="_level0.AboutSection_MC.instance304._mcHolder.mcContent"

Dose anyone have any suggestions as to what is going wrong?

Many Thanks
Surfjoe
Comment
Watch Question

Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Hi thanks for this advice, the fuse kit / zigo engine is being used to script tweens instead of using the standard MX transitions for animating.

I am referencing all the clips by loading them onto the timeline at label frames, buttons within the movie then jump to a particular label and the action script for the animation is on thiskeyframe.

I think the error is probably as you suggested because the script is trying to happen befor the movie clip content is loaded/ or firing to quickly and therefore is missing the targeted content. What would be the easiest way to add a script to stop the action script from working before the content is loaded. I am loading extenal SWF files into a movie clip using the standard flash content loader component.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.