The repeat loop is this card script is causing a 4 to 5 second delay in the script of
"button2", which is just a go to card script. I have spent several hours and can't get it to
work better. Does anyone have any recommendations?
local tSoundFile, tSoundDonePlaying
on openCard
put "" into tSoundDonePlaying
if the environment is "mobile" then playAnime
end openCard
on playAnime
put specialFolderPath("engine") & "/audio/musicFile2.mp3" into tSoundFile
mobilePlaySoundOnChannel tSoundFile, "tSndChannel", now
repeat until soundFinishedOnChannel tSndChannel, tSoundFile
move image "myImage1" to the points of graphic "Polygon"
if tSoundDonePlaying = "yes" then exit repeat
end repeat
iphoneClearTouches
end playAnime
on soundFinishedOnChannel tSndChannel, tSoundFile
put "yes" into tSoundDonePlaying
stop moving image "myImage1"
move image "myImage1" to the location of grc "Oval"
set the visible of card btn "button1" to true
set the visible of card btn "button2" to true
end soundFinishedOnChannel
Script Delat
Getting into LiveCode for iOS? Ask your questions here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Jump to
- LiveCode Community
- ↳ Announcements
- ↳ Developer Services Marketplace
- ↳ User Groups and Events
- ↳ SoCal LiveCode Group
- ↳ Greater Toronto Area LiveCode Users Group
- ↳ Off-Topic
- ↳ Made With LiveCode
- Getting Started With LiveCode
- ↳ Getting Started with LiveCode - Complete Beginners
- ↳ Getting Started with LiveCode - Experienced Developers
- ↳ Converting to LiveCode
- Developing With LiveCode
- ↳ Talking LiveCode
- ↳ Databases
- ↳ Games
- ↳ Internet
- ↳ Multimedia
- ↳ Software Engineering
- ↳ Version Control
- ↳ Feature Proposals
- ↳ Bug Triage
- Extending LiveCode
- ↳ Using Plugins for Customizing the LiveCode IDE
- ↳ Using Externals
- ↳ Making IDE Plugins
- ↳ Building Externals
- ↳ LiveCode Builder
- Platform Specific
- ↳ Windows
- ↳ Mac OS
- ↳ Linux
- ↳ iOS Deployment
- ↳ Android Deployment
- ↳ CGIs and the Server
- ↳ HTML5
- ↳ Raspberry Pi
- Academic Endeavors
- ↳ Teaching with LiveCode
- ↳ Research and Post Secondary
- ↳ LiveCode University
- ↳ Educational Outreach
- Livecode Open Source Archived Forum- closed to posting
- ↳ Engine Contributors
- ↳ IDE Contributors
- ↳ Documentation and Tutorials
- ↳ Brainstorms
- ↳ Community Projects
- LiveCode Hosting