Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Hold And Drag MC(image) Inside MC(frame)



i want to give viewer the ability to hold and DRAG
MC2
in MC1

MC1 is gonna be the frame, while MC2 will be some bit bigger than MC1 (the frame), in dimension.

And the viewer would be able to HOLD and DRAG MC2's image in MC1's frame.

Please guide me with the actionscript required for it ?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 01-11-2009, 09:47 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Drag Image Along X Inside Y Coordinates?
I am trying to generate a piece of script to place on a MC that allows the user to drag the MC, on press, along the X axis between two Y coordinates (say 20 and 100). leaving the MC at the coordinate it is released at.

Seems easy enough but no luck yet, anyone help?




Thank you kindly.

To Hold Or Not To Hold? - On The Frame That Is
I'm trying to get my movie to pause at a frame for a preset amount of time..

Here is the ActionScript i am using

-----------------------
stop 0;
do {
// hold at this frame for preset time, in milliseconds;
} while (getTimer() < 5000);
play 0;
-----------------------

i believe that it doesn't work at the moment because the getTimer function counts milliseconds from the START of the movie and not from when the funtion is executed from the code.

Does anyone know of a funtion to use to correct this?
Thanks in Advance


[Edited by thebogan on 01-16-2002 at 01:39 AM]

[Q] Rotate With Mouse Hold And Drag
Hi
I have a simple symbol (a beam) ..
I want user can click on it and hold mouse down and when he drags mouse my symbol can rotate. I mean for example if I drag mouse top or bottom my symbol rotate CC or CCW. I mean like a disk user can rotate it with mouse.

thanks in advance

? Hold An Array Inside Another Object To Allow Rotation ?
Hi everybody,

I'm wondering how I can hold an array inside of a Sprite or, more ideally, inside a DisplayObject3D to allow for rotation of the whole array at once. (The array holds Plane objects).

When I try to add the Array to a DisplayObject3D, it throws an error, saying I'm trying to coerce the type of the Array to a DisplayObject3D. I just want to hold the Array in there.

Seems like a simple problem, I'm just a noob, ya know!

Thanks!

Brian

Frame Hold?
Is there a way to hold on a frame for a certian amount of time?

for instance..... i have a gallery setup where it switchs photos out...
instead of giving each photo 100 frames, can ijust give each photo 1 frame
and write an action to....... hold on frame 10 for 30 seconds?

joel

Hold On Frame
I'd like to hold the timeline from progressing while it plays some short Movie Clips, that are placed on one frame. If I don't stop the timeline, it'll pass right over them and you don't see the MC.

There are actually three layers, all with different, short MC's on each layer.

Is there a simple Hold On Frame (for a pre-determined amount of time) Script, or can I use an ActionScript to Stop, Play this MC, and Proceed?

I could stop the timeline in Director pretty easily, but I don't know how yet in Flash.

Thanks!

Hold On A Frame?
Is there a way to hold an Animation on a frame for a few seconds.

Thanks for the help!!!

Need To Hold On Frame 3 Seconds?
I have a movie where I have pictures dissolving into each other. I want the player to stay on a frame 3 seconds before moving on to the next frame?
thanks

Hold At A Key Frame For A Few Seconds.
Quick question. How do you hold the player head at a certain key from for 19 seconds. Then go to another keyframe?

Thanks heaps in advance.

Hold At A Key Frame For A Few Seconds.
Quick question. How do you hold the player head at a certain key from for 19 seconds. Then go to another keyframe?

Thank heaps in advance.

Hold On Frame For X Seconds
Is there an easy way with AS to hold (pause) on a frame
in the timeline for x seconds? where x can differ.

Gratefull for thoughtfull answers.

/fomps

Hold At A Key Frame For A Few Seconds.
Quick question. How do you hold the player head at a certain key from for 19 seconds. Then go to another keyframe?

Thanks heaps in advance.

Hold On Frame For X Seconds
Is there an easy way with AS to hold (pause) on a frame
in the timeline for x seconds? where x can differ.

