Drag/Drop Floor Plan App Issues : Printing/alignin
Link to SWF:
Floor Plan App
Purpose:
Allows users to select products and place onto their floor plans, which is saved into our DB to be loaded by our filed techs to place further "tech-specific" symbols onto the plan. All of this is covered so far, with no problems.
Issues:
1) I need the have a print button that will print the floor plan in it's entirety - the products placed, the full length, NOT scaled to fit on one page, but printed out on however many are need for the full size print.
2) When a product is selected (to place onto the plan), the "attachedMC" is placed at a specific X/Y coord. I am wanting the attachedMC to be placed on the same X/Y coord (upper left of the plan) in relation to the floor plan coordinates. In other words, if the plan is scrolled to the very bottom, and the user selects a product, currently I have the plan scrolling back to the top, and the item placed in the upper left of the plan. I want the product to appear in the upper left of the plan, no matter where the actual plan coords are. Make sense?
THAT SAID:
I'm using Flash 8 for this, hoping to utilize some of the Bitmap manipulation and even file upload (for plans), and even though this app is AS heavy, it's been a real learning trila for me. I am NOT an expert, and much of the code is probably not as clean as many "gurus" would like .
I can send the .FLA (and Prototype .MXP used - Laco) through email. It's an internal project, so I don't want to upload it.
Ultrashock Forums > Flash > ActionScript
Posted on: 2006-03-02
View Complete Forum Thread with Replies
Sponsored Links:
Drag/Drop Floor Plan App Issues - Printing And Aligning
Link to SWF:
Floor Plan App
Purpose:
Allows users to select products and place onto their floor plans, which is saved into our DB to be loaded by our filed techs to place further "tech-specific" symbols onto the plan. All of this is covered so far, with no problems.
Issues:
1) I need the have a print button that will print the floor plan in it's entirety - the products placed, the full length, NOT scaled to fit on one page, but printed out on however many are need for the full size print.
2) When a product is selected (to place onto the plan), the "attachedMC" is placed at a specific X/Y coord. I am wanting the attachedMC to be placed on the same X/Y coord (upper left of the plan) in relation to the floor plan coordinates. In other words, if the plan is scrolled to the very bottom, and the user selects a product, currently I have the plan scrolling back to the top, and the item placed in the upper left of the plan. I want the product to appear in the upper left of the plan, no matter where the actual plan coords are. Make sense?
THAT SAID:
I'm using Flash 8 for this, hoping to utilize some of the Bitmap manipulation and even file upload (for plans), and even though this app is AS heavy, it's been a real learning trila for me. I am NOT an expert, and much of the code is probably not as clean as many "gurus" would like .
I can send the .FLA (and Prototype .MXP used - Laco) through email. It's an internal project, so I don't want to upload it.
View Replies !
View Related
Interactive Floor Plan -> Drag And Drop Furniture
Hi! I am a newbie and would really appreciate any help you can give me. I am attempting to build an interactive floor plan (Flash MX 2004) with drag and drop furniture. The user will use menus to navigate to different rooms and select the appropriate furniture for that room. They will be able to rotate the furniture pieces, delete furniture pieces, clear all furniture pieces and print the completed floorplan. Please see the attached FLA to see what I've managed so far (this isn't the interface, just a test). I'm clearly on the wrong track because a) I've set up each menu (room type) as a scene, and when the user clicks on a new room (button1, button2, etc.), the furniture that they've dragged and dropped disappears; and b) I can't get each furniture piece to rotate independently; and c) I need to duplicate the furniture movieclips so when it's dragged from the menu onto the floor plan, another one replaces it
Direction or advice of any kind would be much appreciated! Even helping me to understand how to set up the timeline properly (instead of using scenes like I've tried) would be SO much help. I feel like a real dolt.
Thank you in advance!!
View Replies !
View Related
Interactive Floor Plan -> Drag And Drop Furniture [Newbie]
Hi! I am a newbie and would really appreciate any help you can give me. I am attempting to build an interactive floor plan (Flash MX 2004) with drag and drop furniture. The user will use menus to navigate to different rooms and select the appropriate furniture for that room. They will be able to rotate the furniture pieces, delete furniture pieces, clear all furniture pieces and print the completed floorplan. Please see the attached FLA to see what I've managed so far (this isn't the interface, just a test).
I'm clearly on the wrong track because a) I've set up each menu (room type) as a scene, and when the user clicks on a new room (button1, button2, etc.), the furniture that they've dragged and dropped disappears; and b) I can't get each furniture piece to rotate independently; and c) I need to duplicate the furniture movieclips so when it's dragged from the menu onto the floor plan, another one replaces it
Direction or advice of any kind would be much appreciated! Even helping me to understand how to set up the timeline properly (instead of using scenes like I've tried) would be SO much help.
Thank you in advance!!
View Replies !
View Related
AttachMovie With Drag & Drop For Landscape Plan?
I'm trying to create a landscaping plan that allows the user to drag images of various trees and shrubs into a yard plan and position them.
The user needs to drag an image of a tree seen in side view into the yard plan, drop it and have a plan view of the tree appear in the yard plan in that position, (and have the side view image that was being dragged disappear).
My thought is to create a grid of144 movie clips (12x12) over the yard plan, and cause the plan view of a tree to appear by using attachMovie to attach an instance of the plan view clip to the grid clip over which the user drops the side view clip.
I need a way to have the dragged (side view) clip and any one of the grid clips interact to call the attachMovie function for that grid clip (without doing a hitTest on 144 movie clips).
I'm also open to any other thoughts on how to create this. Thanks.
View Replies !
View Related
Floor Plan Help #1: Manipulating Movie Clip Objects At Runtime
Hi Guys,
I am a grad student working on a floor planner project. I am fairly new to Flash and action script as a whole, and would like to know how one can write a script that allows users to rescale/resize and rotate movie clip objects at runtime. I.e. When a user moves their cursor over an object on the floor plan, I would like for them to be able to either resize the object or rotate it.
After trawling the web, I am still yet to find an existing API that I can use to build my floor planner in Flash. However, I did stumble across the 'Space planner' created by Icovia for architects and interior designers alike. If you visit the icovia web site at http://www.icovia.com/, and click on 'Test Drive' under Interior design and Home renovations section, you will see what I envisage for my project.
However, all I would like to know for now is how I can manipulate objects on the floorplan using action script.
Many Thanks
Prince Taj
View Replies !
View Related
Floor Plan Help #1: Manipulating Movie Clip Objects At Runtime
Hi Guys,
I am a grad student working on a floor planner project. I am fairly new to Flash and action script as a whole, and would like to know how one can write a script that allows users to rescale/resize and rotate movie clip objects at runtime. I.e. When a user moves their cursor over an object on the floor plan, I would like for them to be able to either resize the object or rotate it.
After trawling the web, I am still yet to find an existing API that I can use to build my floor planner in Flash. However, I did stumble across the 'Space planner' created by Icovia for architects and interior designers alike. If you visit the icovia web site at http://www.icovia.com/, and click on 'Test Drive' under Interior design and Home renovations section, you will see what I envisage for my project.
However, all I would like to know for now is how I can manipulate objects on the floorplan using action script.
Many Thanks
Prince Taj
View Replies !
View Related
Drag And Drop Issues
Why won't this code send me to the designated frame?
on(release) {
stopDrag();
if (this._droptarget=="/target1") {
setProperty(this, _x, _root.target1._x);
setProperty(this, _y, _root.target1._y);
trace("Why won't this work?")
gotoAndPlay("house");
} else {
_x = defaultX;
_y = defaultY;
}
}
I tried it with "gotoAndPlay(scene, frame);" as well and it still didn't work. I'm also positive that there is a frame labeled "house." The trace works fine but it refuses to go to the frame I tell it to go to. Any idea?
Thanks in advance,
Carl Gibson - rkitecsure@hotmail.com
View Replies !
View Related
Drag & Drop Issues
im am currently doin drag and drop for a website this is wat actionscript i have
on (press) {
this.startDrag ();
}
on (release) {
this.stopDrag();
if (_root.vid2._droptarget == "/vcr") {
this._x=225;
this._y=340;
_root.amission.gotoAndPlay(2);
}
else {
this._x=496.8;
this._y=327.3;
}
}
when the object hits the target i have a movie being played, but when it doesnt hit the target i want it to play a different movie then too. i have tried putting
_root.static.gotoAndPlay(2);
at the end of this script but it does not seem to work, any suggestions?
View Replies !
View Related
DRAG AND DROP ISSUES
Intro: I started learning flash about a week ago and have made a noobish, but decent site. I really want to have drag and drop windows on my site. I have figured out the drag and drop part...(see below)...now I need to know if I wanted to put, say a button on that movie clip that would move with the clip, how would I do that? Is there a way to group the two so they drag and drop together?
I would greatly appreciate help with this cause I've probably spent 10hours trying to figure it out. Don't laugh at me...
movieclip.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
movieclipaddEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
function mouseDownHandler(evt:MouseEvent):void {
var object = evt.target;
object.startDrag();
}
View Replies !
View Related
Issues W/drag And Drop
Heya, im currently working on a project that requires a "experimental navigation" that leads to page with dynamically loaded content from a database.
Basically, my idea is to make a RTS-like game, where in order to reach the sections of the site, you have to build certain buildings in a tech-tree like fashion. As you build, more sections become available. Now, im not the best at actionscripting, but I do have some experience with it.
My problem is, im trying to create a drag and drop, so when you click on the button to create a building and drag it to the build area, the construction of the building animates and finishes. I would like the building to be clickable also so when all the buildings are constructed you can click on them to go back to certain areas.
this is what i have on the button:
on (press) {
startDrag ("_root.drag_main"); //<-- (drag_main is a duplicate image of the button in movie clip form on the main stage so it can be dragged)
_root.main = 1; //<-- (this is just making the movie clip appear, as i have the alpha set to 0 and 1 is the variable calling it to be visible)
}
on (release) {
stopDrag();
_root.drag_main.gotoAndPlay("main"); //<-- (this is pointing to the animation of the building constructing and finishing which is inside of the duplicate button movie clip)
}
if this is confusing, i understand and if there is any ideas of just starting over and doing it a different way i'm all for it. I'm sure there is a much simpler way of doing this.
What happens with this code is, if i drag and drop the animation wont play, but if i just click and release the button the animation works. It just doesnt work if i drag first. Any ideas or suggestions anyone has i'd appreciate. thanks
View Replies !
View Related
Drag And Drop Issues..
Hello,
I wonder if someone might be able to shed some light here. I have a follow the mouse/elastic style effect in my navigation. It works great on it's own. I would like to load a movie in a higher level with a drag and drop function. As you can see the drag and drop movie will not work when loaded onto my example movie. I assume the problem has something to do with the fact that both movies have actionscript that works with the mouse. I have attached an example of my problem. Any help in getting these two movies to jive independantly is greatly appreciated.
Thanks for your time, jevans.
View Replies !
View Related
Drag And Drop Issues Pleeease Help
ok, i have a few .swf loaded from a menu, go here to see how i finally figured out how to load them successfully as now im having trouble with a drag and drop:
http://www.flashkit.com/board/showth...hreadid=567110
The drag and drop function works fine when the movies are played individually but when they have been loaded in sequence (as described at the above link) the functions stops working correctly.
when the 'drags' are dropped in the correct place they behave as if they have been dropped in the wrong place.
please please help
thanks in advance
davey
View Replies !
View Related
[F8] X/Y Scaling Issues In Drag And Drop
Good afternoon,
I have come across a coding problem in my Flash movie that has boggled my mind. I have created a drag and drop movie in which the drag object scales to twice its size once it is released over the drop zone (which is what I wanted). The problem I am having is that if the user clicks and releases the object again after dropping it in the drop zone, the object will again morph to twice its size. If you keep clicking and releasing the object multiple times while inside the drop zone, it keeps growing and growing like the blob.
I understand that it may be doing this because I told it to enlarge to 2x the size when dropped over the zone. So I am looking for some code (if it exists) that will tell it to quit scaling 2x its size if it is being clicked and dragged around once inside of the drop zone. The purpose of this movie is for users to rearrange (pictures of) appliances to see how they may want them stacked or presented in their own kitchens, so it's important that they be able to move them around while inside of the drop zone.
The following is the code I am using which is attached to the actual dragging movie clip:
onClipEvent (load) {
this.origX = this._x;
this.origY = this._y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.startDrag();
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.stopDrag();
// scales picture out upon dropping
if (_parent.dropzone.hitTest(this._x,this._y,true)) {
this._xscale *= 2;
this._yscale *= 2;
} else {
// return it to its original location at orig size
this._x = this.origX;
this._y = this.origY;
this._xscale = 100;
this._yscale = 100;
}
}
}
I would appreciate any insight to this issue I'm having! I hope I was clear enough. Thanks so much.
Jill
View Replies !
View Related
Issues With Drag And Drop Questions
I am very new to using flash, so please help.
I have created a flash document that imports a swf file. The main document contains questions that need to be answered, and when the user clicks on a link, it opens the imported swf file.
The problem that I am having, is when I publish the document as a HTML, I can work through the questions in the main part, but then it comes time to load the swf file, and work through those questions, it won't work. The multiple choice questions and true/false ones work, but when it comes to the drag and drop question, it won't.
So far, I can click on the item that needs to be moved, but it won't "Stick" to the destination. I have looked at the _root, the _parent, and _global and have tried each, but to no avail.
If someone could give me a suggestion, it would be great!
Thank you
View Replies !
View Related
Drag And Drop Issues [renamed]
I've created a small drag and drop movie which works quite well... except that I'd like the Mcs to move back to their original position on (press)...but they are not. Where am I going wrong?
Have incl. small attachment.
Yossi
View Replies !
View Related
Drag Abd Drop, Rollover When Drag Is Over Drop Target?
Hi, im using Flash MX 2004.
I am building a drag and drop, and I have a MC that can be dragged around the stage. The trouble im having is trying to make the drop location do something when i drag the MC over/off it.
I have the following code which works.
objectToDrag.onMouseMove = function() {
if ((objectToDrag.hitTest(dropper)) && (component._beingDragged == true)) {
dropper._alpha = 50;
temp++;
trace("working"+temp);
}
}
This will make the clip i am dragging the draggable MC over change alpha, but for the life of me I cant figure out how to get the alpha to change BACK, after the draggable MC is taken away from the 'dropper'.
Is there a better way that hitTest??
Cheerz,
Dwayne
View Replies !
View Related
Drag And Drop MC, Involves Polygonal Boundary, Drop Into Trash.
Hello. This is my desperate problem:
I am creating a circuit diagram designer.
There is basically instructions on the left, in a scrolling textbox (taken care of) and above that a rectangle with a bunch of components in it.
You need to be able to drag the circuit part from the side bar (a duplicate, so that the original remains in the same spot), and to a square on the grid on the stage of this program(Should snap to place...). Each clone should be able to be moved. Like so: You Press on a MC to drag it, the thing you are dragging to the stage is of course a clone. You release the mouse button, so it drops on the grid. It snaps into place. *Oops, you made a mistake. You press on it again, it is draged by your mouse to another square, and does not make a clone. *mind Changes... I dont want to use this one any more. You press on the MC, drag it to a bin which animates to show you the MC is being dragged over it. You release, the MC in question is deleted/removed...
You need to be able to rotate circuit parts by clicking on it so that it highlights, then pressing space bar.
It must also be possible to delete a duplicate by dragging it to the trash (an image/ MC), and last but not least, it is required to save the contents of the stage, or print them off.
Please note that to print it off, there are 2 input boxes outside the stage. One for the title, and one for the Users' Name. When they click on the print button, the two dynamic text fields must retrieve the values from the box outside of the programs' stage.
One Last detail: The cloned objects to be dragged around net to be in a six co-ordinate polygonal boundary, so that no-one can place any objects outside of the stage.
If anyone can help me, i would greatly appriciate it. I need to get this done asap. The graphics have been taken care of, it is just the coding to be done now. HELP, HELP PLEASE!
Thanks - Matt K
View Replies !
View Related
(1)drag Drop In 3 (2)drag Dropin 3 ...print 3 Contents (1)+(2)
i want to do the following.
drag (dynamic text file link)1 of choice of x text file links
into an area where all text file links can then be printed..(the text file itself)
[1] [2] [3] [4] [5]...
(basket)
drag drop [1] then [2] then [3] then [4] into (basket)
then print textfiles related to [1] [2] [3] [4]
if sombody could point me to a good tutorial or help me on my way?
thanx
View Replies !
View Related
Drag&Drop Duplicate Movie With Drop Target
Hi There...
I'm creating a game where people can design their own cell phone by adding diamonds to it, a "Bling Phone" if you will. You will be able to add 4 types of diamonds to it, change the phones skin, add music to it, give it a name etc etc
I've got it to a stage where it when you click on a diamond(mc) on the stage it duplicates a hidden diamond(mc with a button inside) off stage and you can drag it around etc and then click save. Theres a script which grabs the instance name, x and y position of every diamond on the stage and stores it into a multi dimensional array which will be fed into a mysql database for retreival purposes at a later date.
Now my problem is i would like to be able to use the phone(mc) as a drop target but i'm not sure where to put the droptarget script. does it go on the original MC diamond or the duplicated mc diamond with the button inside it ?
Once a diamond has been dropped onto the phone i would also like it if the user then drags the diamond off the phone it gets deleted. I think i've got it half working but my variables which keep track how many diamonds are on stage dont appear to be updating.
I've attached the .fla file to this post if some is interested in taking a look and helping me out. The droptarget script is only on the blue diamond so far.
Any help would be much appreciated.
Thanks
Rob
View Replies !
View Related
Drag And Drop - Multiple MC's On To A Single Drop Target
Hi All
I am struggling with a drag and drop excercise.
I have 15 movie clips that need to be dragged over a single drop target in a specific order. i.e 1,2,3,4, when the correct movie clip is dragged to the drop target a movie within the drop target needs to advance a single frame to display the result of the correct movie clip being dragged over the drop target.
Would I be correct in thinking I need to use some kind of array to compare the clip that is being dragged to the frame position of the drop target?
I have the bones of this working and need advice / help on getting the clips to work in the specific order required. I can post my code if needed.
Thanks in advance.
btw - am using Flash MX 2004 Professional
View Replies !
View Related
[fmx] Drag And Drop With Multiple Drop Locations
Hi
I am trying to make a draggable object have two drop locations, but it will still only drop to one. Please if anyone can help me or notice my mistake it would be really appreciated.
on (release) {
if (_root.DragMotor._droptarget == "/Socket2") {
_root.DragMotor._x = _root.Socket1._x;
_root.DragMotor._y = _root.Socket1._y;
_root.CheckMotorDrop();
} else {
_root.MotorDropped = 0;
}
if (_root.DragMotor._droptarget == "/Socket1") {
_root.DragMotor._x = _root.Socket2._x;
_root.DragMotor._y = _root.Socket2._y;
_root.CheckMotorDrop();
} else {
_root.MotorDropped = 0;
}
function CheckMotorDrop () {
//set the speech bubble to give information
_root.txtSpeech = "You have added a motor to the circuit.";
setProperty(_root.DragMotor, _width, 55);
setProperty(_root.DragMotor, _height, 55);
_root.MotorPowered = 1;
_root.DragMotor.play();
_root.MotorDropped = 1;
}
Thanks for your time, Matt.
View Replies !
View Related
Drag And Drop With Additional Drop Area
Hi there i have a little project on at the moment, an educational game for children, where items need to be dragged from one position to another, but with the possibility of being dragged to a seperate holding area first, before being dragged to their final resting area.
i have this code which deals with a straight 'a to b' drag and drop function:
Code:
setProperty(_root.boing,_visible,false);
function dragSetup(clip, targ) {
clip.onPress = function() {
startDrag(this);
this.beingDragged=true;
};
clip.onRelease = clip.onReleaseOutside=function () {
stopDrag();
this.beingDragged=false;
if (eval(this._droptarget) == targ) {
this.onTarget = true;
_root.targ.gotoAndStop(2);
} else {
this.onTarget = false;
_root.targ.gotoAndStop(1);
}
};
//the variables below will store the clips starting position
clip.myHomeX = clip._x;
clip.myHomeY = clip._y;
//the variables below will store the clips end position
clip.myFinalX = targ._x;
clip.myFinalY = targ._y;
clip.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 (!this.beingDragged && !this.onTarget) {
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 (!this.beingDragged && this.onTarget) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
setProperty(_root.boing,_visible,true);
}
};
}
dragSetup(circle_mc,targetCircle);
dragSetup(circle2_mc,targetCircle2);
dragSetup(circle3_mc,targetCircle3);
which i have then tried to adapt to 'a to b possibly via c':
Code:
function dragSetup(clip, targ, drop) {
clip.onPress = function() {
startDrag(this);
this.beingDragged = true;
};
clip.onRelease = clip.onReleaseOutside=function () {
stopDrag();
this.beingDragged = false;
if (eval(this._droptarget) == targ) {
this.onTarget = true;
this.onDrop = false;
_root.targ.gotoAndStop(2);
} else if (eval(this._droptarget) == drop) {
this.onDrop = true;
this.onTarget = false;
_root.targ.gotoAndStop(1);
} else {
this.onTarget = false;
this.onDrop = false;
_root.targ.gotoAndStop(1);
}
};
//the variables below will store the clips starting position
clip.myHomeX = clip._x;
clip.myHomeY = clip._y;
//the variables below will store the clips end position
clip.myFinalX = targ._x;
clip.myFinalY = targ._y;
//the variables below will store the clips end position
clip.myDropX = drop._x;
clip.myDropY = drop._y;
clip.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 (!this.beingDragged && !this.onTarget && !this.onTarget) {
this._x -= (this._x-this.myHomeX)/5;
this._y -= (this._y-this.myHomeY)/5;
trace("didn't drag anywhere");
//if the circle is dropped on any part of the target it slides to the center of the target
} else if (!this.beingDragged && !this.onDrop && this.onTarget) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
trace("correct!");
} else if (!this.beingDragged && !this.onTarget && this.onDrop) {
this._x -= (this._x-this.myDropX)/5;
this._y -= (this._y-this.myDropY)/5;
trace("teacher drop area");
}
};
}
dragSetup(circle_mc, targetCircle, dropPlace);
dragSetup(circle2_mc, targetCircle2, dropPlace);
dragSetup(circle3_mc, targetCircle3, dropPlace);
any ideas where i'm going wrong? it looks right to me but only ever seems to work when you drag 'a to b'
thanks,
dave.
View Replies !
View Related
Drag And Drop - When Drop Targets Overlap
Hi,
Please see
http://www.paraminionstudios.com/dump/PleaseHelp.zip for the files I'm requestiong help on (upload tool is not working).
Drag and drop the power generator "icons" on the left of the screen into the designated areas in the 3d scene to "install" power generators along the side of the building.
I have 4 designated regions in a 3d rendered scene. there are 4 dragable power generator "icons" on the far left of the screen. When the generator icons are dragged and dropped upon one of the 4 targets, the target mc advances to frame 2 of the target mc, and the generator icon disappears (actually the generator icon mcs simply advance to frame 2 of the mc.. a blank kframe). Frame 2 of each of the targets contains a small graphic of a generator that fits the perspective of the 3d scene.
my problem here is that my target MCs overlap slightly. This is causing some issues. if you have already "installed" generator 1, and you then go to drag another icon just below target1, flash is getting confused because of the overlapping. Is it possible to change the instance name of the target after dropping a generator icon on the target so that the script doesn't get confused? the layer order doesn't seem to have any bearing on anything here as I had hoped.
The file is located (upload tool isn't working) at:
http://www.paraminionstudios.com/dump/PleaseHelp.zip
On "vacation", working for a client. never fun.
View Replies !
View Related
Please Help... Printing Issues
hi all,
so i got this website running for weeks, it was made in flash 5 and prints dynamically generated sheets (to make it short).
everything worked fine, until flash player 6.0r40 for windows. the printer just "prints" a blank sheet. none of the static graphical elements, none of the dynamic stuff.
anyone else experienced this? everything worked in 6.0r29. it also works in 6.0r40 on the mac.
thanks,
--mark
View Replies !
View Related
Printing Issues
Hi there. I have a project in which I am trying to print several, separate scenes, singly. I do NOT want to print all 242 frames/scenes at the same time. Is there a way to print JUST a particular scene at one time? There are several that I need to be able to print, but when in a particular scene, one needs to print ONLY that scene. Please tell me there's a way. Thanks.
Amy
Hope I explained that well enough.
View Replies !
View Related
Printing Issues Please Help
I am trying to print the text contained in one of the movies displayed in the player. I have created a print button in my movie, but when you click it it prints the entire image being displayed, not just the text on the page. How can I print just the symbols with text? Thank you for your help!
Here is my Code:
on (release) {
print(PrintMe,"bmovie");
}
View Replies !
View Related
[CS3] Printing Issues From .swf
Alrighty. I'm creating a dynamic bubble chart from an XML sheet, and it draws out the bubble chart etc. just dandy, now I'm wanting to print the page. So I have a simple print button with an onRelease function as follows:
this.onRelease = function() {
printAsBitmap(_root,"bmax");
};
This works just great. The font/text/circles/shapes are nice and clear, and very legible, great looking, however the printed chart is not centered on the final printed paper, because it is merely printing the stage from 0,0 as far as I understand.
So I looked a little and found you can use the printJob class, to sort of draw a rectangle around where you want it to print. This sounds grand for my problem in theory, so I try it, and it works, however, the instant I designate a redraw printable area, the resolution gets wacky on the text, circles/shapes etc., and it all becomes basically illegible. As if I saved it out as a jpg at 25 quality 4 times in a row instead of printing the Vector version.
I'm using the following for the printJob class way:
-----
var my_pj = new PrintJob();
var myResult = my_pj.start();
if(myResult){
myResult = my_pj.addPage ("_root.ballHolder_mc", {xMin : -180, xMax: 1000, yMin: -100,
yMax: 600},{printAsBitmap:true});
my_pj.send();
}
delete my_pj;
------
Now does anyone else have any issues with using printJob and it messing up the 'clarity' of the content being printed? It renders this method unusable for me, so I'm stuck having my content not be centered on the final printed page as of now, so hopefully someone can help! I assume it would be because of the dynamic content that is being drawn, but I don't see how that would even be a problem. I've tried doing it with printAsBitmap:true, and false, I've tried all those basic ideas, but please shoot any thoughts my way if you can think of what would be ruining the clarity. Thanks!
Nick
View Replies !
View Related
Printing Issues
I am working on a Flash CS4 project where a form will be filled out and then needs to be printed. Although a user can right-click and print from the context menu, it has been added as a "nice to have" for a print icon to be added, and for that to print all forms filled out (there may be multiple forms). I've read that a PrintJob must accept a Sprite and run from there. I've taken this to mean that I'll have to add all of the items on stage to the sprite, constructed in memory, and keep that Sprite in a collection until either the program is closed or the print button is used. Is there not an easier way to accomplish printing in Flash?
View Replies !
View Related
Issues...Printing External .swf's...
Ok, I need to print external .swf files (NOT the current movie), and found some scripting to do this (a bit outdated too) on this site. It works on a PC, but gets cut off on a Mac. Plus, when you print, it quickly flashes the loaded external .swf file which looks weird. Any help or ideas??? Any is greatly appreciated, I am of course in a time crunch.
View Replies !
View Related
Printing Issues With Firefox/IE
Hello, I have some issues with printing swf files in an HTML page.
I am sending to flash from the html file a variable "isPrint = true" this uses a script that makes the animation stop on the last frame.
if(isPrint == "true") {
gotoAndStop("endingFrame");
//gotoAndStop(226)
}
Ok with only this, when I am using this on Firefox it works fine, but when I tried with IE 7 it didnt stop on the good frame. So I added a text box with showing _root._currentframe .
In Firefox the result was 226
In opera the result was 226
in Safari the result was 226
in IE the result was 9 (What the hell?!?!)
On top of that, when I am using the print preview, the swf doesn't appear on the page in Firefox but it does in IE.
If I can get to fix one of these issues I would be VERY VERY happy >.>
View Replies !
View Related
Drag And Drop : Drop Options
I have some simple drag and drop code here that works fine. But it is set to let each object go to only one "dropZone". I would like be able to have each object be able to go to any of the drop zoned named "dropZone1, dropZone2, dropZone3....". I wouls also like to have is so you can't put multiple object in one zone. Basically, if the zone is being used, the object will again revert back to it's original place. Actionscript is preety new to me so I have trouble with format. I have tried a bunch of stuff that seems like it would work, but I get wierd results. any help would be much appreciated, thanks.
onClipEvent (load) {
this.origX = this._x;
this.origY = this._y;
}
onClipEvent (mouseDown) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.startDrag();
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_parent._xmouse, _parent._ymouse)) {
this.stopDrag();
// see if the dropZone conatins the center of this mc
if (_parent.dropZone1.hitTest(this._x,this._y,true)) {
// center it on the drop zone
this._x = _parent.dropZone1._x;
this._y = _parent.dropZone1._y;
} else {
// return it to its original location
this._x = this.origX;
this._y = this.origY;
}
}
}
View Replies !
View Related
Drag And Drop To Any Drop Target
Hi guys....I am trying to create some more generic code for a project im on....infact you guys have already helped me lots in getting it up and running!
I have basicly got it where all the dragObjects and assigned functions within a for loop and therefore been assigned to their own dropTargets...all working fine, however a situation is needed where if a user drops a clip onto anything rather than a hit area it doesnt just register as an incorrect drop.....at the moment a drag that misses a dropTarget will be the same as one that is dropped onto an incorrect drop target and thats just a bit unfair for them as it means they have used up one of only two chances!!!
basicly I need to know if its possible to obtain using the coding style that i already have been whether a drop is onto any of the drop targets before than going to chec if its the correct one or not....sorry for the long winded talk but seemed the only way i could explain!!!
the code i'm using is below
Code:
var Xpos:Number;
var Ypos:Number;
var objects:Number = 2;
for (i = 1; i <= objects; i++) {
// assigning the on press events to the dragObjects
this["dragObject"+i+"_mc"].onPress = function() {
this.startDrag(true);
// assigning the original X and Y of the dragged clips
Xpos = this._x;
Ypos = this._y;
}
// assinging the on release events to the dragObjects
this["dragObject"+i+"_mc"].onRelease = function() {
// finding the number of the dragObject to use in the submitAnswer function
objName = this._name
dragNumber = Number(objName.substr(10, 1));
submitAnswer(dragNumber);
}
}
// function to assertain whether the drop was a successful one - whether dropObecjt1 was dragged on dropTarget1 and so on
// the number is passed from the onRealease function
function submitAnswer(dragNumber:Number) {
this.stopDrag();
// if its dropped onto its correct target then turn the button off, place ontop of its target
if (this["dragObject"+dragNumber+"_mc"].hitTest(this["dragTarget"+dragNumber+"_mc"])) {
this["dragObject"+dragNumber+"_mc"].enabled = false;
this["dragObject"+dragNumber+"_mc"]._x = this["dragTarget"+dragNumber+"_mc"]._x+50;
this["dragObject"+dragNumber+"_mc"]._y = this["dragTarget"+dragNumber+"_mc"]._y+50;
trace ("knob jockey");
} else {
// if it is dropped onto a wrong target then chuck it back to where it started!
this["dragObject"+dragNumber+"_mc"]._x = Xpos;
this["dragObject"+dragNumber+"_mc"]._y = Ypos;
}
}
thanks for any help!!
View Replies !
View Related
Drag And Drop To Any Drop Target
Hi guys....I am trying to create some more generic code for a project im on....infact you guys have already helped me lots in getting it up and running!
I have basicly got it where all the dragObjects and assigned functions within a for loop and therefore been assigned to their own dropTargets...all working fine, however a situation is needed where if a user drops a clip onto anything rather than a hit area it doesnt just register as an incorrect drop.....at the moment a drag that misses a dropTarget will be the same as one that is dropped onto an incorrect drop target and thats just a bit unfair for them as it means they have used up one of only two chances!!!
basicly I need to know if its possible to obtain using the coding style that i already have been whether a drop is onto any of the drop targets before than going to chec if its the correct one or not....sorry for the long winded talk but seemed the only way i could explain!!!
the code i'm using is below
Code:
var Xpos:Number;
var Ypos:Number;
var objects:Number = 2;
for (i = 1; i <= objects; i++) {
// assigning the on press events to the dragObjects
this["dragObject"+i+"_mc"].onPress = function() {
this.startDrag(true);
// assigning the original X and Y of the dragged clips
Xpos = this._x;
Ypos = this._y;
}
// assinging the on release events to the dragObjects
this["dragObject"+i+"_mc"].onRelease = function() {
// finding the number of the dragObject to use in the submitAnswer function
objName = this._name
dragNumber = Number(objName.substr(10, 1));
submitAnswer(dragNumber);
}
}
// function to assertain whether the drop was a successful one - whether dropObecjt1 was dragged on dropTarget1 and so on
// the number is passed from the onRealease function
function submitAnswer(dragNumber:Number) {
this.stopDrag();
// if its dropped onto its correct target then turn the button off, place ontop of its target
if (this["dragObject"+dragNumber+"_mc"].hitTest(this["dragTarget"+dragNumber+"_mc"])) {
this["dragObject"+dragNumber+"_mc"].enabled = false;
this["dragObject"+dragNumber+"_mc"]._x = this["dragTarget"+dragNumber+"_mc"]._x+50;
this["dragObject"+dragNumber+"_mc"]._y = this["dragTarget"+dragNumber+"_mc"]._y+50;
trace ("knob jockey");
} else {
// if it is dropped onto a wrong target then chuck it back to where it started!
this["dragObject"+dragNumber+"_mc"]._x = Xpos;
this["dragObject"+dragNumber+"_mc"]._y = Ypos;
}
}
thanks for any help!!
View Replies !
View Related
Printing Issues...works/doesn't Work..
I have a Print button with this code:
Code:
on (release) {
print ("print_movie_x", "bmax");
}
Nice and straight forward...Users drag a number of cards round on the page then type in their name in an input box.
Problem: When I click print, not only does all pages print(have 2 frames) but the cards appear as they did when you load the movie..they haven't moved...scary! What am I doing wrong? Any ideas people?
Gab
View Replies !
View Related
Drag Issues
Hi,
I have a startDrag action in a movie I am creating, but with the execution of the dragging, I lose control of all of my buttons. I'm sure there is an easy solution to this...can anyone help?
View Replies !
View Related
Drag Issues
Hi,
I have a startDrag action in a movie I am creating(a mouse trailer mask), but with the execution of the dragging, I lose control of all of my buttons. I'm sure there is an easy solution to this...can anyone help?
View Replies !
View Related
Drag & Drop - "if" Drag's = Drops Script
HELP! I don't know a lot about flash script!
I have created a drag and drop. I want to make the users complete the drag and drop before they can move on. I want to include a script that checks to see if all items are in the correct boxes then "gotoandplay" the next frame where the navigation is active.
I have attached the drag and drop. Here's what I want to write (just need help writing it correctly):
IF
drag1 = drop1
drag2 = drop2
drag3 = drop3
drag4 = drop4
drag5 = drop5
drag6 = drop6
then gotoandplay frame2
If not, keep checking
View Replies !
View Related
Drop Target In "drag And Drop Game"
Im very much confused that how the code is wrong here..?on (press)
{
startDrag (this, false);
}
on (release)
{
stopDrag ();
if (_droptarget eq _root.cpu)
{
_root.score = int(_root.score + 1);
gotoAndStop(2);
}
else
{
_root.score = int(_root.score - 1);
gotoAndStop(2);
answer.gotoAndPlay("wrong");
} // end else if
}
Here im prepairing a game where i had palce this script inside a movie clip,having two option Correct amd Wrong,
I had created a box name keyboard
where an image of keyboard when placed it should show that its correct,and..if the movie clip calledkeyboardbutton is placed outside then it shoul show its wrong.
keyboardbutton is the instance name for that keyboard,
Actually its a game showing the Process of flow of operation in Computer..
Where i had also used the CPU and Monitor..please anyone help me out here...
here is a sample file for that:
View Replies !
View Related
Drop Down Issues
Ok i have nearly finnished my website but am not quite happy with the functioning of my drop down menu. There are a few issues.
1.)The whole thing isn't always smooth
2.)whne the user rolls over and up the drop down stays down.
I am sure my construction is somewhat of a bodge job so any hints and advice would be much appreciated.
Thanks
View Replies !
View Related
Drop Down Issues
Hi, have an issue with a movie clip based drop down menu! here goes.
My main button, is a movie clip with the standard "up" "over" and "out" states which control the colour of the button, I have added another layer, to this button with a movie clip containing the other buttons (which are also movieclips). So when the mouse rolls over the main button, the others fall into place. I have used the following simple code to control the movie clip buttons:
this.main_button_mc.onRollOver = function() {
main_button_mc..gotoAndPlay("_over");
}
this.main_button_mc..onRollOut = function() {
main_button_mc.gotoAndPlay("_out");
}
The problem i have is the sub buttons dont change when their rolled over. Yet they work when put in to a new fla file, so basically what i want to know is where to store the actionscript for the sub buttons?? Have tried putting them in:
1) the individual sub button
2) the movie clip that houses all the sub buttons
3) the main button movie clip
4) the same place in scene 1 which controls the main button!
none of these have worked, getting a little bit pissed off with it! any responce would be greatly appreciated thanks. jono
View Replies !
View Related
Drag + Button Issues
Hello.
Why is it that when i have button in a movie clip and that movie clip is a draggable object the button becomes inactive? How can i have both the button and the movie clip draggable and the button continue to function.
below is the script i have for the draggable movie clip, which has the button contained within that:
Code:
on (press) {
startDrag(_root.dragObject);
}
on (release) {
stopDrag();
}
attached is my file.
thanks
View Replies !
View Related
Drag And Srop Issues
Hi,
I am trying to be able to drag a color swatch onto a target and have the target change to the color of the swatch. I aim to have multiple targets so my problems are: 1. I need to know how to assign the color to the target so that I can drag the swatches onto multiple targets and at the moment I am telling the targets what the color value is so it limits me to one target.
2. I need to know how to have the swatch snap back to its original spot regardless of where it is dropped.
This is the code I have so far...
on (press) {
startDrag(this, true);
}
on (release) {
stopDrag();
var color_shape = new Color(_root.shape);
//color_shape.setRGB(0x66CC66);
if (this.hitTest(_root.shape)) {
color_shape.setRGB(this._color.getRGB());
color_shape.setRGB(0x66CC66);
setProperty("_root.block1", _x, "28.1");
setProperty("_root.block1", _y, "407.5");
// this._x=this.pozx;
// this._y=this.pozy;
// duplicateMovieClip(c0, "c"+i, i);
// this["c"+i]._y=360;
// this["c"+i].pozy=407.5;
// this["c"+i]._x=c0._x+i*(this["c"+i]._width+5);
// this["c"+i].pozx=this["c"+i]._x;
// this["c"+i]._color=new Color(this["c"+i]);
// this["c"+i]._color.setRGB (i*730000);
}
}
Please download the fla if you want.. www.redsta.co.za/drag-n-drop.fla
Please help me as I cant seem to get this working.
Thanks so much...
View Replies !
View Related
Drag + Button Issues
Hello.
Why is it that when i have button in a movie clip and that movie clip is a draggable object the button becomes inactive? How can i have both the button and the movie clip draggable and the button continue to function.
below is the script i have for the draggable movie clip, which has the button contained within that:
Code:
on (press) {
startDrag(_root.dragObject);
}
on (release) {
stopDrag();
}
attached is my file
View Replies !
View Related
Drag + Button Issues
Hello.
Why is it that when i have button in a movie clip and that movie clip is a draggable object the button becomes inactive? How can i have both the button and the movie clip draggable and the button continue to function.
below is the script i have for the draggable movie clip, which has the button contained within that:
Code:
on (press) {
startDrag(_root.dragObject);
}
on (release) {
stopDrag();
}
attached is my file
View Replies !
View Related
Drop Menu Issues...
Hello flashers..
I am newbie and having issues with a drop down menu....
the url is.
www.miaroeser.com/beta.html
I can't get it to work properly...
I want it to on rollover open and on rollout close...
and when it is open not to open again....(if Statement)?
not sure on how to go about this that is why it is setup all different and just closes after like 15 sec....
I would be happy to send the .fla out to whom ever feels in the helping mood....
You can post your email or
mail obsbrain@comcast.net or
aimbscullen1
would appreciate any help
thanks all
View Replies !
View Related
[F8] Drop-down Menu Issues
Helloo!
I thought this place looked friendly, so I decided to post this problem I have.
In the .fla at this link I have a drop down menu with a button called "_click1". This button is supposed to play the movie clip "_thing1". Obviously, it doesn't. So I would apreciate it if anyone could take a look and possibly change everything around so that it works.
I think this has something to do with objects inside objects inside objects... but the whole concept confuses me a lot. So any insight is greatly apreciated, thanks
View Replies !
View Related
Drop Down Menu Issues
OK, real newbie here, please help me out if you can....
I want to have a drop down menu similar to this one (hover over residential portfolio link):
http://www.slcinteriors.com/
so, what I did, is create a MC, then, inside that I created a button as the main menu link, let's call it Projects
I added in the submenu text I wanted in the over and down states of the Projects button, let's call them Residential and Commercial
But, because whenever the mouse left the Projects hit area, the submenu disappeared, so I extended the hit area to include the Residential and Commercial link text.
The problem now is that whenever the mouse gets near this "extended" hit area, the submenu is triggered, wherein I only want it triggered when the mouse hovers over the Projects link.
SORRY TO BE SO WORDY AND CONFUSING!!!
I know I'm not supposed to put submenu items in a button, but I'm very very new to flash and this was the only way I could even get this far ....
Thanks so much in advance...please help if you can.
Edited: 01/15/2007 at 11:57:36 AM by Jamie9470
View Replies !
View Related
Drop Down Menu Issues
Hi, I am using a drop down menu that I built based upon a tute very similar to the kirupa one. I have 2 problems so far.
The first is that when I click a button nothing happens.
The 2nd problem is that because my menu items are position just 1 px apart, sometimes the submenus do not close if you move the mouse quickly.
With the submenu buttons not working, I am trying to call an external swf, however have also tried a simple go to frame senario, however neither of them work. I tried a 'geturl' command however, and that surprisingly worked.
My menu is vertical and has the submenu items come out to the side. They are all spaced 1px apart, however if you move the mouse too quickly between main menu items, the previous sub menu stays open (as the mouse hasnt rolled over the invisible rolloff area).
Is there a way to get around this if you have your menu's close together? Having them spaced by 10pixels simply just isnt good enough.
Heres a link to my website to show you whats going on with the menu:
http://www.3amdesign.com.au/lumo/new-website6/
View Replies !
View Related
Drop-down Menu Issues
I've been making a valiant attempt as a noob for a fully functional flash site by working with tutorials and some knowledge I picked up in multimedia courses I took in college. Haven't had many issues besides my drop-down menu. I followed a tutorial that embedded a few buttons into a movie symbol and the thing is functional as far as the animation is concerned, my problem is that the buttons inside of the movie do not work at all (doesn't respond to my actionscript "on" or "getURL" commands). I'm horrible at verbalizing these things. Here's a link to my source if it helps:
http://njidgraphics.com/options.fla
Here's the whole site-in-progress thus far if anyone cares to rain fire and brimstone down upon my mediocre Flash skills (lol):
http://njidgraphics.com/index_frameset.html
(the Options drop-down may change rapidly when viewing the whole site, as I am constantly toying with it)
Thanks a ton for reading!
View Replies !
View Related
|