To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-26-2005, 01:26 PM   #1
elvira2503
Junior Member
 
Join Date: May 2003
Location: greece
Posts: 8
i need help

i ve got problem with the action script i used. when i load an mc from my menu the levels doesn't work and it open into a new window....
heare is the action i used

// Action script...

// [onClipEvent of sprite 5 in frame 1]
onClipEvent (load)
{
_root.gotoAndStop(1);
if (_root.getBytesTotal() < 1000)
{
filesize = Math.floor(_root.getBytesTotal()) + "bytes";
}
else if (_root.getBytesTotal() > 1000000)
{
filesize = math.floor(_root.getBytesTotal() / 1000000) + "mb";
}
else
{
filesize = math.floor(_root.getBytesTotal() / 1000) + "kb";
} // end if
}

onClipEvent (enterFrame)
{
setProperty("bar2", _yscale, Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100));
output = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
output2 = 100 - output;
if (output == "100")
{
_root.gotoAndPlay(2);
} // end if
}

// [onClipEvent of sprite 7 in frame 127]
onClipEvent (load)
{
colore = new Color(this);
trasforma = new Object();
trasforma = {rb: 0, gb: 57, bb: 61};
colore.setTransform(trasforma);
col_ar = new Array();
count = 0;
}

onClipEvent (enterFrame)
{
if (cambia && count < 20)
{
trasforma.ra = 100;
trasforma.rb = trasforma.rb + diff_ar[0] / 20;
trasforma.ga = 100;
trasforma.gb = trasforma.gb + diff_ar[1] / 20;
trasforma.ba = 100;
trasforma.bb = trasforma.bb + diff_ar[2] / 20;
colore.setTransform(trasforma);
count++;
} // end if
}

// [Action in Frame 1]
fscommand("allowscale", "false");
fscommand("fullscreen", "true");
stop();

// [Action in Frame 2]
play();

// [Action in Frame 127]
function getColor(clip)
{
myColor = new Color(clip);
col = myColor.getTransform();
return([col.rb, col.gb, col.bb]);
} // End of the function
play();

// [Action in Frame 131]
tellTarget("follow")
{
gotoAndStop("light");
} // End of TellTarget
_root.mc.col_ar = getColor(_root.mc);
_root.mc.rb = 0;
_root.mc.gb = 57;
_root.mc.bb = 61;
_root.mc.new_ar = new Array(_root.mc.rb, _root.mc.gb, _root.mc.bb);
_root.mc.diff_ar = new Array(_root.mc.new_ar[0] - _root.mc.col_ar[0], _root.mc.new_ar[1] - _root.mc.col_ar[1], _root.mc.new_ar[2] - _root.mc.col_ar[2]);
_root.mc.cambia = true;
_root.mc.count = 0;
_root.mc.trasforma.rb = _root.mc.col_ar[0];
_root.mc.trasforma.gb = _root.mc.col_ar[1];
_root.mc.trasforma.bb = _root.mc.col_ar[2];
stop();

// [Action in Frame 136]
tellTarget("follow")
{
gotoAndStop("dark");
} // End of TellTarget
loadMovie("02_aboutme.swf", "LOADED1");
_root.mc.col_ar = getColor(_root.mc);
_root.mc.rb = 222;
_root.mc.gb = 255;
_root.mc.bb = 255;
_root.mc.new_ar = new Array(_root.mc.rb, _root.mc.gb, _root.mc.bb);
_root.mc.diff_ar = new Array(_root.mc.new_ar[0] - _root.mc.col_ar[0], _root.mc.new_ar[1] - _root.mc.col_ar[1], _root.mc.new_ar[2] - _root.mc.col_ar[2]);
_root.mc.cambia = true;
_root.mc.count = 0;
_root.mc.trasforma.rb = _root.mc.col_ar[0];
_root.mc.trasforma.gb = _root.mc.col_ar[1];
_root.mc.trasforma.bb = _root.mc.col_ar[2];
stop();

// [Action in Frame 141]
tellTarget("follow")
{
gotoAndStop("dark");
} // End of TellTarget
loadMovie("03_portfolio.swf", "LOADED1");
_root.mc.col_ar = getColor(_root.mc);
_root.mc.rb = 255;
_root.mc.gb = 245;
_root.mc.bb = 204;
_root.mc.new_ar = new Array(_root.mc.rb, _root.mc.gb, _root.mc.bb);
_root.mc.diff_ar = new Array(_root.mc.new_ar[0] - _root.mc.col_ar[0], _root.mc.new_ar[1] - _root.mc.col_ar[1], _root.mc.new_ar[2] - _root.mc.col_ar[2]);
_root.mc.cambia = true;
_root.mc.count = 0;
_root.mc.trasforma.rb = _root.mc.col_ar[0];
_root.mc.trasforma.gb = _root.mc.col_ar[1];
_root.mc.trasforma.bb = _root.mc.col_ar[2];
stop();

the action for the aboutme mc


// Action script...

// [onClipEvent of sprite 1 in frame 1]
onClipEvent (load)
{
_root.LOADED1.gotoAndStop(1);
if (_root.LOADED1.getBytesTotal() < 1000)
{
filesize = Math.floor(_root.LOADED1.getBytesTotal()) + "bytes";
}
else if (_root.LOADED1.getBytesTotal() > 1000000)
{
filesize = math.floor(_root.LOADED1.getBytesTotal() / 1000000) + "mb";
}
else
{
filesize = math.floor(_root.LOADED1.getBytesTotal() / 1000) + "kb";
} // end if
}