Gratefull for thoughtfull answers.

/fomps

Here's How To Hold On Frame.. That Works 100% Of The Time
Here is how to hold on frame..

this works all of the time, no matter where it is in the timeline.. etc!

In the first frame of the movie you must define "_root.wait" to a number of seconds.. ie _root.wait=4 means that it will pause for 4 seconds.

This is a standard pause through-out the whole movie.. but to get around that you will need to make another variable.. ie _root.wait2sec=2 or _root.wait3sec=3 etc

Then in the frame you wish to pause on have a "stop();" command.. then on that frame have a movie clip symbol with this object action assigned to it


Code:
onClipEvent (load) {
_root.lastTime = Math.floor(getTimer()/1000);
}

onClip Event (enterFrame) {
if (Math.floor(getTimer()/1000) > _root.lastTime+_root.wait) {
_root.play();
}
}


download this .fla for an example - it may be easier to understand than me trying to explain it

Click here to download .FLA

i hope this helps everyone - i've been trying to figure this out for weeks. the tutorials i have been given by some people and seen on many websites do work, but they only work for 1 instance, or they only work depending on where the action is in the timeline.

Most of the problems are due to the "getTimer" command because it get the time from when the movie started and it doesn't pause when you pause.. it just keeps on going..

thanks

i hope i've helped someone
tim burgan

Making A Frame Hold For 5 Seconds
Hi Guys, just a quick question

What is the action script code to make flash wait at a certain frame for a set amount of time, Say 5 seconds

Besically i have a button that jumps to frame 10 which holds a simple text box, however i then want some action script in frame 10 telling that frame to wait 5 seconds before executing the next line of action script that is in frame 10 which is just a simple targeting of an MC.

BTW - I know that it is very simple to achieve by just spaciong out the textbox along enough frames to make up 5 seconds, however I want to achieve this through action script.

Cheers

Hold On Current Frame For X Seconds
Can anyone please shed some light on this for me.

I'm creating a presentation using Flashmx. We were supposed to be using director until our client through a spanner in the works by wanting dynamic content update through a control panel.

In director you can put a frame script to hold the play head on a current frame for a number of seconds.

Is there something similar you can do in flash?

any help much appreciated

daz

Hold Frame (seconds) Then Repeat
hello flashkit!

ive been looking around for a simple script that will hold a frame, count to say
5 seconds then repeat from frame 1, over and over.

Ive searched around and some scripts just arn't working. would someone be able to help?

Im using Flash 8.

Ta,
andyk

[F8] Hold Last Frame Of Intro Movie
Hello,

You can find the file that I am referring to here:

http://goteama.com/temp/lindsey/layout3/layout_3.html

Hopefully you will see a hint of the intro movie, a white "L", before the site builds and your in.

I want the intro movieclip to stop on the last frame, hold there and wait for the first 15 frames of the movie to load.

The movieclip itself has a stop action on it's last frame, and frame 2 of the main timeline has the following action on it:

stop();
if _framesloaded == 15 {
gotoAndPlay("build")
}

What currently happens is that the movie clip starts playing and then as soon as the first 15 frames are loaded it jumps.

Any help would be appreciated.

Aris

Hold Frame For 'X' Seconds And Then Play?
Hi, is there a simple way to hold the timeline on one frame for 'x' amount of seconds and then advance to the next frame and play. I'm doing a slide show. So it will stay on one pic for maybe 10 seconds, then go into the next one for 10 seconds, and then the next and so forth. Help would be appreciated. Thanks alot.

[F8] Actionscript 2 Hold Last Frame Of Intro Movie
Hello,

You can find the file that I am referring to here:

http://goteama.com/temp/lindsey/layout3/layout_3.html

Hopefully you will see a hint of the intro movie, a white "L", before the site builds and your in.

I want the intro movieclip to stop on the last frame, hold there and wait for the first 15 frames of the movie to load.

