ActionScript 2.0 :: Set Param Via URL?
Apr 16, 2010
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]...
View 0 Replies
Similar Posts:
Jan 21, 2011
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.
View 1 Replies
May 5, 2011
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?)
View 4 Replies
Aug 27, 2011
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.
View 1 Replies
Oct 13, 2011
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);
[Code].....
View 2 Replies
Sep 3, 2009
I want to send parameters from my HTML file to Flash file using the FlashVars tag. I used the following procedure but it isnt working -
In Flash file -
var actionId:String = root.loaderInfo.parameters.actionId;
In html file -
<object ... >
<param name="FlashVars" value="actionId=11"/>
...
<embed src="widget.swf" FlashVars="actionId=11" ... />
</object>
[Code]....
NULL value is being passed instead of actionId as 11.
View 1 Replies
Mar 14, 2012
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....
View 13 Replies
Feb 24, 2010
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.
View 3 Replies
May 21, 2010
I have a .SWF email submit form. The background color is set via:
`<param name="bgcolor" value="#000000" />`
and in the embed:
`<embed src="FILE.swf" flashvars="STUFF" quality="high" **bgcolor="#000000"** width="260" height="32" name="WidgetMailBlack" align="middle" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />`
Is it possible either on mouse over of the Object or a containing div to change those values? i.e.
View 3 Replies
Oct 18, 2010
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.
View 1 Replies
Nov 29, 2010
how the post_param is used in SWFUpload. i need the value for name='batchid' loaded when i submit. this is what the example doc shows
post_params : {
"post_param_name_1" : "post_param_value_1",
"post_param_name_2" : "post_param_value_2",
[code].....
View 2 Replies
Feb 5, 2011
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?
View 2 Replies
Jan 12, 2012
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.
View 2 Replies
Jun 27, 2005
I've set a param name and value in the Object tag of my HTML:
<param name="oneOn" value="true">
I'd like Flash to read this and do something:
if (oneOn == "true") {
oneMC._alpha = 100;
}
when I run the movie, oneMC is still 0% alpha. Am I missing something/doing things the wrong way? How can I get Flash to recognize this parameter?
View 1 Replies
Jun 8, 2010
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.
View 1 Replies
Jul 15, 2010
I want to make a tooltip box , when I mouse over an object it will appear with the object color and some other data
how can I send the color param and other param to mouse event?
View 2 Replies
Sep 28, 2009
How to get the PARAM tag values from html page.i f it possible or not?
if i am embeded one swf file in html page at the time i will get the PARAM tag values.[code]...
View 0 Replies
Nov 25, 2009
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...
View 1 Replies
Jul 19, 2006
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?)
View 3 Replies
Aug 14, 2009
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
[Code]...
View 4 Replies
Oct 28, 2009
I made this example to experiment. But what i can't seem to get working is to retreive the parameters in the onTimer function.This is the test class:
package {
import event.MyCustomEvent;
import flash.events.TimerEvent;
[code].....
View 10 Replies
Aug 2, 2010
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.
View 1 Replies
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?
View 6 Replies
Feb 12, 2009
Curious if it is possible to add additional parameters (arguments) when you call a function with an event?
ActionScript Code:
// this is a normal event listener
my_mc.addEventListener(Event.COMPLETE, doNextFunction, false, 0, true);
// This is a function called by the event listener private function doNextFunction(event:Event, targ:Sprite, filePath:String):void {
[Code]...
View 6 Replies
Feb 22, 2011
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.
View 1 Replies
Aug 25, 2009
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.
View 2 Replies
Sep 11, 2011
"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?
View 6 Replies
Mar 25, 2009
I am trying to import a DAE file, and it gets put on the stage, but for some reason I cannot control the scale of it. I know you have to pass a 3rd param to the Collada() constructor to be the scale, but no matter what I put there, it doesnt change the scale.Alas, I cannot get the scaleX or scaleY or scaleZ to change anything.Just need to know how to adjust the size/scale of this model.
View 1 Replies
Feb 28, 2011
In May 2008 (about three years ago, as of the time of this posting), an engineer who worked on Flash Player 10 wrote the following in a blog post talking about GPU compositing:Just because the Flash Player is using [GPU compositing] does not mean it will be faster. In the majority of cases your content will become slower... Content has to be specifically designed to work well with GPU functionality. The software rasterizer in the Flash Player can optimize a lot of cases the GPU cannot optimize, you as the designer will have to be aware of what a GPU does and adapt your content accordingly. I realize this statement is useless unless we can provide guidance, something we can hopefully achieve in the not to distant future.
Is anyone aware of any such guidance having been provided by Adobe in the succeeding three years? The only relevant information I could find was in this article, which provides optimization tips for hardware rendering, but not for hardware-accelerated compositing, which is what the "gpu" wmode embed param turns on.Short of testing each piece of content individually, how can I determine when my content would benefit from the use of GPU compositing and when the use of GPU compositing would be a detriment
View 1 Replies
Sep 23, 2009
I use URLRequest where I need to load external swf file and pass it some parameters. I am now out of my ideas.
example of my code:
var mRequest:URLRequest = new URLRequest("test.swf"); --works fine
var mRequest:URLRequest = new URLRequest("m1-9.swf?param1=true"); --doesn't work, output
[code].....
View 4 Replies