Hi. Thanks for the help with my last flvPlayback issue (2nd movie wasn't
playing). Now I have a new one, and it's really freaky: the video was
playing fine and then all the sudden it stopped playing. It stopped when I
added a new function to my code. The weird thing is that the function had
NOTHING to do with the component. It was just a function that took in a
string, parsed it, and returned a parsed value. I wasn't even calling the
function. Just having the function in my code -- without calling it --
stopped the flvPlayback component from working. By the way, everything else
worked fine (it's a complex swf that reads in xml, does a bunch of as
drawing, etc.) No syntax error. Nothing. Everything works except for the
flvPlayback component. And when I comment out the function, the component
starts working again.

It gets weirder!

A co-worker of mine, who doesn't know anything about Flash, suggested that
maybe I'd exceeded the number of functions I'm allowed to have in one file.
I scoffed at that. The file isn't that long (1200 lines of code -- long, but
I've seen longer). But to placate him, I deleted the function and created
another one -- a dummy function -- that looks like this function
xyz():Void{} and to my shock, it also stopped the player. If I commented it
out, the player worked again. I have now done a bunch of tests and have
concluded that if I keep the number of functions at exactly what it was
before I added my string-processing function, the component works; if I add
any more, it doesn't. It doesn't matter what the new functions are named or
what they do -- the component doesn't like them. And it's ONLY a problem for
the component. Everything else is fine with however many functions I put in
the code. So it seems that the component DOES place a limit on the number of
functions you can have in your code.

WHY?

WHAT CAN I DO?

I'm thinking of ditching the component altogether and hand-coding a video
player. But I don't want to go to all that trouble if it's not going to
help!
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to