Skip to main content
Inspiring
Jul 11, 2021 7:38 PM UTC
Answered

Error 5000 flash.display.MovieClip

Hello i have a problem with all of my actionscript files they all say they need to subclass flash.display.MovieClip but they already do subclass it.

 

P.S This file has rights to it please do not use it for your self. Only the mods at adobe are allowed to view it.

This topic is closed to new replies. Start a new post to keep the conversation going.
Colin Holgate
Colin HolgateCorrect answer
Inspiring
Jul 11, 2021 9:01 PM UTC

That suggests that the object is a Sprite and not a MovieClip. Try this:

private var dispCont:Sprite;

You may also need this line earlier on:

import flash.display.Sprite;

8 replies

XerneyAuthor
Inspiring
Jul 11, 2021 8:25 PM UTC

That seemed to work but now im getting this error TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Sprite@58d1b4815f1 to flash.display.MovieClip.

Translate
Colin Holgate
Colin HolgateCorrect answer
Inspiring
Jul 11, 2021 9:01 PM UTC

That suggests that the object is a Sprite and not a MovieClip. Try this:

private var dispCont:Sprite;

You may also need this line earlier on:

import flash.display.Sprite;

Translate
XerneyAuthor
Inspiring
Jul 11, 2021 9:23 PM UTC

Thanks that worked its strange how all the other files fixed even though i only edited one file but ill take it

Translate
Colin Holgate
Inspiring
Jul 11, 2021 8:09 PM UTC

Should this:

private var dispCont;

be:

private var dispCont:MovieClip;

Otherwise when you say dispCont = mSystem.contMENU; you are assigning a MovieClip to a non-typed variable.

Translate
XerneyAuthor
Inspiring
Jul 11, 2021 8:20 PM UTC

We bought the games from the original developers so im unsure but i could try it

 

Translate