Questions tagged [urlloader]
223 questions
6
votes
3 answers
Unexpected Flash Security Exception When Using URLLoader
What I am trying to accomplish is to upload some binary data, specifically a ByteArray representing a PNG image, to a server using the URLLoader class in conjunction with URLRequest.
When I set the contentType property of the URLRequest to…

Cameron
- 96,106
- 25
- 196
- 225
5
votes
3 answers
webpack - scss cannot resolve background-image url
In my scss file, I use background-image: url("../../../assets/images/home/banner-mobile.png");
The application runs successfully, but no background image is shown:
The background image URL is not resolved.
webpack/webpack.base.js
const webpack =…

CCCC
- 5,665
- 4
- 41
- 88
5
votes
1 answer
Next.js: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file
I am getting following error while loading image from local directory in my Next.js application
Failed to compile
./pages/components/image.png 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this…

Muhammad Faiz
- 119
- 1
- 2
- 9
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
- 527
- 9
- 23
4
votes
1 answer
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
- 81
- 1
- 1
- 3
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
- 455
- 1
- 7
- 22
4
votes
2 answers
Static images with Webpack not loading
I am working with React using Webpack and I am having trouble getting static images to load. The loader seems to be correctly converting the image to a URL but it doesn't seem to work as the img src when the page is rendered. The relative path of…

Clay Schnars
- 91
- 1
- 8
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,485
- 4
- 25
- 33
4
votes
2 answers
Webpack runs Babel against PNG
Here is my webpack.config.js
var path = require('path');
var webpack = require('webpack');
module.exports = {
context: __dirname,
entry: {
javascript: './static/jsx/main.jsx'
},
output: {
path: path.resolve('./static/js/app/'),
…

Dmytro T
- 57
- 1
- 7
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
- 4,301
- 15
- 47
- 85
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,975
- 4
- 27
- 30
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
- 754
- 2
- 9
- 21