1 person found this helpful
thanks for the comment of passing text,
does anyone know whay I can not call the playSound function in the component?
You are calling the function on the main application file; not the component.
Modify the code like this:
sorry for beinf dense this is my first short at a flex after reading and watching videos etc......
so if i was call the playsound in the main, i understand that, and want to call to call the function in the component should I not add the name of the component name in front of the function
ie ulabe.playsound() but this does not work
b21.playsound() get me 2 sets forward but you still get an error as flex can not resolve b21.playsound()
ok, thanks i got it
becouse is called the instance of the component id="b21" the the click ="b21.playsound()"
ie use the function playSound in the instance of the compinent b21
still does not work
Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at uofs::ulable/playSound()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\CompinentTest\src\uofs\ulable.mxml:17]
at CompinentTest/__b21_click()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\CompinentTest\src\CompinentTest.mxml:4]
but that is something diffrent that I will look at next
thanks for the help