PDA

View Full Version : Component


Northware
04-30-2008, 06:13 PM
Hi heres what happen I decide to edit a template...using a component that consists of a thumbnail slider and Display for the images....this is 2.swf...

This is loaded into a index.swf through a holder that works with 1.swf but not work with other *.swf I dont know why but in the forum where I get the template they suggeted me to aask for help in AS!! so here I am...what Im trying to do is to load a different swf into a holder...the weird thing is that the 1.swf works but the rest wont and theres no change in the code....

If anyone can help me please I could send the files im not uploadign them because of the file size 6 MB

THX

ushka
04-30-2008, 06:16 PM
Hey, what do you mean "there's no change in the code"? If you want to load 2.swf instead of 1.swf you'll have to change the code... try just posting the part of the code that loads the swf movie into the placeholder mc and we can see how it's being loaded . . .

Also, if this project is for a website, you may want to look into your file size and figure out why it's so big. That big of a file won't load online (or it'll take quite awhile...)

Northware
04-30-2008, 06:22 PM
THANKS Heres the code its in index.fla inside a MC named storedactions, it has 5 instances
INSTANCE 1
var contentReady = 0;
var nMenus = 0;
var cMenu = 0;
var oMenu = 0;
var showC = 0;
var tv = -600;
INSTANCE 3
play();


INSTANCE 4
if (oMenu != cMenu) {
_root.Menu_Bar.Menu_Buttons["Menu"+cMenu].gotoAndStop("Hit");
_root.Menu_Bar.Menu_Buttons["Menu"+oMenu].gotoAndPlay("Out");
if (cMenu == 0) {
_root.Logo.gotoAndStop(2);
tv = -600;
} else {
tv = 0;
}
if (oMenu == 0) {
contentReady = 1;
}
if (cMenu != 0) {
_root.Logo.gotoAndStop(1);
if (oMenu != 0) {
Holder.Movies.play();
}
}
oMenu = cMenu;
}

contentChange();
Slider();
function Slider() {
if (showC == 0) {
Holder.Movies._x = Holder.Movies._x+((tv-Holder.Movies._x)/6);
Holder.Shade._x = Holder.Shade._x+((tv-Holder.Shade._x)/4);
}
}
function contentChange() {
if (contentReady == 1) {
for (i=1; i<=nMenus; i++) {
if (i == cMenu) {
_root.StoredActions.Holder.Movies.Holder2["CMovie"+i]._x = 0;
} else {
_root.StoredActions.Holder.Movies.Holder2["CMovie"+i]._x = 3000;
}
}
contentReady = 0;
}
}

INSTANCE 5
gotoAndPlay(4);
And yep its for a website....but the swf dont weight more than 200 KB...
THANKS for any help!!!

acolyte
05-01-2008, 11:44 AM
Hi Northwave ,

welcome to the Forums - you can use the "[""as""]" tag for marking up you code .

To the Question did you ever tried in the loaderCLip something like _lockroot = true ;

Northware
05-02-2008, 02:40 AM
How do I use it...and what it does?
....and sorry because of the as TAGS I didnt see them :'( my bad!!! I would not happen again....

Another question where did I put it??