ActionScript 3.0 :: Set Nocache Param To Avoid Getting Result From Cache?
Mar 30, 2011
I'm sending request in flash with some params. Will it be cached? I mean if I send request with same params will the result be taken from cache? Or I neean to set nocache param to avoid getting result from cache?
This is santhosh, I have qury to all is it possible to avoid caching (save) swf files to temporary folder in client system? is there any solution for the same?
I read almost everywhere that the wmode parameter had to be set to opaque (some said it could be either opaque or transparent). When setting this through the flashvars parameter (this is in Chrome btw) this did nothing. After a while of getting frustrated, I added it as a parameter itself through addParam, and hey presto now it works.Is this a simply a Chrome thing? FF it works seamlessly as it was. Even IE 7 and 8 are behaving slightly better. I wondered if this was a bug because supposedly adding a parameter to flashvars should do the trick.
I'm working on a Flash website for a while now, but just now I noticed that the link doesn't change (that's normal for a Flash application). But the thing is, the website needs to be 'shareable'. So my problem is; How can I get a param from the URL and read it in Flash? For example, when the url is [URL] The Flash application has to know that the article is 245 so it can go to the right article instead of just the homepage. How can this be done? (By the way, I'm using actionscript 2)
Edit: Here is the source code of the SWF file;
[Code]....
This script is just to test things out. (a MovieClip becomes visible if pfcase is not empty?)
I want to use a 3rd party swf map of the USA that the user can drill down to the county level for each state. I can define which state map to display in the html using the following [code]...
I have a flash file(full link to flash looks like [url]... which loads mp3-file(link to mp3 I send with php through flashvars)
I've embed dynamically(with swfobject) this swf to my page. It's ok. Then I send ajax-request to script, which reloading div with flash. Div is empty.
Experimentally I found out that I've trouble with relative paths. Flash file embed with this address ./swf/audio/player.swf and mp3-address is ./media/audio/user/1/random.mp3.
I get Param values(src) from Html to AS3 that allows us to maintain in communication our Flash applications with the server. We often need to assign to a SWF a value in entry using the HTML of the page in which the SWF itself is inserted. My Problem is While getting id From html to As3 ,The Html page is working in Intenet Explorer only.I Cannot get in From Mozila and Google Chrome.
here my As3 Coding
ActionScript Code: import flash.display.LoaderInfo; var sourceId:String = loaderInfo.parameters.src; trace(sourceId);
What kind of stupid rule of is that...unless Im doing it wrong.In AS3 doing:public function bla(string:String=null){}doesnt seem to work as I get an error 1 argument given, 0 expected.if I do public function bla (string:String, i:int = null){}i am told it wants 1 not 2 arguments.How do I get around this? every other language allows me to et a param as default to null and still pass in two arguments....
I'm trying to get a link to an XML file passed from the Object Embed code into my Flash movie. (Not using SWFobject). I have 1 swf file that should be able to connect to 3 different XML files.
Below is the HTML code (I'm trying to get theXML path): <div class="left"> <h2>300 x 353 Green Accent Color</h2> <script type="text/javascript"> [Code] ..... Right now it's not loading the XML file from the param.
Having some issues accessing my param tags from within actionscript. Essentially I have the following tag:
<param name="config" value="config" />
But I am unable to access it. There are two issues that I have, and I've been searching the internet high and low for the answers.
1) How do I even access the parameter? I have some people saying use _root.config, LoaderInfo(this.root.loaderInfo).parameters["config"], and just config. None work, and searching for this stuff is so hard because it's so generic.
2) I assume that once I do find out how to access the param that is being passed, I'm going to have issues with accessing it from another file because I read somewhere during my searching that other files do not have access to global variables. If this is the case, how do I do that? I have seen _globals thrown around a couple of times and some people say it works, some don't.
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 first creation regardless of what is actually used.
[Code]...
When I view the param in the 'CreationComplete' handler (eg 'trace( this.loaderInfo.url );') its the same every time (for a given module) regardless of what is actually passed in via the ?param=string. What am I doing wrong?
I have flash application, which creates array and calls javascript function.[code]My question is how to pass params from actionscript to javascript as array and not as string value.
how to add a bgcolor param to a dynamic SWFObject?
I am thinking that by adding a bgcolor to my SWF or making the wmode transparent, that it will get rid of the ugly "white box" that happens when my SWF first loads before the animation starts. Do not think it is necessary to have a preloader. Previously the animation was embedded using Object Embed code and no flash happened.
I can't figure this out. How do I set the x param of component A which is a child of a <vbox>?I know that I can't expect changes to the y param to stick (since that's the point of the <vbox>) but I need to change the x params of the components in the vbox so they're not just all left-aligned at zero...
I have a flash movie that tries to load an XML file on startup. Right now it looks for a hard-coded filename, but I'd really, really love to be able to pass a filename in through the webpage that plays it. (possibly through a param tag or some such?)
I've come to learn through research that applying filters to flash webcam recording seem backend-ed. In other words, when a user pre-apply filters to their video (light brightness, blur, saturation), the filter parameters (CData, I think) are saved with the video but the actual video file is untouched (RAW) or as recorded. My questions are, Can and how are filters "baked" into a video recorded from a webcam? and Can this be done in flash / flex
I'm loading some pictures using the flickr api. As you know it's possible to load the images in different sizes when adding a param in the url.
My problem: When the size does not exist and I get a "image not availible" picture from flickr instead of my requested image, I want to trace out some kind of feedback so I can load the image in a different size that actually exists.
How can I do this?
I tried to accomplish this with the contentLoaderInfo and .url property in the COMPLETE event, but I just get the requested image url and not the actual loaded image url.
I am passing a string param into flex application as FlashVars.The param sometime contains special characters, everything shows fine except + sign which gets replaced by blank when it reaches flex.Here is the scenario for eg.I have a local variable in JS that gets some values and for this example it can be taken as following
var testVar = "some_test_string_that_contains_+_character";
Then to my Flex object AC_FL_RunContent I pass "FlashVars","test="+testVar
In the flex code on Init of application I have written
var testValue:String = application.parameters["testVar"].toString(); Alert.show(testValue);
Now this shows fine except the + character gets replaced by blank. It doesnt happens with other characters like /,@$-_ but the + character.
How do I make the color array, dColors, an optional parameter?[code]It gives me a "1047: Parameter initializer unknown or is not a compile-time constant."I've tried a bunch of different ways, but all I get are compile errors.Don't forget to drop a colorpicker control in to your library if you copy out the code.
"When using progressive download (FLV), NetStream's .play(url) method is not resolving relative URLs in the expected way. Instead of being based off the HTML's embed location and reading the "base" param, it uses the location of the SWF file trying to load it." I have found it on the web while searching for a solution to exactly the same problem. Unfortunately no one provided an answer. If it is a bug it is in fp ever since and no one has done anything with it. Does anybody know any solution/workaround? I assume it is not possible to read base param value from inside of the swf in order to resolve paths manually?