Brand new to Flash and get into trouble

I work through a tutorial that I found to do a flash MP3 player.  I have problems with the volume controls.

Line 20 is the problem, and the compiler gives undefined ownership 1120 error for s_Transform.  I'm pretty sure it's a very simple question, but I'm new to Flash in general.  I'd appreciate any help!  Thank you!

Here is the code:

import flash.events.MouseEvent;
import flash.media.Sound;
import flash.net.URLRequest;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import fl.events.SliderEvent;

     var myMusic: Sound = new Sound();
     var soundFile: URLRequest = new URLRequest("1.mp3");
     var channel: SoundChannel = new SoundChannel();
     var s_Transform: SoundTransform = new SoundTransform();

btn_play.addEventListener(MouseEvent.CLICK, playMusic);
btn_stop.addEventListener(MouseEvent.CLICK, stopMusic);
sld_volume.addEventListener(SliderEvent.CHANGE, changeVolume);


function changeVolume(evt:SliderEvent):void
{
     s_Tranform.volume = sld_volume.value;
**this is line #20, the problem line**     channel.soundTransform = s_Transform;
}

function stopMusic(evt:MouseEvent):void
{
     channel.stop();
}

function playMusic(evt:MouseEvent):void
{
     myMusic.load(soundFile);
     channel = myMusic.play();
}

Problem, it is a typo.  Check your spelling on this line and the line of input.

Tags: Adobe Animate