The movieclip itself has a stop action on it's last frame, and frame 2 of the main timeline has the following action on it:

stop();
if _framesloaded == 15 {
gotoAndPlay("build")
}

What currently happens is that the movie clip starts playing and then as soon as the first 15 frames are loaded it jumps.

Any help would be appreciated.

Aris

Rotate Image On Mouse-hold
Hello,
I tried the great tutorial Object VR in Flash by Tim Murray (http://www.flashkit.com/tutorials/3...r-989/index.php) where I can easily rotate objects. Now, the object always rotates when I go over the image sequence. Do you know the coding, that it just turns when I press and hold the left mouse-button?

Thanks a lot...
Michael

Hold Playhead In Frame While Flash Video Plays
Hi

I have a streaming flash video in my movie, whcih plays fine. When the user
presses a button the playgead goes to a certain frame where the flash video
is placed. A stop() in Actions layer holds the playhead there and the whole
movie plays. Fine.

However, I want the playhead to move to the next frame when the flash video
finishes playing. How do I do that? I would be grateful if you could point
me in the right direction. I am working with Flash MX Pro. on Windows XP.
Thanks.


Nishi

Retaining Drag And Drop Movement From Frame To Frame
Hello.

I'm having a problem with retaining Drag and Drop movement from frame to frame. The issue is that if some movie clips in frame one are moved around with drag and drop, then the user proceeds to frame two, upon going back to frame one, the movie clips that were moved around are now back to their starting positions. How can I have these movie clips stay where the user put them? I've attached a simple fla file for reference.

Thanks in advance for any help and suggestions!

[F8] Display Inside MC A Bigger Image But Only Display Image Inside Size Of MC
Hey...

I have an easy question,

I want to display an image that is being loaded inside a Movie Clip which is working as a picholder...

This movie clip has borders and the size of the mc (the size that the borders create) is: 200 x 150

But the image that is being loaded inside the MC is bigger than the mc...how can i tell flash to only load just 200 x 150 of the picture ? AND/OR automatically resize the picture to fit the MC size

Any ideas?

Thanx for the reply!

Drag Inside X,y
Hi

How can I use a Startdrag located to an X,Y
so that the drag only works inside these

startDrag("", true);

movieheight = 250;
moviewidth = 450;




:-) PAUK

Drag And Drop Inside MC
I have a cd player on the main timeline its turned into a MC instance name player then inside player
is a cd that is a button and a MC so it can be dragged. Also inside player is a box instance name box . Also inside player is MC text instance
name txt . What I want to happen is when you drag the cd over the box it tells the text to play . I have tried to do this with great stress here is the
code i have on the cd mc. I can make the cd drag but I cant get the txt to play when it the cd is drooped into the box.can someone please help

on (press) {
startDrag ("../cd", true);
}
on (release) {
stopDrag ();
if (getProperty("../cd", _droptarget) eq "../box") {
tellTarget ("../txt") {
gotoAndStop (2);
}
}
}

Horizontal Drag ONLY: Example Inside
how do you create an object that the user can only move / drag horizontaly? i created a movie 550 X 400 and a mc with the following script:

on (press) {
startDrag ("/drag-me", false, 0, 0, 300, 300);
}
on (release) {
stopDrag ();
}
http://www.geocities.com/prodjectx/index.html

peace, 1lOvE
rYaN
[Edited by massiah on 09-24-2001 at 10:32 PM]

Constrain Drag Inside Draggable MC ?
hey there,

i'd like to create a draggable MC(mainMC)on the main timeline that contains draggable MCs inside of it. I'd like these draggable MCs to constrain to the dimensions of the mainMC. how would I define the constrain areas?

or maybe have a rectangle defined inside of mainMC..

??

Drag & Drop Query Inside MC
I have a drag and drop file that works fine using:

getProperty("_parent.drag2", _droptarget) eq "/drop1"

but when i load this into a MC or onto another level, it fails to recognize the droptraget "/drop1"

Where am i going wrong? is it possible to solve this? why doesn't _parent work for this?

