ActionScript 2.0 :: Vars To Swf From Browser?
Aug 19, 2005
Im trying to pass a huge string (12k) to my flash from the browser using the param embed tags.
HTML e.g.
<param name="movie" value="/pix/inzalo/menutest/080105v28_slim_Menu.swf?menuData=data_data_data_da ta....
[Code]....
The flash recieves the data just fine if its not so large. I know that flash can accept vars that are up to 64k big.
My flash does have a preloader for the swf but I think that I need some kind of LoarVars preloader for it? (oddly enough if I half the data size of the var's being passed in to the flash then it render's just fine in FF but does nothing in IE?)
View 2 Replies
Similar Posts:
May 19, 2005
i am trying to load vars from a text file into a load vars object.
var kitchentext = new LoadVars();
kitchentext.load('moccastext.txt');
Once in the object, i thought i could reference them like so
kitchentext.name
kitchentext.style
but i am having trouble doing this.
i have a textbox called displytext.
_root.displaytext.text = kitchentext.name;
doesnt work
View 3 Replies
Dec 18, 2009
in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?
View 1 Replies
Apr 14, 2005
I have a standalone Flash projector running off CD. Currently, I use
getURL("http:url....);
to open the page on default browser. Only problem is the browser window is opening at the size it was last used. I like to see it opens full screen.
View 2 Replies
Oct 27, 2010
The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?
View 2 Replies
Jan 17, 2006
I have a PHP mailer form on my site which needs to be published in action script2 to work, but I also have a script set up to open browser windows of a certain size & location which needs actionscript 1 to work? The PHP mailer form has a "Name" field, "Email" field & "Message" field, theses can all be reset with a button. The button clears off any text in the 3 boxes to wipe them clean. The script on the reset button is:
on(release) {
_root.myForm.formNameField.txt = ""
_root.myForm.formEmailField.txt = ""[code].....
This works fine with section script 2 but not with as1. Does anyone know of a script that resets the .text field on as1 Alternatively is there any way of opening browser windows from a flash movie with browser win controls, eg. centre win, no scrollbars.
View 2 Replies
May 24, 2010
Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]
View 6 Replies
Nov 9, 2009
I have looked around for this and haven't found a way that clearly explains how to do this. More often than not the button will close the browser window in one but not another browser.
Is the a simple way of closing a browser window in all types of browser ( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
View 0 Replies
Jul 17, 2010
I created a photo album viewer which grabs an XML file from my web site, and then parses the XML to get the paths to all the photos to be displayed by the album viewer. The code makes use of the URLLoader class to fetch the XML. The problem, though, is that in google Chrome it works-- but in IE8, it doesn't work. For example, the XML code and the image fetching code work seemlessly on Chrome. But in IE8 and in IE6, it seems to not be able to fetch such information.
I've read somewhere that you need a crossdomain.xml file at the root directory of your server. But I'm not crossing any domains! It's all coming from my server where the swf is being hosted!
View 1 Replies
May 8, 2007
[URL].. Anyone know the AS to make it automatically check the size of the browser for the listeners_notice when you resize the browser it works perfectly...but not when it first loads up.
[Code]...
View 11 Replies
Nov 9, 2009
often than not the button will close the browser window in one but not another browser.Is the a simple way of closing a browser window in all types of browser( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
View 5 Replies
Jul 22, 2010
I'm building a little application in AS3 but I need to get variables from PHP. I searched on the internet on how I should do that. It makes the connection, but it doesn't get the variables. It just prints whole my php script.
[Code]...
View 1 Replies
Feb 26, 2008
I think this should not be a big deal, but I do not get it to work. I got a "MainFlash" witch loades an XML with about 60 variables (Settings), in base of a paramater then this "MainFlash" loades another "FlashMovie" and this one needs, all, the same Variables too.
How do I properly pass all the Vars in the new/other "FlashMovie"?
U need to know I use LoadMovieNum to Level 0 I do replace the "MainFlash", cause the new loaded "FlashMovie" can have a completly different height and width ( ...I don't think it's possible to change the Document-Setting in a compiled swf, or is it? If this is possible I would not need to load a separate swf to Level 0. the main SWF usually ist about 320x180, the following can be 2x, 3x bigger...
View 2 Replies
Dec 7, 2009
var navChildXml:XML = <subpoint>
<text>XML(_nodes[prop].childNodes[inc].title)</text>
<link>XML(_nodes[prop].childNodes[inc].title)</link>
</subpoint>;
how to in this instance
the vars are not being declared
View 1 Replies
Nov 7, 2010
To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives?
View 1 Replies
Jul 7, 2009
I've created a Flash interface that sends variables to PHP to place in MySQL.In Flash I have the following AS2 (abbreviated) ..
myVars=new LoadVars();
submit_btn.onRelease=function() {
myVars.username=_root.username;[code]..........
Invariably the else statement is deployed and a new record is inserted into the database even when the username and passwords (md5 encrypted) are identical. I've been on PHP forums and nobody has a solution, so I'm wondering if this is a Flash issue. Perhaps even though the username and password in MySQL 'appear' identical to what's submitted by Flash and md5 encrypted they're really not for some reason. I tried trim() and stripslashes() to no avail.
View 5 Replies
Jun 9, 2010
I have set something up for my flashvars. I have a form in html which accepts two inputs. This is then sent to this php page
[Code]...
View 9 Replies
Apr 18, 2009
how can I do this trick and keep different vars for each mc?
for(var i=0; i<arr.length; i++) {
var mc[i] = _root.createEmptyMovieClip('mc'+i, _root.getNextHighestDepth());}
View 1 Replies
Jan 30, 2009
i have two swf files, a preloader witch loads main.swf
in preloader on the maintimeline i set this var
var lang:String = "de";
but i cant trace it in my main.swf
trace(root.lang);
how do i get this var?
View 7 Replies
Feb 9, 2009
this should be simple as nothing but i just need to get a clearer picture here my PHP has this as final line
[Code]...
where $newPics is a number what do I insert in AS code to to retrieve that variable and store it as an AS variable?
View 5 Replies
Jun 24, 2009
I've surfed for days to find a solution to this. There are a jillion out there, but I haven't found one that works. Suppose I have the following
<?php
header('location:http://www.sleepydad.com?firstName=s...ame=dad');
// the above URL will house my Flash movie
?>
I need to get the values of firstName and lastName into my Flash movie to save as variables (ultimately LoadVars()) and pass as an ID for some MySQL tasks performed in my Flash movie. NOTE the value of the names are not constant (ie sleepy dad). They will change with login - each user having a unique name. I've tried modifying the javascript in my HTML - some.swf?firstName=firstName (in both Object & Embed Tags)
[Code]....
View 0 Replies
Dec 13, 2009
I am working on a project that uses PHP , as3, and possibly some AMFPHP.
The project allows users to upload and download images among other things. I have been trying to gather as much info about making things as secure as possible. I've got some good advise about using .htaccess files, and a few other tricks.
My main question at the moment is how to hide the "path" info from and to the PHP / assets / and to and from the AMFPHP sevices ...
Currently I have all the paths hard-coded in one .as that returns an object with the paths to any of the other classes that need/request it. I found this method to work well since I only need to change this one .AS , and it will branch out to the other classes that need it.
I'm not super worried about others decompiling my code, and they could probably "sniff" out the paths if they really wanted. I'm mostly concerned with allowing others easy access to all of my AMFPHP services or being allowed to parts of the site I do not wish them to be. basically I realize that things aren't gonna be 100% secure regardless, but would like to take precautions.
So to cut to the chase ... Whats the best- simplest way to obscure / hide the paths being used in a PHP - AS3 project ? ... I entertained the possibly of PHP includes or even a SQL database if need be. I rather not spend a bunch of time and money on questionable obfuscator software, unless there's a tried and true one for flash (not flex). .. and I currently do not have a SSL but don't know how critical - common this is.
View 0 Replies
Feb 9, 2010
When I run the flash from my local host (using XAMPP) it all works fine. But when I put the whole thing onto my online web server and change the URL to access the php file, its just coming back as "NaN" ...so why does it work on my local server but not the online one?
View 6 Replies
Aug 3, 2004
ok I have a load vars function that looks for a txt file and grabs data from it, right now they have to be in the same dir. I'd like to have the txt in the root of my server and then be able to link from any dir in the site...I have: ("dataValues.txt")what should I add before it, I thought maybe a full URL, but no, is it something like ("../dataValues.txt"), basically I want to make the link global for the site - I dont have access to the files right now so I cant just try a bunch of stuff myself.
View 1 Replies
Apr 16, 2003
Well, I've come across a problem and i'm stumped. Anyway, I stumbled upon this aim online presence check in an old AIM pdf file. There is a server check at an aol server to see if a person is online, if they are it sends the browser to the "on_url" setting, if not, it sends the browser to the "off_url" setting. I realized that it doesn't work for some screen names for some reason, but it does for mine, so i wanted to use it in flash. I've tried three ways, and two of them WORK! But, only when I run them from my computer... When I upload it to my host, it doesn't work! Here's the two ways I've tried:
[code]...
Again, the first two WORK when running the SWF locally, but for some reason not on a couple of hosts that i've tried.. maybe i'm going about this the wrong way. I've thought about making some php script to do this then have AS read the PHP, but then i'm not sure about the PHP code on that.
View 4 Replies
Feb 5, 2007
i have just been looking for a simple solution to send vars to php.I have found a lot of threads that have problems but no results.I hope that someone can give me a quick fix..or is this just a mission.
[Code]...
View 8 Replies
Aug 16, 2003
ok, first of all, im not totally sure how to describe my problem so im going to recreate a simple example of what im trying to do...
my problem is that im not sure how to refer to a dynamic mc in a function...i know that sounds confusing but maybe this will help...
lets say i have a function like:
[Code]...
the problem with this is that the function looks for an mc titled "mcName"...and the function is hard coded...what i want to do....is to reuse this function with any movieClip on the timeline i want...so how do i refer to the mc in the function dynamically? i hope this makes sense?
ive also tried something like this
_root[mcName]_x = 123;
but this doesnt work either....ive seen something like this done before...using brackets to target an mc with a var...
View 1 Replies
Mar 22, 2009
i'm trying to fill out dynamic text fields by adding to my url like so:url...if the url could link to the html in which the swf was loaded instead of to the swf directly, that would be even better... but that might or might not complicate things (i don't know)
View 8 Replies
Apr 2, 2009
I have to pass some variables to the flash movie (movie.swf?var1=aaa&var2=bbb). never had a problem with using them before.I've read around a lot an tried different coding, but when I export the swf I got the error, that root is unknown...doesn't matter, if I use one of this
var flashvars:Object = root.loaderInfo.parameters;
var flashvars:Object = stage.loaderInfo.parameters; // stage is unknown here..
var flashvars:Object = MovieClip(root).loaderInfo.parameters;
var flashvars:Object = MovieClip(root.loaderInfo).parameters;
[code]....
View 4 Replies
Mar 20, 2010
noobish question, i have several variables, say var1, var2, var3. In as2 we simply write:
[Code]...
View 5 Replies