Similar Questions

  • New to Lightroom and get into trouble importing Pentax PEF/RAW

    I started shooting with a Pentax K - X in RAW only (not the RAW + JPEG because I am forcing myself to get comfortable with RAW). Until yesterday, I used only iPhoto in terms of management and storage of files. Sometimes I drag a photo to Lightroom or Photoshop for spot touch-ups, but now I want to start using Lightroom to manage and store all my files so that I can get rid completely of iPhoto.

    I turned so RAW or 20 pictures (not of DNG, PEF) but when I put my SDHC card reader in my MacBook Pro (OS 10.6.4 w / 2.66 GHz Intel Core i7 w / 8 GB 1067 MHz DDR3) card reader have not to be mounted on the desk, and I couldn't find it via the broswer Lightroom or the other. I'm looking for the best way to import and store my RAW files, but I can't even take the first step.

    I did a search on the forms for a number of keywords (PEF, Import), but was still confused after everything I read. I tried to do my due diligence please don't blow me if this has been answered before. It is my first month with my camera, my first week with Lightroom and my first day with the Adobe Forums.

    Any help is very appreciated! Thank you!!

    Dewey

    DragonfaceKillah wrote:

    I turned so RAW or 20 pictures (not of DNG, PEF) but when I put my SDHC card reader in my MacBook Pro (OS 10.6.4 w / 2.66 GHz Intel Core i7 w / 8 GB 1067 MHz DDR3) card reader have not been mounted on the desktop...

    Who does not resemble a Lightroom problem.  Perhaps the material (drive or card).

  • Recently upgraded to Windows 7 and get into trouble

    I have been using Adobe Acrobat 8 Professional for several years under Windows XP.  Yesterday, my assistance upgraded me to Windows 7.  I had to reinstall Adobe.  I get a message during installation "the file"Adobe PDF.dll' on the Windows Vista CD-Rom is needed.  Type the path where the file is located, and then click OK. "I got hit instead, cancel.  Installation seems to be over, but I'm unable to convert Word documents or sheets printed in PDF format.  Does anyone have an idea on how to fix this?

    Error "the file AdobePDF.dll is needed.

    And seriously consider upgrading to XI of the Acro. It's like having a new Mercedes and drive it with your previous car tires...

    Mylenium

  • If I started a project in first Cs5 and want to finish it in first Pro CC it causes problems exporting my sequence and get into the new software?

    If I started a project in first Cs5 and want to finish it in first Pro CC it causes problems exporting my sequence and get into the new software?

    Better is to import the cs5 project in the new project of CC.

    And Yes this could have problems, he could not.

    I would have ended up in CS5. Export to the lossless format and encode with SOUL CC until the final destination.

  • I have just started with a new internet provider and get phone calls from a source to say that they are windows and the need to access my computer because its infected in windows. It is this true.

    I have just started with a new internet provider and get phone calls from a source to say that they are windows and the need to access my computer because its infected in windows. It is this true.

    No, it's a scam, ignore the call.

    Just hang up, they are trying to steal your information or to install a virus on your PC.

  • My Hotmail has recently begun to generate drafts and get into my project folder with the title 'unknown '? Someone knows why?

    WINDOWS HOTMAIL

    My Hotmail has recently begun to generate drafts and get into my project folder with the title 'unknown '?  Someone knows why?

    Any Hotmail questions belong to http://windowslivehelp.com/product.aspx?productid=1

  • I bought a new PC can not get into my old PC to uninstall cs4 how can I do this

    I bought a new pc and can't get into my old pc to delete cs4 how can I transfer the software to my new pc

    Transfer would not work even if you had the accessible machine.   You can download the installation files if you have your serial number and you can use it to activate the installation.

    CS4 - http://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html

    Your license allows two active facilities, so if you had only one, you can install and activate without taking any other action.  You can also retrieve lost activation by contacting Adobe support via chat and asking them to reset your activations.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • How to set the session value in setActionListener and get into object EO

    Dear all

    How the value value sessin by component setActionListener and get it in entity .impl object?

    Kind regards

    You can't and you shouldn't.

    Guess what you are trying to archive:
    You need to implement a service method in the module of your application and call it with your setting. This method can call the VO calling the EO.

    If you provide more information and a use case we can give you better advice.

    Timo

  • Hi im very new to Flash, and mostly just an artist off line trying to get into flash. Can I draw in professional flash and export it as an image?

    Can we just gimme a little how description or me a link to a YouTube video that explain maybe?

    Yes, there are tools for drawing and you can publish your creations in various formats of images (GIF, JPEG, PNG) - check the publication settings under the top menu files option.  I've often used Flash to create graphics on the other drawing tools, but it's probably because I was more familiar with it compared to other products.  At one point, I created an assembly line of sorts where each image on the timeline was a different arrangement of a design, and I took the controls for the final design as a Flash file where you could strengthen through the images to a slide show.

  • New action script and get: TypeError: Error #1009: cannot access a property or method of a nude

    I get this message in the tab out to the buttons that I am creating.  Here is the code:

    import flash.events.MouseEvent;

    Stop();

    function goHome(myEvent:MouseEvent):void {}
    gotoAndStop ("home");
    SoundMixer.stopAll ();
    }
    function goAbout(myEvent:MouseEvent):void {}
    gotoAndStop ("about");
    SoundMixer.stopAll ();
    }
    function goBusiness(myEvent:MouseEvent):void {}
    gotoAndStop ("business");
    SoundMixer.stopAll ();
    }
    function goContact(myEvent:MouseEvent):void {}
    gotoAndStop ("contact");
    SoundMixer.stopAll ();
    }
    function goArchives(myEvent:MouseEvent):void {}
    gotoAndStop ("archives");
    SoundMixer.stopAll ();
    }
    function goBioTech(myEvent:MouseEvent):void {}
    gotoAndStop ("bioTech");
    SoundMixer.stopAll ();

    }
    function goRealEstate(myEvent:MouseEvent):void {}
    gotoAndStop ("realEstate");
    SoundMixer.stopAll ();
    }
    function goTechnology(myEvent:MouseEvent):void {}
    gotoAndStop ("technology");
    SoundMixer.stopAll ();
    }
    function goEnergy(myEvent:MouseEvent):void {}
    gotoAndStop ("energy");
    SoundMixer.stopAll ();
    }

    home_btn.addEventListener (MouseEvent.CLICK, goHome);
    about_btn.addEventListener (MouseEvent.CLICK, goAbout);
    business_btn.addEventListener (MouseEvent.CLICK, goBusiness);
    contact_btn.addEventListener (MouseEvent.CLICK, goContact);
    archives_btn.addEventListener (MouseEvent.CLICK, goArchives);
    bioTech_btn.addEventListener (MouseEvent.CLICK, goBioTech);
    realEstate_btn.addEventListener (MouseEvent.CLICK, goRealEstate);
    technology_btn.addEventListener (MouseEvent.CLICK, goTechnology);
    energy_btn.addEventListener (MouseEvent.CLICK, goEnergy);

    I ran the debugger and got this:

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at peakInsights_fla::MainTimeline/frame1() [peakInsights_fla. MainTimeline::frame1:48]

    I guess it tells me that there is a problem with the line 48, but what?

    Home, about, company, contact, archives button works. On the business page, there's the biotech buttons left, technology, real estate and energy. When I test it. I get the finger, but the buttons do not work. This is my first flash site I'am so new, new.

    for each button (for example btn1), the image you want is more appear, add a keyframe to this image and attach code like:

    removeChild (btn1);  then return to the frame where you want it to appear use addChild (btn1);

    or

    Btn1. Visible = false;  then back to the frame where you want it to appear use btn1.visible = true;

  • brand new wx350 flash does not work.

    I know how to put flash, but in the habit of work.

    Hello, vinniefono!

    I'm sorry to hear about it!

    Have you tried the steps in the following link?

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/43072/p/40096, 40097,40555, 92430/c/65,66/kw/built-i...

    If you have tried all the steps, and the flash still does not work, you can try to reset the camera. Steps on how to reset the camera are provided in the link below:

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/39713

    If you have tried all the steps and you have reset the camera and the flash still does not work, your new Sony camera may be defective and requires service.

    But because the machine is new, it is still under warranty! So, I think that Sony will replace the camera with a new one for you, or fix it for you, if it is indeed defective! (most Sony products come with a standard warranty of one year)

    Sorry for the inconvenience!

    Best regards

  • My wife had her blocked hotmail. has tried with new id @password and get the runaround

    my email was blocked, he said that he was blocked because someone else has tried to use it to send spam to other people. I tried to use a couple of new address & nothing will not let me get on hotmail even that the password would not work. My old e-mail is * address email is removed from the privacy *, my password was 31330722md it did not work for at least 15 to 20 days. How to return to the line?

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Error message "your account has been locked" when trying to connect
    http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • I bought a new Canon camera and get a voucher (with serial number) for Lightroom 4. Where ca

    I bought a new Canon camera et thus get a good purchase () with the serial number) for Lightroom 4. can I bottom load the software now? J’ai only find later Lightroom version and does not correspond to serial number.

    There are two options to download previous versions of Lightroom:

    http://www.Adobe.com/support/downloads/detail.jsp?ftpID=5566

    http://www.Adobe.com/support/downloads/detail.jsp?ftpID=5567

    There should also be links for Lightroom 4 the page following the link:

    http://prodesigntools.com/Adobe-Lightroom-4-is-out.html

    Remember to follow the instructions for signing in or otherwise downloads is not treated correctly.  If you visit one of the other pages on this site they have a section entitled "Note: very important instructions" which gives precise measurements for signature for download.

  • We have brand new Pavilion g6 and all of a sudden on startup, it is no longer can find hard drive!

    It looks similar to a post, but with another laptop.  We get "boot device not found" and the instructions to install an operating system.  He installed Windows 7.  What do we do?

    I tend to agree with David's response above. If you are in the place of purchase return period, bring in replacement. If not Contact HP for warranty repair.

  • Get into trouble.

    Well, I'm in trouble with creative cloud adobe for a few hours now. So, when first, I opened my laptop I clicked to open adobe, and nothing happened. I don't really know how to explain it very well; but, he says, and then he would return to normal and do nothing. Then, I uninstalled and reinstalled and then he kept saying "adobe creative cloud has stopped working" and it does that for a while now. I tried and then again to uninstall it, but when I click on uninstall nothing did happen. Can someone help me please?

    Hi Eddie,.

    This link might help: My Cloud Creative Adobe has stopped working

    Kind regards

    Sheena

Maybe you are looking for

  • Keep the LabVIEW window on top BUT...

    Fellow LabVIEW users, I have the following rather simple problem, but once again hard. The problem is as follows. My main LabVIEW application calls an another VI whose façade is charged when the VI is called. The behavior of the window in the two VI

  • Partition FAT32 to NTFS conversion problem

    When you try to run it (as administrator) COMMAND "CONVERT C: / FS: NTSF receive error meassage"Command not supported".  This is necessary to convert FS from Fat32 to NTFS for WIndows 7 by microsoft.  Now what?

  • Windows not recognizing the Trend Micro firewall.

    My Windows Firewall status is "not monitored". My Trend Micro firewall is enabled. Recently I changed the State of my Windows Firewall from "Off" to "Not monitored" so I would not get a Windows security alert noting that my firewall is disabled. My q

  • the much too high Headphone volume

    I have a problem with accuracy M6800. The volume of the headphones is much too strong. I listen to ticks maybe one or 2 on the volume buttons. I need to go into the control of specific volume of application for adjustment end very annoying! I tried t

  • Group management

    I have a group of e-mail.  When I delete a person from this group, they continue to get emails sent to this group.  How do I successfully remove them from the Group?