Drag and drop to open link

Hi , I'm learning flash and have just upgraded from MX to CS5 . In MX I created a drag and drop actionscript that works fine , but now I want to modify it. In the original , an image representing an audio file could be dragged and dropped , and if it was double-clicked it opened that specific audio file and played the audio . I would like to get rid of the double-click and have the audio file open if the image is dropped on top of another image (of a record player) . Is it possible to activate the specific link for the audio file image by dropping it inside a box , or onto a button?
Also , the MX version works fine , but do I have to rewrite it using Actionscript 3 , if I add further code in CS5?
Thanks

Thanks for the reply Ned.
Here is the code
//On press
on (press) {
  this.startDrag();
//On release
on (release) {
  this.stopDrag();
//On rollOver
on (rollOver) {
  this.swapDepths(1000);
on(release) {
  var v0 = getTimer();
  lastclick = getTimer();
  if (lastclick - v0 + 500 > 0) {
  getURL("katie.html");
  trace("double");
  } else {
  trace("single");
It shows a pile of "albums" to sort through and click through to the music. See http://www.olimalarky.co.uk/flash/musics.html
I want to drag the image onto the image of a record player and have it open the link without clicking.
Thanks for any help.
Oli

Similar Messages

  • I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    Question
    I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    To be more precise, you can setup a JComponent or JPanel on top of your JavaFX nodes that has a TransferHandler that can convert the (AWT/Swing) images dragged to the app to JavaFX image and then insert it into the underlying node.
    As for the file chooser itselft: ListView and the JavaFX composer can allow you to create one quite easily. TreeView can aslso be used to a lesser extend (still a big buggy). For both of these, there are small bugs in the Cell API that may (or may not) prevent from displaying a proper thumbnail in the cells.
    You can also use a regular JFileChooser if you do not mind the dialog box having a different LnF from the rest of your application.

  • Can you Drag and Drop to open Files

    Hello All,
    I am trying to make a desktop app using AIR with Flash Pro CS5.5. I was wondering if it was possible to have the app open files by dropping them onto the app's icon in the browser of the OS.
    For example, let's say I want to create a photo viewer app for Windows. I would like to be able to highlight a couple of JPGs, drag them over my app's icon and 'drop' them into the program. This will open the app and it will show me the selected JPGs in a slide show.
    If this is not possible, then is it possible to have the app already open and drag the JPGs on the the open window for the same effect?
    I have read the FileReference and File classes documentation but it doesn't quite answer my question. Also, searches on Google as well as here don't seem to be leading me to the answer. I've tried "open file using drag and drop" and "pass a file as a parameter to AIR app" etc,  but the queries don't lead me to relevant information.
    Any help is appreciated,
    Thanks in advance.

    If you have an opened application you can drag and drop multiple images and these displays you (getting the path of the images and load with Loaders) this because I have done, but I'm not sure dragging over the icon works, maybe. 

  • PSE 12 Drag and Drop within open documents

    PSE 12 running on an Asus tablet with Windows 8.
    Owned PSE12 since December of 2013.  Finally entered in the serial number on Monday to get the startup pop-up message to go away.
    Now I cannot drag a layer from one open document to another.  This has worked flawlessly since I purchased the software.
    I select either the layer directly or from the side bar and move the mouse to hover over the tab of the document I wish to copy the layer into. Nothing.
    Anyone else having this issue? 

    The Arrange menu i was referring to is at the bottom of the pse 12 window.
    It's called Layout.
    (sorry for the confusion)

  • Illustrator Default PDF, if open in Acro Pro, drag and drop other .ai files, will they also....

    Hi! I'm trying to archive (for myself and others for easy access) about 50 fairly complex .ai files in a single Illustrator Default PDF and maintain editability and preserve layer and grouping integrity for every separate file, and, i'm probably going to have to do this hundreds of times (at least!) in the future. Once i save the initial first pdf file through Illustrator (wish didn't even have to do this, but seems no way to do in Bridge), then open the resulting pdf w Acrobat Pro, can i then just select an entire folder's worth of ai files in Bridge, drag and drop them into the pages panel and still have the dragged and dropped files also preserve all their AI info and layer/ group integrity? An if not, thinking if not based on 20 similar experiments, what's a fast way to do this. Doing this manually each time: opening each file in AI then saving as AI pdf, then combining and arranging them all after the fact, would be, well, fairly effed in terms of time, carpal tunnel, arthritis etc. Experimented w Bridge PDF Output batching (terrible rasterized lo-res results, but great for its intended purpose) and just dragging and dropping into Acrobat (lose complicated layer names and info, all flattened to single layer). Any help most appreciated, and as i do not have regular access to das interwebs  (i live on a boat) would appreciate and heed gentle admonishment if i've misposted or broached any community etiquette here. I've researched this as well as i can but can't find anything efficient/ elegant not involving InDesign, and even then the details are skimpy. Thank You! Getting mentally exhausted and not a little loopy. Keep in mind had to teach myself both Illustrator, Acrobat etc with access to the very limited offline help menus (the boat), so a complex answer involving learning InDesign would be learning curve can't even imagine with everything else struggling to do. But if you're willing to babystep diagram it out for me or can find me a link that does i will not only be eternally grateful but will do my durndest to master it and pass it on....Thanks Again! lil mc szpf
    PS If it helps I'm running the diligent dogged dusty beloved workhorse CS4 Design Premium on 27" monitor 2010 Mac (OS X 10.6.8), and took advantage of rare housesitting net access to install all most recent updates of everything, i'm barely competent w AI, PS, BR and been tackling Acrobat for past couple of months now....

    im glad that somebody is atleast trying. perhaps i need to be more clear.
    i will step by step describe the issue in detail.
    1) i open an email that contains an attachment .dxf or .pdf
    2) i click on the attachment shown in the email and aprompt comes up asking if i want to open or save the attachment.
    3) i select save. (by default it saves to a downloads folder. but i have also chosen to use other folders (when i did that it wouldnt save them)
    4) i highlight the downloads arrow on the right top side of my browser and click it
    5) it pulls down a list of the files that i USED to be able to click and drag onto my destop, or anyplace i chose
    6) used to be when i clicked and held the left mouse button down on top of a file of my choosing it would highlight and as i began to drag, a ghost image would appear of the file i was dragging. showing a (/) symbol next to it showing i couldnt drop the file within the browser and a + simbol showing that i could drop the file when the file was hovering over a place where i could drop the file such as my desktop or other folder. now, when i click and hold on the file.... I DONT get anything. when i drag. nothing follows. while i am "dragging" in the area that is my browser, i get the pointy finger icon. as soon as i enter an area where i could have dropped the file as before, i get my standard cursor arrow.
    its really as if the drag and drop feature just dosent work IN FIREFOX.
    i can drag and drop files all day long everyplace else.

  • Drag and Drop to photo page creates links, doesn't replace placeholders

    I searched the discussions for quite a while and didn't find much similar to this topic. Basically, drag and drop is no longer working on my iWeb and my photo grids will not accept pictures to replace the placeholder (sample) photos. I will try to explain the whole problem in detail.
    I am a new iWeb user, and I set up a page without any problems at first. Yet when I returned in iWeb to add another photo page today, I have had a lot of trouble. I used the template Photo Page and opened the Inspector and the Media Viewer to drag photos onto the placeholder photos, as the Help pages and tutorials show. Yet when I drag the picture file from the Media Viewer into the photo grid, only a small text box appears that sets up a hyperlink to the photo file on my computer. I've tried messing with the inspector, seeing what the difference is between the placeholder photos' settings and the files I'm trying to add.
    The only differences I can see are: in the Link Inspector's pane I can tell the program is at first making a hyperlink to the file instead of displaying the photo (yet disabling the hyperlink doesn't change anything); also,
    In the Graphic Inspector pane that appears when I have selected a general area in the photo grid, at the top the "Style" , "Layout" and "Caption" options appear, along with a display of a sample photo style. When I click on one of the rectangles that appears with the file I am trying to drag and drop, I have only the "fill" option, which has "none" selected. Fiddling with the options does not get the photo to appear.
    I can see the blue grid surrounding the placeholder photos, so the photo grid exists. I have also tried using different templates' photo pages, but they all have the same problem. I also tried creating an album in iPhoto and importing it to iWeb, but only two photos appeared out of 12.
    So the main part of my problem is not that photos don't appear at all (if I try and insert them they appear on their own, completely independant of the template's style and the photo grid)., it is that they do not work with the photo grid and that drag-and-drop no longer works.
    Any information that could help is greatly appreciated.
    Sue

    Susan,
    Try out the following things. These suggestions are
    sort of the starting point for non-specific strange
    behavior in iWeb.
    1. Delete iWeb preference file at:
    YourHardDrive/Users/yourname/Users/Library/Preferences
    /"com.apple.iWeb.plist"
    2. Delete iLife Media Browser preference file at:
    YourHardDrive/Library/Preferences/"com.apple.iLifeMedi
    aBrowser.plist"
    3. Repair startup disk permissions using Disk
    Utility
    4. Reboot machine
    5. Delete iWeb application (but keep a backup of the
    Domain file!) and reinstall iWeb 1.0 from original
    iLife'06 DVD or Recovery Disks and then update
    directly to 1.1.1 via Software Update.
    These are the top 5 things that seem to garner some
    kind of positive results from people having similar
    problems.
    I am having the same problem Susan described. I've tried #1 and #2 from the above recommendations and still have the same problem of photos not opening in the photo page after dragging them from iphoto. I, too, published a site (not on .Mac, but I don't know if that matters) and now want to add a photo page. Also, the template shows six placeholders, but when I select the photo page only three appear.
    Hope you can help. Thank you.

  • SharePoint Online Drag and Drop to Quick Launch Links

    Hello,
    We're using a SharePoint document library to store invoices and an approval workflow to manage the approvals for payment. Once an invoice is approved and paid, they move the invoice into a Paid subfolder. Because there are a lot of invoices, the view
    stretches across multiple pages. When they're not on the first page of the invoice list, they can't use the drag and drop functionality to move the invoice into the Paid folder because the Paid folder only shows up on the first page of the list.
    I would like to be able to add a link to the Paid folder to the links on the left side of the window. I can add the link, and it works in that if you click the link it takes you to
    Shared Documents\Paid. But if you try and drag a document to that link, it wants to place it in the root Shared Documents, giving you an error message that the file already exists in that location.
    How can I create a quick link to a subfolder of Shared Documents that also allows drag and drop functionality?
    Thanks,
    Adam

    Hi Adam, here are a few solutions:
    1. Use "Open with Explorer."
    2. Use the Content Organizer to automatically move the documents.
    3. Create a workflow to automatically move the documents.
    4. Create another view or library on the same page with the Paid folder in it.
    5. DON'T USE FOLDERS!
    (sorry, they're a big pet peeve of mine because of all the problems they create. They're also completely unnecessary with only one exception.)
    cameron rautmann

  • Open a File in a JTextPane via Drag and Drop

    Hi,
         I have a simple JTextPane in a Swing App on Windows XP. I would like to know if it is possible for me to be able to add the functionality such that I can drag a text file to the JTextPane and it would open the file inside the Pane. Is this possible? If yes then how do I implement it? (I am not insisting on the app working on non-Win XP systems � so portability is not a concern.)
         I have tried to search for the drag and drop stuff but I am confused. First, which interfaces should I implement i.e. DragGestureListener, DragSourceListener, DropTargetListener or what?
         I would be grateful for any pointers.
    Thanks a lot,
    O.O.

    1. http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html - This link did have the information but has since been updated and no longer points to the relevant information that I have since used.
    So you where given a link with the appropriate informaton, but Sun has changed the information and you are blaming us for not helping? Unbelievable!
    Here is a link to the old tutorial:
    https://www.cs.auckland.ac.nz/references/java/java1.5/tutorial/uiswing/dnd/intro.html#importFiles
    Now tell us how that does not do exactly what you wanted?
    I really don�t know why some people waste their time here just providing you with linksBecause most people like yourself don't know how to ask a question. DnD is a complex topic. The only way to learn it is to read a tutorial and experiment. What a better way to learn than to play with a working example. You are given many working examples in the tutorial.
    You did not state wihich example you had changed. You did not state what problems you where having.
    The best you could state was "I'm confused". You where asked to clarify your problem/confusion but didn't. We are not mind readers so we couldn't provide further help.
    I agree I am wasting my time helping someone who doesn't even appreciate the effort made by the many individuals of the forum and I won't make that mistake again.

  • I have been backing up iMovie 08 files to my external drive, but for some reason I can't open these files in iMovie.  I used drag and drop to copy them.

    I have been backing up iMovie 08 files to my external drive, but for some reason I can't open these files in iMovie.  I used drag and drop to copy them.

    You really should be doing backups with an actual backup application, especially one that will work automatically, and, if your external HD is large enough, back up your entire system.  These can automatically back up only what's changed since the  previous backup, and some will keep "archive" copies of things you've changed or deleted, also.
    Too many things can go wrong, such as your internal HD failing, and you'll have a major project to reinstall everything.
    You already have Time Machine, built-in to OSX.  You might want to review the Time Machine Tutorial, and perhaps browse Time Machine - Frequently Asked Questions.
    #27 in the second link mentions some alternatives, too.

  • I have 9.0.1 on 2 pc's, both xp sp3. On 1 the 'open new tab' button is visible, on the other, the 'open new tab' button is not even available in the 'customize toolbar' menu for dragging and dropping. Why?

    I used the same installation file, but on 1 pc, the 'open new tab' button is available in the 'customize toolbar' menu and can be dragged and dropped onto the navigation bar. On the other pc, the 'open new tab' button/icon is not even available for dragging and dropping. I uninstalled firefox completely, including settings and preferences, then reinstalled, but that did not correct the missing button.

    Hi,
    Please try '''Restore Default Set''' in the '''Customize...''' window. If it's still not visible, one reason could be that the button is already placed on the toolbar but may be hidden behind another icon or toolbar.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Can i link to a specific sent email within a cell like the "Show in Mail" drag and drop feature in iCal events?

    Trying to make a log of phone and email contacts with customers.  I want to link to the actual email I sent to the customer, like the "show in mail" drag and drop feature in iCal.  Thanks

    Links in Numbers can do only two things external to the document:
    Open a page on the web
    Open and address a NEW email message, ready to compose and send.
    Regards,
    Barry

  • Drag and drop link to desktop from Chromium

    Hi, maybe my google fu skills are lacking and this belongs in the newbie corner  -- but why can't I grab a link in chromium (in the address bar) and drag it to the desktop?  I'm so used to doing it as a temporary bookmark in windows and macs that it always catches me off guard when it doesn't work.  Google reports a workaround for nautilus where you drag it to the bookmark bar first then to the desktop.  This doesn't seem to work with lxde/openbox.
    Arch 3.6.10-1 x86_64 with openbox WM
    Thanks and forgive me if this has been previously covered.

    Lxde requires some custom configuration - there's no drag and drop solution at this stage.
    To make a desktop link to a webpage, you need to create a file foo.desktop on the desktop (surprise surprise), open it with a text editor, and set some parameters in the following fashion
    NAME=FOO
    EXEC=chromium www.foo.com
    ICON=chromium
    This will set up a shortcut called foo with the chromium icon which links to www.foo.com
    Good luck

  • Visual Studio opening files when dragged and dropped in WPF app debugging session

    I'm working on a WPF app (using VS2013 CE) which is intended to manage media files (TV Shows, movies, etc) and as part of this I am enabling the user to drag and drop media files on to the running app (by adding AllowDrop="True" and PreviewDragEnter="Window_PreviewDragEnter"
    to my Window definition).
    The problem I have is that when I drag files onto the app in a debugging session Visual Studio then opens the file(s) when I stop debugging... this is seriously annoying as when I am testing with large media files (> 1GB) it just locks up VS for minutes
    at a time while it tries to open the file or files. When I run the app outside the debugger this does not happen - it's only when I'm in a VS debugging session.  The only way I can stop this happening is to kill VS completely from Task Manager then restart
    it - this is also very annoying but often I need to do this as it will freeze up for 5-10 minutes while it insists on loading the files in VS.
    I understand the app, whilst debugging, is running in the context of VS but why does VS then have to try to open the files when debugging is finished?   I have looked through the options but can't see anything to switch this off and no amount of searching
    has turned up anything - can anyone put me out of my misery with a solution to this annoying issue?

    Hello nzmike,
    Does Visual Studio behaves like the following image shows and just hangs when opening your media file?
    Do you have any other computer which installs Visual Studio? Can you reproduce this on it?
    In order to troubleshoot this issue I think we need to locate the root reason of your issue. The problem can related to the following:
    1. Your project is corrupt and VS then trys to load that file when debug finished.
    2. Your VS is corrupt and caused this problem.
    So please do something below:
    1. Try clean and rebuild your project.
    2. Switch to some other PCs and use VS and your project there, check if the problem can be reproduced.
    3. You can backup your VS setting and try some commands: devenv /resetsettings and devenv /resetuserdata
    Details about VS command:https://msdn.microsoft.com/en-us/library/xee0c8y7.aspx
    And based on th research of the above second step, if you can reproduce this issue on more than one PC, the problem is pending on your project and I need you to share a simple sample which can reproduce this issue. We will need to investigate the project
    in detail.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • File can not be moved by drag and drop in the finder when not open Finder windows

    With the operating system OSX Snow Leopard, it was possible, for example, a file from the desktop to pull drag and drop on the Finder icon, the page opened after a short and you could put the file in a folder.
    At this stage I must first open the Finder to drag a file into the destination folder.
    Is it a setting or is there anything wrong with my Mountain Lion properly?
    It is often the case that several windows of other applications are open or in Fullscreen are, then I would, as I also already knew and am accustomed, for example a file regardless of the location from which drag drag and drop in the Finder without leaving the / program / ​​site to open the Finder, before returning to the file then select I wanted to move.
    Note: For all other programs it works.
    Finder not only in where it makes the most sense.
       Picture 1: Finder window opens when you drag a file to the Finder icon
       Picture 2: Finder icon flashes but the Finder window does not open. Finder windows have previously by clicking on the icon in the Dock will be open to pull a      file into it.
       Thanks in advance for your help :-)

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • I have an external hard drive that I have been using for years.  All of a sudden my mac will not recognize the external as a "save as" device location.  But the external does show up on my desktop and I can open it to drag and drop items. Help.

    I have an external hard drive that I have been using for years.  All of a sudden my mac will not recognize the external as a "save as" device location.  But the external does show up on my desktop and I can open it to drag and drop items.  What happened and how do I get my mac to rerecognize the device?!?!?

    Hi,
    Check Finder>Preferences>Sidebar, is it checked there to show external drives?

Maybe you are looking for