Sound position and length on Slider Component AS3

Hello:
I have the following working great:
stop_btn.setStyle("icon", square_mc);
player_btn.setStyle("icon", next_mc);
import flash.events.Event
import flash.events.MouseEvent;
import flash.media.SoundTransform;
var alreadyDefined:Boolean;
volumen.value = 1;
if(!alreadyDefined){
alreadyDefined=true;
var isPlaying:Boolean = new Boolean();
var pausePosition:Number = new Number();
var soundClip:Sound = new Sound();
var sndChannel:SoundChannel;
soundClip.load(new URLRequest("audio/music.mp3"));
soundClip.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
player_btn.addEventListener(MouseEvent.MOUSE_DOWN, btnPressController, false, 0, true);
stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, btnPressStop, false, 0, true);
function onComplete(evt:Event):void {
    sndChannel = soundClip.play();
    isPlaying = true;
function btnPressController(evt:MouseEvent):void
    switch(isPlaying)
        case true:
            //controller.text ="Sound Paused";
            player_btn.setStyle("icon", pause_mc);
            pausePosition = sndChannel.position;
            sndChannel.stop();
            isPlaying = false;
        break;
        case false:
            //controller.text ="Sound Playing";
            player_btn.setStyle("icon", next_mc);
            sndChannel = soundClip.play(pausePosition);
            isPlaying = true;
        break;
function btnPressStop(evt:MouseEvent):void
    pausePosition = 0;
    sndChannel.stop();
    //controller.text ="Play Sound";
    player_btn.setStyle("icon", next_mc);
    isPlaying = false;
volumen.addEventListener(Event.CHANGE, sliderChanged);
function sliderChanged(evt:Event):void {
var vol:Number = volumen.value;
volumen.liveDragging = true;
var st:SoundTransform = new SoundTransform(vol);
if(sndChannel != null){
    sndChannel.soundTransform = st;
exit_btn.addEventListener(MouseEvent.CLICK, fexit);
function fexit(event:MouseEvent):void{
    SoundMixer.stopAll(); 
    Loader(this.parent).unloadAndStop();
I have another slider component on the movie with instance name PROGRESO
I would like for PROGRESOnto indicate (update) the sounds progress as it plays and be able to scrub through the sound.
Any idea how I can achieve this? Thanks for any help

Thanks Andrei.
But I really dont understand. You see, I am not too good (actually pretty bad) with Ationscript 3.
Att.,
Edwin
I managed to get it to move each second though with this:
var myTimer:Timer = new Timer(1000);
myTimer.addEventListener(TimerEvent.TIMER, runTimer);
myTimer.start();
function runTimer(event:TimerEvent):void {
trace("Hello");
progreso.value = progreso.value+1;

Similar Messages

  • Serious Help! Handling Sound Position And Speed!

    Take a look at this: https://sites.google.com/site/pardeepgames/Untitled-1.swf. It may take some time to load, sound is 42 seconds, see the second text field for time buffering.
    I recommend reading the Source Code below first.
    Now as you can see the pitch and speed functions are working perfectly, but the problem is that when you move the slider, the songTime text field dosen't work correctly. When you raise the pitch the songTime should just speed up the counting not change it's position, same when you lower the pitch, it should just slow down the counting not change it's position. Well that isn't working for me. The Source Code is there for you below and all the information you need is in the comments in the code. Please help me out. Oh and I recommend focusing on the songTime text field and then moving the slider.
    Source Code:
    Name of the slider: "slider".
    Name of the first text field: "songTime".
    Name of the second text field: "songTotalTime".
    import flash.events.Event;
    import flash.events.SampleDataEvent;
    import flash.media.Sound;
    import flash.net.URLRequest;
    import flash.utils.ByteArray;
    import fl.events.SliderEvent;
    import flash.media.SoundChannel;
    var _playbackSpeed:Number = 2;
    var sound:Sound;
    var sound2:Sound; // Copy of the original sound, to get the right information about the sound because the pitch shifting for the original sound variable ruins it up.
    var myChannel:SoundChannel = new SoundChannel();
    var _loadedMP3Samples:ByteArray;
    var _phase:Number;
    var _numSamples:int;
    var request:URLRequest = new URLRequest("https://sites.google.com/site/pardeepgames/Not%20Afraid%20Instrumental.mp3");
    var songTimeTime:Number = 1000; // The variable that allows the songTime's speed to change accoriding to the value of the slider. See in line 32.
    loadAndplay10(request);
    addEventListener(Event.ENTER_FRAME, enterFrame);
    function enterFrame(event:Event):void
      progressBar.scaleX = myChannel.position / sound2.length;
      _playbackSpeed = slider.value;
      songTimeTime = 1000 / slider.value;
      songTime.text = convertTime(myChannel.position);
      songTotalTime.text = convertTimeLength(sound2.length);
    function loadAndplay10(request:URLRequest):void
      sound = new Sound();
      sound2 = new Sound();
      sound.addEventListener(Event.COMPLETE, mp3Complete);
      sound.load(request);
      sound2.load(request);
    function playLoadedSound(s:Sound):void
      var bytes:ByteArray = new ByteArray();
      s.extract(bytes, int(s.length * 44.1));
      play10(bytes);
    function mp3Complete(event:Event):void
      playLoadedSound(sound);
    function play10(bytes:ByteArray):void
      stop10();
      sound = new Sound();
      sound.addEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData);
      _loadedMP3Samples = bytes;
      _numSamples = bytes.length / 8;
      _phase = 0;
      myChannel = sound.play();
    function stop10():void
      if (sound)
      sound.removeEventListener(SampleDataEvent.SAMPLE_DATA, onSampleData);
      myChannel.stop();
    function onSampleData( event:SampleDataEvent ):void
      var l:Number;
      var r:Number;
      var outputLength:int = 0;
      while (outputLength < 2048)
      // until we have filled up enough output buffer
      // move to the correct location in our loaded samples ByteArray
      _loadedMP3Samples.position = int(_phase) * 8;// 4 bytes per float and two channels so the actual position in the ByteArray is a factor of 8 bigger than the phase
      // read out the left and right channels at this position
      l = _loadedMP3Samples.readFloat();
      r = _loadedMP3Samples.readFloat();
      // write the samples to our output buffer
      event.data.writeFloat(l);
      event.data.writeFloat(r);
      outputLength++;
      // advance the phase by the speed...
      _phase +=  _playbackSpeed;
      // and deal with looping (including looping back past the beginning when playing in reverse)
      if (_phase < 0)
      _phase +=  _numSamples;
      else if (_phase >= _numSamples)
      _phase -=  _numSamples;
    function convertTime(milliSeconds:Number):String
      var Minutes:Number = (milliSeconds % (songTimeTime * 60 * 60)) / (songTimeTime * 60);
      var Seconds:Number = (milliSeconds % (songTimeTime * 60 * 60)) % (songTimeTime * 60) / songTimeTime;
      if (Minutes < 10)
      var displayMinutes:String = "0" + Math.floor(Minutes);
      else
      displayMinutes = Math.floor(Minutes).toString();
      if (Seconds < 10)
      var displaySeconds:String = "0" + Math.floor(Seconds);
      else
      displaySeconds = Math.floor(Seconds).toString();
      return displayMinutes + ":" + displaySeconds;
    function convertTimeLength(milliSeconds:Number):String
      var Minutes2:Number = (milliSeconds % (1000 * 60 * 60)) / (1000 * 60);
      var Seconds2:Number = (milliSeconds % (1000 * 60 * 60)) % (1000 * 60) / 1000;
      if (Minutes2 < 10)
      var displayMinutes2:String = "0" + Math.floor(Minutes2);
      else
      displayMinutes2 = Math.floor(Minutes2).toString();
      if (Seconds2 < 10)
      var displaySeconds2:String = "0" + Math.floor(Seconds2);
      else
      displaySeconds2 = Math.floor(Seconds2).toString();
      return displayMinutes2 + ":" + displaySeconds2;

    this is a public forum.  no one here (or anywhere else that i know of) is obligated to work for you for free.
    your options are to keep working on this yourself or hire someone to help you.  if you can narrow down the problem's location and post the problematic code you could still get free help.
    or just wait.  given enough time maybe someone willing to donate their time to help you will read your post.

  • How to check position and length of a field in a structure

    Dear All,
    DATA :  P_DEST TYPE ANY.
    Assuming that the structure (P_DEST ) conatins a field called 'ROUTE', how to find the position and length of field 'ROUTE'.
    Please help!!
    Thank you in advance.
    Sravan.

    Hi,
    you may need to find out the type of a generic interface parameter in a subroutine. To do this, you would use the statement:
    DESCRIBE FIELD <f> [LENGTH <l>] [TYPE <t> [COMPONENTS <n>]]
                       [OUTPUT-LENGTH <o>] [DECIMALS <d>]
                       [EDIT MASK <m>] [HELP-ID <h>].
    The attributes of the data object <f> specified by the parameters of the statement are written to the variables following the parameters.
    Regards
    Sudheer

  • Sound position and duration

    The sounds come from an array, when I click on the sound icon
    a new mp3 is loaded, that part works. The problem is with the
    txtPlayTime.text, when I load a new mp3 soundPlayingTime does not
    initialize from 00:00 but continues counting and the content of the
    text field txtPlayTime.text bliks from 00:00 / 00:00 to the current
    value every time the interval refreshes.
    I tried all kind of things but I cannot make it work
    properly. Any help will be appreciated.
    Thank you in advanced,

    U welcome.
    I have question are you upload ur project into server and
    test it? Because when i write my player i was problem in
    onLoad=function(success) i mean user open the site and sound play
    but after the sound loaded that mean if(success) i put like you
    s.stop() s.start(0) the current sound stop and begin from 0 , it
    dousent continue from the current position i decide with
    s.start(s.position/1000).I offer u to test your player into some
    server :)

  • Format Sound.position and .duration into time

    Hi,
    How would i go about formatting Sound.position from
    milliseconds into proper time like 1:30 for 90 seconds?

    i have figured it out if anyone else wants to know...
    where timeString is the Sound.position in
    milliseconds!

  • Hi just updated to ios7   Speaker make No sound in music player Volume slider is not functioning at all , it's grey Ringtones works fine. I have apple tv in my local network so in ios 7 music player i switched to play through airplay And back to iphone -

    Hi just updated to ios7
    Speaker make No sound in music player
    Volume slider is not functioning at all , it's grey
    Ringtones works fine.
    I have apple tv in my local network so in ios 7 music player i switched to play through airplay
    And back to iphone - no sound
    Also tried another music player same **** - plays no sound
    iPhone 4S, iOS 7

    Hello there, vishnu cs.
    The following Knowledge Base article provides some great information for troubleshooting your issue:
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to Position Thumb on Slider Component

    Hi all:
    I am relearning ActionScript after 6 years away, so please
    excuse what may be a really stupid question. I am trying to use the
    built-in Slider Component to resize a graphic in my movie. I've
    used the Code example from the Flash online documentation and got
    it to work. Trouble is, the thumb on the slider is starting at 10
    percent when the movie loads, and I want it to start in the middle
    (50%).
    I tried setting the aSlider.value = 50; And that works,
    except as soon as I finish dragging the slider, the thumb snaps
    back to 50. I tried resetting it within the ChangeHandler function
    to the new event.value, but that doesn't work. I tried assigning it
    to a variable called thumbpos and setting that, also doesn't work.
    How can I make the new event.value persist outside of the
    function? See attached code. Thanks!!!
    **************************************************

    1. To set focus to a component, we call the Item.Specific.Click method on the component
    2. I think that the order that fields are added to the form determines the tab index.  I'm not aware of any property that would change this
    3. Handle the ItemEvent event and check pVal.EventType to see if its type is et_VALIDATE.  This means that the field specified by pVal.ItemUID is about to lose focus.  If you set BubbleEvent to False, you can cancel the action and force the user to enter a new value without leaving the field.

  • Editing Sound File and erases all sound from slides

    I created a 19 slide project. As Captivate does a
    poor job of determining when sound starts vs when a slide appears,
    I wanted to move the audio from slide 1 to slide 2. I did that and
    all the audio on the remaining slides was gone! Is this a bug or
    did I do something wrong?

    Actually, the sound from all slides wound up imbedded within
    the first slide. Now, how do I get everything back in
    sync???

  • Adjust position and size of textField and button...

    Dear All,
    I have the following sample program which has a few textFields and a button, but the positions are not good. How do I make the textField to be at the right of label and not at the bottom of the label ? Also how to adjust the length of textField and button ? The following form design looks ugly. Please advise.
    import javax.swing.*; //This is the final package name.
    //import com.sun.java.swing.*; //Used by JDK 1.2 Beta 4 and all
    //Swing releases before Swing 1.1 Beta 3.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    public class SwingApplication extends JFrame {
    private static String labelPrefix = "Number of button clicks: ";
    private int numClicks = 0;
    String textFieldStringVEHNO = "Vehicle No";
    String textFieldStringDATEOFLOSS = "Date of Loss";
    String textFieldStringIMAGETYPE = "Image Type";
    String textFieldStringIMAGEDESC = "Image Description";
    String textFieldStringCLAIMTYPE = "Claim Type";
    String textFieldStringSCANDATE = "Scan Date";
    String textFieldStringUSERID = "User ID";
    String ImageID;
    public Component createComponents() {
    //Create text field for vehicle no.
    final JTextField textFieldVEHNO = new JTextField(5);
    textFieldVEHNO.setActionCommand(textFieldStringVEHNO);
    //Create text field for date of loss.
    final JTextField textFieldDATEOFLOSS = new JTextField(10);
    textFieldDATEOFLOSS.setActionCommand(textFieldStringDATEOFLOSS);
    //Create text field for image type.
    final JTextField textFieldIMAGETYPE = new JTextField(10);
    textFieldIMAGETYPE.setActionCommand(textFieldStringIMAGETYPE);
    //Create text field for image description.
    final JTextField textFieldIMAGEDESC = new JTextField(10);
    textFieldIMAGEDESC.setActionCommand(textFieldStringIMAGEDESC);
    //Create text field for claim type.
    final JTextField textFieldCLAIMTYPE = new JTextField(10);
    textFieldCLAIMTYPE.setActionCommand(textFieldStringCLAIMTYPE);
    //Create text field for scan date.
    final JTextField textFieldSCANDATE = new JTextField(10);
    textFieldSCANDATE.setActionCommand(textFieldStringSCANDATE);
    //Create text field for user id.
    final JTextField textFieldUSERID = new JTextField(10);
    textFieldUSERID.setActionCommand(textFieldStringUSERID);
    //Create some labels for vehicle no.
    JLabel textFieldLabelVEHNO = new JLabel(textFieldStringVEHNO + ": ");
    textFieldLabelVEHNO.setLabelFor(textFieldVEHNO);
    //Create some labels for date of loss.
    JLabel textFieldLabelDATEOFLOSS = new JLabel(textFieldStringDATEOFLOSS + ": ");
    textFieldLabelDATEOFLOSS.setLabelFor(textFieldDATEOFLOSS);
    //Create some labels for image type.
    JLabel textFieldLabelIMAGETYPE = new JLabel(textFieldStringIMAGETYPE + ": ");
    textFieldLabelIMAGETYPE.setLabelFor(textFieldIMAGETYPE);
    //Create some labels for image description.
    JLabel textFieldLabelIMAGEDESC = new JLabel(textFieldStringIMAGEDESC + ": ");
    textFieldLabelIMAGEDESC.setLabelFor(textFieldIMAGEDESC);
    //Create some labels for claim type.
    JLabel textFieldLabelCLAIMTYPE = new JLabel(textFieldStringCLAIMTYPE + ": ");
    textFieldLabelCLAIMTYPE.setLabelFor(textFieldCLAIMTYPE);
    //Create some labels for scan date.
    JLabel textFieldLabelSCANDATE = new JLabel(textFieldStringSCANDATE + ": ");
    textFieldLabelSCANDATE.setLabelFor(textFieldSCANDATE);
    //Create some labels for user id.
    JLabel textFieldLabelUSERID = new JLabel(textFieldStringUSERID + ": ");
    textFieldLabelUSERID.setLabelFor(textFieldUSERID);
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    final JLabel label = new JLabel(labelPrefix + "0 ");
    JButton buttonOK = new JButton("OK");
    buttonOK.setMnemonic(KeyEvent.VK_I);
    buttonOK.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
              try {
    numClicks++;
              ImageID = textFieldVEHNO.getText() + textFieldDATEOFLOSS.getText() + textFieldIMAGETYPE.getText();
    label.setText(labelPrefix + ImageID);
              ScanSaveMultipage doScan = new ScanSaveMultipage();
              doScan.start(ImageID);
         catch (Exception ev)
    label.setLabelFor(buttonOK);
    * An easy way to put space between a top-level container
    * and its contents is to put the contents in a JPanel
    * that has an "empty" border.
    JPanel pane = new JPanel();
    pane.setBorder(BorderFactory.createEmptyBorder(
    20, //top
    30, //left
    30, //bottom
    20) //right
    pane.setLayout(new GridLayout(0, 1));
         pane.add(textFieldLabelVEHNO);
         pane.add(textFieldVEHNO);
         pane.add(textFieldLabelDATEOFLOSS);
         pane.add(textFieldDATEOFLOSS);
         pane.add(textFieldLabelIMAGETYPE);
         pane.add(textFieldIMAGETYPE);
         pane.add(textFieldLabelIMAGEDESC);
         pane.add(textFieldIMAGEDESC);
         pane.add(textFieldLabelCLAIMTYPE);
         pane.add(textFieldCLAIMTYPE);
         pane.add(textFieldLabelDATEOFLOSS);
         pane.add(textFieldDATEOFLOSS);
         pane.add(textFieldLabelUSERID);
         pane.add(textFieldUSERID);
    pane.add(buttonOK);
         pane.add(table);
    //pane.add(label);
    return pane;
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(
    UIManager.getCrossPlatformLookAndFeelClassName());
    } catch (Exception e) { }
    //Create the top-level container and add contents to it.
    JFrame frame = new JFrame("SwingApplication");
    SwingApplication app = new SwingApplication();
    Component contents = app.createComponents();
    frame.getContentPane().add(contents, BorderLayout.CENTER);
    //Finish setting up the frame, and show it.
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

    Post Author: Ranjit
    CA Forum: Crystal Reports
    Sorry but, i've never seen formula editor for altering position and size. If you know one please navigate me.
    I guess you have updated formula editor beside "Lock size and position" - if yes its not right. There is only one editor beside 4 items and editor is actually for Suppress.
    Anyways, A trick to change size a position is:
    Create 4-5 copies (as many as you expect positions) of the text object. place each at different positions,  right click, Format, Suppress and in formula editor for suppress write the formula: If your condition is true, Suppress=false, else true.
    Position will not change but user will feel; for different conditions -position is changed
    Hope this helps.
    Ranjit

  • Sound position incorrect with multiple MP3s

    Hi all, I have a slideshow that has a few different
    soundtracks that are loaded in dynamically depending on which slide
    is showing. I have a Pause button that pauses the slideshow and
    soundtrack and records the position of the soundtrack, so that when
    the Play button is pressed, the slideshow and soundtrack resume
    where they left off. The problem is that the Flash player records
    the position from the begining of the first soundtrack and doesn't
    restart from zero when a new soundtrack is loaded. So when the play
    button is pressed, the soundtrack offset gets further and further
    off depending on how long the slideshow has been running and how
    many soundtracks have loaded. In other words, if the first
    soundtrack is 30 seconds long , the second one is 120 seconds long,
    and the slideshow is paused in the middle of the second soundtrack,
    the position should be about 60,000, however it is returned as
    90,000 because it includes the 30 seconds from the first
    soundtrack. Does anyone know a quick fix for this, short of
    creating new sound objects each time I load a new soundtrack?
    Thanks, JD
    Here is the pertinent code:
    _root.createEmptyMovieClip("soundtrack_mc",300);
    mainSound = new Sound(soundtrack_mc);
    mainSound.loadSound("MP3/Soundtrack-01.mp3",true);
    mainSound.setVolume (70);
    function pauseSlideshow(){
    pauseTime = mainSound.position;
    mainSound.stop();
    clearInterval(loadInterval);
    function playSlideshow(){
    startTime = pauseTime/1000;
    mainSound.start(startTime,1);
    loadInterval = setInterval(fadeAndLoad, 4000);
    }

    Yes, I did solve this problem simply by creating a new sound
    object each time I needed to load a new soundtrack instead of
    loading the next soundtrack into the same sound object. Here is the
    function I created to load the next soundtrack. This function is
    being called by another function that checks an array to see if
    it's time to load the next soundtrack based on the number of the
    current image that is loading.
    You will notice that each time I load a soundtrack I create a
    new sound object. I keep the name of the object the same so all my
    other code still works. This is the line of code that creates the
    new sound object and puts it in the soundtrack movie clip each time
    I load a new soundtrack.
    mainSound = new Sound(soundtrack_mc);
    Here is the complete function:
    function fadeDownSoundtrack(endVol){
    setVol = mainSound.getVolume();
    if(setVol < 10){
    setVol = 80;
    soundtrack_mc.onEnterFrame = function(){
    startVol = mainSound.getVolume();
    if(startVol > endVol){
    mainSound.setVolume(startVol - 5);
    volFader1 = startVol;
    }else{
    delete this.onEnterFrame;
    soundtrackNum += 1;
    mainSound = new Sound(soundtrack_mc);
    mainSound.loadSound(("MP3/Soundtrack-" + soundtrackNum +
    ".mp3"),true);
    mainSound.setVolume (setVol);
    volFader1 = setVol;
    Hope that helps. JR

  • Sound Object and Media Display

    I'm creating a music player that uses xml generated from a
    database to load a song. One of the attributes of the xml is the
    path to the mp3 file. The attribute is stored in a generic object
    and is then passed as a function parameter. There's a lot of
    information i'd like to use from the id3 tags but the only object
    that supports them is the Sound object. I need the files to stream
    so they aren't cached onto the local system and have a media
    component to control playback.
    If I create a sound object and use the file path parameter in
    the loadSound method I can grab the id3 tags but the media
    component doesn't have control of playback and the files are
    cached.
    mySound:Sound = new Sound();
    mySound.loadSound(pathparam, true);
    If I just load the file path into the media component it
    starts playing right away and streams with the lovely built-in
    progress bar but I can't seem to access the id3s.
    mediaComponent.setMedia(pathparam, "MP3");
    Is there a way to load an actual Sound object into the media
    component so they will stream but also have access to the id3s?
    Thanks in advance for any tips!

    How can this NOT work????
    //Create an instance of the Sound class
    var soundClip:Sound = new Sound();
    //Create a new SoundChannel Object
    var sndChannel:SoundChannel = new SoundChannel();
    //Load sound using URLRequest
    soundClip.load(new URLRequest("chimes.wav"));
    //Create an event listener that wll update once sound has finished loading
    soundClip.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
    function onComplete(evt:Event):void {
    //Play loaded sound
    sndChannel = soundClip.play();
    Taken directly from:
    http://flashspeaksactionscript.com/loading-external-sounds-using-as3/
    I hear nothing.

  • Creation of lsmw for updation of position and pers area

    Hi friends,
    I am tried many time to update position and personnel area through lsmw for all employees ,at time of recording its coming.But once compltion of lsmw preparation i am uploaded my inputs through tabfile that time its updating only personnel number and infotype  and its asking the save the action screen (At the same time its showing one popup below screen like there is no recording for mp000000).Can you tell any one there whats the problem.At the same time is it possible to upload the position and personnel area through lsmw.
    Thanks,
    arjun.

    Hi Arjun
    Are you performing a hiring actions, if you are performing a hiring action, when you start with LSMW, the recording should be correct with hire date or start date, personnel number, reason for hire, position number, personal area, employee group and subgroup.
    The source field you specific should contain the required field name, type, length and field discription.  The field mapping should be done perfectly and assign the specified file in txt format and try to upload.
    If you are facing any problem, let me know.  I think I can help you
    Regards
    Santhosh.S

  • How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance

    How can i design square signal which having a positive and negative values equal to each other and separated from each other by controlled time or distance, As it is shown in the figure below. and enter this signal in a daq.
    Solved!
    Go to Solution.

    By the time you spend for the nice diadram you might have done the vi
    Your DAQ like to have a waveform (array of values and dt ak 1/samplerate)
    If you set the samplerate you know the array length , create a array of zeros, and set the values of both amplitudes ... 
    Since I don't want to wire others homework here are some pictures
    And there are some drawbacks is room for improvement in my solution, just think of rounding errors ... and what might happen if the arrays get bigger ....
    Spoiler (Highlight to read)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Problem with Sound.position

    I find that Sound.position does not reset to 0 when using
    Sound.loadSound(). It seems to continue with the last value. If a
    loaded sound is stopped at position 500. Starting the sound again
    plays the sound from 0 but position starts at 500?
    I have worked around this by making a new sound object when a
    loadedSound is stopped. Is there a better solution?

    This is not an intermittent problem. This is how the Sound
    object works. I'm using Flash 8. It worked this way under Flash 7
    also.
    Try it for yourself. Follow these steps:
    1) Make a new text field to display the position. Then make
    two buttons one to play and one to stop the sound.
    2) Make a Sound object
    3) Add an onEnterFrame function to the main timeline that
    puts the position of the sound in the field
    4) Set up the first button to call loadSound. Set up the
    second button to stop the sound.
    Test your movie. Click the first button, the sound starts to
    play and you will see the value of position in your text field.
    Click the second button. The sound stops and the field still
    shows the current value of position.
    Note this says that position doesn't get set to 0 when you
    stop your sound.
    Next click the first button to play your sound. Clicking this
    calls loadSound again which starts the audio from the beginning.
    But, the position displayed in the field doesn't start form 0. It
    continues from where it was last. If the sound gets to the end. The
    value stops increasing but the sound continues to play?

  • TextArea component AS3

    I'm having trouble both working out or finding out how to
    apply an imported css file to the CS3 TextArea component. I've
    frequently done this in AS2 using Flash 8, but that code no longer
    works. If anyone knows could you please let me know. Here's the AS2
    code I've used previously:
    private function loadCss(){
    var myStyle = new TextField.StyleSheet();
    myStyle.load(this.CssPath+".css"); // the CssPath variable
    here was supplied within an object passed through to the
    constructor
    textArea.styleSheet = myStyle;
    loadXml();
    }

    Thank you Anirudh,
    I have been using the TextArea component because it has code to handle scrollbars, and in Flash this component is a wrapper for a TextField object. As far as I can see this is not the case in Flex, and my AS3 code sets almost all of the TextField attributes, so I probably can't use Flex and the Flash Builder anyway. At least not without throwing all my code away.
    Besides, the .swf file generated seems to be much bigger than in Flash.

Maybe you are looking for

  • TV on the counter. advertising in exchange for a promotional television channels.

    Здравствуйте! У меня есть идея для вас. Вы продаете телевизоры. Вы можете играть в ТВ промо на этих телевизоров. Вы можете предложить эту услугу каналов. В ответ вы можете ожидать скидку для размещения вашей рекламы на этих каналах. Фильмы могут быть

  • Can't restore un-activated Iphone?

    When i try to activate my iphone it always says "Your Iphone could not be activated because the activation server is temporarily unavailable." I tried activating it on itunes and it doensn't work either. I looked online about what i should do in this

  • Access a received message after transformation

    Hi, in my BPM, i am receiving an Idoc transfor it make a BAPI Call. this works fine. After this i want to transform the BAPI-response and the original IDoc to a new message for the next BAPI-Call. But i have no data in this original IDOC. I created a

  • Renaming quotation marks on FAT32 external drive

    I used a quotation mark in a name I gave a folder on my new 500gb external drive. It was fat32, and now I cannot open, right click, or do anything to the folder, it renames itself when i do that to my email backup folder. It goes back to normal when

  • Smart Phone O2, Dopod, iPaq can't authen with WPA-PSK(TKIP)

    I used Cisco AP 1100 and WPA-PSK (TKIP) My notebook can authenticated but smart phone can't it. I see log at AP "authentication failed" What happen?