Depending on which button a user clicks, my project will generate a different variable "b" in the URL
If a user navigates to my page titled "default.asp?b=1", and I have the swf embedded on my page how do I send the URL variable to my flash movie through HTML. If someone could also explain how I retrieve this variable in my actionscript code
what want to make is let people submit a URL and then show the image on the stage .. so i went an wrote my code but it doesn't work as i expected .. here is the code
var myurl:String ; // a var to load the text in it var reques:URLRequest = new URLRequest (myurl) ; // the urlrequest (i know that this only accept strings but what to do !!) var loader:Loader = new Loader(); // the loader
I'm trying to combine PHP/SQL and Flash. I've got a problem now. I want to load a variable that contains an url to an image. so the variable is like this: [URL] Now I want flash to load the image, not the text. The variable is called 'img1' but the loadmovie function doesn't work when I put it in.
Im trying to make a SWF that sends some variables (query string) to ASP. Then the ASPfile is responding with "response.write". Everything works great except i dont know how to get the asp-answer back into flash again.I got a few variables that's added in a movieclip called form, then use this command on the button.in the flash button, (on release)
Code: success = 0; form.loadVariables ("http://xxxx/Code.asp", "GET") in Code.asp
is there a way to make all the movieclip that I want to load on stage into an array?
if (selectDiffText.text == "Collection 1 Easy") { var c1_easy:cartoonEasy = new cartoonEasy(); addChild(c1_easy);
[Code]....
now I have 3 movieclip in library which is cartoonEasy, cartoonMedium and cartoonHard. I'll add one of them into stage but with different variable. is it a way I can make them just using ONE variable only? is it using array?
because if just using 1 variable then i can easily control object inside 1 of the movieclip that I called from library.
what I'm thinking is like this:
var c1_all:cartoonAll = new cartoonEasy() = new cartoonMedium() = new cartoonHard()
I want to load xml based on what button is pushed by changing the name of a variable.
For instance, there will be a string: var whatscreens:String = "screens";
On clicking a button, I will change the string to whatever, and then I want to use that string to load the xml like: loadXML(MovieClip(parent.parent).feedXML.feed.whatscreens);
Unfortunately this doesn't work. How do I put a working variable into this line?
I am getting all data from the database through asp using loadVariableNum("get.asp",0,"GET") in a text box named xx.now i want to split it into further variables for manipulations. but i can't get the value from the textbox xx.i tried
I think i am screwing up the syntax. let's say I have a global variable, like. _global.something = mymovie
And then, the code to load in the external swf.... loadMovie((something)+ ".swf", _root.ec); Well, it doesn't work, and I'm just not sure where to put the quotes, and how many parenthesis are needed. How do I use a global variable and access it for this loadmovie code?
I load a variable from a txt file.The dynamic text box has html turned ON.All characters are embeded.Here's the problem:In the txt file I have a text that contains an html link:
myVariable=Hello! This is my text! Click <a href=http://www.uachq.cjb.net>here</a> to visit my site!
However the swf displays everything up to "Click" ie before the link:
Hello! This is my text! Click
And that's it. I heard that Flash can recognize a simple html command like <a href> but this seems odd to me... Why isn't this working?
If I have an external text file with a variable, (let's say it's called names) with a list of names,... how do I load that variable into an array in flash?. Does it have something to do with Split() to separate the different values on the list separated with commas?
let's say the external file is: names=john, peter, veronica, alfred. How do we load that in flash so we have something like:
While I'm not new to Flash builds I am certainly new to ActionScript 3.0. I'm currently trying to use a myLoader variable to load the different pages of my site(.swfs) but for some reason the swfs are just loading on top of the current swf. I've listed the code below.
var myLoader:Loader=new Loader (); ask_btn.addEventListener(MouseEvent.CLICK, askcontent); function askcontent(myevent:MouseEvent):void { var myURL:URLRequest=new URLRequest("ask.swf"); myLoader.load(myURL); addChild(myLoader); [Code] .....
I have some buttons in the scene (inside the .fla) that change a variable "counter" after being clicked. In a separate class there is a function "showPage" that loads a xml-file according to the value of the variable "counter". My problem is, that I dont get the variable "counter" from the fla-file into the function of the .as-class.
Here is my code:
Inside mcMain.as
Code: class mcMain extends MovieClip { //public var counter:Number = 1; //Das hier soll durch den Button getan werden :(
I want to be able to load an external text from an http request to a string in my flash application.
i know that with loadvars i can load variables, when the output is as: key=value&key=value.. but this is not the case here. i get in return a string with several random characters. how can i properly retrieve them ?
Anybody got experience with new restrictions in flash player 9 & 10?[URL]..._security.html I have two servers X & Y Y hosts a Y.swf file that is trying to load variable from server X Y.swf has this line of code in it: System.security.allowDomain("*"); now, server X has crossdomain.org file in its root that looks like this:
So with this setup everything should work correctly, or so I thought... From what I see variables from server X never make it to Y.swf What do you think could be the problem? Unfortunaltelly guy who has access to the serwer X is not at work today so I can't experiment with adding this line of code just yet to the xml file: <allow-access-from domain="Y.com" /> maybe that would solve the problem..
So I have ClassA and ClassB. Each of these is the document class of two different FLAs. In ClassA I want to load a SWF and set it to a variable of type ClassB. The problem is that ClassB uses a ComboBox, so when I try to type the varialbe, then ClassA complains that it can't fine the definition for ComboBox. If I add the ComboBox component to the library of ClassA it works just fine. But that kind of defeats the puprose of me creating the seperate SWFs in the first place... smaller file sizes. So here is basic code of what I'm trying to do.
Code: package { import ClassB; public class ClassA extends Sprite
[Code].....
If I don't try to type the variable "swf" to ClassB then it works absolutely fine. But I want to have it typed so that I can then use intellisense/code completion in my IDE and not have to worry about the compiler telling em that functions don't exist on ClassB when I try to use them and such.
how to accomplish this? I have found that I can have ClassB implement an Interface and then set the swf to type IClassB... but I really don't want to have to do that because that means for all swfs I want to load I will have to create another Interface and prototype out all the functions. That just seems extremely tedious as this project will get very big.
i have an 'input text' box named "playernameinput".
i want the text inputted into that field to be loaded into a variable and sent to a php file. the 'timeLeft' field is correct and is updating in the mysql database but i cant for the life of me figure out how to get the text from the input box into the 'variables.username'.
ActionScript Code: var str = timeLeft; var playername:String = playernameinput.text;
I have a movie clip that needs to load an outside Variable and I know how to do it if the Variable is in the main time line.
Main TimeLine: timedelay = 5; MovieClip timedelay = _root.timedelay
What I can not figure out is how to load a variable in a movie clip that is on the Instance of itself (not in the movie clip).
I am fine if I only use one instance of the movie clip at a time on the stage since I can set the Variable on the Main TimeLine into the movieclip (using .root), but this would not work correctly if I want two instances of a movieclip with differenct variables.
Right now I am having to make duplicate copies of a movie clip with different Variable names. I was hoping there would be some way where I could only use one movie clip and give it different variables.
I have an external SWF file that is a dynamic chart. It normally requires (in the object and embed tags on the HTML page) a variable passed to it that points to an XML file.
What I want to do, is create a "container" program that simply has a few buttons, that when clicked load up that same chart.swf and point it to a different XML file.
What I can't figure out is how to get that external file to recognize it's dataURL parameter that it normally receives off the html tags. (BTW, I can't edit that chart.swf, it's a purchased product.) I tried setting a root variable of the same name in my container to point to a new XML file, but that doesn't work. I tried setting that variable, and using loadMovie with a GET to pass it the name, but that just looks for a string that flash seems to be interpreting literally, so it can't locate the file at all (I.e. it's looking for the literal name "chart.swf?dataURL=datafile.xml")