ActionScript 3.0 complex mp3 player [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm writing and mp3 player in actionscript for my web site. The problem is, it needs also to download files. What i mean it'll download mp3 files from remote server via URLLoader.load() function probably. AS is not multithreaded so when downloading it blocks.
When thinking of solution I figured out, I can write to separate, let's call it modules(.swf) and one will be music player, other downloader and they can communicate via javascript.
How do I solve this problem regarding communication between .swfs?

URLLoader.load() will not block the UI. However, the browser and flash player will only allow 2 open connections to the same domain name so you will only be able to play one song, and download 1 song at a time.

Related

Image processing on browser [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to do some image processing on a browser where I upload images and with my python script, it manipulates the images. In the end, I just want to open an HTML page where I can simply use buttons there to process my python script. Please tell me how can I do it? I don't know much about web development. I don't need to host a website. I just want to do it locally so that if I give my files to anyone they can access it by just opening the HTML document.
If you want to practice and you need to upload an image and processing in your web app you need to use Phyton(with Django should be more fast to create what you want) and MySQL(or another database) to save the data.

How to execute a cmd command in browser with js [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
As the title,not only in IE.
If js can not do this,is there other way to do this?
It's best to show a demo code.
This cannot be done with Javascript. Browsers are deliberately isolated from the host machine to prevent malicious behaviour. So the amount of access to local resources is extremely limited (eg. uploading a file) and can only be initiated by the user.
In the past, you could have used ActiveX controls or Java applets to perform these types of actions, but Oracle has discontinued its browser plugin for applets and ActiveX controls do not run on all browsers.

Saving pdf from print content HTML JAVASCRIPT [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
If you print a page it gives you chance to download as pdf, can I make somehow automatically a button when i click it to open print and download as PDF
You can't.
Save as PDF is part of your OS/Environment and depends from what APP you have installed (some are native, some are not).
Javascript of your webpage cannot request or access to resource that cannot be available on your OS/Environment, can only access to your browser functions.
Your OS execute the browser APP that execute javascript script on your webpage.
Browser can access to printers but javascript cannot (mainly because it's designed to be like this).

Reload page if Database changes [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I can't set a javascript timer to reload the page every X seconds. It must be a perfect loop with no wait times.
I can't use AJAX. When the database changes a full screen video must be played, and there's no way I can load an "auto-fullscreen" HTML5 video from AJAX method through someotherfile.php
I spent 6 hours today trying to find a way to do this. Apparently I can't put PHP in a loop to 'listen' by doing sql queries every now and on. Weak language I guess.
It has nothing in common with PHP weaknesses it's about server side and client side.
Answering your question. You should try using HTML5 server sent events check these links it should clarify you how to do it. There are examples given:
http://www.w3schools.com/html/html5_serversentevents.asp
https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events
BTW you don't need reload page with JavaScript just simple meta referesh does this.
Note: using EventSource is not supported by all browsers.

Is there any possibility to insert my own javascript code into any website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Imagine a website - for example YouTube. In every video I'd like to insert a link next to the title that will point to my website, and if I click it, it grabs the url and sends it to my site's database.
I've seen somewhere such a possibility (I don't remember where), consisted of the fact that you dragged a *.js file onto your browser window and it worked locally just for you in the browser like an extension to existing site or sth.
Can you point me to articles or other resources if this is possible?
You have a couple options:
You can use a browser extension such as Greasemonkey for Firefox, or Tampermonkey for Chrome.
Write a Bookmarklet.

Categories

Resources