I’m trying to stop at frame 144 on “Promotion1”:
ActionScript Code:
[LEFT][COLOR=#000000]**var**[/COLOR] Promotion1:imageContainer=[COLOR=#000000]**new**[/COLOR] imageContainer[COLOR=#000000]([/COLOR][COLOR=#FF0000]"images/Promo1.swf"[/COLOR],[COLOR=#FF0000]"loader.swf"[/COLOR][COLOR=#000000])[/COLOR];
addChildCOLOR=#000000[/COLOR]
[COLOR=#000000]([/COLOR]parent.[COLOR=#000080]getChildByName[/COLOR]COLOR=#000000[/COLOR] as [COLOR=#0000FF]MovieClip[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#0000FF]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]
Here is the FLA code:
ActionScript Code:
[LEFT][COLOR=#0000FF]import[/COLOR] image.[COLOR=#000080]imageContainer[/COLOR];
[COLOR=#000000]var[/COLOR] Promotion1:imageContainer=[COLOR=#000000]new[/COLOR] imageContainerCOLOR=#000000[/COLOR];
addChildCOLOR=#000000[/COLOR]
[COLOR=#000000]([/COLOR]parent.[COLOR=#000080]getChildByName[/COLOR]COLOR=#000000[/COLOR] as [COLOR=#0000FF]MovieClip[/COLOR][COLOR=#000000])[/COLOR].[COLOR=#0000FF]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]
And the Class:
ActionScript Code:
[LEFT]package image[COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]import[/COLOR] flash.[COLOR=#000080]display[/COLOR].[COLOR=#0000FF]MovieClip[/COLOR];
[COLOR=#0000FF]import[/COLOR] flash.[COLOR=#000080]events[/COLOR].[COLOR=#000080]ProgressEvent[/COLOR];
[COLOR=#0000FF]import[/COLOR] flash.[COLOR=#000080]events[/COLOR].[COLOR=#000080]Event[/COLOR];
[COLOR=#0000FF]import[/COLOR] flash.[COLOR=#000080]display[/COLOR].[COLOR=#000080]Loader[/COLOR];
[COLOR=#0000FF]import[/COLOR] flash.[COLOR=#000080]net[/COLOR].[COLOR=#000080]URLRequest[/COLOR];
[COLOR=#0000FF]import[/COLOR] fl.[COLOR=#000080]transitions[/COLOR].*;
[COLOR=#0000FF]import[/COLOR] fl.[COLOR=#000080]transitions[/COLOR].[COLOR=#000080]easing[/COLOR].*;
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**class**[/COLOR] imageContainer [COLOR=#0000FF]extends[/COLOR] [COLOR=#0000FF]MovieClip[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**var**[/COLOR] imageURL:[COLOR=#0000FF]String[/COLOR];
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**var**[/COLOR] urlRequest:URLRequest;
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**var**[/COLOR] imageLoader:Loader;
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**var**[/COLOR] imageWidth:[COLOR=#0000FF]Number[/COLOR];
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**var**[/COLOR] imageHeight:[COLOR=#0000FF]Number[/COLOR];
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**var**[/COLOR] preLoader:Loader;
[COLOR=#000000]**var**[/COLOR] mcImage:[COLOR=#0000FF]MovieClip[/COLOR]=[COLOR=#000000]**new**[/COLOR] [COLOR=#0000FF]MovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**function**[/COLOR] imageContainer[COLOR=#000000]([/COLOR][COLOR=#0000FF]url[/COLOR]:[COLOR=#0000FF]String[/COLOR],path:[COLOR=#0000FF]String[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#808080]*//Imagewidth:Number,Imageheight:Number,*[/COLOR]
preLoader=[COLOR=#000000]**new**[/COLOR] Loader[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
preLoader.[COLOR=#0000FF]load[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000]**new**[/COLOR] URLRequest[COLOR=#000000]([/COLOR]path[COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR];
preLoader.[COLOR=#000080]scaleX[/COLOR]=[COLOR=#000080]2[/COLOR];
preLoader.[COLOR=#000080]scaleY[/COLOR]=[COLOR=#000080]2[/COLOR];
[COLOR=#808080]*//preLoader.x=Imagewidth/2-preLoader.width/2; Ian*[/COLOR]
[COLOR=#808080]*//preLoader.y=Imageheight/2-preLoader.height/2; Ianj*[/COLOR]
addChild[COLOR=#000000]([/COLOR]preLoader[COLOR=#000000])[/COLOR];
imageURL=[COLOR=#0000FF]url[/COLOR];
[COLOR=#808080]*//imageWidth=Imagewidth; Ian*[/COLOR]
[COLOR=#808080]*//imageHeight=Imageheight; Ian*[/COLOR]
loadThumb[COLOR=#000000]([/COLOR][COLOR=#0000FF]url[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#0000FF]public[/COLOR] [COLOR=#000000]**function**[/COLOR] loadThumb[COLOR=#000000]([/COLOR][COLOR=#0000FF]url[/COLOR]:[COLOR=#0000FF]String[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
urlRequest=[COLOR=#000000]**new**[/COLOR] URLRequest[COLOR=#000000]([/COLOR][COLOR=#0000FF]url[/COLOR][COLOR=#000000])[/COLOR];
imageLoader=[COLOR=#000000]**new**[/COLOR] Loader[COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
imageLoader.[COLOR=#0000FF]load[/COLOR][COLOR=#000000]([/COLOR]urlRequest[COLOR=#000000])[/COLOR];
imageLoader.[COLOR=#000080]contentLoaderInfo[/COLOR].[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR]Event.[COLOR=#000080]COMPLETE[/COLOR],funcComplete[COLOR=#000000])[/COLOR];
[COLOR=#000000]**function**[/COLOR] funcComplete[COLOR=#000000]([/COLOR][COLOR=#0000FF]e[/COLOR]:Event[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
removeChild[COLOR=#000000]([/COLOR]preLoader[COLOR=#000000])[/COLOR];
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"Successfully Loaded"[/COLOR][COLOR=#000000])[/COLOR];
imageLoader.[COLOR=#000080]content[/COLOR].[COLOR=#0000FF]width[/COLOR]=imageWidth;
imageLoader.[COLOR=#000080]content[/COLOR].[COLOR=#0000FF]height[/COLOR]=imageHeight;
mcImage.[COLOR=#000080]addChild[/COLOR][COLOR=#000000]([/COLOR]imageLoader.[COLOR=#000080]content[/COLOR][COLOR=#000000])[/COLOR];
TransitionManager.[COLOR=#0000FF]start[/COLOR][COLOR=#000000]([/COLOR]mcImage,[COLOR=#000000]{[/COLOR][COLOR=#0000FF]type[/COLOR]:Fade, direction:Transition.[COLOR=#0000FF]IN[/COLOR], [COLOR=#0000FF]duration[/COLOR]:[COLOR=#000080]3[/COLOR], easing:Regular.[COLOR=#000080]easeIn[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
addChild[COLOR=#000000]([/COLOR]mcImage[COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[/LEFT]
The error is
ActionScript Code:
TypeError: Error #1006: value is not a function.
at LoadImage_fla::MainTimeline/frame1()[LEFT]
[/LEFT]