I'm running into the situation where I can't instance a SubClass in the above SuperClass because the SubClass is extending from the SuperClass.
I get stack overflow. Fair enough, right?
Well, I want to add this SubClass to the display, and the only way I know how to do that is through addChild(). To addChild() I need to instance the SubClass.
I can't put any visual display instance or events in this subclass because it's currently null and extends is keeping me from doing so. It's great cuz I can share all the goods, but now I'm stuck dancing inside functions because I can't use events on the main "timeline" of the null SubClass.
All my custom classes that extend MovieClip simply trace as "MovieClip" when using stage.getChildIndex(i); I'm trying to search the stage to see what objects have been placed and then add them to the correct array. E.g. if I place 5 "Enemies" on the screen, I want to then add them to an array by searching the stage for the "Enemies" class, without naming each one and adding it manually in the code.
I have 1 class (that is extending a UIcomponent) that is representing a component. In that component I create different instances of another class that is also a UIComponent but this class doesn't show up in de first class. I see that it is running and that it has the correct hights but I got the feeling that it doesn't show up with this hights. If I trace I see the width and height is 200 X 200 but there is still nothing visible in my component.
I've got a flash course that needs to pass the current screen number from the course to the mySQL database. The person who built the back-end built a php page that I can pass the number to and it will get written to the db but I'm not sure how to "send" that in the background.He told me that I just need to call the index.php page like: [URL]So, would I use URLRequest for something like that?
Code: var vars:URLVariables = new URLVariables(); vars.theData = data; var req:URLRequest = new URLRequest("www.url.com/index.php/user/bookmark/"+slideNum);
I'd like to be able to generate certain data XML file through PHP based on variable that embedded in html page swf sends or request. I heard that it can be achieved by assigning FlashVars. I created a flash gallery which loads all content based on data from XML. However, I need to load a different content using the same flash gallery based in which html page the swf(gallery) is embedded. I can generate new XML through PHP if swf will send a variable to PHP which can be read as unique. I need to create a mechanism where the embedded swf send this unique variable.
Basically I am trying to send a variable from flash to php, I was trying to do it through the sendToURL function, because this seemed to be the most appropriate way to do this, although I may be wrong. Below is the AS.
var quizVariables:URLVariables = new URLVariables(); quizVariables.party = "labour"; var myURLRequest:URLRequest = new URLRequest(".../partyhandler.php"); myURLRequest.data = quizVariables; sendToURL(myURLRequest);
Once this is done it should cause the following PHP to run (which works fine if I manually type in the address eg .../partyhandler.php?party=labour)
$party = $_GET['party']; mysql_query("UPDATE party SET $party = $party+1 WHERE id=1");echo $party;
however something seems to not be working with the flash element of the code.
i want to make a swf ecard. the swf will include an input text for a message + input text for sender email adress + recipient email adress.the swf will send variable to php with random name + email to recipience with message that inform bout an ecard sent to them + specific url.
I have a html form and when submit is clicked, my php processes the data. At the moment its simple, just one field displayed to the screen <?php echo htmlspecialchars($_POST['name']); ?>.Instead of doing this, I want to send the variable name to a swf file, and load the swf file with the name. I will use flashvars to do this. I have seen examples, and I think this one is used to display the swf onto the webpage, and pass the data to the swf.
I'd like to be able to generate certain data XML file through PHP based on variable that embedded in html page swf sends or request. I heard that it can be achieved by assigning FlashVars. I created a flash gallery which loads all content based on data from XML. However, I need to load a different content using the same flash gallery based in which html page the swf(gallery) is embedded. I can generate new XML through PHP if swf will send a variable to PHP which can be read as unique. I need to create a mechanism where the embedded swf send this unique variable.
I have a search field in flash, it has a text box with a variable name. When the user clicks the search button, I need to send whatever is in that text field to something called 'search.cfm' . I am unfamiliar with any sort of backend coding, but I am hoping this is a fairly basic thing to do.
And i m struggling for this past 5 days without knowing the solution AS3 script i wanna send a dynamic variable from flash to php... this work gr8 flash file
[Code]....
in this php file i want to change "$i" dynamically. which the data from from flash should update. i dnt know how to do. when i give 2 then database should fetch fp_id =2, if i give 1 ishoud get fp_id 1.
I have the following classes:Parent (Document class for parent.swf)Child (Document class for child.swf)Parent successfully loads child.swf as a MovieClip.I am unable to communicate with the child from the parent. I want to send variables to the child.
I want to send a variable to javascript, then in the javascript for it to take that flash variable and then evalute it using an if statement. Can I use the loadvars command?
I've been trying to communicate flash and javascript some time now, but I can't get Javascript to send variables to flash, just the other way around. When the .swf is done loading, it succesfully triggers the "isReady" function in Javascript, but when i try to trigger the "sendToFlash" function in Flash(via javascript), nothing happens.
"thisMovie("myID").sendToFlash(toFlash);" this is the code I can't get to work, as you see I tried these to as well; document.getElementById("myID").sendToFlash(toFlas h); document["myID"].sendToFlash(toFlash);
create and send a variable called "return." But that conflicts with a word used in actionscript.[code]is there anyway to work around this naming conflict?
i wanna send a dynamic variable from flash to php.[code]in this php file i want to change "$i" dynamically... which the data from from flash should update.when i give 2 then database should fetch fp_id =2, if i give 1 ishoud get fp_id 1.
Also, just a little variable. (xmlfile=text.xml) (I want to have the same swf-file but use it in several html-files (and I have one xml-file to every html-file))
I have an email form that I'm sending to a PHP script. It's basically two variables, one for the senders email, and one for the message. They are both within a movieclip called 'form', and they are working with this code...
on (release) { // send variables in form movieclip (the textfields) // to email PHP page which will send the mail _level2.form.loadVariables("email.php", "POST");
[code].....
I use level2 because this whole email form is being loaded onto level2 of my flash site.What I'm trying to do is to send the _global.var_name to the PHP as well. It represents a makeshift radio button selection....and when I trace it, it works.But either it's not sending over there, or I'm doing something wrong with the syntax, or I'm not receiving it properly.On the PHP side....I'm using...
I'd like to be able to generate certain data XML file through PHP based on variable that embedded in html page swf sends or request. I heard that it can be achieved by assigning FlashVars. I created a flash gallery which loads all content based on data from XML. However, I need to load a different content using the same flash gallery based in which html page the swf(gallery) is embedded. I can generate new XML through PHP if swf will send a variable to PHP which can be read as unique. I need to create a mechanism where the embedded swf send this unique variable.