Helpppp! my flash array will only play the first frame
my flash array will only play the first frame
this is the code
stop();
var t:Timer=new Timer(100,0);
t.addEventListener(TimerEvent.TIMER,preloadF);
t.start();
var rdmFrame:Array = ["15","150","420","589","712","807","1135"];
stage.addEventListener(MouseEvent.CLICK, fnClick)
function fnClick(e:MouseEvent):void
trace(rdmFrame[numberRange(0, rdmFrame.length)]);
function preloadF(e:TimerEvent)
if(this.framesLoaded>7)
t.stop();
t.removeEventListener(TimerEvent.TIMER,preloadF);
t=null;
this.gotoAndPlay(numberRange(0, rdmFrame.length - 1));
function numberRange(minNum:Number, maxNum:Number):Number
return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
Ned Murphy wrote:
Your timer function is not using the array, it is just using the random number. Adapt what you have in the fnClick function.
Hi Ned ,
I am a little confused , sorry .. i am not sure what you mean...i am very new at AS3 ...
I dont even need the click function .. another developer recommended it as a way to track the random action..
stop();
var t:Timer=new Timer(100,0);
t.addEventListener(TimerEvent.TIMER,preloadF);
t.start();
var rdmFrame:Array = [15,150,420,589,712,807,1135];
function preloadF(e:TimerEvent)
if(this.framesLoaded>7)
t.stop();
t.removeEventListener(TimerEvent.TIMER,preloadF);
t=null;
this.gotoAndPlay(numberRange(0, rdmFrame.length - 1));
function numberRange(minNum:Number, maxNum:Number):Number
return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
Similar Messages
-
I bought a new album off of iTunes the wifi wasn't strong so I left my computer on as it was downloading and went to sleep. This morning I went to listen to the songs and some of the songs will only play the first 50 sec or the first minute? How do i fix it or refresh them so i can listen to them fully?
How do I get the songs to fully play? Or can i refresh the songs and redownload them?See Repair security permissions for iTunes for Windows.
tt2 -
ITunes 10 will only play the first track of a CD, including brand new CDs.
I reinstalled my operating system and had to reinstall iTunes. Now I have version 10 and after I import a CD it will only play the first track then progressively go track by track skipping through the rest without playing. Does it even whether I try to play from the CD or from the music section I imported it to. Even have 3 brand new CDs that it is doign the same thing to, so I have a hard time believing it is a disc reading issue.
Microsoft Windows Vista Ultimate Edition Service Pack 1 (Build 6001)
Dell Inc. Inspiron 531s
iTunes 10.3.1.55
QuickTime 7.6.9
FairPlay 1.11.17
Apple Application Support 1.5.2
iPod Updater Library 10.0d2
CD Driver 2.2.0.1
CD Driver DLL 2.1.1.1
Apple Mobile Device 3.4.1.2
Apple Mobile Device Driver 1.57.0.0
Bonjour 2.0.5.0 (214.3)
Gracenote SDK 1.8.2.457
Gracenote MusicID 1.8.2.89
Gracenote Submit 1.8.2.123
Gracenote DSP 1.8.2.34
iTunes Serial Number 00D2AD08030F0338
Current user is an administrator.
The current local date and time is 2011-07-10 13:45:32.
iTunes is not running in safe mode.
WebKit accelerated compositing is enabled.
HDCP is not supported.
Core Media is supported.
Video Display Information
ATI Technologies Inc., Radeon X1300 Series (Microsoft Corporation - WDDM)
ATI Technologies Inc., Radeon X1300 Series Sec. (Microsoft Corporation - WDDM)
**** External Plug-ins Information ****
No external plug-ins installed.
iPodService 10.3.1.55 is currently running.
iTunesHelper 10.3.1.55 is currently running.
Apple Mobile Device service 3.3.0.0 is currently running.
**** CD/DVD Drive Tests ****
No drivers in LowerFilters.
UpperFilters: GEARAspiWDM (2.2.0.1),
E: HL-DT-ST DVD+-RW GSA-H31N, Rev B109
Drive is empty. -
I bought a song from the itunes store and downloaded it and it said download was complete but when i go to play the song it will only play the first 14seconds of it then it cuts off. what should I do to retrieve the rest of the song?
If you live in a Region that allows re-downloading Music...
Delete the Song(s) and re-download...
See Here > Download Past Purchases
http://support.apple.com/kb/HT2519
If not... Contact iTunes Customer Service
Apple Support iTunes Store Contact Us -
I have an old iPod Classic, 5th generation with video 30 GB. I sync via a pc. Since syncing it three days ago, the songs will only play the first three minutes and five seconds. Then it moves on to the next song or if it's the last song, it goes back to the menu. I just synced again and it it still doing it.It also has a small group of dots near the middle of the screen that weren't there before.Has anyone else had this problem or know how to fix it? Thanks.
Please disregard this question. I have a better worded version coming up.
-
I am trying to play a video I purchased and it will only play the first 20 minutes
I purchase a video from iTunes and it will only play the first 20 mintues of the 56 minute video. Help?
Yes, but that website was for correcting the problem through your iTunes in your computer. I downloaded it to my iPad and now am trying to play it on m iPad and it stops after 20 minutes in..
-
Hi, I'm pretty new to itunes. I bought a song and it downloaded, but will only play the first 3 seconds? Any idea how I get it to play the rest of the tune?
I'd report the problem to the iTunes Store.
Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
(Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.) -
I downloaded two songs and they will only play the first 2 minutes of the songs, how do I fix this?
I'd report the problem to the iTunes Store.
Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
Find the items that are not playing properly. If you can't see "Report a Problem" next to the entries, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.
(Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.) -
Apple TV will only play the first song on an album, why?
When I press play on an album (music), Apple TV only play the first song, then it stops. Why?? I can understand it when I press play on a spesific song/track, but when I press play on an entire album, I want Apple TV to play the entire album.
You need to put checkmarks in front of all your music.
-
I need help with playing full albums on my Apple TV through iTunes Match. When I select an album to play it only lays the first song.
if it's not iphone4s or later it does not support airplay mirror
-
TS1424 I have downloaded a song and it will only play the first 18 seconds and starts again?
I downloaded Clique by Kanye West on itunes and it all appered normal until you try to play the song either on my computer or iphone it plays the first 18 seconds and then goes to the next song even though it says the song is 4:52 any ideas how to fix this?
Depending upon what country that you are in (music can't be re-downloaded in all countries) have you tried deleting it from your iTunes library and redownloading it via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes ? Re-downloading.
If you aren't in a country where you can re-download music or if it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that song and use the 'Report a Problem' link. -
I downloaded several songs successfully to my ipod nano (5) but this particular song when i tried to listen to it would play for the first half and then skip to the next song in the playlist like the ipod thought the song was over.
Did you download from itunes? If not, some websites save the song too quickly or in a format that glitches.
I've had this problem before with both itunes and non itunes purchases, try deleting it and re-downloading. -
I've moved my iTunes to a new PC, but it will only play the first 7 mins of each audiobook
I've recently bought a new PC, and have transferred by iTunes library over using an external hard drive. All of the music is fine, but the majority of the audiobooks won't transfer properly - when I play them, they cut out at 7 mins 31 secs. I've got an iPod touch and the support articles I've read about using my iPod to transfer things over highlight the fact that you can't do it with an iPod touch. There's around 150 audiobooks I've bought over the years and it will be incredibly frustrating if I can't use them because I've bought a new PC!
I've tried transferring the audiobooks via an external hard drive more than once, but every time I get the same result.
Can anyone help me?!
Thanks,
CraigOn the new computer launch iTunes.
From the iTunes menu bar (top of your screen) click Store > Authorize This Computer
Now try syncing your iPod. -
My iphone 4s camera will only record the first frame video and sound.
I tried restarting and no luck.
Sounds like a hardware problem.
Make an appointment at an Apple Store if there is one nearby. -
I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?
If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Otherwise, I'd report the problem to the iTunes Store.
Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
Maybe you are looking for
-
Mass Deletion of Open Sale Orders
Hi, I want to implement Dynamic Credit Check in my Organisation, for that I want to delete all open sale orders. Is transaction code MASS suitable for deleting only <b>OPEN SALE ORDERS</b> or it deletes all sale orders. Can anyone help me out plea
-
Noisy power supply when running of UPS?... follow up post.
Ned/The hatter your input here would be most appreciated along with anyone else using a UPS with your mac pro. Please read on... Having just concluded a rather detailed any lengthy post over in the power mac g5 forum with regards to loud buzzing nois
-
Has anyone ever had the icons on the menu magnify? My phone slipped onto the floor in my car and icons are now hugh. Don't know how to fix it.
-
Can you take sofeware written on one computer and use it on another.
We have a problem with the apllication maybe or the gpib. The apllication was working on one computer, but we change out that computer now we can get the program to work. A error message is generated (-107---) and fail to set up the test equipment.
-
In the past I never had this problem, but the last year I more and more had it: To install useful things, I can't simply use pacman as it is by default anymore to install things. I have to use either AUR (too annoying and complex), or configure diffe