I know this is a topic that is discussed a lot here on kirupa but I have searched and I can’t seem to find the answer to my problem. The problem is that I have my site laid out with a resizing frame and inside it I have an empty mc to load my external swf’s. The problem is that when I call my functions to load the different sections the first sections loads fine but the next section doesn’t load … the frame resizes but the swf doesn’t change. both of the swf’s are just test versions (i just want to get the navigation stage to work without a hitch before I start designing the actual content for it). here’s a sample of my functions for loading the external swf’s:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000]function[/COLOR] sectionMainCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
theWidth = [COLOR=#000080]700[/COLOR];
theHeight = [COLOR=#000080]375[/COLOR];
frame.[COLOR=#000080]title[/COLOR].[COLOR=#0000FF]text[/COLOR] = [COLOR=#FF0000]“Main”[/COLOR];
frameSizeCOLOR=#000000[/COLOR];
frame.[COLOR=#000080]slideTo[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]Stage[/COLOR].[COLOR=#0000FF]width[/COLOR]/[COLOR=#000080]2[/COLOR]-theWidth/[COLOR=#000080]2[/COLOR], [COLOR=#0000FF]Stage[/COLOR].[COLOR=#0000FF]height[/COLOR]/theHeight*[COLOR=#000080]10[/COLOR], slidevel, frameTweenType, .[COLOR=#000080]005[/COLOR][COLOR=#000000])[/COLOR];
frame.[COLOR=#000080]container[/COLOR].[COLOR=#0000FF]loadMovie[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#808080]//Function for About section resize … add in load of external movie[/COLOR]
[COLOR=#000000]function[/COLOR] sectionAboutCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
theWidth = [COLOR=#000080]400[/COLOR];
theHeight = [COLOR=#000080]550[/COLOR];
frame.[COLOR=#000080]title[/COLOR].[COLOR=#0000FF]text[/COLOR] = [COLOR=#FF0000]“About”[/COLOR];
frameSizeCOLOR=#000000[/COLOR];
frame.[COLOR=#000080]slideTo[/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000FF]Stage[/COLOR].[COLOR=#0000FF]width[/COLOR]/[COLOR=#000080]2[/COLOR]-theWidth/[COLOR=#000080]2[/COLOR], [COLOR=#0000FF]Stage[/COLOR].[COLOR=#0000FF]height[/COLOR]/theHeight*[COLOR=#000080]10[/COLOR], slidevel, frameTweenType, .[COLOR=#000080]005[/COLOR][COLOR=#000000])[/COLOR];
frame.[COLOR=#000080]container[/COLOR].[COLOR=#0000FF]loadMovie[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]