Please Help me!

Drag And Drop Inside Movieclip
hi,

i am making a flash game for a project and have run into a problem, i've made a scene where the user picks up an item and drags it into an inventory box and the movie works fine, however when I convert it all to a movieclip symbol the droptarget doesnt seem to recognise? below is my actionscript:

chisel.onPress = function() {
startDrag(this);
this.swapDepths(1000);
};
chisel.onRelease = chisel.onReleaseOutside=function () {
stopDrag();
topslats.swapDepths(chisel);


if(eval(this._droptarget) == _root.invent.box1) {

this.onTarget = true;
_root.invent.box1.gotoAndStop(2);
} else {
this.onTarget = false;
_root.invent.box1.gotoAndStop(1);
}
};
//the variables below will store the clips starting position
chisel.myHomeX=chisel._x;
chisel.myHomeY=chisel._y;
//the variables below will store the clips end position
chisel.myFinalX = 620;
chisel.myFinalY = 75;
chisel.onMouseDown = function() {
//this variable tells us if the mouse is up or down
mousePressed = true;
};
chisel.onMouseUp = function() {
mousePressed = false;
};
chisel.onEnterFrame = function() {
//all these actions basically just say "if the mouse is up (in other words - the clip is not being dragged)
// then move the MC back to its original starting point (with a smooth motion)"
if (mousePressed == false && this.onTarget == false) {
this._x -= (this._x-this.myHomeX)/5;
this._y -= (this._y-this.myHomeY)/5;
//if the circle is dropped on any part of the target it slides to the center of the target
} else if (mousePressed == false && this.onTarget == true) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
}
};

im relatively new to flash, is there something im not picking up on that could be the cause of this problem, or is there a better alternative to get around it?

thanks

Drag And Drop Inside ScrollPane?
Is it possible?

I read a few articles about this "Macromedia bug".

I have to make an application size of a browser, but with Flash sliders, like this one: example.

Why Flash, but not IE sliders? Because I got to have a "float" panel too, which stands still (a pink one in the example above).

Anyway, seems imposible to put some MovieClips into scrollPane - with possibility of dragging&dropping them.

Or not?

Drag XML Content Inside Component
Hello,

Does anyone have any tips or help regarding the ability to drag XML content (with your mouse) inside a pre-built component?

I'm using a custom "flash news ticker" made by Arsa and my client would like the ability to 'grab' the scrolling XML and move it up and down with the mouse.

I'm familiar with dragging a movie clip using:

Clip.onPress = function():Void {
this.startDrag();
};

but this is all I know about dragging with a mouse...

any ideas would rule...
thanks!!

Drag And Drop Inside ScrollPane?
Is it possible?

I read a few articles about this "Macromedia bug".

I have to make an application size of a browser, but with Flash sliders, like this one: example.

Why Flash, but not IE sliders? Because I got to have a "float" panel too, which stands still (a pink one in the example above).

Anyway, seems imposible to put some MovieClips into scrollPane - with possibility of dragging&dropping them.

Or not?

Thanks in advance!

How To Have A Button Link To A Certain Frame Inside A Movie Clip From Inside A Movie
Is this possible? I have a menu and would like to have a drop down box nested inside the menue which links to certain frames inside the main movie clip.

Drag A Button Inside A The Limites Of A Rectangle
Hi Guys,
if it's the second msg don't worry, wrong manipulation on my side.
Is it possible to drag and drop a button inside a "rectangle". basically I want to restrict the mouvment of my button so that it could'nt be possible to drag it outside this rectangle.

to have a look goto http://www.r-cam.com/test-swf/

thanks

Gaune

Inside Main Movieclip Drag N Drop
Good day to all!

I have this Main Movieclip. Under myMainMoveClip is a drag and drop quiz. I dont know why I cant snap my movieclip to the other movieclip.

can anyone help me?

Here's my code...
I put this inside my bbLion_mc


//Code for Drag n Drop

