I know this can't be the right code to play on mp3 in flash movie
I just feel that this is not the right code to playing sound if actionscript 3. I'm trying to play a mp3 sound only in flash can someone tell what is the right script to use. This is what I' m using.
stop();
play_btn.addEventListener(MouseEvent.CLICK, playSound);
goback_btn.addEventListener(MouseEvent.onRelease, goSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
function playSound(e:MouseEvent):void {
this.play();
function goSound(e:MouseEvent):void {
this.gotoAndPlay("1");
function stopSound(e:MouseEvent):void {
this.stop();
thanks
it's in my library
I figured out how to write code for mp3 to play
Now I can't write one to make it stop or gotoAndPlay.
This is my code to play
play_btn.addEventListener(MouseEvent.CLICK, playMusic);
function playMusic(e:MouseEvent):void {
var myMusic:Sound = new Sound();
var soundFile:URLRequest = new URLRequest("custodiansofkingdom.mp3");
myMusic.load(soundFile);
myMusic.play();
Can someone tell me how to write code to make it stop and gotoAndPlay
Thanks
Similar Messages
-
I know this isn't really the right place to ask, but could someone explain why when I open Portal 2, that I got off steam and spent a whole day downloading, keeps crashing when I click the Campaign/Single Player mode. It Freezes and then crashes. Help!
I know this isn't really the right place to ask...
Uhm, why don't you go to the right place, then? There are several Steam/Portal forums out there... -
How can I redeem my prepaid card if it keeps telling my it is the wrong code when I know it is the correct code?
Hi shadowcat,
Kindly try replace the below mentioned letters.
Zero(0) - O as in Oscar
Five(5) - S as in Sam
Two (2)- Z as in Zulu.
If you are still not able to redeem it, kindly send the image of the redemption code via Private Message, so that we can help you with the same.
Thanks,
Atul Saini -
OSX mountain lion-can´t find the right code to enter in app store
I´ve bought the mountain lion for my girlfriends iMac, I got two emails and have managed to open the PDF that were attached, with the security code from the other email. No, in the PDF there are several codes and no one of them is OK when entering them in the app store. It seems that that site is mostly for gift-cards?
How to do?
brIf you purchased a download code for OS X 10.8 Mountain Lion using another Mac and/or using your Apple ID, I believe that download code is tied to your Mac and Apple ID.
I do not think the code will unlock the download of Mountain Lion on your girlfriend's Mac and her Apple ID.
You would need to purchase another download code for Mavericks using your girlfriend's Mac and her Apple ID. -
basically what title says ^^^^ it on a iphone 4s
Go to the store in iTunes and in the top right click on your account. You can add or remove payment info there.
-
How can I get the HTML codes in illustrator?
Hi, I am a graphic designer, and I am getting into the web world, I wanna know how can I get the HTML codes to upload a web design made using Illustrator,...¡?Does any one know?Please let me know...
everyone here is right, dreamweaver is better and you will need to understand html for this to work. HOWEVER, you can make a functional website using just illustrator and notepad (or text edit if you're on a mac).
Design your site in illy, slice it up with the slice tool. http://s23.postimg.org/mv311kpp7/test_illy.jpg
Save for web and select html and images, you'll get an html file and an images folder. Open the HTML file in your text editing program and it will look like this: http://s10.postimg.org/f32nf6r2h/html_stuff.jpg you'll have to know HTML codes but you can find tutorials online for most stuff, you'll just have to figure it out. In my fake site, i linked a button to google so i had to add <a href> tags to the code. http://s22.postimg.org/5avpadhch/a_href.jpg save the html file and open it in your web browser, hopefully not IE. You can't tell in the picture but the middle button actually does link to google. http://s21.postimg.org/qd77slqmf/firefox.jpg -
I use a yahoo account for my e-mail which worked fine until I changed my password a few weeks ago. I now keep getting a message up telling me to insert my password again. I know I'm putting in the right password but this is driving me to distraction!
I have now deleted the account and reinstalled it but now I can't get my e-mails through at all. Can anyone make any suggestions?Hello,
Open Keychain Access in Utilities, use Keychain First Aid under the Keychain Menu item, then either check the Password under that item, change it, or delete it and start over.
You may have multiple entries.
Open Keychain Access in Utilities, enter the part after the @ sign in the search bar, hit enter -
My (old, never updated) I-phone has no "update" button in Settings and I would like to update it. I can not find the right place on I-Tunes to download the updates. Do you know where to look?
Update your iPhone, iPad, or iPod touch - Support - Apple
-
My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right download. I've been downloading several but it always after havingf instal the first 3 steps the same message: Airport utility....can't be installed... The version of OS X on this version
doesn't support this base station...
I need help please to find the correcte download so i can my wii-fii work as soon as possible (because my wife is making me crazy, she can't go on Facebook!!!! )
Thank's for your help,
MikeUse AirPort Utility 5.6 which contains the features you need. It is compatible with Lion as well as Mountain Lion, however, the installer app will refuse to install it on Mountain Lion.
This dilemma is easily solved though. You simply need to extract the app from the installer package using a package extractor like Pacifist.
Download Pacifist here: http://www.charlessoft.com/
Download AirPort Utility 5.6 here: http://support.apple.com/kb/DL1482
If you happen to have an archived copy of the AU 5.6 app somewhere, such as a Time Machine backup or equivalent, you can simply restore it or drag the app to your Mountain Lion system's Utilities folder. It will run without complaint. It is only the package installer that is the problem.
Mountain Lion will not allow you to delete its existing version of AirPort Utility. Just ignore it. It and the older version (which will bear the unique name "AirPort Utility 5.6") can peacefully coexist.
Note: For those with Leopard or Snow Leopard systems you need AirPort Utility 5.6.1 (this is confusing - a later AirPort Utility version for an earlier OS X version - but it is correct).
Download AirPort Utility 5.6.1 here: http://support.apple.com/kb/DL1536 -
I use Adobe Premiere Elements 11. I want to make a Credit Roll and start off screen and stop with the credit remaining still in the middle of the screen. I know this can be done with CS6. Can this be done in Elements 11? Does Elements 12 or 13 have these options for Credit Roll.
stevel
Please read my work on this topic which involves Premiere Elements Preroll and Postroll settings.
ATR Premiere Elements Troubleshooting: PE: Preroll and Postroll Options Interpreted
Especially the section relating to Titler, Roll and Crawl Titles.
Please let us know if that worked for you.
Thank you.
ATR -
I can't use the right-click function on websites (i.e. Yahoo! Mail) because Firefox's context menu is in the way.
Tools > Options > Content : JavaScript > Advanced > Allow Scripts to: [X] "Disable or replace context menus"
-
Can't locate the right iPhoto Library
I have a friend who can't find the right iPhoto Library. Mac OS X 10.7 or 8... latest iPhoto. Searching in Finder for "iPhoto Library" produces no results, even though we see an iPhoto Library item in her Pictures folder (not the right one).
So this leads me to believe that for some reason Finder won't display that....not sure why it would do that...but anyway. She's a professional photographer, and doesn't know the name of most of the photos, because they are photos name by the camera. She tried to find some with just the .jpg extension but everything was email or web based results that we found. Thousands upon thousands. This has happened before, and it was fixed, but we can't remember how.
Any help on how to locate the right version would be great. Also, her Time Machine only seems to have the same one as in Pictures. I think the iPhoto Library she uses is located somewhre else on the drive.
I also tried Locate and Find in the terminal, but neither brought up anything.
Thanks in advance.Download and use Find Any File to search for "Library6.iPhoto" which is a file in every iPhoto Library. If there's another library on your hard drive FAF will find it as it can search areas that Spotlight can't.
OT -
I know this can be done with javascript, but how precisely?
Hi there, I have a personal art website that I've been having trouble with. The website in question is http://www.aidenart.com. The issue that I'm dealing has to do with the concept art page which you can click on using the top navigation bar. On that page there are thumbnails of images and when you click on any one of those image thumbnails you should be taken to a new WEB PAGE with the full image on it. The fact that the link brings you to a new web page is important. On each of the web pages that shows the full image I want to provide some navigation for the visitor to use. There's going to be a button that will link back to the main concept art page and a jump menu that will let the visitor go to any of the other concept art pages that they want. Both of those things I already know how to do. The thing is I also want put in NEXT and PREVIOUS buttons that will allow the visitor to go to the next or previous page in the list of concept art pages even if they've never visited the page before.
I know this can be done because I've seen other websites that have it. I took a look at their source code and most of them seem to be using some sort of javascript code with an onClick or onChange behavior. If someone could just help me find the basic coding for making this happen in Dreamweaver with maybe at least two or three pages then I could probably figure the rest out from there.
The last time I asked this forum about this problem everyone seemed to think that I wanted to create an image gallery, but I don't. I want the visitor to be able to cycle through the WEB PAGES that have the image and might have more images in the future, not just the images themselves. And using some sort of code that has to do with the web browser's history isn't going to do what I want.
Here's some code from other websites that I found using just what I want to accomplish.
<TD ALIGN=RIGHT><INPUT TYPE=BUTTON Value=' < Prev ' onClick="self.location='/s/3112627/1/Yami_no_Game_Dark_Saga'"> <SELECT title='chapter navigation' Name=chapter onChange="self.location = '/s/3112627/'+ this.options[this.selectedIndex].value + '/Yami_no_Game_Dark_Saga';"><option value=1 >1. Meet and Duel<option value=2 selected>2. Voyage to the Kingdom<option value=3 >3. The Great Insect Combos: Yami vs Haga<option value=4 >4. Scented Scheme Tactics: Mai vs Jou<option value=5 >5. Ocean Madness: Yami vs Kajiki<option value=6 >6. The Messenger from Hell<option value=7 >7. Prehistoric Battle: Ryuzaki vs Jou<option value=8 >8. Hunters of the Night: Eliminator Panik<option value=9 >9. Arrivals and Secrets Revealed<option value=10 >10. Escaping Death: Jou vs Kozuka<option value=11 >11. Battle in the Labyrinth for Freedom<option value=12 >12. Duel of Fate, part 1<option value=13 >13. Duel of Fate, part 2<option value=14 >14. A Brother's Promise<option value=15 >15. First Round of Finals: Yami vs Mai<option value=16 >16. Second Round of Finals, part 1<option value=17 >17. Second Round of Finals, part 2<option value=18 >18. Duel of Kings, part 1<option value=19 >19. Duel of Kings, part 2<option value=20 >20. Closing: Duelist Kingdom<option value=21 >21. Virtual Adventure: Start!<option value=22 >22. Virtual Adventure: First Task<option value=23 >23. Virtual Adventure: Final Dungeon Appears<option value=24 >24. Closing: Virtual Adventure<option value=25 >25. The Shop of Broken Hearts<option value=26 >26. Gaining the Upper Hand<option value=27 >27. Emotional Rollercoaster<option value=28 >28. Closing: Dungeon Dice Monsters<option value=29 >29. Mysterious New Force<option value=30 >30. Start of a New Tournament<option value=31 >31. The Decision<option value=32 >32. The Announcement<option value=33 >33. The Ambush<option value=34 >34. Battle City: Start!</select> <INPUT TYPE=BUTTON Value=' Next > ' onClick="self.location='/s/3112627/3/Yami_no_Game_Dark_Saga'"></TD>
</TR>
The first example is from http://www.fanfiction.net/. If you click on any of the stories there that have more than one chapter then you should see code somewhere that looks like the above example. This type of navigation, which can be seen in the upper right corner of stories that use it, is exactly what I've been trying to accomplish for quite some time now.
Here's another example.
<form method="" action="" name="hero_form">
<select name="hero_choices" onChange="swap_hero(this.options[this.selectedIndex].value);">
<option value='1'>Jeran</option><option value='2'>Space Faerie</option><option value='3'>Fyora</option><option value='4'>Lisha</option><option value='5' SELECTED>Illusen</option><option value='6'>Kayla</option><option value='7'>King Skarl</option><option value='8'>Psellia</option><option value='9'>Jhuidah</option><option value='10'>The Soup Faerie</option><option value='11'>Hannah</option><option value='12'>Master Vex</option><option value='13'>Galgarroth</option><option value='14'>Cylara</option><option value='15'>Gorix</option><option value='16'>Commander Gormos</option><option value='17'>King Kelpbeard</option><option value='18'>Swordmaster Talek</option><option value='19'>Garin</option><option value='20'>Jacques</option><option value='21'>General Dacon</option><option value='22'>Nabile</option><option value='23'>Tomos</option><option value='24'>Armin</option><option value='25'>Judge Hog</option><option value='26'>Hanso</option>
</select>
</form>
</center>
<table width="200" border=0 align=center>
<tr>
<td align=center>
<a href='showhero.phtml?hero=4'><img src="http://images.neopets.com/galleryofheroes/goh_left_arrow.gif" border=0 width=80 height=80></a>
</td>
<td align=center><a href='../hero.phtml'><img src="http://images.neopets.com/galleryofheroes/goh_home.gif" width=50 height=50 border=0></a></td>
<td align=center>
<a href='showhero.phtml?hero=6'><img src="http://images.neopets.com/galleryofheroes/goh_right_arrow.gif" border=0 width=80 height=80></a>
With this example the website even used images as the buttons instead of just simple input buttons. I'd like to use my own images for buttons if I can.
My computer is a Macbook with the most recent operating system (as far as I know) and I have Dreamweaver CS5 installed on my computer.Your example uses straight text links. Nothing fancy, no complicated JavaScripts are used. Just a lot of manual linking.
Example: http://www.aidenart.com/Concept%20Art%20Pages/ConceptImage1.html
PREVIOUS: http://www.aidenart.com/Concept%20Art%20Pages/ConceptPage2Arga.html
MAIN: http://www.aidenart.com/ConceptArtMain.html
NEXT: http://www.aidenart.com/Concept%20Art%20Pages/ConceptPostitTiratsu.html
Each page contains a different PREVIOUS and NEXT link depending on where it appears within the site.
Hopefully this answers your question.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Re: Satellite A660-12P - can't find the right display driver for Win XP
Hey everyone, i need some help with this one:
I just made a dual boot Win7 (x64)/XP (x86) on my laptop, but i can't find the right display drivers for the video controller VGA compatible on XP.
Does someone know where i can find them?
Many thanks,Yes, you get this message because you cannot install the nVidia rivers only executing the exe file.
If you want to install such drivers then you have to do this in device manager.
You have to force the notebook to choose the driver
You can do this choosing the advanced installation procedure which helps you to point to the driver files!
PS: might be helpful:
http://forums.computers.toshiba-europe.com/forums/ann.jspa?annID=78 -
When_window_closed can't determine the right parent
I have a problem that the when_window_closed can't determine the right parent in de qms$window.when_window_closed procedure of headstart.
In a form I have two windows. One is the parent window and one is a child window. After doing some changes in my parent window I navigate with a button (go_block) to this child window. When I want to close the child window, the child window thinks it's the last window and asks if I want to save my changes. If I say yes my changes are commited and if I say no both the parent and the child window are closed.
A detail about the child window is: the child window has no key_based_link to the blocks on the parent window. I have a similar form with two windows but in this form the blocks are connect by a key_based_link in that form the child window can determine the parent window and does not ask if it has to save any changes.
My question is: Does anyone know how my child window can determine the parent window, even though it's not connected with a key_based_link to the other block, so that when I close the child window I won't be asked to save any changes? In qms$window.when_window_closed the parent is determined but in this case it returns a null for it's parent.Some additional information, I checked the code of the when_window_closed
and I see the following:
-- this is part of the code in qms$window.when_window_closed who checks if the child window has a parent
if name_in('system.form_status') = 'CHANGED'
then
-- my parent form has been changed so the form_status is changed and I will enter this part of the code
l_group_id := find_group('CGSH$FORM_OBJECTS');
l_parent_id := find_column('CGSH$FORM_OBJECTS.PARENT_NAME');
l_child_id := find_column('CGSH$FORM_OBJECTS.OBJECT_NAME');
l_count := get_group_row_count(l_group_id);
for i in 1..l_count loop
l_child := get_group_char_cell(l_child_id, i);
if upper(l_child) = upper( get_view_property
( get_item_property
( name_in('system.trigger_item')
, item_canvas
, window_name
then
l_parent := get_group_char_cell(l_parent_id, i);
-- l_parent is null ????? Should be a value, cause it's a child window.
-- the only thing I can determine that de parent is null, is that the child window has
-- no key_based_link with the parent window.
l_last_window := (l_parent is null); -- l_last_window becomes true
exit;
end if;
end loop;
if l_last_window -- is true cause the parent id was null
then
if qms$errors.show_message('QMS-00158')
then -- do you want to commit the change
-- if yes then both my child and parent form are commited which I don't want yet
commit_form;
if name_in('system.form_status') <> 'QUERY'
then
go_block('QMS$TRANS_ERRORS');
raise form_trigger_failure;
end if;
else
-- if no then both my child and parrent form are closed and all the changes are discarded
exit_form(no_validate,full_rollback);
end if; -- show message
end if; -- last window
end if; -- form status 'changed'
How can the child window, have a parent window which is null?
And how can I resolve this problem? So that I have a parent window with a value?
Maybe you are looking for
-
IWeb pages from iPhoto albums are empty
I've set up a website using iWeb and iPhoto. Whenever I try to add a Photo page, iWeb goes through its process and tells me it's publishing the page. When it tells me the page is published and I go to visit it, there are no pictures on it - just the
-
ORA-01704: string literal too long in Oracle 10.2.0.2
We are running some Xqueries that are larger than 4k. Yesterday we were running on an Oracle 10.2.0.1 database, when we tried to run a large Xquery then we immediately got an ORA-01704 error. Since some messages on this forum indicate that in Oracle
-
Exposing legacy-system's service using web services
Hi everybody, I have questions about how web services can be used with legacy system. Let�s say I have a server serving stock data. The server is just POJO, it isn�t web module, doesn�t run on any J2EE container and client will request for data
-
Hello All, I need some help. I am trying to read external.config file from app.config using configSource. But when I do some googling for thisI understand that this attribute was only available in framework 2.O. So is there any similar kind o
-
My iphone 4s suddenly cut off and won't cut back on.
It absolutely will not turn on. I tried holding the home and sleep button, but it failed. I tried charging it, and it only flashes the apple logo on and off again. I tried holding the buttons again while it did this, but it only tells me to plug it i