Questions tagged [loaderinfo]

14 questions
9
votes
2 answers

AS3: How do I get dynamic loader URL from LoaderInfo in Event Listener Function?

I'm loading many pictures, and am using an array to do so. loader[i].load(new URLRequest(picture[i])); My Event Listener function is enabled like this: loader[i].contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); My onComplete…
Chowzen
  • 321
  • 3
  • 12
2
votes
1 answer

Can't load youtube thumbnail images. Security sandbox violation: LoaderInfo.content: cannot access '*.png'. No policy files granted access

I can't seem to wrap my head around this image loading problem with my actionscript 3.0 project. I suspect it has something to do with how I have the crossDomain.xml set up. The problem is that I can load youtube movie thumbnail images from…
user1222287
2
votes
1 answer

Getting swf boolean parameters

I have a swf that I call as /SWFUploader/upload.swf?single=true Then in ActionScript 3 I read in the value. But it's not working. Here's my test code (the first block is taken from…
dumbledad
  • 16,305
  • 23
  • 120
  • 273
2
votes
2 answers

AS3: Is it possible to accept only FlashVars and ignore Query String params?

Adobe page for LoaderInfo states: The two sources of parameters are: the query string in the URL of the main SWF file, and the value of the FlashVars HTML parameter (this affects only the main SWF file). We would like to accept only FlashVars…
jayarjo
  • 16,124
  • 24
  • 94
  • 138
2
votes
3 answers

How to obtain URL that Flash movie is embedded on?

today I'm trying to get the URL where my Flash movie is sitting on. I found a similar question here, which was answered with a link to Flash's LoaderInfo method, but I'm not sure I'm using it correctly as the textField in my test movie here:…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
1
vote
1 answer

actionscript 3 LoaderInfo from a class

I am using flashvars to get some info. When im using LoaderInfo(this.root.loaderInfo).parameters from the main fla frame it works fine but how can I use it from withing a class? Something like this - public function display_user_info() { …
jazz
  • 143
  • 1
  • 3
  • 8
1
vote
2 answers

Passing param to flex module via url

Im using a few modules repeatedly in a Flex app and varying the conditions by passing in params via the 'loaderInfo.url' var. This works fine for the first iteration of a given module but subsequent attempts will always see the same params as the…
ethrbunny
  • 10,379
  • 9
  • 69
  • 131
1
vote
3 answers

Anyone else unable to listen to uncaughtErrorEvent when loaded by another swf?

When I try to access the uncaughtErrorEvents dispatcher when loaded directly, everything works well. But when I try the same code when loaded by another swf I get a reference error. protected function onAddedToStage(e:Event):void { trace("Flash…
aaaidan
  • 7,093
  • 8
  • 66
  • 102
1
vote
1 answer

Flash AS3 Main swf's binary checksum

I have a 'Shell' swf as the main swf to protect other things in the project. Shell swf's procedure is: check stage property, so it can't be loaded as a child. check Capabilities.isDebugger, so it can't be run in a debugger. load a decoder lib. the…
fioman
  • 33
  • 3
0
votes
1 answer

LoaderInfo.width != stage.width in flex 3.5

Running into strange behaviour with flex 3.5. Here is a minimal code: build.xml target:
JNissi
  • 1,120
  • 9
  • 22
0
votes
1 answer

AS3 - How do you receive parameters in a swf from a GET request?

I tried using var params: Object = ((this.stage.loaderInfo) as LoaderInfo).parameters; to get the parameters, but it returns an Object with no properties. That LoaderInfo will give me the correct URL without the parameters though if I use…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
0
votes
1 answer

Hot to apply a loading text before the video-streaming begins

I am working in a project for the front-side. We have a flash player showing a live video game from external. We have the access by api provided from a third part. Everything works fine but the big issue now is how to display a simple text "loading"…
Koala7
  • 1,340
  • 7
  • 41
  • 83
0
votes
1 answer

ProgressEvent.PROGRESS not firing in AS3

I trying to create a preloader for a game in Flash CS6. I've already slowed down the download speed to 1,2 kb but the ProgressEvent.PROGRESS is never fired. This is what I have: import flash.events.Event; import…
Jan
  • 42,290
  • 8
  • 54
  • 79
-1
votes
2 answers

firefox does not load an xml into an swf called by a parameter in the html-code (works fine in IE)

I built an excercise in flash cs5/as3. It draws its content from an xml-file. Because I want to make it easy for other people to create their own excercise based on this swf, I want the actionscript to load the xml, with the filename based on a…
silvith
  • 290
  • 2
  • 14