on (press) {
startX = this._x;
startY = this._y;
startDrag(this,true);

//scale image to a smaller size
this._xscale = 41.3;
this._yscale = 38.9;
}

on (release, releaseOutside) {
stopDrag();

if (getProperty(this,_droptarget) eq "/matching_mc/boxLion_mc") {
trace("Lion sound");
} else {
trace("Baby crying");
}
}

Drag Drop Inside Loaded Clip
Hi, i have created a drag and drop clip that works fine. If i load it into another movie clip ("container4") the drag works but it doesnt drop in the alocated place.
This is the current script i am working with

on (press) {

//Start Dragging Movieclip Behavior
startDrag(this);
//End Behavior

}
on (release) {

//Stop Dragging Movieclip Behavior
stopDrag();
if (this._droptarget == "/green_box") {
_root.green_box.gotoAndStop(5);
}
}


Any ideas guys?
Thanks,
Mark

Drag And Drop Inside Movie Clip
When I try to use drag and drop script with hitTest and _droptarget, I found that the _droptarget didn't detect inside the movie clip. Anyone know how to fix it?

This is the script I use outside the movie clip

ActionScript Code:
stop();
this.onMouseDown = function() {
    x = this._xmouse;
    y = this._ymouse;

if (this["kaki1a"].hitTest(x, y, true)) {
        this["kaki1a"].startDrag();
    }
};

this.onMouseUp = function() {
    stopDrag();

    if (this["kaki1a"]._droptarget == "/target1") {
        setProperty("/kaki1a", _x, this["target1"]._x);
        setProperty("/kaki1a", _y, this["target1"]._y);
    }
};

This is the script I use inside movie clip

ActionScript Code:
stop();
this.onMouseDown = function() {
    x = this._xmouse;
    y = this._ymouse;

if (_level0.inia["kaki1b"].hitTest(x, y, true)) {
        _level0.inia["kaki1b"].startDrag();
    }
};

this.onMouseUp = function() {
    stopDrag();

    if (_level0.inia["kaki1b"]._droptarget == "/target1b") {
        setProperty("/kaki1b", _x, _level0.inia["target1b"]._x);
        setProperty("/kaki1b", _y, _level0.inia["target1b"]._y);
    }
};

Here is the .fla

Drag-and-drop Inside List Ot DataGrid
Is it possible to set up DataGrid or List components so that they allow drag-and-drop items rearrangement? For example, I want to drag and drop Item-1 between Item-4 and Item 5.

Drag And Drop With A Movie Clip Inside A Movieclip?
Hi
I was hoping someone might be able to help.
I have written the drag and drop function for a movie clip
this movie clip has a animation inside of it, this is on a seperate layer.
When i play the swf, the animation and the movie clip it was inside become individual
objects. How do I make these two objects into one entity?
thanks alot for reading any suggestions will be great
matt

Trouble With OnPress And Drag Inside A Loop [Flash8]
Hi all,

I am trying to take a user input word, in this case "joe," and add the movie clips representing those letters to the stage in a jumble. I then want the clips to be able to be dragged into correct order. Below is what I have. Everything works but the dragging bit.

I am very much a newbie. My instinct is telling me that the problem is that this is happening in a "for loop" and that the dragging ability is no longer possible at the end of the loop. Is this the case? If so, is there a work around.


Code:
var my_str:String = new String("joe");
var my_array:Array = my_str.split("");
for (var i = 0; i<my_array.length; i++) {
var xran:Number = 100+random(100);
var yran:Number = 100+random(100);
_root.attachMovie((my_array[i]),(my_array[i])+i,i,{_x:xran, _y:yran});
var xyz = (my_array[i])+i;
xyz.onPress = function():Void {
this.startDrag(true);
};
xyz.onRelease = function():Void {
this.stopDrag();
};
}
Thanks. I appreciate the help with a newbie.

Image Quality Takes A Dive When I Move Everything From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore. Everything looks fine if its in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

Image Quality Takes A Dive When I Move Everything From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore. Everything looks fine if its in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

