Questions tagged [urlloader]

219 questions
5
votes
1 answer

URLLoader data to BitmapData

I'm trying to load an image file that's right next to the .SWF file. Something like this: var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.BINARY; loader.addEventListener(Event.COMPLETE, function(e:Event):void { …
John Crichton
  • 77
  • 1
  • 1
  • 6
5
votes
2 answers

Webpack url-loader dynamic public path

I'm using webpack's url-loader plugin and have it configured like this: module.exports = { entry: './src/admin.planningview.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), publicPath:…
Tim Ververs
  • 447
  • 6
  • 22
5
votes
1 answer

Webpack inline font with url-loader

I’m trying to inline some fonts as base64-encoded Data URI’s but am having no luck with Webpack’s url-loader. Which is weird because the url-loader seems to be doing just that for my image and svg files. My setup is below: directory…
Tyler Reitz
  • 73
  • 2
  • 9
4
votes
1 answer

url-loader not working with custom webpack for angular 8

I'm using custom webpack to use webpack with Angular 8, and I want to use url-loader to inline SVGs, because the server the app is being deployed to doesn't support the SVG image/svg+xml mimetype (and I can't change that to support it). However when…
user1779418
  • 263
  • 1
  • 15
4
votes
4 answers

How to bypass "Adobe Flash Player has stopped a potentially unsafe operation."?

I have created an advent calendar for the blog of a friend, and to fetch/get/download the gifts of each day, the flash animation requests a file located at "http://domain.com/folder/etcetc/gifts.php". While creating the file in Flash CS4 and trying…
Phoexo
  • 2,327
  • 4
  • 23
  • 31
4
votes
3 answers

Webpack - url-loader cannot resolve jpg

I have two folders in root directory of project - build and src. I would like to move images from src folder to build folder. However i'm getting error "Cannot resolve 'file'" despite i've included the url-loader plugin. header.jsx import {React,…
Rahul Dagli
  • 3,613
  • 11
  • 40
  • 77
4
votes
1 answer

Reading server error messages for a URLLoader

I have an URL loader with the following code: public function getUploadURL():void { var request:URLRequest = new URLRequest(); var url:String = getPath(); // Adds time to prevent caching url += "&time=" + new Date().getTime(); …
Rudy
  • 259
  • 1
  • 13
4
votes
2 answers

Flex 3 Close UrlLoader throws exception

I am trying to simulate a 'HEAD' method using UrlLoader; essentially, I just want to check for the presence of a file without downloading the entire thing. I figured I would just use HttpStatusEvent, but the following code throws an exception (one…
gmoniey
  • 7,675
  • 4
  • 25
  • 29
4
votes
1 answer

(as3) URLloader keeping connection alive

I have a little problem with a simple URLLoader, it simply just loads the data from an url, and processes that data, nothing complicated. But, when ever i run it, it leaves the connection open. At the bottom of the browser it says: Transfering Data…
Andy
  • 443
  • 1
  • 6
  • 21
4
votes
2 answers

Loading and Returning Text Data with ActionScript 3 (URLLoader)

I'm trying to do something exceedingly simple: write a function that reads text from a text file and returns the text in a string using AS3. The Function public function readData(path:String):String { var dataSet:String; var…
terrace
  • 674
  • 2
  • 9
  • 19
4
votes
0 answers

SoundCloud POST Comment Not Authorized

[UPDATE] Problem fixed. Working code and method updated below! So, I am trying to post a comment to a SoundCloud track using the SoundCloud api in AS3. The documentation can be found here: http://developers.soundcloud.com/docs/#comments And my code…
3
votes
6 answers

AS3 Upload speed test

I'm making an speedtest on AS3. And got such a problem. I'm using URLLoader( ) in my test, and for download test it work very good, but for uploading test i got some troubles. I'm sending some binary data to my php-script, and checking the…
Den
  • 601
  • 3
  • 10
3
votes
0 answers

Vue + webpack, convert font files to base64

I'm writing a library to import into other projects, to share custom components and styles. Problem is with font files, .woff/.ttf/etc. //_fonts.scss $woff_path: '~/woff'; $ttf_path: '~/ttf'; @font-face { font-family: "MyOpensans"; src:…
Mat
  • 61
  • 1
  • 3
3
votes
1 answer

Adobe AIR Flex/Actionscript URLLoader vs HTTPService (Async tokens and Windows proxy settings)

I'll try and keep this short. I've written an AIR app that uses an HTTPService to request various bits of data. There can be multiple services firing at once, so I use the standard AsyncToken behaviour to set variables that can later be used to…
Marc
  • 104
  • 1
  • 9
3
votes
3 answers

Flash/AS3 - is there a limit to the number of simultaneous URLLoader.load() requests?

All, I'm working on an Flash/AS3 project that makes numerous URLLoader.load() requests. Should I queue them so that there's only a single open request at any time? Or, is it a good practice to allow multiple open requests? Is there a limit to the…
mattstuehler
  • 8,104
  • 13
  • 71
  • 105
1
2
3
14 15