Global Volume Slider (from library) to control drag and drop xml playlist

hi there,
have spent some time doing tutorial and looking online but can't seem to get a volume slider functioning.
the scenario is :
3 circles which can be dragged over a target (one for each circle)
When the circle is placed on its target it loads its respective xml playlist into 4 buttons (play, pause, forward, back)
I want to be able to create some kind of function to control the volume, either using a slider or a rotary dial, whichever is easiest!
any help greatly appreciated!

Be sure you include the SoundTransform class...
import flash.media.SoundTransform;
Create a SoundTransform object
...named 'st' (I like short names). Create this AFTER the creation of your soundChannel object...
var st:SoundTransform = channel.soundTransform;
st.volume = 1;//This sets the volume to 100%
channel.soundTransform = st;//This associates your SoundChannel object with your SoundChannel object
Then, for simple testing of this
...create some new button...
halfVol_btn.addEventListener(MouseEvent.CLICK, doHalfVolume);
function doHalfVolume(e:MouseEvent):void{
   st.volume = .5;//This sets the volume to 50%
So, now you have a half-baked volume control. Nothing exciting, but this gets you acquainted with the volume part of what you want. You have created, and have access to, the st.volume property to set the volume to whatever you want, from 0 to 1.
Next, I'd suggest that you practice the creation of your own slider. Search online for tutorials on it, like I mention above (as a Flash programmer, this is something I, and you, end up doing - searching - dozens of times a week at times). In the end, the position of your knob/button/control in the slider is a %: What % is the location of the knob on the total width/height of the slider. This % is what you send to the st.volume property.
http://www.lmgtfy.com/?q=create+volume+slider+as3
As an alternative to create your own slider, you can also use the Flash "Slider" component:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/Slider.html
...but this, too, requires some getting-up-to-speed with using it.
Good luck. If you want some actual code examples - you'll find plenty online :-)

Similar Messages

  • HT1386 Can I manually drag and drop a playlist from an itunes account different from my own?

    Can I manually drag and drop a playlist from an itunes account other than my own?

    Yes but then all your music will be erased and replace by the new playlist.

  • Why cant I drag and drop into playlists

    I used to be able to drop and drag inrto playlists. Now I get a message which says press + button to add, but there seems no way of doing it. I'm using windows 7

    Apple Support Communities updatesI’ve tried the control-I route and then tried to locate the file without success. What I get as a file location starts with //localhost/C:/Users. It may also be useful to know that most/all the missing files seem to have been copied from CDs. I can’t be sure if it’s all because the whole music file has nearly 9000 entries! The ones that still seem to work were copied from an external hard drive.
    From: Apple Support Communities Updates
    Sent: Wednesday, April 01, 2015 7:30 PM
    To: couffin
    Subject: - why cant I drag and drop into playlists
                                                                                    You received a reply 
                                    turingtest2 has replied to your question. You can view the full discussion in Apple Support Communities.                                                                                
    why cant I drag and drop into playlists 
                                    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, or the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place. (In the case of a library moved from one system to another there are also potential permissions issues. See Repair security permissions for iTunes for Windows if this might apply.)
                                    Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. (Due to a bug in iTunes 12 you currently have to say No twice!) Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case.
                                    In some cases iTunes may be able to repair itself if you go through the same steps with Get Info but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links. Although it says something like "use the same location" it expects to find the tracks in the same artist & album layout that it generates, not all in one big folder.
                                    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
                                    tt2
                                                                                    Correct Answer Helpful Answer 
                                  Use the buttons above to tell turingtest2 and the rest of the community if this reply solved your question or helped you get closer to finding a solution. 
                                  To reply to turingtest2, go to the discussion in Apple Support Communities. 
                                  You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile. 
                                  TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014. 
                                  All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • I tunes drag and drop to playlist

    Does anyone know why it is not possible to select CD tracks then drag and drop to new playlist. On screen tells me number of tracks+ but action does not execute? I have to laboriously go to library, search for new CD track(s), highlight then drag and drop to playlist.
    My i pod is 30 G colour screen.

    Does anyone know why it is not possible to select CD
    tracks then drag and drop to new playlist. On screen
    tells me number of tracks+ but action does not
    execute? I have to laboriously go to library, search
    for new CD track(s), highlight then drag and drop to
    playlist.
    My i pod is 30 G colour screen.
    Thank you
    I do import from CD first. Then use shift/enter to highloght tracks I wish to place in a new playlist I create for the purpose, drag and drop produce icon + and no of tracks and then nothing! After ejecting the disc the tracks are in the library but contrary to what the icon tells me not in the playlist. I can get them into the playlist but only from the library

  • How to create a drag and drop video playlist Help please

    I would like to learn how to create a drag and drop video playlist.
    I think the most common example is youtube.
    I already have partial of the work but I am stuck with my preliminary knowledge of Flash.
    What I am saying is:
    I have a *.fla project that have the galleries for video and pictures.
    But this process is done from the back end.
    I would like to make it more dynamic for the visitors.
    For example:
    1. Create a visitor video (pictures) playlist
    2. Drag and drop into the playlist
    3. To be able to create different playlists (Playlist 1, "My favorite playlist", "Watch later", etc)
    If someone knows or want to guide me where or how to find this request, I'd appreciate it so much.
    If the forum think that this need to be address to a expertise ($). I am also welling to hear that and where to go.
    If someone is interesting in this project please send me a note to show the prelimary project.
    Thanks

    Yeah that is the general idea but that is more of a "lift and drop", i want to add the same thing as when you:
    Right click this window in the taskbar (assuming your using windows) when the window is not maximized and click "move" then it changes the cursor icon and allows u to move the window around and while you move it around it shows the window moving, not a click and release feature.
    So i want that ability without having to click on the title bar, if you know what i mean.

  • HT1349 new itunes update won't allow me to drag and drop a playlist

    Hi
    I've downloaded the new iTunes update but I can't seem to do a drag and drop with playlists from my PC/mac onto my external Apple devices (2x iPads, iPod and my iPhone)
    Is this lost functionality or a new "feature"
    I don't want iCloud and Home Sharing doesn't work for me...
    Any ideas....?
    I can include songs onto a device but only one at a time wheras I need to drag the whole playlist...

    No, I haven't had any solution to this problem. None of the myriad of possible solutions work. Doesn't someone from Apple monitor these boards? I've given up in getting it fixed and am seriously ****** at the lack of response on Apple's part without me paying for an answer. This is a ridiculous way to support software, where I have to troll around a discussion board hoping someone stumbled upon a solution and will actually reply to this thread.
    Considering the amount of Apple products that I own, you'd think I could get a freakin' response. Here's are the amount of apple products in my house, all bought within the past 3 years-
    Mac Pro Quad Core
    15" MacBook Pro
    13" Macbook Air
    3 Mac Minis
    Three iPad's
    2 iPhone 4's
    2 iPod Touch's
    But because it's on my Mac Pro, which is 1 1/2 years old, I can't get an answer to this! ***.

  • Can't transfer playlists created in iTunes on my PC to my iPod 7th generation...what is the procedure to do this? I use to be able to drag and drop the playlists.

    I Have updated iTunes on my PC and have recently purchased a new iPod. I can't get playlists that already existed in my iTunes transferred to my iPod. On the older versions I could drag and drop my playlists onto my iPod. Why can't I do this anymore? What are the steps to be able to do this.

    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • Re-create Tree control drag and drop move

    Hello,
    Ive got a tree control where dragEnabled=true and I have
    custom handlers for dragEnter, dragOver, and dragDrop so that I can
    drag/drop from datagrid's to the tree and it works fine.
    The issue is now the built in tree functionality for moving
    nodes around within the tree is gone. When I set dropEnabled=true
    it breaks the ability to drop from the datagrid to the tree.
    How can i keep the ability to move tree nodes within the tree
    and also be able to drag and drop from a datagrid onto the tree?
    Thanks for any help!

    While doing more testing I found the solution.. seriously...
    dont know how I should have known this one...
    on Tree dragOver handler:
    if( from.id == 'data_grid' ) event.preventDefault();

  • Itunes 11 "add to library" not working (drag and drop too)

    I just updated to itunes 11 and the add to library function is not working both manually and drag and drop.  I used to be able to add a video to the itunes media file, click add to library, click the file and it would pull it in to itunes.  None of this works including the drag and drop feature. The preferences folder is set correctly.....please help.
    brock

    It appears movies added to iTunes manually (not purchased through iTunes), are automatically put in the "Home Movie" media kind/category. I don't remember this kind in previous iTunes, but maybe it's just not one I used. I've seen where this is due to using MetaX, but I don't think so as "Home Movie" is not an option in MetaX. I cannot find any option in iTunes preferences to change this. Maybe Apple will change this in an update - I hope so. For now, I just go in and manually change this in the movie Info setting. I keep all of my movies in digital format, so this is a bit of a pain.

  • Drag and drop into playlist not working + changing of timezone

    Hey All
    Ive searched and cant find an answer to this anywhere
    My PC crashed pretty hardcore like (unable to load vista to deauthorize account before formatting PC) so a format ensued, once i formatted i reinstalled itunes and reauthorized my account for my ipod touch did the whole back transfer and delete and resync of my ipod so now i have to put all my music back onto the ipod touch (well not all my music just the stuff i want to listen too)
    So i went and made a new blank playlist (not a smart list) and proceeded to fill ... when i came accross my problem i cant drag music from the library to my new fresh (definitely not a smart playlist) Playlist
    ive checked the "manually manage box" in the ipod summary screen but even when the ipod isnt plugged in i cant drag and drop. i can right click and add to playlist fine ... just not drag and drop
    also when i plug my ipod in it sets my timezone to london and changes my time .... rather annoying considering i use my ipod as an alarm clock
    any assistance is greatly appreciated
    Thanks Rey

    You're Very Welcome Nick!
    I'm glad the fix was that simple!
    Also, I notice that you have marked your question as answered, but have not utilized the Helpful or Solved options. That may be intentional, but, if you are not aware of the benefits, of using that function, here is some information.
    When you mark the appropriate posts as Helpful (5 pts) 2 available, or Solved (10 pts) 1 available, you are Thanking the contributors, by awarding them points.
    In threads with multiple replies, it also alerts other readers, to which answers may have been helpful, or solved the issue.
    This info, and more, can be viewed by clicking on
    ? Help & Terms of Use, located under your login name, on all "Discussions" pages.
    Specifically What are question answers?.
    ali b

  • Dark photos from Aperture, iPhoto or Drag and drop

    All imported photos (from aperture, iphoto or drag&droped) whitin a project are very dark in the viewer, and in the final video (itunes, export with several options...). The histogram levels of the image are low. The preview image in the project looks fine.
    I tried repair permissions with disk Utility, system clean with Onyx... the problem remains.
    Thanks

    I'm having the same problem, but only after I installed the iMovie 9.0.1 update. Before then my still images looked fine when imported.
    But now, my pictures are coming up so dark as to be unusable. I was forced to export them as slideshow movies from iPhoto and import them as clips to iMovie last time I tried to use still images.

  • Songs don't show up in Library after a drag and drop

    I want to put some music on my daughters networked imac.
    ( right now we have her music 'shared' across the network) I want her to have more control of her music so she can make playlists etc (she is getting a nano unbeknownst to her )
    When I drop mp3 files into her iTunes folder they don't show in her library.
    Am I going about this the wrong way??

    Now I see the problem. I did not read your first post thoroughly enough.
    You already wrote they show up in the iTunes folder.
    iTunes doesn't recognize songs that are added this way.
    The most convenient way would be to copy the files to a folder on the desktop and after you're done, to drop that folder on the Library icon or the Library in iTunes.
    If 'Copy files to iTunes Music folder when adding to library' in Preferences>Advanced>General is checked, iTunes will copy those files to the proper place.
    Afterwards you can trash the contents of the folder on the desktop.
    M
    17' iMac fp 800 MHz 768 MB RAM   Mac OS X (10.4.6)   Several ext. HD (backup and data)

  • Help with selecting files from script menu or drag and drop

    I found this scale images applescript online. It works great when a bunch of files is dragged on top of the script but I would like it to also work when a folder or group of files is selected in the Finder and I activate it from the scripts menu.
    I can't get my on run statement to work. I'm not really an Applescript guy so I'm really just asking if someone can help finish what I started in this on run.
    -- save in Script Editor as Application
    -- drag files to its icon in Finder
    property target_width : 120
    property save_folder : ""
    on run
    tell application "Finder"
    activate
    set folder_path to quoted form of (POSIX path of (the selection as alias))
    set theItems to every file of folder_path
    end tell
    end run
    on open some_items
    -- do some set up
    tell application "Finder"
    -- get the target width, the default answer is the property target_width
    set new_width to text returned of ¬
    (display dialog "Target width:" default answer target_width ¬
    buttons {"OK"} default button "OK")
    if new_width as integer > 0 then
    set target_width to new_width
    end if
    -- if the save_folder property has not been set,
    -- set it to the folder containing the original image
    if save_folder is "" then
    set save_folder to ¬
    (container of file (item 1 of some_items) as string)
    end if
    -- get the folder to save the scaled images in,
    -- default folder is the property save_folder
    set temp_folder to ¬
    choose folder with prompt ¬
    "Save scaled images in:" default location alias save_folder
    set save_folder to temp_folder as string
    end tell
    -- loop through the images, scale them and save them
    repeat with this_item in some_items
    try
    rescaleand_save(thisitem)
    end try
    end repeat
    tell application "Image Events" to quit
    end open
    on rescaleand_save(thisitem)
    tell application "Finder"
    set new_item to save_folder & "scaled." & (name of this_item)
    end tell
    tell application "Image Events"
    launch
    -- open the image file
    set this_image to open this_item
    set typ to this_image's file type
    copy dimensions of this_image to {current_width, current_height}
    scale this_image by factor (target_width / current_width)
    save this_image in new_item as typ
    end tell
    end rescaleandsave

    When items are dragged to your script's icon they are passed in to the on open handler, so this triggers:
    on open some_items
    and the dragged items are passed in as some_items
    In contrast, when you double-click on the script, or invoke it via the Script menu, this runs the on run handler:
    on run
      tell application "Finder"
        activate
        folder_path to quoted form of (POSIX path of (the selection as alias))
        set theItems to every file of folder_path
      end tell
    end run
    However, there's nothing in this block that actually does anything with the selection - you (dangerously) assume that the selection is a folder (you really should check first), and just set theItems to every file in that folder then you exit.
    So to do what you want you'll need to edit your run handler to filter the selection and pass files over to the code that does the hard work.
    You already have the basis for this - your rescaleandsave() handler, so it's just a matter of identifying the files in the selection and passing those over to that handler:
    on run
      tell application "Finder"
        set cur_selection to (get selection) -- get the selection
        repeat with each_item in cur_selection -- iterate through
          if class of each_item is folder then -- do we have a folder?
            set theFiles to every file of each_item -- if so, get its contents
            repeat with each_file in theFiles -- iterate through them
              my rescaleand_save(eachfile) -- and process them
            end repeat
          else if class of each_item is document file then -- do we have a file selected?
            my rescaleand_save(eachitem) -- if so, process it
          end if
        end repeat
      end tell
    end run
    So the idea here is that the run handler gets the selection and works through the (potentially-numerous) items. For each selected item it checks whether its a folder or a file, if its a folder it gets all the files within and passes them to the rescaleandsave handler.
    Note that this is not recursive - it won't catch files within folders within folders - since it only looks at the top level of selected folders, but it wouldn't be hard to rework the script to handle that if that's what you need.

  • How to drag component from data control palette and drop in a line of text?

    Hi,
    I am using JDeveloper 10.1.3.4 and get frustrated with my attempt to drag a component from the data control palette and drop it in a line of text in a .jspx page. What I need to accomplish is to display a line of text to the use on a page:
    Get clearance for the Spring 2009 semester.This is a line of static text except "Spring 2009" is the {color:green}Term{color} attribute of a view object dragged from the data control palette. I found that if I try to type some text on a page, as soon as I create a new line, a <f:verbatim> is created. So when I tryped the first part of the text, the code is:
    <f:verbatim>
    <p>
       Get clearance for the
    </p>
    </f:verbatim>Then drag-and-drop the bound data from the data control palette:
    <f:verbatim>
    <p>
       Get clearance for the
       <af:outputText value="#{bindings.Term.inputValue}"
                 binding="#{backing_student_printOrQuit.outputText6}"
                 id="outputText6"/>
    </p>
    </f:verbatim>And then add the last word:
    <f:verbatim>
    <p>
       Get clearance for the
       <af:outputText value="#{bindings.Term.inputValue}"
                 binding="#{backing_student_printOrQuit.outputText6}"
                 id="outputText6"/> term.
    </p>
    </f:verbatim>This looks OK in the Source tab. But in the Design tab the bound data jumps above the text line. Both the bound data and the <f:verbatim> appear to be block elements in the page. And so is it when the line is displayed in the browser:
    Spring 2009
    Get clearance for the term.How to overcome this problem?
    Thanks for sharing your experience.
    Newman

    Shay,
    Waht a surprise! Just now I had already finished typing the posting to tell that it did not work. I tried changing the original code to
    <f:verbatim>
    <p>
       Get clearance for the #{bindings.Term.inputValue} term.
    </p>
    </f:verbatim>and got the display:
    Get clearance for the #{bindings.Term.inputValue} term.I tried various ways, putting single quotes around the whole expression in single quotes, around part of it, using square brackets, ... I was going to click the "Post Message" button, but gave it one last try:
    <f:verbatim>
    <p>
       Get clearance for the ${bindings.Term.inputValue} term.
    </p>
    </f:verbatim>and I got it! --
    Get clearance for the Spring 2009 term.It was my gut feeling that I was quite close because the dot-separated hierarchy {color:green}bindings.Term.inputValue{color} looks right, only some tiny bit in syntax narrowly missing it. I was lucky.
    Thank you for the suggestion!
    Newman

  • I have multiple libraries how can I drag and drop songs from either

    I have 3 PCs that are all authorized to play my music.  I have different music on different machines that I have downloaded from various places and or ripped from my own cds.  I can from my home PC drag and drop music and movies to my iPhone.  But on my work PC say if I download a new Album (not from itunes) and it is in my library, I want to be able to just drag it onto my iPhone so that I can listen to it at the gym.  When I do I see a small red circle with the red slash through it and i cant copy it.  I am tired of synching and want to be able to drag and drop from any of my PCs..  is this possible?

    My mistake totally!!! I confused a new playlist folder with a new playlist.
    Just wanted to pass that along.

Maybe you are looking for

  • Problem with RTPExport output video files

    Hi, I have a problem with RTPExport output video files. One side streams H263/RTP(AVTransmit2.java) and other write this steam to a file by RTPExport.java. When network conditions are ideal, output video file has same fps and same number of frames li

  • Download InDesign trial ? dialog box

    warning dialog box= the_following_disk_images_failed_to_mount_InDesign_7-5-LS1.dmg_invalid checksum OK?

  • Switch stack connectivity question

    x.x.x.10 = stack 1 x.x.x.11 = stack 2 my question since i have been thrown to the wolves is (with very little experience): I am at one site with 2 stacks. Is connecting stack 1 to stack 2 done with a crossover or straight through cable? On stack 1 I

  • HT203260 earphone plug does not plug into my iphone 5C, what's up with that????

    I can not plug the supplied earbuds into the jack on my new iphone 5C, is there a problem or is the phone broken

  • Exchange 2013 - Calendar

    When my user see the calendar (Room Mailbox) cannot are exhibit none information Message info. No suggestions can be provided because the data availability could not be retrieved Any step to resolve this problem? Thks. Marco Antonio Silva MCTS \ MCIT