Adding Sound To Drag & Drop MC With Button Inside (Flash8)
Hi,

I have a movie clip of a bell called "bell", containing a button inside of a bell called "bell_button" (with an instance name of "bell") that drags & drops on the stage upon press with the following code:
} on (press) {
startDrag ("bell");
}
on (release) {
stopDrag ();
}

I now need to add the code to retrieve a sound from my library called "jingle.mp3" so that whenever the user moves the object on the stage, the sound will play. The jingle sound in my library linkage setting is identified as "jingle" and I chose export for actionscript & export for 1st frame. Can you pls tell me the code and if it will go on the main timeline or added to the code above on the button.

Thanks very much.

Made A Drag And Drop Slider Inside A Movie Clip..
I have made a slider that moves from left to right. Well the slider works fine, but I put that slider inside a movie clip, so I can drag it around, and still slide the the slider, but it dont allow me to slide it, only drag the entire progy.

Conclusion: I need to figure out how to drag the entire movie, and still use the slider. I know the code is lengthy but no one at FK would reply. Thanks in advanced!

The code that is on the movie clip is.

on(press){
x = this._x;
y = this._y;
startDrag(this);
}
on(release, releaseOutside){
stopDrag();
if(this.hitTest(_parent.target)){
this._x = 80;
this._y = 105;
_root.tester.gotoAndStop("ok");
}else{
this._x = x;
this._y = y;
}
}


And the script that is on my slider is:

