Drop and drop 4 movie clips to single target to navigate to seperate urls

var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
    navigateToURL(new URLRequest(http:// websiteAdress.com));
I am trying to navigate to a new url for each movie clip, problem is im really unsure of how to achieve this I have one target on my page and would like to be able to drop any of these movie clipt o to  it?
the movie clips are named:
port1_mc
port2_mc
port3_mc
port_4mc
really appreciate the help

assign a property to each movieclip that indicates the associated url.  for example:
port1_mc.urlS="http://www.adobe.com";port2_mc.urlS="http://www.flash.com";
port3_mc.urlS="http://www.kglad.com";
port_4mc.urlS="http:://www.whatever.com";
you can then use:
navigateToURL(new URLRequest(e.currentTarget.urlS));
in your listener function.

Similar Messages

  • I have 3 consecutive movie clips that I am trying to drop into the drop zone but it only recognizes the first one and only produces the firts one in a DVD. How can I drop all three  movie clips into one drop zone

    On IDVD, I have 3 consecutive movie clips that I am trying to drop into the drop zone to create a DVD but it only recognizes the first one I dropped and only produced the first one in a DVD. How can I drop all three  movie clips into one drop zone.

    I have had some luck doing the following: Export each clip from imovie as a quicktime clip. Open iDVD and create a new project. Import a few stills into iDVD and then click on the button that gets created to get into the screen where the individual slides appear. Drag each quicktime into that screen and arrange in the order you want. You can then delete the stills. The button that appeared when you dropped in the stills will launch a complete show.

  • Problems working with non drop and drop frame DVCPRO HD material in project

    I am having playback problems with my non drop frame HDV material. It stutters.
    All of our projects up to this point have been shot in drop frame. During our last shoot however the Bcam was recorded in non drop. I loaded both the non drop bcam tapes as non drop and the drop frame Acam tapes as drop. All of the drop frame Acam material plays back fine in the source viewer and the timeline. The non drop Bcam material seems to randomly stutter in the source viewer, or causes the system to serve a "dropped frames warning" in the timeline.
    Is there a bug with fcp 5.1.2 about mixing non drop and drop frame material in a project. Or is this not possible? They are the same frame rate.
    I have exported the non drop clips in a drop frame timeline and re-imported them as drop frame clips - thus correcting the problem. Is this the best solution?
    All of the material was loaded thru a kona card as 1080i60 DVCPROHD 29.97
    I had no problems capturing the material as long as I used the corrrect firewire setting (ndf vs df).
    Anyone have a problem like this? I would greatly appreciate a response.
    Thanks,
    Mark

    http://bssc.sel.sony.com/BroadcastandBusiness/DisplayModel?m=10014&p=2&sp=141&id =78439
    The camera can record 60i, and 30F:
    "HDV 1080, 50i/60i/30F/25F Recording and Playback capable"
    Look at the clips...look at their frame rates. What do they say? Is one 59.94? Is the other 29.97?
    You would never need to render if you mixed NDF and DF footage. The footage runs at the same speed, on the TC numbers are different. But, you would need to render if your footage had different frame rates. LOOK AT THE CLIPS.
    Shane

  • Can't drag and drop or import movie clips or ver. 8 projects into iMovie 9

    Hello:
    I just installed Leopard (OS X) with iLife and iWork (although I didn't actually install iWork). I can't drag and drop .mov or .dv files into a project. If I "File-->Import-->Movies", all the types I want to import (.mov & .dv) are grayed-out. I created and saved a project with the older version of iMovie (8) and then tried to import it into iMovie 9. The result is a message in the clips panel that says "No matching video. Choose a different options from the Show pop-up menu at the lower left corner." So far, everything I wanted to do is bust. Can somebody help?
    Thanks.
    Etude.

    annadex wrote:
    I have tuns of .mp4 clips, converted them to .mov clips... .
    How?
    easy way:
    • double-click mp4 to open it in QuicktimePlayer.app
    (does it play the video?)
    • File/Export/choose 720p (if optional, if not 480p)
    • import THAT into iMovie using iMovies import routine, proceed …

  • Zoom, drag and drop in a movie clip

    if zoom a movie clip...i want drag and drop the mc...and also don't go the mc outside the screen..pls help me...:(

    To drag within a limited area you use the startDrag() method, defining a rectangle to limit how far the object can be moved in any direction.  The startDrag is normally executed when a MOUSE_DOWN event occurs for the object that is to be dragged.  A MOUSE_UP event is what is used to trigger a call to the stopDRag() method, whereby the listener for that is usually assigned to the stage.
    Search Google for a tutorial using terms like "AS3 drag drop tutorial" if you need detailed coding help to get started.

  • Drop menus with mask and invisible movie clip

    please see this navigation interface:
    http://www.hearightnow/yogamater/
    when the mouse is outside of the drop menus, the drop menus "hide" behind the outside of a mask, when the mouse enters the drop menus, they move up. An invisible movie clip the traces the frame of the photos is in place to insert ROLL_OVER and ROLL_OUT code to "block" the event listener that functions the "yoga" drop menu.
    This is all done in one frame, the scripts do all the animation of the drop menus.
    the current code for this menu allows the mouse to travel from the photos to the "yoga" drop menu without triggering the menu to go up, however if the mouse travels from the "yoga" drop menu to the photos, the drop menu locks up until the mouse leaves the photos.
    any ideas how this can be fixed? also, how do I apply the script on the invisible clip to all the drop menus?
    definitely a newbie to AS3 so all help is greatly appreciated!!
    here is the main script:
    stop();
    addEventListener(Event.ENTER_FRAME,upyoga);
    addEventListener(Event.ENTER_FRAME,upteach);
    addEventListener(Event.ENTER_FRAME,upsched);
    addEventListener(Event.ENTER_FRAME,uppriv);
    addEventListener(Event.ENTER_FRAME,upcont);
    var speed:Number=.222;
    function upyoga(e:Event) {
    if ((yoga_menu.mouseY<yoga_menu.height&&yoga_menu.mouseY>0) &&
    (yoga_menu.mouseX<80&&yoga_menu.mouseX>0)) {
    yoga_menu.y-=(-58+yoga_menu.y)*speed;
    } else {
    yoga_menu.y-=(-134+yoga_menu.y)*speed;
    function upteach(e:Event) {
    if ((teach_menu.mouseY<teach_menu.height&&teach_menu.mouseY>0) &&
    (teach_menu.mouseX<80&&teach_menu.mouseX>0)) {
    teach_menu.y-=(-65+teach_menu.y)*speed;
    } else {
    teach_menu.y-=(-118+teach_menu.y)*speed;
    function upsched(e:Event) {
    if ((sched_menu.mouseY<sched_menu.height&&sched_menu.mouseY>0) &&
    (sched_menu.mouseX<80&&sched_menu.mouseX>0)) {
    sched_menu.y-=(-42+sched_menu.y)*speed;
    } else {
    sched_menu.y-=(-96+sched_menu.y)*speed;
    function uppriv(e:Event) {
    if ((priv_menu.mouseY<priv_menu.height&&priv_menu.mouseY>0) &&
    (priv_menu.mouseX<80&&priv_menu.mouseX>0)) {
    priv_menu.y-=(-28+priv_menu.y)*speed;
    } else {
    priv_menu.y-=(-74+priv_menu.y)*speed;
    function upcont(e:Event) {
    if ((cont_menu.mouseY<cont_menu.height&&cont_menu.mouseY>0) &&
    (cont_menu.mouseX<80&&cont_menu.mouseX>0)) {
    cont_menu.y-=(-40+cont_menu.y)*speed;
    } else {
    cont_menu.y-=(-88+cont_menu.y)*speed;
    and here is the script on the invisible clip:
    invisiClip.addEventListener(MouseEvent.ROLL_OVER, invisClipOver);
    invisiClip.addEventListener(MouseEvent.ROLL_OVER, menuBack);
    invisiClip.addEventListener(MouseEvent.ROLL_OUT, invisClipOut);
    function invisClipOver(event:MouseEvent):void {
    removeEventListener(Event.ENTER_FRAME,upyoga)
    function menuBack(e:Event) {
    yoga_menu.y-=(-134+yoga_menu.y)*speed;
    function invisClipOut(event:MouseEvent):void {
    addEventListener(Event.ENTER_FRAME,upyoga)

    I was having trouble attaching a zip or fla to this post so they can be retrieved at
    http://www.hearightnow.com/yogamater/menu_45b.zip
    or
    http://www.hearightnow.com/yogamater/menu_45b.fla
    the "menu" layer contains the mask that the drop menus hide behind
    the "invis" layer contains the invisible movie clip that has the code that removes and adds the event listeners that move the "yoga" drop menu
    the photos seen at http://www.hearightnow.com/yogamater/ are added with HTML DIV tags.
    thanks!

  • FPS drop when using movie clips.

    Hello, first of all excuse my English it's not my main
    language.
    I'm working with a portfolio in Flash CS4 (actionscript 2.0
    if that would matter). The portfolio has buttons, each button is
    connected to a movie clip, so when you press the button a movie
    clip starts playing (It's in the background all the time though
    alpha is at 0%). The movie clip contains another two movie clips,
    both of those goes from 0% alpha, to 100% alpha and then back to 0%
    alpha. There is also a button on top of the two movie clips. So all
    and all it's a movie clip containing two other movie clips and one
    button.
    Anyway, when I have about 3 buttons and movie clips there is
    no problem, but when I add 4-5 or more the FPS get's very low when
    the movie clip plays.
    I have tried to change the FPS from 25 to 40 etc. but there
    is no change. I have also tried Flash Player 9 and 10.
    I don't think the problem is my computer, since I've exported
    it as a movie and tried on friends computers.
    Thanks in advance.

    It depends what is in your movie clips, and how much is
    happening during the alpha transitions. The playback speed depends
    on how much work the processor has to do. If you have a lot of
    large elements - for example, photos that you resized in Flash -
    moving around, changing alpha, all at the same time, it will slow
    down performance.
    Try to simplify your graphics. So, if you are using bitmap
    images, resize them before importing them to Flash. Then try
    removing some of your graphics and see if it speeds up performance.
    This will help you to locate the problem.

  • Movie clips selecting current target

    Hi
    I am currently stuckon what i think has to be a simple
    problem:) the jist of it is as follows.
    I have a movie clip on stage that is clickable.
    Once clicked I creata new movie clip and attach a movie clip
    from the library.
    At this stage i also create a text field and add it as a
    child to the new movie clip.
    now my problem is that i want the movie clip to be clickable
    so that a user can maniuplate it. However if the click clicks on
    the text field i get an error saying it cant be converted to a
    movie clip. As yes i am casting the selcted object as a movie
    clip:) I just wondered if anyone could point me in the right
    direction of apporaching this, as its drivign me slowly insane.
    regards
    a

    Hi Kglad
    thats a very good question:) and im sure where img oign worng
    but cant work out how to do this:| Belwo is my code that creates
    the new clip once a icon has been clicked on stage.
    function addBubble(event:MouseEvent):void {
    bubbleNum ++; // increment bubble num to use as name of
    bubbles
    // add in bubble clip
    var bubbleClip:MovieClip;
    bubbleClip = new bubble_container()
    bubbleClip.name = "bubble" + bubbleNum;
    port.addChild(bubbleClip);
    // add in text field
    var myText = new TextField(); // initiate my text as
    textfield - CHANGED FROM DOING AS MOVIECLIP AS TEST
    myText.type = TextFieldType.INPUT;
    bubbleClip.addChild(myText); // add mytext to bubbleclip
    myText.text = "wahoo"; // CHANGED FROM >>> attach
    text field form library
    myText.autoSize = "left";
    myText.multiline = true;
    trace(bubbleClip.width);
    bubbleClip.x = 20;
    bubbleClip.y = 200;
    myText.x = 10;
    myText.y = 10;
    myText.width = 218; //bubbleClip.width; // THIS NEEDS
    WORK!!!!!!!!!
    trace("width of text=" + myText.width);
    bubbleClip.addEventListener(MouseEvent.MOUSE_DOWN,
    setSelect)
    steSelect does very little at the minute but it here its is
    for completion.
    function setSelect(event:MouseEvent):void{
    SelectedObject = MovieClip(event.target);
    All i really wnat to acheive is the following.
    user clicks an icon on the stage
    this creates a new bubble movie clip which houses a graphical
    asset(clip pulled from library) and a text field.
    sets up a listerner to see if this has been clicked. (i set
    the current target as selctedObject as there may be multiple
    bubbleClips)
    Once its been clicked it needs to be able to draggable and
    also scalable flippable etc(ive got the code on this working), a
    double click woud result int he text field inside being editable
    (havent got to this buit yet:))
    I jsuit cant get my head around casting and the best way to
    approach this, it works fine if the user clicks on the bbble
    graphic etc.Can u shine any light on this please?

  • Loading and Unloading Movie Clip

    I'm trying to create a timer that would affect when a movie
    clip reloads after it has intitially unloaded using AS2. Could
    anyone offer any possible options.
    Thanks in advance.

    Look into the setInterval and setTimeout functions

  • Importing and joining movie clips

    hello ! here's my question to you. I'm working on a video project  (home movies) and I have 12 video clips from various tapes saved to my hard drive. I've managed to import them one by one  into the latest version of iMovie (10.0.6 I believe) and they import correctly. However, I cannot seem to, for the life of me, join all of these video clips together to create a full movie. I've tried selecting all of the clips, then share, then file. I click on it, then nothing.  I can export clip 1,2, etc, but that's not what I want. I want the whole thing all together
    thanks for any help
    John B

    thanks, GeeD. It's been a while since I used iMovie and the last version I used was 8 or 9 (back when I had my single quad core Mac Pro). Things sure have changed. Frankly, I like some of the older controls better, but what can you do? it is what it is---and it works
    Movie done
    thanks, sir
    john B

  • Both DV and HDV movies in a single DVD.

    Hi everyone,
    I’m planning to do an experiment and wanted to check your opinions to predict the result and better understand some video topics.
    - I will shoot few minutes with two different camcorders, DV tape (sets to shoot 16:9 wide) and an AVCHD sets to shoot at 1440 x 1080.
    - With FCE 4.0 I will create two projects, one in DV PAL anamorphic to capture my DV footage and another in HDV 1080i50 for the HDV movie.
    - I will then export both timelines using Quick Time movie option.
    For the one coming out from DV PAL settings, I will go with QT Pro and manually force 1024 x 576 for iDVD to keep the 16:9 aspect ratio.
    - Then in iDVD I will import both MOV files and burn my DVD as 16:9 PAL.
    What would you expect when you will play this DVD on the following TV sets:
    - Plasma TV wide screen
    - TV LCD HD ready 1080i
    - TV LCD full HD 1080p
    Thanks for any info, regards.
    Armando.

    I would expect it to be widescreen on all the television sets.
    You don't have to do this in two projects. You can do it in one project in separate sequences, just change the settings before you capture the media and make a new sequence in that setting. You could combine the HD material into the DV anamorphic sequence to make a single sequence. Export that. Fix it in QT and then make one iDVD movie if you wanted.

  • Having Problem Adding to drag and drop to move furniture over a floor plan

    I have the code which follows. I need to create floor plans where web visitors can drag and drop furniture onto the floor plan.  I have  three items that work but when I convert any additional items to a symbol and select movie clip and then add more lines to the code, none will work.. How can the code determine that  my movie clip I named "couch" is going to movie clip 4.  Thank you if you can help, Frankie Foster
    Below is my code:
    var numObjects:uint = 3  // assign the total number of movieclips that will be dragged
    for(var i:uint=1; i<=numObjects; i++){
         this["movieClip_"+String(i)].addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
         this["movieClip_"+String(i)].addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    var selectedMC:MovieClip;
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
    movieClip_2.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
    movieClip_3.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
    movieClip_1.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    movieClip_2.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    movieClip_3.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    function clickToDrag(event:MouseEvent):void
         selectedMC = MovieClip(event.currentTarget);
         selectedMC.startDrag(); 
    function releaseToDrop(event:MouseEvent):void
         event.currentTarget.stopDrag();
    stage.addEventListener(KeyboardEvent.KEY_DOWN, nextQuestion);
    function nextQuestion(event:KeyboardEvent):void {
          //trace(event.keyCode);
          if(event.keyCode == Keyboard.RIGHT)
               selectedMC.rotation += 5;
          if(event.keyCode == Keyboard.LEFT)
               selectedMC.rotation -= 5;

    Your appear to have redundant coding assigning your listeners.  What code are you trying to add/modify to make the couch function like the others?
    this...
    for(var i:uint=1; i<=numObjects; i++){
         this["movieClip_"+String(i)].addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
         this["movieClip_"+String(i)].addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    currently does what this also does....
    movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
    movieClip_2.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
    movieClip_3.addEventListener(MouseEvent.MOUSE_DOWN, clickToDrag);
    movieClip_1.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    movieClip_2.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);
    movieClip_3.addEventListener(MouseEvent.MOUSE_UP, releaseToDrop);

  • ADF Drag and drop event inside the single af:treetable

    Hi Experts,
    I have a af:treeTable in my ADF web project and i would like to implement the drag and drop event to the same tree table for supporting my sample test project use case. Currently i am facing some issue to get the source tree node and the destination tree node of the drop and drop event inside my drop listener method. How can i get those object since i need to perform some business operation inside the listener. Please note that i am not using ADF BC4j in my project. The service layer is implemented as EJB and it's being called from the backing bean.
    Looking forward some guide lines to resolve this issue from you experts.
    Thank you.

    It's not a perfect solution, but a work in progress that i'm currently using in my backing bean:
    private RichTree navTree;
    private void exitContainers() {
    boolean success = false;
    while (!success) {
    try {
    navTree.exitContainer();
    } catch (Exception e) {
    success = true;
    private void clearDisclosedRowKeys() {
    if (navTree != null && navTree.getDisclosedRowKeys() != null) {
    RowKeySet rks = navTree.getDisclosedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    exitContainers();
    List<Integer> rowkey = (List<Integer>) rksIter.next();
    List<Integer> newRowkey = new ArrayList<Integer>();
    for (Integer row : rowkey) {
    if (navTree.isRowAvailable(row)) {
    navTree.setRowIndex(row);
    navTree.enterContainer();
    newRowkey.add(row);
    } else {
    // Row is no longer available
    break;
    if (newRowkey.size() == 0) {
    rks.remove(rowkey);
    } else {
    rowkey.clear();
    rowkey.addAll(newRowkey);
    Whenever you make a 'delete' or 'move' in the tree, call clearDisclosedRowKeys(), it will remove anything that's no longer valid, so your tree won't collapse, and you won't get the error anymore.
    I took out my logging and debug statements, but essentially this just gets all the rows, checks to see if they're valid, and if so creates a new RowKeySet with the valid rows in it.
    Of course make sure you have the setNavTree and getNavTree accessor's created and that they're bound in your JSFF, otherwise navTree will always be null.
    I haven't yet found a way to 'nicely' find out if you're at the top level container, so i'm relying on an Exception to occur to give me that information, if anyone knows a better solution please feel free to share it.

  • How to change mouse cursor during drag and drop

    Hi Guys,
    Iam performing a Drag and drop from Table1(on top of the figure) to Table2(down in the figure).
    see attached figure
    http://www.upload-images.net/imagen/e80060d9d3.jpg
    Have implemented the Drag and drop functionality using "Transferable" and "TransferHandler"using the java tutorial
    http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo
    Now My problem is that ,I want to make the 1st column in Table2(ie: Column2-0) not to accept any drops so that the cursor appears like a "No-Drop" cursor but with selection on the column cell during a drop action.
    Also when I move my cursor between "column2-0" and "column2-1",want to to have the "No-Drop" and "Drop" cursor to appear depending on the column.
    How can I achieve it using the TransferHandle class.Dont want to go the AWT way of implementing all the source and target listeners on my own.
    Have overridded the "CanImort" as follows:
    public boolean canImport(JComponent c, DataFlavor[] flavors) {
         JTable table = (JTable)c;      
    Point p = table.getMousePosition();
    /* if(p==null)
         return false;
    int selColIndex = table.columnAtPoint(p);
    if(selColIndex==0)
         return false;*/
    If I execute the above commented code,The "No-Drop" Icon appears in "column2-0",but no cell selection.Also If I move to "column2-1",which is the 1st column,Still get the "No-Drop" Icon there,also with no cell selection.
    for (int i = 0; i < flavors.length; i++) {
    if ((DataFlavor.stringFlavor.equals(flavors))) {
    return true;
    return false;
    Thanks in advance.....
    Edited by: Kohinoor on Jan 18, 2008 3:47 PM

    If you found the selection column based on the mouse pointer, then based on the column, you can set the cursor pointer as any one as below :
    setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    setCursor(new Cursor(Cursor.HAND_CURSOR));

  • Recommend me a good drag and drop tutorial

    I need to make a movie whereby the user drags four items onto 4 targets and achieves a result as each object lands on the target, such as a sound. and then a well done statement at the end.
    Can anyone recommend me a place where I can download such a file so I can manipulate it? I figured an hour ago when i sat at my computer that I would find one easily, but I'm really stuck now. can anyone suggest a tutorial/ site where I could get a free download of an advanced drag and drop like this?
    I'd really appreciate your help!
    Thanks.
    Niamh.

    These are the 2 good tutorials that helped me in making Drag and Drop in flash : http://www.flashvalley.com/fv_tutorials/advanced_drag_and_drop_in_Flash/
    http://www.actionscript.org/resources/articles/26/1/Drag-n-Drop-and-Drop-Targets/Page1.htm l
    Thanks,
    Sudheendra

Maybe you are looking for

  • Change in FG/SFG valuation system from STD cost MAP

    As of now we use Std cost for valuation of FG/SFG and we would like to switchover to MAP for following reasons: 1.We donu2019t see any significant benefit  from present costing system. Std costing updation, monthly CO closing, periodical revision of

  • After updating my iPhone 3GS to 5.0.1 from 4.1 it cant find SIMcard

    hey! today i update my iphone 3gs to 5.0.1 so iphone said me that it cant activate it, and itunce said it cant find my SIM card. Before updating I had 4.1, and now I decided to update it to 5.0, but it is imposible becourse I can update it only to 5.

  • Need help for CCVP CERTIFICATION

    Hi. I am a CCNP certified person. I would like to lear CCVP. Is it possible to learn CCVP without any voice backround. Is it possible to get voice knowledge by reading books? if so pls recommend some books which will be helpful for me to learn voice

  • Development Methodology for MI

    Hi, Can anyone have Implementation Methodology document for Mobile Infrastructure or any informaion where I will get the document? Thanks & Regards Nileshwar.

  • Query to delete two weeks old data.

    Hi Experts, I want to delete the records grater than two weeks old. From Saturday to Friday we are considering as Week. P_ID  CREATED_DT 105    28/AUG/2013 106    29/AUG/2013 107    30/AUG/2013 108    31/AUG/2013 109    01/SEP/2013 110    02/SEP/2013