Search:
Type: Posts; User: sergwiz
Search:
Search took 0.35 seconds.
-
It's better to use theXML.onData instead of theXML.onLoad
-
Try to remove + "\n" from this line: my_txt2.text += nodes[i].firstChild.nodeValue + "\n";
-
1. Remove all codes from every symbol and eveкy frame of your movie.
2. Remove all the frames on "mc1"'s timeline (except first one ).
2. Put this code onto the first frame of the main timeline:
...
-
Here you go. :)
Ups, sorry, I cannot to upload my fla.
Give me your email and I'll send it to you.
-
You should just write "stop();" in the second frame of the main timeline. That's all. :)
-
My code is for 8 buttons
test = function (btnX, btnY) {
myOtherFunction(btnX);
anotherFunction(btnY);
};
for(i=1;i<=8;i++){
this["but"+i].i = i;
this["but"+i].onPress = function(){...
-
var shared_object = SharedObject.getLocal("user_data");
a=[];
//--- read the contents of the shared object ----
for( i in shared_object.data ){
a.push(shared_object.data[i])
trace(a);
}
-
for(i=1;i<=8;i++){
this["but"+i].i = i;
this["but"+i].onPress = function(){
_root.test(this.i,2);
}
}
-
For rectangle
this.onMouseDown = function() {
newBox.clear();
startX = _xmouse;
startY = _ymouse;
dragging = true;
}
this.onMouseMove = function() {
-
Let's say we have 4 movieClips "mc1","mc2","mc3" and "mc4". Then just put this code on the first frame.
MovieClip.prototype.dragMe = function(){
this.onPress = function(){...
-
When you press on the "zoom out" button you defiantly stopDrag. BUT...! when you press on the "map_mc" you call the function dragMe again. So the code on the "zoom out" button should be:
on...
-
1 way: use LocalToGlobal()
2 way:
mc.onEnterframe = function(){
if(mc.hitTest(_xmouse,_ymouse)){
//your action
}
}
-
Take a look at the example
-
-
Here you go...
If you want to print every colorised picture you have to change the structure of your movie.
-
If I understand your question correctly (How can I adapt this to send the variable when the page loads?...), then...
<BODY bgcolor="#FFFFFF" onLoad="doPassVar(this)">
If you try something different...
-
timeDelay = 3000//in milliseconds
mc.onLoad = function(){
tt = getTimer();
}
mc.onEnterFrame = function(){
if((getTimer()-tt)>timeDelay){
//what to do after time delay
}
}
-
I cannot open your zip file. System says "incorrect file format or file is corrupted".
-
-
onClipEvent(mouseDown){
if(this.hitTest(_root._xmouse,_root._ymouse)){
this.startDrag(false);
}
}
onClipEvent(mouseUp){
stopDrag();
}
-
function pauseIt(){
if(pl){
tt= getTimer();
this.onEnterFrame = function(){
((getTimer()-tt)>2000) ? play() : stop();
}
}
}
If you want to define time of pause, you can make it...
-
Take a look at the example
-
-
Ups, there is some correction in the code
this.onMouseDown = function() {
if (bg.hitTest(_root._xmouse, _root._ymouse, true)) {
d = true;
rCenter.x = _root._xmouse;
rCenter.y =...
-
Hi, guys. Hope this example will help you.
|
Click Here to Expand Forum to Full Width
|