Drop Down (MX6).
hello,
Can someone explain how a drop down works please?
Thank you, please.
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-02-2004, 08:06 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
Cant Make Apple Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye
go here for the fla.
Cant Make Apple Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye
go here for the fla.
Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye
go here for the fla.
Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye
go here for the fla.
Cant Make Ball Drop When Drop Button Is Clicked
alright so what im trying to do is make the apple drop when i click the button. but right now whenever i drag it and let go it falls when i let go. and another thing i want to do it make the timer restart when i click the drop button. thanks bye
go here for the fla.
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
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
[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.
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.
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.
Movie Clip Palette And Drop And Drop
Hi,
I'm just playing around with flash and was experimenting with UI's when i became stuck at a problem. I'm trying to create a movie clip palette (i.e. some container where movie clips would be listed) where the user can drag and drop the mc's (let's call them pMC) onto the center stage, which has three mc's (let's call this mMC). When the user drops the dragged pMC onto one of the main mMC's, i want the mMC to become the pMC. Also, when i drag and drop the pMC, i want a copy of the pMC to stay in the palette.
I'm not even sure if flash is capable of doing this. If you have any suggestions or ideas please post.
thanks in advance!
-rsdl
Drop Down Menus Drop Down UNDER HTML - HELP
Hello-
I am creating a classic dropdown menu system (5 top elements, multiple elements below) and I have the tutorial and a couple of samples. The menu looks great.
However it drops down below the HTML that is absolute positioned near it.
I have made the movie transparent, and then positioned the html within the space of the movie. The HTML is on top.
I tried z-order (in IE) but to no avail.
Any ideas?
I am doing this to move away from a "frames" site.
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;
}
}
}
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!!
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!!
"Drop" Sound When A Drop Hits The Water
Hello all...
I just wanted to ask: how do i trigger a sound as a drop hits a water surface?
I'm fairly new to flash, and don't know much about sound-triggering, or whether the drop AND the water need to be separate movie clips, the same movie clip, etc...
Thank you in advance for your help...
Haider
How Do I Get Component Drop-down Menus To "Drop-Up" Instead Of Dropping Down?
Hi,
I've been working on this website that has a component drop-down menu that needs to "drop-up" instead of down. How can I get it to do that?
I have another drop-down menu that is "dropping up" on the home page of the site that I am working on. I think it is doing that because it is positioned at the very bottom of the stage (movie). There is no room for the drop-down to be displayed, so it automatically goes up instead of down. However, there's another two drop-down menus that positioned at the bottom of the stage and for some strange reason they drop-down instead of up.
To see the working "drop-up" menu, click here. This is a testing server, as the site hasn't been launched yet. To see the stubborn drop-down menus that keep dropping down, when they should be "dropping up" then you'll have to enter in a 'test' booking. Select a branch (eg: Sydney), then type in "12345678" for the phone number, then type in a 'Contact Name' (your name or whatever) and then click on "Quick Pickup". You will then be taken to a page where you'll be able to see the two drop-down menus at the bottom on the left-hand side.
Any help will be greatly appreciated.
Blastbum
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:
Flash Drop Down Menu Like Fireworks Drop Down Menu
Is it possible to make a drop down menu in flash that drops down on top of html on the webpage? (i'm not sure how to describe this, what I mean is a drop down menu like the one used on Launch.com) I know this is possible in fireworks, but I want the buttons to have flash rollovers... is it possible to first off do this in flash or 2nd import my flash to fireworks and then make the drop down from there? If anyone could point me towards a tutorial or movie that does this that would be great. Thanks
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
Help With Drop Down Nav Bar... ?
hi, i'm new to flash and i've tried doing the tutorials on this site for drop down nav/menu bar... and also i tried following the model provided by flash (5)... and i thought i had what seemed to be the right setup however it still doesn't work... and i've gone through about 50 pages of these posts to find the answer but i still haven't found it...
i have both sets of buttons created, but when i preview the movie, the main button, when scrolled over, doesn't pull out the other menu... the button functions in and of itself however nothing else works.
i could send the file if it'd be easier to look at... i have the action layer set to stop then "shown" and the script as
On (Roll Over)
Go to and Stop ("Shown")
End On <and the reverse script for the hidden button to reverse and show the initial button>
and it doesn't work... please help!
Drop Down
This is very imbarising but I need a tutorial on how to make drop down menus in flash. Its been quite a while since I played in a.s. and ive forgotten.
Drop
whats the comand to drop something in an arbutary place once you started dragging?
Drop Down Nav
I am looking for help on how to do a hidden nav menu.
There's a great example on the left side of the Rush site
http://www.rush.com
any suggestions on how it's achieved?
Drop Down Help Me Pls
I have a drop down menu and a main screen on one timeline.
The movie for the drop down menu is at the beginning of the timeline.
The problem is I want to keep the current contents of the main screen showing when the drop down menu is activated. However, when the menu screen is rolled over the movie goes back to the beginning of the timeline, where the dropdown movie is.
How do ppl have the main screen and the dropdown menu at the same time?
Hope this makes sense!! xxxxx
Drop Down Nav
Hello All,
I am trying to create nav similar to http://www.washingtoncapitals.com, but this time, the menus are going to animate coming down and going up. That's the easy part, obviously. What I need to happen is if you roll off a menu before the actual menu is all of the way down, it goes back up from that specific point. I know I could do this frame by frame, but there has to be a more dynamic way to achieve this.
Can anyone help?
Thanks much!!!
Drop
how do i take my movieclip and drop it into the main movie timeline
Drop Down ANYONE
Hey everyone. I hav'nt much time to do this, but I was hoping one of you might have some quick code or an example of how I can create a specific drop down menu nav. What I have is 4 menu items that run vertical, each one has about 5 sub categories in each one. As you click on one of the 4 main categories I want the sub categories to shoot down below it, in turn moving all the other main buttons that are below it down. And then on click again it sucks them all the sub categories back in and hides them. So the whole nav system has to be dynamic, changing everytime you click on a bt.
I attached a jpg to give a better understanding of what i want.
thanks
Ry
Drop Down HELP
Hey, I've been trying for quite some time to create a drop down menu..... but theres a little trick to it. Say i have the menu button, and when you mouse over it, a little shape tween drops a rectangle below and the links are on the rectangle. Now, I want to be able to freely roam around the rectangle with my mouse over the links, click them or whatever...and when i exit the rectangle it plays the animation where the rectangle goes up. However everytime something goes wrong, like if i mouse over the buttons on the rectangle it plays the up animation etc.... can someone please help me out and make an example .fla on how this is done? i'd appreciate it more than you know. Thanks much -
Drop Box
ok, i have created a drop box and have entered all my labels.
My prob is how do i link each item in the drop box?
TIA
Drop Down?
What is the Flash MX 2004 equivalent of the old dropdown smartclip in Flash 5?
I need to do a drop down menu that jumps to different scenes when clicked
many thanks
[F8] Drop Down Box
Anybody know how to create a drop down box? When the user selects the drop down box, it will have different times in there, and then a time is selected.
[F8] Drop Down Help..
Im having the worst time trying to get this drop down to work..can anybody help me out?
the FLA is here:
www.matthewdesmond.com
I believe i have it set up right i just cant get the correct frame play..i dont know what to do! help please!
Drop Down
im working on a complicated website, and i want a drop down menu on the site.
something similar to this one: http://www.31-32.com/auke/
only then totally in flash.............
i've found alot tutorials of it, but none of the tutorials was totally in actionscript. it was always with alot of messy keyframes.
i was wondering if it was possible to create a vertical drop down menu with actionscript, i tried it, but it didn't work very well....
so if someone knows..... or if someone can give a simple version of such script i can work it out further
Drop Down Day
I was wondering if someone can help me modify this dropdown I created so the selected item matches the day of the week?
I know this is how you determine the day of the week but how do you say "select this item according to this day" in the drop down? I guess my issue is the code of the dropdown.
Code:
var myDate1:Date = new Date();
trace(myDate1); // [NOW]
trace(myDate1.getDay());
Code:
var myLabels:Array = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var myURLs:Array = new Array("http://www.pointpubs.com/app/sunday.xml", "http://www.pointpubs.com/app/monday.xml", "http://www.pointpubs.com/app/tuesday.xml", "http://www.pointpubs.com/app/wednesday.xml", "http://www.pointpubs.com/app/thursday.xml", "http://www.pointpubs.com/app/friday.xml", "http://www.pointpubs.com/app/saturday.xml");
for(var i=0;i<myLabels.length;i++)
{
myList.addItem({label:myLabels[i],data:myURLs[i]})
}
myList.addEventListener(Event.CHANGE, itemChange)
function itemChange(e:Event):void
{
while (scrlCnt.numChildren) scrlCnt.removeChildAt(0);
var targetURL:String = new String(myList.selectedItem.data);
var newsXMLLoader:URLLoader = new URLLoader();
newsXMLLoader.addEventListener(Event.COMPLETE, onNewsXMLLoad, false, 0, true);
newsXMLLoader.load(new URLRequest(targetURL));//load xml
};
Drop Down #2
Can anyone help me out, I'm new to AS. I have a simple, main navigation menu with a drop down that goes a little something like this:
ActionScript Code:
sportButton.onRollOver = function() {
sportDrop.gotoAndPlay(2);
};
sportButton.onRollOut = function() {
sportDrop.gotoAndPlay(1);
};
I have it currently where on roll over (the drop down occurs) and on roll out (the drop down goes back to original position).
However, my drop down "roll's out" and you can't get to the buttons that are revealed below. I understand what I ave going wrong just can't figure out the code to fix it.
Any help is greatly appreciated.
Tyler
Drop Down HELP
Hey, I've been trying for quite some time to create a drop down menu..... but theres a little trick to it. Say i have the menu button, and when you mouse over it, a little shape tween drops a rectangle below and the links are on the rectangle. Now, I want to be able to freely roam around the rectangle with my mouse over the links, click them or whatever...and when i exit the rectangle it plays the animation where the rectangle goes up. However everytime something goes wrong, like if i mouse over the buttons on the rectangle it plays the up animation etc.... can someone please help me out and make an example .fla on how this is done? i'd appreciate it more than you know. Thanks much -
Xml Drop Down
hi guys, any help appriciated,,, pushing a tight deadline for this one.
not very experienced with xml...
ive used various tutorials over the net to create my own xml driven drop down box.
the only issue im having with it (and its a critical issue):
i need to send 2 variables back to flash at the same time, and i cant seem to do it.
________________________________________________
heres the xml:
<?xml version="1.0"?>
<menu name="nsw_root">
<menu name="Click Here for Department">
<item name="Development" action="newMenu2" variables="xml/nsw/development.xml" action="message" variables="TESTING"/>
</menu>
</menu>
________________________________________________
heres the as (chopped):
ActionScript Code:
curr_item.onRelease = function(){
Actions[this.action](this.variables)
Actions = Object();
Actions.message = function(msg){
main_txt.text = msg;
};
Actions.newMenu2 = function(menu2xml){
menu2fla.load(menu2xml);
};
________________________________________________
now, it is loading the second menu with no issues, but i cant get it to display the text in the flash text box! (as well...)
i have absolutely no idea where to go after 8 hrs of testing, prodding and experimenting.
please help!!
[SWF DROP]
"SWFDROP" is the SWF converter for Windows to convert Flash SWF file format to AVI format. It's the best tool to successfully convert any Flash 6/7/8/9 SWF file into a video AVI file that you can play with Windows Media Player (or any video player), where all other tools don’t work. These, along with a variety of video encoding options, make SWFDROP the best choice for you productivity!
We had developed SWFDROP for our own use because we did not find exactly the working-in-all-cases converter we need. Now, we think that it could be useful for many users. So we decided to provide SWFDROP to interested users.
Don’t miss this unique tool and give it a try, it’s free.
Follow those steps to experience the perfect drop :
* Drag your swf file from your desktop or any folder you stored it.
* Drop it onto the SwfDrop application.
* Select your favorite output format (and change its settings if needed)
* Call a friend to tell someone how fast was the conversion.
SwfDrop is free, you should give it a try :)
SwfDrop.zip
Size: 1,32 Mo
Version : 0.9c - October 2007
Web : http://www.swfdrop.com
Drop Down Box
So does anyone know how to make a drop down box?
and then is there an amount of items that is too many for flash files?
Like how many items should you have in a file before it becomes too much to load?
thanks.
casie
Drop Down Box
So does anyone know how to make a drop down box?
and then is there an amount of items that is too many for flash files?
Like how many items should you have in a file before it becomes too much to load?
thanks.
casie
Drop Down Help
How do i get the combo box to work?
I know how to label things but thats as far as i can get..
i need some help!
All i need is when someone picks an item from the drop down list, that it goes to that frame associated with that item..
or would doing an input text and button be easier?
that way they just type in what they need and it goes there?
If thats the case, i cant get that to work either..
Any help is appriciated!
Thanks!
Nav Drop-down
Hey how do i make it so that when you rollover teams, the drop down that shows up actually shows up? Edit: The drop-down works it just doesn't show up in the html.
www.woodcreekwaterpolo.com
and here is the swf: www.woodcreekwaterpolo.com/wwp_100.swf
Dag And Drop Help
Hi
I have 3 texts in the inventory list in the left column. On drag and drop into the main area it should change to a router icon. This is taken care of, but after it changes to a router icon it should be clickable (a user can click on the router and a popup appears)
This is the code for on release()..
stopDrag();
// if the right shape , leave it there
if (this._droptarget == "/area66") {
this._width = 100;
this._height = 100;
this._alpha = 100;
}
How do i make the router clickable on drop?
Please can anyone help me on this
Drop Down Box
Hi guys...
Please help me with this simpel AS issue. It sounds easy and it probraly is, but my newbie brain has bin working overtime, and im completly lost.. :-(
Here goes.. I have a small recuangle box with some text on it, which can be dragged.
Code:
box_mx.onPress= function() {
this.startDrag();
}
box_mx.onRelease= function() {
this.stopDrag();
}
Ok, first issue, you see by onPress i drag the box. How do i write a "double click" or is it even possible? If so, it leeads to my second question. When double clicking, i want a drop down box, so the width will be the same, but the height will expand, just like a drop down menu, but instead of a menu, i want a movieclip to appear in it.. I really hope you follow me.
If this can be achieved, after the box has "expanded" is it still possible to drag it with the movieclip inside it??
Please help me guys.... Much appreciated..
regards hrbi
Denmark
Getting A Value Of A Drop Down
hi all,
this form im making is giving me the right run-around.
i have a form, text boxes, drop downs etc.... i can get teh values of the text boxes fine, but getting nothing (literally) from the drop downs (ive used teh components that have coem with flash). ive fileld in the label values and the data values. ive tried getting teh values using 'myDropdown.value' and 'myDropdown.text'. it doesnt work! this is the code on my submit button:
loadVariablesNum('sendEnq.asp?name=' + txtName.text + '&email=' + txtEmail.text + '&address=' + txtAddress.text + '&phone=' + txtPhone.text + '&noAdults=' + txtNoAdults.text + '&noChildren=' + txtNoChildren.text + '&arrivalDay=' + arrivalDay.text + '&arrivalMonth=' + arrivalMonth.text + '&arrivalYear=' + arrivalYear.text + '&depDay=' + depDay + '&depMonth=' +depMonth.text + '&depYear=' + depYear.text + '&comments=' + txtComments.text,0, "POST")
cheers
- D
Drag And Drop
Ok folks 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);
}
}
}
Drag -n- Drop
hi all. i´m kinda new to actionscript. i want to make a floating interface that is draggable. It works so far. check it out: http://www.probus.f2s.com/interface.swf
but now i want an image under the interface that isn´t draggable(it will be visible throught the lens and it will probably contain a magnify-effect)
Is it possible to apply a drag-action to more than one movieclip, or could i apply the drag-action to the whole file by leaving the target-option empty, and simply exclude the image behind the lens?
I hope someone can help me with this.
|