...
Posts
Showing posts from May, 2021
Remote upload
- Get link
- X
- Other Apps
function uploadFiles(url) { var response = UrlFetchApp.fetch(url) var fileName = getFilenameFromURL(url) var folder = DriveApp.getFolderById('1IxMiswEfi67ovoBf8ZH1RV7qVPx1Ks6l'); var blob = response.getBlob(); var file = folder.createFile(blob) file.setName(fileName) file.setDescription("Download from the " + url) return file.getUrl(); } function getFilenameFromURL(url) { //(host-ish)/(path-ish/)(filename) var re = /^https?:\/\/([^\/]+)\/([^?]*\/)?([^\/?]+)/; var match = re.exec(url); if (match) { return unescape(match[3]); } return null; } function doGet(e){ var html = HtmlService.createHtmlOutputFromFile('index.html') return html.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL) } /*create index.html on the Google app project and put the below code and remove this comment*/ Upload Files Upload files to Google drive from URL Enter the URL ...
Music player
- Get link
- X
- Other Apps
6:18 Music Player in Flash using AS3.0 - Part 4/4 - Flash Tutorials 2,460 views VerkkoNet 8.98K subscribers Published on 10 Apr 2015 This video will help you to design visualizer for your music player. Website: http://samsolomonprabu.com/ Source Code of the project: ---------------------------------- import flash.media.Sound; import flash.events.MouseEvent; import flash.net.URLRequest; import flash.media.SoundChannel; import flash.utils.Timer; import flash.events.TimerEvent; import flash.events.Event; import flash.media.SoundTransform; var s:Sound = new Sound(); var c:SoundChannel = new SoundChannel(); s.load(new URLRequest(-Songs-PG-28 - Track 04.mp3-)); btnPlay.addEventListener(MouseEvent.CLICK, playSong); btnStop.addEventListener(MouseEvent.CLICK, stopSong); btnPause.addEventListener(MouseEvent.CLICK, pauseSong); var pos:int = 0; function playSong(e:MouseEvent):void{ toggleButtons(); c = s.play(pos); if(s.id3.songName != null){ txtSongName.text = s.id3.songName; } ...