Printing In Flash Problems With Draggable Object - Please Help
figured it out .. thank you
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-02-2008, 11:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Draggable Object In Flash
I need to create a draggable object in flash, but to be moved along a straight line (horizontal in this case).
Something similar to the "constrain to line" behaviour in Director.
Any help?
Horacio Duek
Printing A Specified Area - With Draggable Mc:s
I looked up the printing threads but couldn´t find an answer to this.
I have a christmas tree and a lot of things that You can drag to it. When Yo dressed the tree You can print it out. But I just want the tree to be printed in an area that I specified with a mc_box.
I could print an area by labeling the first frame of a mc #b and put a box_mc in it. Then I made the mc stop on the second frame where I putted the tree and all the stuff that You could drag and drop. I named a frame in the second frame #p.
I had a button saying:
---
on(release){
print("_root.granen","bmovie");
}
----
But then the thins I had dragged to the tree wasn´t seen on the print.
Putting everything on the first frame on that mc ( granen) printed the thins I added to the tree but I also printed the size of the mc, not the size of the box_mc as I wanted.
How is this done to work?
A Draggable Object Within Limits Of Other Object
I am trying to create an object(circle movie clip) that is draggable but stays within the space of another object(square movie clip). i want to be able to drag this object and not be able to pull it out of the square movie clip. i am assuming hitTest will be one of the functions to use but what about knowing the space of the path object(square movie clip)?
J
Draggable Object?
Hi,
I am looking for a tutorial that will teach me how to create a movie clip that I can drag around the stage or the actionscript to do it. Can anyone help?
Thanks, Matt
Btn On A Draggable Object
Sir I have a problem with one of my scripts that I have written for bouncing a ball in 2D. The problem is that the ball_mc that I have used is also draggable means it is a drag and throw bouncing ball. I want to have button over it which trigger some getURL(); function.
Please guide me how I can put a button on a draggable ball.
wait for your professional idea till then bye bye.
Take Care
Draggable Object Restrictions
I trying to drag an object within flash. The dragging bit is easy, but I do not want the user to be able to drag the object off the screen. Do I have to set some kind of restrictions on where the user can move the object to?
Y Scale A Draggable Object, Please Help
I am tryng to make a draggable object get smaller as it is dragged up the screen, as in going into the distance, I would like a smooth dynamic effect. Does anyone have a tutorial or FLA they can share? I have had people give me parts of the code but I am pretty new at action scripts and need the entired code. Thanks with any help!!
R. Hamm
Draggable Object Problem
I have a main movie that I am loading another movie into using an empty movie. The loaded movie has a draggable object which doesn't work once it is loaded in the main movie. In fact none of the buttons work in the loaded movie either...
Any suggestions?
Thanks,
pjustice
Set Location Of A Draggable Object?
Hi all,
Is it possible to set the starting location of a draggable moviclip (or make a draggable mc go to a specific location in any way)??
Whenever I create one, it seems to go to the absolute left side of the draggable area (unless of course the user drags it somewhere else).
I don't know if it matters, but for my specific project, I'll need it to go to the center of it's draggable area.
Any help would be appreciated - Thanks!
- Kent
How Do I Ease A Draggable Object?
Hi,
I'm trying to make a game at the moment. It's a pretty simple game, just a standard drag and drop.
I want the draggable mc to ease back into place when it is dragged to an empty part of the screen or the wrong target. I have no idea how to do this.
Here's the code for each draggable mc... (code is on the hotspot in the mc)
Code:
on (press) {
startDrag("", true);
if (eval(_root.drag1._droptarget) == _root.target3) {
}
}
on (release) {
stopDrag();
if (eval(_root.drag1._droptarget) == _root.target1) {
getProperty ( "_root.drag1", _x ) = _root.drag1x;
getProperty ( "_root.drag1", _y) = _root.drag1y;
_root.incorrect_audio.gotoAndPlay(2);
} else {
if (eval(_root.drag1._droptarget) == _root.target3) {
setProperty("_root.drag1", _x, getProperty ( "_root.target3", _x ));
setProperty("_root.drag1", _y, getProperty ( "_root.target3", _y ));
setProperty("_root.target3", _alpha, 0);
setProperty("_root.word_3", _alpha, 0);
gotoAndPlay(2);
_root.score = _root.score + 1;
} else {
getProperty ( "_root.drag1", _x ) = _root.drag1x;
getProperty ( "_root.drag1", _y) = _root.drag1y;
}
Boundaries For A Draggable Object
Hi
I've created a movie clip that is draggable. Just looking for some basic code to tell this clip how far within a window it is draggable, so it can't be dragged off the screen, into "no man's land".
Thanks.
Draggable Object With Buttons
I'm making a basic kinda thing or so I thought...
Its basically a weekly calender with event titles under a date.
When the user clicks on an event title an external .swf loads in the top level over the calender into an mc called movieloader. (this contains the event info)
In the external .swf there is a button that when clicked will close the loaded .swf with the unloadMovie function which works fine until...
I want the box to be draggable so the user can move it around the screen to view whats under it in the root level.
To do this I used this;
on(press) {
startDrag("movieloader");
}
on(release) {
stopDrag();
}
But when I include this action script the mc drags but the buttons in the mc become un active and I can't figure out a way around this using the drag function...
Any ideas anyone?
I can't get the .fla on here for a while unfortantly.
Hope some1 can help!
Thanks
Peter
Constraining A Draggable Object
Hi there,
I've been trying to figure out how to constrain an object in AS3. I know I'm supposed to use a rectangle object, but I cannot figure out the syntax. Can anyone post a quick sample? I want to only allow the panel below slide up and down, and only by Y number of pixels.
ActionScript Code:
function makeControlPanel() {addChild(controlP);controlP.controlPanel_btn.addEventListener(MouseEvent.MOUSE_DOWN,controlPanelDrag);controlP.controlPanel_btn.addEventListener(MouseEvent.MOUSE_UP,controlPanelStopDrag);}
Draggable Object Hotspot
Hi there
I'm having a empty loader fetching an outside swf, and I want to be able to drag it, so far i can make it, but I am able to drag this window clicking in any point of it, and I want to be able to do it if I drag it only from a top bar, as in Microsoft Windows (you can only drag a window if you drag it from the titlebar).
How can I define which area of the swf will trigger the drag function?
thanks a lot
Draggable Object Not Detected After Drop
I have a drag object that I want to kick back to the starting coordinates upon dragging another object to the same hit target. Problem is, Flash doesn't recognize the droptarget once it' s been dropped to send it back to it's place. Is there a way around this? Here'e the code:
First to set the x,y coords on main timeline I have this.
mc01x = _root.mc01._x
mc02x = _root.mc02._x
mc01y = _root.mc01._y
mc02y = _root.mc02._y
..obviously that sets the variable coords right there.
Then for the button code inside of mc02 is this:
on (press) {
startDrag (this);
}
on (release) {
stopDrag ();
if (this._droptarget == "/hitarget") {
_root.mc01, _x, _root.mc01x;
_root.mc01, _y, _root.mc01y;
} else {
this._x = _root.mc02x;
this._y = _root.mc02y;
}
}
Now if mc01 is already there at hitarget, it should get sent back when you drag mc02 there but Flash isn't seeing it, even tracing the coords.
Why is this? Is there another way to set the other mc back in place?
Cheers
Easy Way To Rotate A Draggable Object?
If I create a draggable object using actionscript and a movie clip. Is there an easy way to allow for a user to be able to rotate the object as little or as much as they want to after it has been deemed draggable? I am not looking to have the object free rotate by itself but for the user to rotate it on command. Does anyone know of an easy way to do this? Thanks in advance for your help.
Andrew
Orienting A Draggable Object To A Path
I have a minor problem, I need to orient an object to a drag path. for instance I have a imagae that is focused on a central point and would like to to drag it around a circle whilst always focussing in on the center of the circle. Is there any way to do this.
Thanks in advance for any help
Draggable Object, Please Check Script...
hey guys, i have searched this forum and a few others but i have come up blank. i have a set of 4 buttons and i have an arrow underneath them, so when the user scrolls over the button, the arrow eases underneath BUT i only want the arrow to move when the cursor is near the buttons, so when the mouse is all over the screen, the arrow will not move continuously all over the place. simple enough, should be the problem that i am having is that when i add my script ( that has easing AS in it) to the arrow, it moves all over the screen. i tried the hit test and constraining it and that works but the arrow will not "ease" into place. i know there's a ton of posts but i cant seem to add them together. here is the script on my button thus far:
onClipEvent (load) {
_x = 460;
_y = 530;
speed = 3.5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse = 530;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
this eases my button fine and on the y axis, but how can i get it to only ease within a certain width of the x axis?
im not asking for a script, jsut guidance on where im going wrong with this
thanks for the help
Tracy
Draggable Object To Control Another Movie?
I was wondering if anyone could help me out...
I ultimately want to make an arrow button or movie that the user can drag along a path of semi-circle and in turn it would move the main movie (including itself)horizontally across the screen.
Does anyone have any ideas how this can be done???
Thanks in advance....
How Do I Scale A Draggable Object On Rollover?
Hey - and thanks to anyone who can help me!
I am creating a children's interactive click-and-drag activity. They will click on objects and drag them to the correct location. The only problem is I have so many objects that I had to scale them all down in order for them to all fit on the screen. How do I make it so when they rollover on the object, it increases to the correct scale (and stays that way) so they can then position it to the right place in the movie? Not sure if my objects need to be mc's or buttons for this to work. Any help MOST appreciated!
Clickable MC Inside A Draggable Object?
i have a box that the user can drag around. in the center of that box is a circle. i want the user to be able to click on that circle. sound simple but i can't do on(press)... because the parent MC, or the box, already has the on press for the drag. anyone have any ideas? if need be i can post a simple .fla/.swf example if anyone is willing to tackle this issue... thanks!
Really Simple: Clickable Draggable Object
Making a portfolio.
I want the pieces in my portfolio to be draggable in the space.
I also want the user to be able to click on them, with at gotoandplay() on a different point on the timeline.
I know how to do these things separately. I don't know how to put them together.
All the answers I'm finding are extremely specific to a certain project or are way off the mark. Please help.
Rollovers Disabled When Object Is Draggable
I have been searching and searching for a solution to this, but I can't seem to find any help. I have a movie clip that has rollovers in it. When I make the object startDrag, the rollovers no longer work. It is like the drag function takes over and disables the rollover. Is there a way to get rollovers to work in an object that can be dragged?
Draggable Object Within Stage Dimensions
I've got a simple draggable box, but when it's dragged about the stage, I don't want it to "disappear" if part of it is beyond the boundaries of the stage (in my case 780x412). Is there any way to stop a draggable object from "vanishing" beyond the border?
Thanks!
Draggable Object Not Detected After Drop
I have a drag object that I want to kick back to the starting coordinates upon dragging another object to the same hit target. Problem is, Flash doesn't recognize the droptarget once it' s been dropped to send it back to it's place. Is there a way around this? Here'e the code:
First to set the x,y coords on main timeline I have this.
mc01x = _root.mc01._x
mc02x = _root.mc02._x
mc01y = _root.mc01._y
mc02y = _root.mc02._y
..obviously that sets the variable coords right there.
Then for the button code inside of mc02 is this:
on (press) {
startDrag (this);
}
on (release) {
stopDrag ();
if (this._droptarget == "/hitarget") {
_root.mc01, _x, _root.mc01x;
_root.mc01, _y, _root.mc01y;
} else {
this._x = _root.mc02x;
this._y = _root.mc02y;
}
}
Now if mc01 is already there at hitarget, it should get sent back when you drag mc02 there but Flash isn't seeing it, even tracing the coords.
Why is this? Is there another way to set the other mc back in place?
Cheers,
Jesci
Changing A Text_Input To A Draggable Object
I have a Text Input box and a button. I'm trying to make it so that the button changes the text_input box into a draggable object while preserving the information that was entered (into the text input box) as a String to be saved for JSON encoding.
This is my first Flash app, too, so plz talk to me like I'm a monkey. Thanks.
Buttons Not Working When Draggable Object Is Present
Help! I have a movie clip that I wanted to stay confined in an area but still follow the cursor position. I used the actionscript
onClipEvent (load) {
startDrag("", true, _x, _y-10, _x, _y+400);
}
But, I have simple buttons right next to this movie clip and they're not working--the hand doesn't appear when I mouse over and when I click nothing happens as well. Also, the actionscript I'm using for the mouse-following movie clip may be causing the error, it was an experimental script that happened to work. If anyone knows what I can do to make them work please email me! Kittiesister@hotmail.com
Thanks!
Kirsten
Creating A Draggable Object That Can Only Be Moved Left Or Right...
I'm trying to develop a quick and simple demonstration involving a draggable object, but I don't want the user to be able to go up or down, just left or right. Here's what I've got:
ActionScript Code:
import flash.events.EventDispatcher;
import flash.display.Sprite;
function dragMovie(event:MouseEvent):void
{
cross.startDrag();
}
cross.addEventListener(MouseEvent.MOUSE_DOWN,
dragMovie);
function dropMovie(event:MouseEvent):void
{
cross.stopDrag();
}
cross.addEventListener(MouseEvent.MOUSE_UP,
dropMovie);
Is there an easy way to modify this code to restrict movement on the y-axis? Or am I taking a totally wrong approach? All input is greatly appreciated, thank you.
Draggable Object Attached To Elastic Like Hose... Help
Hi,
This is my first post, I am trying to play with draw nodes and draw api actionscript. What I am trying to make is a gas pump in flash where the user can drag the nozzle off the pump with an elastic like hose attached to it.
I found this tutorial: http://www.emanueleferonato.com/2007...me-with-flash/ , which is exactly what I want except I want more of an elastic like feel to the hose... I also found this which has the elastic effect but it follows the mouse rather than drag and drop: http://www.kirupa.com/forum/showthread.php?t=210193
Any help would be greatly appreciated
PS: I would also like the nozzle to be limited!
Draggable Falling Object That Snaps Back If Released
Hi all,
As from my subject, I'm trying to make a draggable movieclip that, when released, should snap back to the position that it was first pressed on. And I can't seem to get it working.
The code below has the movieclip falling naturally. When the button inside the movieclip is pressed on, you can move the movieclip anywhere you want. However, when you release the button, it continues falling where you left it. I hope I'm making sense. But this isn't what I want.
Any suggestions? (code below)
Thanks very much in advance.
//---------functions on main timeline------------
function moveThis(MC){
MC._x = _xmouse;
MC._y = _ymouse;
}
function resetThis(MC) {
MC._x = oldX;
MC._y = oldY;
}
//--------script in movieclip----------------
onClipEvent (load) {
dy = 2;
falling = true;
}
onClipEvent (mouseMove) {
if ( (dragging == true) && (falling == false) ){
_root.moveThis(this);
updateAfterEvent();
}
}
onClipEvent (enterFrame) {
if (falling == true) {
this._y += dy;
if (this._y >380) {
this._y = 390;
}
}
else if ( (dragging == false) &&
(falling == false) ) {
_root.resetThis(this);
falling = true;
}
}
//---------script in button---------------
on(press){
oldX = this._x;
oldY = this._y;
dragging = true;
falling = false;
}
on(release,releaseOutside){
dragging = false;
falling = true;
}
I Wanna Make A Zoom To An Object From A Draggable Scrollbar
Hello, I realy need a little AS help with an object (a square) that I wanna zoom it (in and out), progresively, from a scrollbar. Let me be more specific:
There is a horizontal scroll bar and a blue square. When I drag my scroll to the right the sqoare needs to grow, and when I drag my scroll to the left my square needs to minimize.
Here is the file attached that I work with (or you can download it from http://www.zerosoft.ro/downloads/drag_and_zoom_help.zip). If anybody can help me please do it.
Thank you guys!
[F8] Using A Slider To Alter The Values Of An Object (draggable Movie Clip)
Hi, firstly im new here so hello!
Im not sure how much sense this is going to make, but what im wanting to do is to have a slider bar and another movie clip (for example a light bulb). The slider bar will then be used to change the light bulbs brightness, when the slider is at the bottom the bulb will be "off" and then as it is dragged up the bar, it will gradually light up (and then keep getting brighter) Now im guessing that im going to need the _alpha value to make this happen but im not entirely sure on how to get through this.
So if anyone could help out with a few pointers (and if it made any sense at all) i'd very much appreciate it!
cheers
Need An Explicit Printing Tutorial For Flash 5 Or An Expert On Printing...
Been trying to print for a couple of hours now.
It seems to work fine when I use simple objet on the main timeline, but I get weird result when trying to print nested object.
For example, it got a movie clip containing multiple duplicate mc, and a dynamic text field. This movie clip is out of the movie stage.
When I try to print it it using:
printAsBitmap(this.effective.printArea, "bMovie");
nothing get printed.
so I move the movie on the stage.
this.effective._x = 0;
this.effective._y = 0;
printAsBitmap(this.effective.printArea, "bMovie");
the frame gets printed, but the text is out of phase even if it looks fine on the screen.
I have define the label of the frame I want to print with #p and the printing area with #b.
Why can I print my movie if it's off the stage, and why does the dynamic text field is printed out of phase when I tried to print ?
----------------------------------
At least can someone direct me to a good flash 5 tutorial on printing...
Martin
martin.tremblay37@sympatico.ca
Flash Printing - Trouble Printing Bitmap
Hello,
I have a Flash MX (not 2004) project that generates dynamic printable coupons. Here's the lowdown of what happens:
1. The flash coupon is loaded - dynamically loads in text and an external jpeg. This data is displayed in one frame that the user sees on the screen, and in another frame that the user never sees but is sent to the printer.
2. User presses print.
3. The flash movie sends the 'print this' frame to the printer, and voila! Printed coupon!
Here's a sample link: http://givingcorps.com/gc_central/br...&CoId=2&ChId=4
All works well, but when it comes time to print the coupon, everything prints but the jpeg. In fact, after you hit the 'print' button and the print dialogue box comes up, and you begin to print, you can actually see the jpeg vanish from the flash movie, only to return when print dialog box is finished!
I've tried a variety of tests - printing just the current frame, incorporating a test to make sure the image is loaded before allowing printing, and trying all the different print functions. I'm aware that print() only prints vector while printAsBitmap() will print everything, although with less quality, and I'm currently using printAsBitmap().
Has anybody run into this? Is there any solution or anything I'm overlooking?
Thanks for your help.
Printing Flash Player 7 Printing
hi,
i want to set up a flash site with multiple levels and have all levels print. is this possible? i've printed before out of flash playere 7 but was only able to print out of one level. any insights would be appreciated.
muchas gracias,
lavadome
Printing In Flash. Problem With Printing Twice...
I have an all vector form that displays data within it. As soon as it opens, it prints. I am running this in the first frame of the root time line.
Code:
print(_level0, "bmax");
stop();
The timeline is 2 frames and I am wanting to print both pages. Everything works fine expect after the print dialog box pops up and you hit print, then it prints the 2 frames, it pops up again and wants to print the pages one more time. I only want it to print once. Any ideas?
Draggable Object "sticks" With Mouse
I'm currently working on an interactive quiz for kids. One quiz (www26.brinkster.com/mixdmdia/missing.html) makes use of the drag and drop technique. I'm having several problems with my movie, as follows:
a) one (draggable) object (the scissors) stays "glued" to the mouse and just won't release (my script, of course, includes on (release) { stopDrag(); } ).
b) another object (the placard) doesn't work the way it's been programmed (while another object - the eye - consistently does what it's supposed to do). It's supposed to make a MC (some text saying "wow") visible when dropped on a particular target (the lady).
All scripts have been double-checked and I still don't understand why this is so. I've attached the .fla file for reference (can also download at www26.brinskter.com/mixdmdia/missing.zip)
Please help...
Draggable Item On A Draggable Mask
hello, i was trying to make a sniping game, and i can get the mask to drag. but i want crosshairs and it won't appear in the mask, so i put it on a diff. layer and it still won't work. has anyone had this same problem, and if so, please help me.
Help With Draggable Flash Map
If you download and open up the attached zip file and take a look at my Untitled-1 file, you can perfectly see that it's a full-colored map image. However, when I publish this file, it only displays the labels and not the rest of the colored images. Instead of having a dragable colored map, it appears that only the labels are draggable because the rest of the map won't show up when it's published, yet it's clearly there in the flash file when I go to edit it. Is this because I have too many layers so only the labels are showing up when it's published, and not everything else? Why is this happening and how can I fix it?
Please download my attached file to get a better understanding of my problem. Try to publish it and see if the published version differs from what's on the actual flash file itself. I hope somebody can help soon, because of this stupid problem, I'm so far from having the perfect map
Thanks if anyone can help!
[edit]
Replaced previous file uploaded with one that I'm currently working on & changed title to better reflect problem (problem occurs no matter what type of draggable script I'm using).
Flash - Draggable Over HTML
Is there a way to have a small Flash icon in the corner of an HTML page and enable the user to drage that around if not all over the page, within a defined area of HTML?
[AS 2 With Flash 9]buttons Within Draggable Mc
Yo,
I have created a drag and drop mc which is a box that expands when the mouse is released after dropping.
Within the mc are 4 buttons that are revealed when the box expands.
Once the box is expanded I can't seem to select or rollover the buttons that are within the mc.
Is this because I have assigned the drag and drop function to the entire mc, so it is ignoring the buttons being rolled over or pressed?
Is there a way to restric the drag and drop to just selecting a part within that mc? Like another box that doesn't expand?
If so, what is the best way I can solve this?
Cheers.
Draggable Areas In Flash
Hello People,
At the moment I am working on a drag and drop quiz for someone. This involves dragging the correct symbol to go on the correct sign.
I can define the draggable features thats no problem, I am searching for some actionscript that sets boundaries for the draggable movie clips. In other words, I want the clips to be dragged in a certain area and not over the entire screen.
If anyone knows I'd be very grateful,
Thanks and warm regards
James,
Flash - Draggable Over HTML?
Is there a way to have a Flash icon in the corner of an HTML page and enable a user to drag it if not all around the HTML page, within a defined area of the HTML page?
Non Draggable Flash Window
Hello everyone,
Is there a way i can make flash window to be non draggable type.
I mean creating Flash Window in Flash 8 and setting it not to move at all.
I have tried using the Vmax and Hmax positioning but its not working
(flash Mx)draggable Mc With Boundry?
Hello everyone, I'd just like to say thank you for every person that has helped me in the past; i hope that you all can help me out once more. I have a menu that i need to be able to drag, but the menu is only allowed to be dragged to a certain constraint. (i.e. before the menu can no longer be visible within the .swf) I have the basic drag ac:
on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}
How would i go about adding constraints to this mc? Thanks in way advance everyone. Take care
Victor.
Draggable Scrollpane? Please Help, Flash MX.
I'm fairly new to Actionscripting so bear with me please .
I'm trying to create a pseudo OS within flash. It's for a website I'm making to help me learn flash and action scripts. Essentially there will be "files" to click that that open up draggable windows, just like a mac/pc/linux etc GUI.
For example; there could be files for "about, gallery, info, contact" or whatever else that when clicked would open up scrollable/draggable/closeable windows with the content in them.
I'm having serious problems finding any documentation or tutorials on this, even though I'm pretty sure this kind of thing has been used often. My main hang up right now is draggable scrollpanes. Is it possible to do? I can't seem to figure it out.
I'm really stuck on the draggable scrollpanes, but help with any of the other parts would be greatly appreciated as well. Just to let you know where I am at---
I have movie clips in place of the scroll panes right now. I wasn't sure on how to actually open the movie clips with a button press so I just placed the two movie clips off the stage, and when one of the two buttons on the stage is pressed, it moves one of the clips onto the stage (thats a ghetto way of doing it, but I'm not sure on how to do it a better way). The clips are draggable with transparency and levels so whatever your dragging becomes slightly transparent and moves to the top level. Aside from my scrollpane problem, I also have no idea how to get the clips to close or move off the stage...
Anyway, please help me out if you can. Thanks!
-----------
~kong
Draggable TextField - AS 2.0, Flash 8
Hi!
I am working on a web-based web application that allows the user to add images and textfields to the movie, and also allows them to drag the images and textfields to desired positions in the movie.
I have no problem adding the images (I create each image within a MovieClip, and then do startDrag and stopDrag on the mouse events.), but am unable to get the TextFields to work. I can add a textfield to the movie easily, I just can't figure out how to allow the user to move it.
I've tried doing a startDrag directly on the TextField. This didn't work.
I tried placing the TextField in a movieclip as follows:
ExternalInterface.addCallback("setText1", this, setText1);
function setText1():Void {
this.createEmptyMovieClip("mTextHolder1", -3050)
mTextHolder1.createTextField("mText1", -3051, 100, 100, 100, 100);
mText1.text = "Widget!";
}
mTextHolder1.onPress = function() {
startDrag(this);
}
mTextHolder1.onRelease = function() {
stopDrag();
}
This adds the text to the movie, but it still does not allow me the user to move the textfield.
Any suggestions?
- Mikeymac
(flash Mx)draggable Mc With Boundry?
Hello everyone, I'd just like to say thank you for every person that has helped me in the past; i hope that you all can help me out once more. I have a menu that i need to be able to drag, but the menu is only allowed to be dragged to a certain constraint. (i.e. before the menu can no longer be visible within the .swf) I have the basic drag ac:
on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}
How would i go about adding constraints to this mc? Thanks in way advance everyone. Take care
Victor.
Draggable Scrollpane? Please Help, Flash MX.
I'm fairly new to Actionscripting so bear with me please .
I'm trying to create a pseudo OS within flash. It's for a website I'm making to help me learn flash and action scripts. Essentially there will be "files" to click that that open up draggable windows, just like a mac/pc/linux etc GUI.
For example; there could be files for "about, gallery, info, contact" or whatever else that when clicked would open up scrollable/draggable/closeable windows with the content in them.
I'm having serious problems finding any documentation or tutorials on this, even though I'm pretty sure this kind of thing has been used often. My main hang up right now is draggable scrollpanes. Is it possible to do? I can't seem to figure it out.
I'm really stuck on the draggable scrollpanes, but help with any of the other parts would be greatly appreciated as well. Just to let you know where I am at---
I have movie clips in place of the scroll panes right now. I wasn't sure on how to actually open the movie clips with a button press so I just placed the two movie clips off the stage, and when one of the two buttons on the stage is pressed, it moves one of the clips onto the stage (thats a ghetto way of doing it, but I'm not sure on how to do it a better way). The clips are draggable with transparency and levels so whatever your dragging becomes slightly transparent and moves to the top level. Aside from my scrollpane problem, I also have no idea how to get the clips to close or move off the stage...
Anyway, please help me out if you can. Thanks!
-----------
~kong
|