cursor._visible = false;
cursor.playani = "zoomin";
cursor.onEnterFrame = function ()
{
if (this._parent._xmouse > 25 && this._parent._xmouse < 205 && this._parent._ymouse > 16 && this._parent._ymouse < 196)
{
Mouse.hide();
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
if (!this._visible)
{
trace(this.playani);
this.gotoAndPlay(this.playani);
} // end if
this._visible = true;
}
else
{
Mouse.show();
this._visible = false;
} // end if
};
function zoomin(obj, menu)
{
delete this["onRelease"];
delete this["onReleaseOutside"];
delete this["onPress"];
delete this["onEnterFrame"];
this._parent.cursor.gotoAndPlay("zoomout");
this.nextscale = 100;
this.finalx = 115 - this._xmouse;
trace(this.finalx);
if (this.finalx < 5)
{
this.finalx = 5;
}
else if (this.finalx > 225)
{
this.finalx = 225;
} // end if
this.finaly = 106 - this._ymouse;
if (this.finaly < -4)
{
this.finaly = -4;
}
else if (this.finaly > 216)
{
this.finaly = 216;
} // end if
trace(this.finalx);
this.onEnterFrame = function ()
{
this._x = this._x + (this.finalx - this._x) * 0.200000;
this._y = this._y + (this.finaly - this._y) * 0.200000;
if (this._xscale >= this.nextscale)
{
if (Math.abs(this.finalx - this._x) < 0.500000 && Math.abs(this.finaly - this._y) < 0.500000)
{
this._x = this.finalx;
this._y = this.finaly;
zoomin.enabled = false;
this.onRelease = this.onReleaseOutside = this._parent.release3d;
this.onPress = this._parent.press3d;
this.onRelease = this.onReleaseOutside = this._parent.release3d;
this._parent.cursor.playani = "dragin";
this._parent.cursor.gotoAndPlay("dragin");
delete this["onEnterFrame"];
} // end if
}
else
{
this._xscale = Math.ceil(this._xscale + 5);
this._yscale = Math.ceil(this._yscale + 5);
} // end if
};
} // End of the function
function zoomout(obj, menu)
{
delete this["onEnterFrame"];
delete this["onRelease"];
delete this["onReleaseOutside"];
delete this["onPress"];
this.nextscale = 45;
this.finalx = 115;
this.finaly = 106;
this.onEnterFrame = function ()
{
this._x = this._x + (this.finalx - this._x) * 0.200000;
this._y = this._y + (this.finaly - this._y) * 0.200000;
if (this._xscale <= this.nextscale)
{
if (Math.abs(this.finalx - this._x) < 0.500000 && Math.abs(this.finaly - this._y) < 0.500000)
{
this._x = this.finalx;
this._y = this.finaly;
zoomout.enabled = false;
delete this["onRelease"];
delete this["onReleaseOutside"];
delete this["onPress"];
this._parent.cursor.playani = "zoomin";
this.onPress = this._parent.zoomin;
delete this["onEnterFrame"];
} // end if
}
else
{
this._xscale = Math.ceil(this._xscale - 5);
this._yscale = Math.ceil(this._yscale - 5);
} // end if
};
} // End of the function
function zoomout2(obj)
{
delete obj["onEnterFrame"];
delete obj["onRelease"];
delete obj["onReleaseOutside"];
delete obj["onPress"];
obj.nextscale = 45;
obj.finalx = 115;
obj.finaly = 106;
obj.onEnterFrame = function ()
{
this._x = this._x + (this.finalx - this._x) * 0.200000;
this._y = this._y + (this.finaly - this._y) * 0.200000;
if (this._xscale <= this.nextscale)
{
if (Math.abs(this.finalx - this._x) < 0.500000 && Math.abs(this.finaly - this._y) < 0.500000)
{
this._x = this.finalx;
this._y = this.finaly;
zoomout.enabled = false;
delete this["onRelease"];
delete this["onReleaseOutside"];
delete this["onPress"];
this.onPress = this._parent.zoomin;
this._parent.cursor.playani = "zoomin";
this._parent.cursor.gotoAndPlay(this._parent.curso r.playani);
delete this["onEnterFrame"];
} // end if
}
else
{
this._xscale = Math.ceil(this._xscale - 5);
this._yscale = Math.ceil(this._yscale - 5);
} // end if
};
} // End of the function
function press3d()
{
this._parent.cursor.gotoAndPlay("dragout");
this.lastClick = getTimer();
if (this._xscale == 100)
{
this.startDrag(0, 0, -16, 230, 224);
} // end if
} // End of the function
function release3d()
{
stopDrag();
if (Number(getTimer() - this.lastClick) < 200)
{
this._parent.cursor.playani = "zoomin";
this._parent.zoomout2(this);
}
else
{
this._parent.cursor.gotoAndPlay(this._parent.curso r.playani);
} // end if
} // End of the function
_level10._root.contents.allblock.gotoAndStop(1);
draggerMc.lilboton.onPress = function ()
{
// BELOW THIS LINE IS WHERE YOU POSITION THE SLIDER

offset = 0;
this._parent.startDrag(0, 56, 202, 1000, 202);
this._parent.onEnterFrame = function ()
{
currentPos = this._parent.followerMc._x - 55;
currentPos = this._x - 55;
m3dFrame = Math.floor(1 + currentPos * 29 / 108);
this._parent.m3d.gotoAndStop(m3dFrame);
trace(m3dFrame);
};
};
draggerMc.boton.onRelease = draggerMc.boton.onReleaseOutside = function ()
{
stopDrag();
delete this._parent["onEnterFrame"];
};
m3d.onPress = zoomin;
stop();So I copied all my frames, then put it into a new movie clip. that has this code on it.

Image PNG Quality Degrades If Moved From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore or something like that. Everything looks fine if I leave it in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:

http://www.thelotuseater.com/

Any help would be greatly appreciated. Thanks in advance.

Image Frame Resizes To Variable Image Size
Hey all, I've seen this effect on tons of sites and was wondering how hard it would be to do it myself. The effect is of an image frame that resizes to a variable image size such as at the following site:

http://www.thelotuseater.com/

Any help would be greatly appreciated. Thanks in advance.

Drag Prv Frame
i want effect like if i drag top movie should be forwards and if i drag down movie shgould be reverse or play previsous frams.....how can i do it????

Copyright © 2005-08 www.BigResource.com, All rights reserved