I am trying to do is declare a variable in PHP and pass that variable to my flash file. Right now i am simply trying to do 1 easy variable, more will happen in the future but i need to figure this out first.I have used other forums and they say try this and that, but nothing i do seems to work. here is my code.
I'm trying to get a value from a function which is a URLLoader COMPLETE event but even with declaring variables outside of the function will not allow me to get the value out. I'm stuck.It seems that the Asynchronous nature of Flash makes it impossible to get a value out: e.g. this works:
// Initialise a URLLoader to get XML data from XML file var myFPBLoader:URLLoader = new URLLoader(); myFPBLoader.load(new URLRequest("flightPlannerBoard.xml"));
I have a swf page where the external swf will load, there is any way to declare variables who work in all swf. What I am trying to do is: like a switch, with several options in which all these are listed in the main swf
I have a function that declares variable by what ever is entered in the text fields(function tClick) but vClick does not see the variables . I get a error " access of undefined property. The variables must be declared at the click of a button[code]...
I am trying to replace all of the code below with a for loop.I also want to do the same thing with number variables as apposed to sprites.I have tried a bunch of things but nothing works yet.
Code: var lineDrawing1:Sprite = new Sprite(); var lineDrawing2:Sprite = new Sprite(); var lineDrawing3:Sprite = new Sprite();[code].....
I am trying to declare a global variable, a variable that will be recognized throughout the entire site. Then I am checking for that variable with a function inside of a movieClip, that is inside of another movieClip.[code]...
I need to create a variable and declare it (I presume you need to declare in Flash?)Basiclay my buttons on the site will link to lots of different movie clips which contain content for each button. For example teh About button will tell the about MC to play. For my transitions though each MC has a beginning, middle and end seqence so i wangt to create a varibale that goes something like this. I am wriing in my crazy logic not actions cript. "MyCurrentMC" is my intended variable and is the name of a movioe clip (instance?)
I have a function in my flash AS3 file. I'd like to pass a parameter when calling this function and have that parameter become the name of a new FLV playback component I'm declaring;
function newVideo(myVideoName){ var [myVideoName]:FLVPlayback = new FLVPlayback(); }
I want to declare a variable in a class for an instance of an object that was added in the Flash IDE.
Example: I have symbols for several types of panels that all subclass Panel. To each panel symbol in the library, I add a button and give it an instance name "defaultButton."
This is really convenient, however, I want a defaultButton property for for my Panel class, and cannot find a way to do it. If I try adding a defaultButton property it throws errors:
ActionScript Code: public class Panel: extends MovieClip{ public var defaultButton:Button; //as an example. Getters and setters also don't work }
I also cannot check for the existence of defaultButton in code: ActionScript Code: public function GetDefaultButton():Button { if(this.defaultButton) return this.defaultButton; else
Throw new Error("Panels are supposed to have a Button instance named 'defaultButton' added using the Flash IDE"); } ...possibly undefined error.
Is there any way for my class to enforce/ recognise the existence of the defaultButton instance added using the IDE in my Class?
var bomb1:Boolean = false; var bomb2:Boolean = false; var bomb3:Boolean = false;
Would it be possible to use an array like this? var bomb:Array = [false,false,false]; Or would it be better in another way? Isn't it necessary to declare the variable/array to be boolean or number if it would be that type in the index? Could I also use an array for the movieclips like bomb[0].visible = true; ? But how di I declare that array?
I have a form with 3 input fields: Name, Email Address, and Contact Number. These have the following instance names: iFullname, iEmail, iContact When the user clicks submit, I need to store this data and then call it later into another form. There are 3 input fields with the same instance names as the first form.This form is in an external movie loaded into the main movie where the original data was stored.
I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:
[Code].....
so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?
In my custom component (Login), I create and set a variable userName, it is bindable: [Bindable] private var userName:String; userName = txtUsername.text; I need to pass that variable to a different custom component (Overview), here is the code of the viewstack:
[Code]...
I've searched for a way, but I haven't found one that does the trick.
I'd like to use a button within a component to remove it. So, you click it and the component is gone. But, I haven't figured out how you reference the component from within the component. What should I put in click=""?
I'm trying to create a simple "universal" media player which presents the same user interface (or as similar as possible) for video and audio playback. Unfortunately, FLVPlayback seems not to be able to handle audio files as far as I can tell, so I'm using a Sound and SoundChannel.
My video playback is handled using an FLVPlayback component which is "wired" to standard controls on-the-fly when needed. What I want to do is wire them to the Sound / SoundChannel when I'm playing a sound so that the same UI widgets work in both cases. I'd like to avoid building all my components from scratch because the FLVPlayback component does a lot of nice stuff "for free" but it's starting to look tricky.
The standard PlayPauseButton is a MovieClip with two layers, one containing the Play button (and with the instance name play_mc) and the containing the Pause button (pause_mc). Inside one of these is a movie with some code like this:
How do I set/access the "Text File" variable as shown in the two pictures. _root and _global don't work.I also tried to access it from _root.CrosswordPuzzle.cp_words_textfile.I don't get components.