anna_2010
10-03-2008, 04:52 PM
Hi,
I have an UI element that I put together much like the YouTube "scroll through videos, replay, share" module. I have created an "X" (close_btn) as a close button in the upper right hand corner, creating it as a button symbol. The problem is this, in the Actionscript on the main stage, I have put the following code:
close_btn.onRelease = function() {
fscommand("quit");
}
I publish and since I have searched some flash forums, I learned that I can't just do a CTL + ENTER and have the button work for me. I have to actually save the file and then access the swf from the folder that it is in. Well, when I do that, the swf doesn't work. In fact, the last time I did a fscommand the swf never obeyed and I had to end up using the exe. This is the same result in this situation. Swf does not comply, but whe I access the exe, it works. The thing is that I will need to add the swf to a pre-existing website.
I would appreciate any suggestions or advice.
PS> I've also tried using javascript with a getURL and that only tried opening and then closing a browser.
Anyway, this is pretty annoying, but I bet it is something very simple.
THanks in advance for your help.
I have an UI element that I put together much like the YouTube "scroll through videos, replay, share" module. I have created an "X" (close_btn) as a close button in the upper right hand corner, creating it as a button symbol. The problem is this, in the Actionscript on the main stage, I have put the following code:
close_btn.onRelease = function() {
fscommand("quit");
}
I publish and since I have searched some flash forums, I learned that I can't just do a CTL + ENTER and have the button work for me. I have to actually save the file and then access the swf from the folder that it is in. Well, when I do that, the swf doesn't work. In fact, the last time I did a fscommand the swf never obeyed and I had to end up using the exe. This is the same result in this situation. Swf does not comply, but whe I access the exe, it works. The thing is that I will need to add the swf to a pre-existing website.
I would appreciate any suggestions or advice.
PS> I've also tried using javascript with a getURL and that only tried opening and then closing a browser.
Anyway, this is pretty annoying, but I bet it is something very simple.
THanks in advance for your help.