473,815 Members | 3,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

close swf movie using action script

4 New Member
hi, i really need to know how to close a running swf flash when it reaches the last line of my action script, using actionscript. thanks
Jun 11 '07 #1
8 16433
Atran
319 Contributor
hi, i really need to know how to close a running swf flash when it reaches the last line of my action script, using actionscript. thanks
Hello, check this code:
Expand|Select|Wrap|Line Numbers
  1. fscommand("quit");
  2.  
Attention:
But this code doesnt work when you test your movie from the program (Flash Program), the code works when you run the movie normall from the directory(not from flash program).

So we can say all of fscommand codes dont work when you run the movie from the program.
Jun 11 '07 #2
nixboy
4 New Member
i tried this and it works. but it doesnt work when i use zinc wrapper. do you know how to make it work?
Jun 11 '07 #3
Atran
319 Contributor
i tried this and it works. but it doesnt work when i use zinc wrapper. do you know how to make it work?
No I dont know.
But I heart that could import C++ to ActionScript, I mean we can use C++ on ActionScript, but I dont know how?
If you find this way it is too easy to close a program using C++.
Jun 11 '07 #4
kestrel
1,071 Recognized Expert Top Contributor
No I dont know.
But I heart that could import C++ to ActionScript, I mean we can use C++ on ActionScript, but I dont know how?
If you find this way it is too easy to close a program using C++.
you can use javascript window.close to close a window, thats a popular choice among many people
Jun 11 '07 #5
Atran
319 Contributor
you can use javascript window.close to close a window, thats a popular choice among many people
Hello kestrel:
Do you can give me the code.
thanks for your help.
Jun 11 '07 #6
kestrel
1,071 Recognized Expert Top Contributor
Hello kestrel:
Do you can give me the code.
thanks for your help.
i think this only works with pop-ups, but heres a page describing numerous javascript window functions in actionscript.
Jun 11 '07 #7
Atran
319 Contributor
i think this only works with pop-ups, but heres a page describing numerous javascript window functions in actionscript.
Thanks kestrel........ ...
Jun 11 '07 #8
kestrel
1,071 Recognized Expert Top Contributor
Thanks kestrel........ ...
no problemo my friend
Jun 11 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2209
by: ...D. | last post by:
OK. I am halfway decent with HTML. Now I want to try javascript for some things that HTML cannot do. I have looked over a tutorial & all. What I want to do is create a button, that when pressed, closes the window it is in, and launches a URL. The window the button is in is actually just a sub-page of the main website page, launched with target="blank", but I just do not want to close the window as I said, I want to launch a website...
6
2744
by: marcelf3 | last post by:
Hello.. This page opens a window with some information, but everytime the user changes a field in the parent window, the child window needs to be closed. These 2 functions were supposed to do the work. Nota() - opens new window. fechaNota() - closes the window opened by Nota() here is the code.
1
3331
by: torbs | last post by:
I have a problem when I use javascript to get the length and position of a movie I recieve from a rtsp stream. The length and position is extremely high and not the actual length and position of the movie. When I try Real Player and it's methods I recieve a length and position of 0.
37
6358
by: Jan Tovgaard | last post by:
Hey everyone:) We have a critical problem, which I can see that other people also has ran into. In Internet Explorer 7 it is no longer possible to do a window.close after opening a window, without getting a alert message that ask if u want to close the window. This did NOT happen in Internet Explorer 6, Mozilla firefox or other browsers.
7
5830
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed to be two techniques for earlier versions. But the window.opener='' ;window.close(); and the window.open('','_parent','') ;window.close(); techniques do not work for me. I.e., I still get confirmation message
1
1577
by: Vanaja Selvaraj | last post by:
<?xml version="1.0" encoding="iso-8859-1"?> <xmltest> <parentnode> <node1>First node value</node1> <node2>Second node value</node2> <node3>Third node value</node3> <node4>Fourth node value</node4> <node5>Fifth node value</node5> </parentnode> <parentnode>
8
38440
by: camphor | last post by:
I uploaded index.html, index.swf, the Scripts folder with 'AC_RunActiveContent.js' in it to http://www.paulineng.co.uk, it takes a long time to load & once it has loaded and I right-click, it says movie not loaded. Below is the html/flash file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
2
3360
by: Mickey Flores | last post by:
I have just tried to attach a background sound with on/off button to my movie clip at frame 1 of the main Timeline. Flash Movie: the movie will keep on replaying until a viewer clicks a button. (frame 1 to 7) Problem: the background sound plays again on top of the ancient one. And as the movie starts again, one more piece will be played, and so on. I've tried to use different approach with action script but no luck, Please help.
1
5460
by: gusheneshin | last post by:
hi everyone im Using this code to Creat a Movie Clip and load a movie "SWF" into this Flash ------------ stop(); loady._x = 226.4;this.createEmptyMovieClip("loady",5);
0
9735
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9610
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10670
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10426
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9225
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7686
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.