onClipEvent (enterFrame)
{
setProperty("bar2", _yscale, Math.floor(_root.LOADED1.getBytesLoaded() / _root.LOADED1.getBytesTotal() * 100));
output = Math.floor(_root.LOADED1.getBytesLoaded() / _root.LOADED1.getBytesTotal() * 100);
output2 = 100 - output;
if (output == "100")
{
_root.LOADED1.gotoAndPlay(2);
} // end if
}

// [onClipEvent of sprite 16 in frame 131]
onClipEvent (load)
{
var a = 15;
var d = 1.200000;
var myXspeedpro = 0;
var myXspeedskil = 0;
var myXspeedsoft = 0;
var myXspeededu = 0;
var myXspeedemp = 0;
var myXspeedserv = 0;
}

onClipEvent (enterFrame)
{
myXspeedpro = ((_root.LOADED1.pro._x - prox) / a + myXspeedpro) / d;
myXspeedskil = ((_root.LOADED1.skil._x - skilx) / a + myXspeedskil) / d;
myXspeedsoft = ((_root.LOADED1.soft._x - softx) / a + myXspeedsoft) / d;
myXspeededu = ((_root.LOADED1.edu._x - edux) / a + myXspeededu) / d;
myXspeedemp = ((_root.LOADED1.emp._x - empx) / a + myXspeedemp) / d;
myXspeedserv = ((_root.LOADED1.serv._x - servx) / a + myXspeedserv) / d;
_root.LOADED1.pro._x = _root.LOADED1.pro._x - myXspeedpro;
_root.LOADED1.skil._x = _root.LOADED1.skil._x - myXspeedskil;
_root.LOADED1.soft._x = _root.LOADED1.soft._x - myXspeedsoft;
_root.LOADED1.edu._x = _root.LOADED1.edu._x - myXspeededu;
_root.LOADED1.emp._x = _root.LOADED1.emp._x - myXspeedemp;
_root.LOADED1.serv._x = _root.LOADED1.serv._x - myXspeedserv;
}

// [Action in Frame 1]
stop();

// [Action in Frame 2]
tellTarget("_level0/loader")
{
gotoAndStop("off");
} // End of TellTarget
play();

// [Action in Frame 131]
_root.LOADED1.actions.prox = 120;
_root.LOADED1.actions.skilx = 120;
_root.LOADED1.actions.softx = 120;
_root.LOADED1.actions.edux = 120;
_root.LOADED1.actions.empx = 120;
_root.LOADED1.actions.servx = 120;
play();

// [Action in Frame 134]
stop();

// [Action in Frame 135]
loadMovieNum("02_about_pro.swf", 0/LOADED1/LOADED2);
stop();

heare i ve got the problem with this links

// Action script...

// [onClipEvent of sprite 1 in frame 1]
onClipEvent (load)
{
_root.gotoAndStop(1);
if (_root.getBytesTotal() < 1000)
{
filesize = Math.floor(_root.getBytesTotal()) + "bytes";
}
else if (_root.getBytesTotal() > 1000000)
{
filesize = math.floor(_root.getBytesTotal() / 1000000) + "mb";
}
else
{
filesize = math.floor(_root.getBytesTotal() / 1000) + "kb";
} // end if
}

onClipEvent (enterFrame)
{
setProperty("bar2", _yscale, Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100));
output = Math.floor(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
output2 = 100 - output;
if (output == "100")
{
_root.gotoAndPlay(2);
} // end if
}

// [onClipEvent of sprite 10 in frame 21]
onClipEvent (load)
{
var a = 15;
var d = 1.300000;
var myXspeedb01 = 0;
var myXspeedb02 = 0;
var myXspeedb03 = 0;
var myXspeedb04 = 0;
var myXspeedb05 = 0;
}

onClipEvent (enterFrame)
{
myXspeedb01 = ((_root.b01._x - b01x) / a + myXspeedb01) / d;
myXspeedb02 = ((_root.b02._x - b02x) / a + myXspeedb02) / d;
myXspeedb03 = ((_root.b03._x - b03x) / a + myXspeedb03) / d;
myXspeedb04 = ((_root.b04._x - b04x) / a + myXspeedb04) / d;
myXspeedb05 = ((_root.b05._x - b05x) / a + myXspeedb05) / d;
_root.b01._x = _root.b01._x - myXspeedb01;
_root.b02._x = _root.b02._x - myXspeedb02;
_root.b03._x = _root.b03._x - myXspeedb03;
_root.b04._x = _root.b04._x - myXspeedb04;
_root.b05._x = _root.b05._x - myXspeedb05;
}

// [Action in Frame 1]
stop();

// [Action in Frame 2]
tellTarget("_level0/LOADED1/loader")
{
gotoAndStop("off");
} // End of TellTarget
play();

// [Action in Frame 21]
_root..actions.b01x = 324;
_root..actions.b02x = 348;
_root..actions.b03x = 372;
_root..actions.b04x = 396;
_root..actions.b05x = 0;
play();

// [Action in Frame 25]
stop();
elvira2503 is offline   Reply With Quote
Old 11-26-2005, 02:32 PM   #2
sportzguy933
Flasher
 
Join Date: Jun 2005
Posts: 1,362
That's a lot of script, why don't you upload the FLA?
__________________
|Email Me|PM Me|
sportzguy933 is offline   Reply With Quote
Old 11-26-2005, 02:44 PM   #3
tongxn
XRave
 
tongxn's Avatar
 
Join Date: Apr 2005
Location: Somewhere near Here
Posts: 868
Agrees here, it nearly exploded my head mind.
__________________
When you actually know what "OMG I have so much homework!" means, you won't want to be me.
Xrave
tongxn is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash General Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:31 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.