Drop To Two Diferent Movies
how to make my movie clip to grab to two difentents dopzones like I have in this *.fla
Thanks
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-05-2005, 10:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Drag And Drop Movies
I'm trying to load a movie that contains a drag and drop button into a target in my main movie. When it loads into the main movie it is no longer draggable.
If I remove the x and y coords of the target the drag and drop movie will load into the main movie functioning properly, yet it will load just any ol' where and cover up other portions of my main movie.
Does anyone know how to load a drag and drop movie into another movie in a specific location while retaining it's drag and drop functionality?
Actions currently in use on Frame One of Main Movie:
loadMovie ("product_01.swf", "Target One");
setProperty ("Target One", _x, "11");
setProperty ("Target One", _y, "37");
Drag And Drop In Multiple Movies
i hav one main swf which load another 2 swfs (one is navigation and another is my content page). nw problem is i have created my content page which hav drag and drop function.
at first, im happy wif the effect and function. but when i load main swf, the drag and drop stop functioning..T.T
can anyone see wat the problem and hw to fix it??
My Fla Looks Diferent Then My Swf
Ok, this is really wired.
I can hit enter at the first frame and watch it go through; my flash banner (navigation; going at the top of my website) looks just fine, exactly as it should. But then I publish it, to my surprise, it doesn't look like it does in flah mx
Check it out for yourself here:
http://1veedo.com/headaction.fla
http://1veedo.com/headaction.html
The problem is in the actual buttons at the bottom, as you see, none of them "spin" and only two are displayed in the end.
I know I'm new but I did join this forum for questions like this.
(and help others when I can but I'm rather new with websites and stuff)
Hit Test -- Drag N Drop Movies As In Www.wmteam.de
Good Flash Folk...
Here's my dilema
I want to drag a movie clip, called "icon" into a demarkated area called "dropzone". When the mouse button is released, the "icon" mc should snap to the dropzone area and initiate a movie, based on the instance name of the "icon".
In other words...
You have a total of 9 icons called "icon1, icon2, icon3 etc. I want to select and drag these icon mc's (individualy of course) to ONE demarkated area, it snaps to it, and plays a particular mc, based on the instance name of the "icon".
I think this has something to do with hittest.
Any good tutorials out there ??
Thanx
Fabman
[F8] Create A Drop Down Menu That Opens Movies
I can open up a movie within a movie using the following script:
on (press) {
//load Movie Behavior
if(this.Work == Number(this.Work)){
loadMovieNum("Illustration.swf",this.Work);
} else {
this.Work.loadMovie("Illustration.swf");
}
//End Behavior
}
How can I do the same task with a button in a drop down menu? I can get the button to appear, but I can't open the movie.
Thanks-
Drag And Drop Target On Imported Movies
Hi All,
I am in a bit of a bind here, I am doing a finals for my Flash class in college and our assignment is to make a portfolio that show cases our past work, well I had made an easter egg hunt SWF where object is to find eggs and drop them into a bucket, main use of action script is the drag and drop target, By itself the SWF runs just fine but when I try to import that swf by method LoadMovie ( I am loading all my shows externally) my drag and drop target breaks. I can drag the egg over to the bucket but it dont "drop" the intial code for the drag and drop is this
code -->
on (press) {
startDrag("");
}
on(release) {
stopDrag();
if (eval(this._droptarget) == _root.EasterBasket) {
setProperty(this, _visible, false)
_root.count --;
tSound = new Sound(this);
tSound.attachSound("thump");
tSound.start(0,0);
}
}
<-- end code
I have tried using the lockroot command to keep the timelines seperate but that didnt help, I changed the _root.EasterBasket to this._parent.EasterBasket to get rid of root reference but that didnt work either. is there a better mousetrap out there that I can use for this drop and drag target that will work when it is imported to another SWF, I need help fast please, this project is due here pretty quick, thanks all, D-Wiz
Sendind Var's Between Diferent Swf's
Hi there,
I'm not a good actionScript writer but i've made a simple password portal to access another mc in a diferent swf-file.
something like username and password that someone writes in a swf_file and, when correct, it links up to a diferent page where a diferent swf_file should react to the same var's (name and password).
which code(s) must i write to send de right var's in the first swf_file and which code(s) must i write so that the second swf_file identifies the var's?
is it possible? (i'm sure it is)
is it simple? (since i'm not a very bright person)
tx in advance
One .asf To Use Two Diferent .xml Files
On our Intranet I have an audio player delivering multiple mp3's referenced by accessing the links from an external .xml file as standard and all works well :-)
MY PROBLEM = I am now asked to make this available on the Internet. For technical and security reasons if the user is internal on the Intranet they will get the flash file on the Intranet server and if on the Internet will get the Flash file from a duplicate site on an internet server.
This is the code I am using to send a user to the appropriate file for a video (together with an include file containing the two url's to the Intranet and the internet) which works fine.
QUESTION how do I code the param or obect tag (or both) to direct the user dependent on there access iether Intranet or Internet.
<script type="text/javascript">
AC_FL_RunContent( 'id','myId','type','','width','320','height','240' ,'movie','<%=spurl("newVid2")%>?video=<%=spurl("Ai rMiles.flv")%>' ); //end AC code
</script>
<noscript>
<object id="myId" type="application/x-shockwave-flash" width="320" height="240" >
<param name="movie" value="<%=spurl("player.swf")%>?video=<%=spurl("Ai rMiles.flv")%>" />
</object>
</noscript>
Thanks for any help as I am really lost on this.
Tell Target In Diferent Level
i have a movie and with a button i load another movie to a upper level and when i am on this new movie i want to make the first movie go to 1st frame, and i can´t because i dont know as tell target works to a diferent movie and level
Load MC On Diferent Levels
Hello:
I need to load a MC (not a swf) on a diferent level. I know it can be done using loadMovie and put it on a diferent level but I want to load a MC I did and want to use it over diferent scenes. How can I do it. The MC is a Loop.
Thanks in advance for anyone who helps.
GoTo A Diferent Scene
i´m running Flash MX on the Windows 2000 server, and like to know if is any conflit. I have one more question, i had a buntton inside of a movieclip and i want to give him an action to go to a diferent scene. How can i do that?
Exporting To A Diferent Size
Is there any way I can export to different dimensions?
I have created a flash banner, 728x90. I also want this banner in 468x60, this proportionate to 728x90 so a resize would work fine.
I was wondering if there was a way I can export to different dimensions? Instead of having to create the whole flash banner out again?
Thanks
Loading A Mc On A Diferent Layer
hello, guys, i need to load an external mc into my main movie, and i need to load it into a bottom layer. My problem is that its always loaded into the top layer. Can anyone help me please?
thanx.
Loading From Diferent Server
My problem is the following:
I have a main swf placed in a server and a secondary swf that is going to be loaded in the main one but the main swf will be moved to another server and by doing that the secondary swf becomes inaccessable.
The solution to that could be as simple as moving everything but i cant do that
So... is there a way to "remove" flashplayer security or make the conection accessable?
Diferent Frame Rate
Hi everybody
I have the following problem:
I was surprised to find, that my flash movies have different frame rate if I play them in Flash Player 9 in both IE and Firefox and if I start them using Test Movie command (Ctrl+Enter) of Flash.
The frame rate is set on 30 fps. They are exactly 30 when I test movie in Flash 8. They are still 30 fps if I publish the movie and then double click on the swf file (Flash Player 9 start in this case).
When I use web browser (I tested IE and Firefox, both with Flash Player 9) the speed is about 30% slower. I find it just because my project include chronometer and measurement of the time of some animations (it’s an e-learning project and includes virtual laboratory). I adjust the duration of the animation by using different duration of the motion tween in frames.
I can of course adjust the frame rate, but it is not the true decision.
No bitmaps are used in the movies - they are no larger than 60 – 70 KB. No more than 5-6% is CPU usage when any of these movies plays. I use Flash 8.
Thank in advance to all. All comments are welcome!
Loading Diferent Xml Files Over Actionscript
Hi pplz..
Im building some kind of portal for my company's website where after the intro the visitor has to choose which way they go.
Ok' this was the simple part. now for the weird stuff..
The site is completely database driven (even the sites graphics come from the database)and there's the problem..
after the user has chosen wich way he goes the site needs to load XML data from the database.
The Visitor is presented with 2 initial options .. the tech section of the site or the rental section of the site,
when he/she makes a choice a XML file (representing this choice is loaded so the content specified by the xml file wil be loaded...
My question sounds something like this.. how to make flash load diferent XML files based on the visitors choice
but whitout framehopping (Framehopping causes flash to get slow beqouse data isn't unloaded)
So is there a way to let flash load the xml files by useing some kind of FS command.
Thanx
Can I Get A Movie To Start On A Diferent Keyframe?
Ok, I have a main page that has a flash movie containing five buttons that point to new pages.
On these new pages are two frames, the top frame being a flash button bar with four buttons...representing the four other pages. The pictures on the buttons are just a movie that is keyframed to rearrange the pictures over the right buttons depending on what page they are on.
Ex. when the viewer clicks the "art" button on the main page the new button bar on a new page has four buttons on it with all the other pages...but if they click the "news" button on the main page I want the new window's button bar to have all the pages except for "news".
the page is http://www.spiffyneato.com but it's only partially finished...I'll try to get enough up there so you can se what I'm trying to explain.
Thanks for any help.
Matt
Make A Box Develop For Diferent Sizes ...
make a box develop for diferent sizes using 3 buttons (for example):
1st button = box with 100x100
2nd button = box with 100x300
3rd button = box with 100x500
when the box is with to 100x500 i clixk in the first button and she develop to 100x100.
sorry for the english
Load Diferent Mcs Into Puzzle Game.
Hello everyone.
Im making a simple puzzle type game. Well actually i say puzzle because it works on drop targets and so on. The game is like this one here http://pbskids.org/barney/children/g...ners_game.html where there are 3 "containers" for diferent objects. Bottles, cans and paper. Well the whole functioning is simple to do with drags and drop targets.
Now what really is driving me nuts is that i want to make a random positioning and choice of the objects to appear. You can see in the link that everytime you start the game its not the same objects as before, or when you complete a level, that same choice of mcs and theyre positioning is randomized.
How can i do such an effect?
I know how to duplicate mcs and how to "scramble" them as puzzle pieces, but how to choose smoe of them, thats really hard to me.
So, i hope to hear from you.
Thanks!
[F8] Flash Using Diferent Fps In Internet Explorer
Hi! I am currently making a flash game that is running at 30fps. It runs perfeclty and smoothly. But when i try viewing it on a internet page, the framrate drops dramaticly. I tried this with other games i had and they did the same thing as long as the fps was high.
I tried seeing some other games on the net, and played them on the web page then tried saving em to my computer and playing them, and they played the same. So i guess there is a way to solve this...
Is there?
I would apreciate any help.
Using External Variable To Go To A Diferent Frame
Hi, hope somebody could help on this.
Thank you in advanced!
I need do control a movie from a external file (txt or php).
The value of the variable tells the flash which frame to go.
This way i am trying to build a flash menu in a html website that presents to the viewer in which area he is (down state).
the external prog in php is already done.
But i'm not abble to do the variable stuff in flash and didn't find anything about it.
so far i tried:
(in first frame of the movie)
stop();
loadVariablesNum("externalfile.txt", 0);
myvariable = "";
if (myvariable == "valueA") {
gotoAndStop(1);
}
if (myvariable == "valueB") {
gotoAndStop(2);
}
if (myvariable == "valueC") {
gotoAndStop(3);
}
??
Diferent Display Colors On IE Vs Firefox
hello everyone,
I have a very strange thing here, more than words can say, see it for yourself:
http://www.souzaoliveira.com/ie_screen.JPG [this is the screenshot on Internet Explorer 6, very cool, nothing strange here]
http://www.souzaoliveira.com/firefox_screen.JPG [this is the screenshot taked from firefox 2, what is this???]
Some data to help us think:
I´m using Flash CS4, as3, publish the project with flash player version 9, the images i used from photoshop with some blendings options enabled like Multiply and Overlay
Loading A Diferent Html Page
hi
i don't know if it is possible, but here it goes:
i have html page with a swf wich is a menu, when pressed i want to load a different html page with another swf and tell it to go to a specific label.
is there a way to do this?
Charset Encoding On Diferent Languages
This is a related post to my previous thread on the K. news Ticker!
I needed something along those lines, but I need it in my native language or it's useless!
So I endeavoured in making the news ticker work in my charset!
I thought I had found it!
Only I didn't!
now for those "international" users amongst the KirupaLand here is a help about ur charsets!
I found it and I'm mailing it to myself for safe keeping! Just in case the site goes into oblivion!
I need the portuguese letters to appear in this ticker!
I, upon embeding characters, embeded extra latin based ones... All those seeming relevant!
I must be doing something wrong!
My xml file has "pt-utf-8" as encoding... It just doesn't show my letters if they aren't in the american english alfabet!
Array Storing Diferent _y Properties
I have 3 mc's (clip1, clip2, clip3) and 5 buttons on the stage. When i press button 1 clip1 should go to _y = 100, clip2 _y = -1100, and clip3 _y = -500! The same should happen when one of the other buttons is pressed (with different y values though) My question is can i put the different y values in an Array, and if so how do i do so and how do I call them?
Thanks in advance
External .swf With Diferent Frame Rate...
Hello there,
This is the issue,
I want to be able to load external .swf to my main movie, but to the
main is 12 fps and the external 25 fps.
Is this ok?
I mean does the external .swf will keep playing at 25 , besides the
main movie is 12 fps?
Thanks
Rollover From Diferent Sides,How To?AS Help Needed
For example I have a Rectangle, how to make so, that if I rollover this rect from the top, it will make one action, if from bottom - another, and so on...
One way is to make invisible rollover areas in different possitions, one on the top, another on the bottom... But it is not what I need...
I need an AS solution... Is it possible?
thanks in advance
Swap Depth Between 2 Diferent Library Items?
I have 2 movieClips (instances of 2 diferent! objects) on my timeline. Is there any function to swap depths betveen these 2 movieClips?
Sort of "movieClip.swapdepth(movieClip2)", but this works only for instances of the same movieClip...
(I use Flash 5)
thx!
Kekec
Loading External File From Diferent Domain Name
If u upload text file and swf files in one domain name its working fine. If i uploaded in different domain location message is not displaying in flash file.
In my flash file i add this script in first frame to load external file
loadVariablesNum("http://www.domainname/textfile.txt", 0,);
I've hosted text file in this domain name address and flash file in my domain name address, but the external message is not displaying.
Pls. give me an idea. I hope u'll reply to solve my problem
Thx sathish
Load 2 Or More Swf In Diferent Levels Makes All Slow
Load 2 or more swf in diferent levels makes all play slow.
I have main.swf in level 0 and a Sound.swf in level 3, and when I make a LoadMovieNum in level 2 for example, it plays slowly.
All the movies have the same fps., and are not more than 50Kb.
Thanks who can help me !!
A Diferent Picture Evrytime You Load The Page
Hey everyone, is there a way that I can have a set of images that change everytime you come back to the site? without doing it manually that is? thanks so much for any help at all!
Button To Exicute NextScene In A Diferent Level
Can anyone tell me why Flash cannot do this?
forward_btn.onRelease=function(){
_level10.gotoAndPlay(nextScene());
}
I want a button to skip to the next scene in a movie located on a different level than where the button is located.
Using Diferent Font Sizes In A Tree Componnet
Hello,
I need help custumizing my tree component.
I've spended my last 3 days searching for a solution to have my branches using fontsize = 16 and their childs using fontsize = 12.
Do you have any idea on how to achieve this?
I've tryed many things in the tree.as, list.as, treeRow.as classes, but I can't figure how to manage this.
Thanks a lot for help,
Communication Between Mc's In Diferent Frames Of Main Timeline
hi there!
it's a really stupid question but i really don't know hot to make it work
in the main timeline i got two movie clips, one in frame 1 (i'll name it mcA) and the other in frame 2 (i'll name it mcB)
i got a button inside mcA, and if i clik that button i wanna go to the frame 2 of mcB
i'm playing with this AS
on(release) {
_root.gotoAndStop(2);
mcB.gotoAndStop(2);
}
but it doesn't work...
goes to the second frame and shows the first frame mcB, not the second
can someone help me?
thanx in advance
cheers!
Assembling The Diferent Scenes In An Animatied Movie.
I made a small movie in flash. I did each scene in a diferent fla. Now i'm trying to get it all together. I tried 3 ways.
First I tried to import the several SWFs into a new fla, but i got no sound from the Swfs.
Then i tried to import it all into one fla , but into diferent scenes. Didin't work cause after about 12 seconds in each scene the sound would start over from frame one. Very strange ...
Last, i made a new fla, this time with an mc container to were I load the swf. I have And empty timeline with keyframes with actions. For example, after 123 frames, i have an empty keyframe with a loadmovie action. It works. Just one problem. If i edit the original fla, the swf ends up with more or less frames, and i gives me a hole lot off troble to sincronise it all. And latelly this as became buggy also.
So my question in this. What would be the best way for an animator to assemble all the diferent scenes (swfs) in one easy to preview file?
Thanks
Problem With My Flash File In Diferent Sites - Urgent
Hello, thank for your time,
I’m designing a web site and I have a problem…
My client just got a new domain (www.metagrafdesign.com) that its been automatically redirected to a subdomain of a master site (design.metagraf.com.mx)
If I go directly to the subdomain (design.metagraf.com.mx) I don’t have any problem, but
when I go to the new domain (www.metagrafdesign.com) I see the same files but the LINKS on the FLASH file dont work, even when it’s the same file.
Im working with Flash CS3 and using the next code for the links
on (release) {
//Goto Webpage Behavior
getURL("http://design.metagraf.com.mx/section/index.html","_self");
//End Behavior
}
Do you see something wrong in the code?
Why is the same file not working in the new domain, even when its redirected to the other one?
I would really appreciate an help, I need to have this site working soon
Communication Between Diferent Levels In A ".swf "file
I have an "index.swf" file that loads other "swf" files on diferent levels. Lets say, level1,level2 and level3. Can a button on "level1"comunicate an action to a movie on "level2" of "level3"?
If so can someone please give me an idea of the type of syntax needed. If it is not capable, can some one give me a reason why not.
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
|