What I have done is create a preloader that loads an SWF file. I used the same preloading technique used at this site [url]...
What I want to do is when the browser window resizes I want to change the swf files height and width properties to the size of the window.
Is this possible or should I approach the preloader differently so that my main swf gets loaded by the browser so I can use javascript to change its properties.
Just been playing around with the tutorials, on the Set properties/Get properties. Everything is all cool, except the "instance name" aspect. I dnt really understand that too well. Is it possible to change an Mc Name dynamically? If you look at my FLA when you hit the top left red button you will get a trace of the mcName as "square". Now if you input a new mc Name on the right hand side, you will see it change on the left hand side. But i want to know why it doesnt remain as the new mc Name, it still goes back to square.
I have done this same thing in ActionScript 3, but am not familiar with ActionScript 2, which I am forced to use for this project. I am loading products into a SWF via XML and attempting to add a click event to each dynamically-created movieclip. Simply tracing the text from a node in XML will do for now. I'd like to assign a property called "desc" or "description" to each movieclip and have it trace that property's value when clicked. Here is the relevant portion of my code as it stands:
ActionScript Code: var iXML:XML = new XML(); iXML.ignoreWhite = true;
I have 2 movieclips. One is a fairy flying up the stage. The other movieclip is a magic dust, which is originally designed to generate magic dust with onMouseMove event, based on the mouse's x & y. I want to change the the magic dust movieclip so it will generate magic dust following the fairy's movement.[code]...
I have an Item Renderer having HBox. Now I want to add child in that HBox from my application file using addChild method. Any way around for the same. I am not able to access the properties of HBox inside the item renderer.
I was doing a project for class and all of a sudden i cannot change anything in my brush properties except color. the stroke, style, scale, cap, join is all locked. i was using it fine earlier and it works for all the other tools but only the brush isnt working.
Is there a way to change a graphic, but keep the properties across frames such as size and positioning, so that the new graphic does everything the same? That's pretty much all I can ask since I don't really know where to start.
I have a text whitch I created with: createTextField command. Somehow I figured out how to change the text's color and size but I'm still not able to change it's font although I used the command text.textFont=arial; (I used Arial too).
Basically I wanted a list with command that you can change text properties..
how do i make a movie clip move right 5 pixels every time i press SPACE with actionscript 3?how do i change under properties for input text box, paragraph, behavior and make the password characters be black circles or dots instead of asterisks in flash cs4?how do i take a screen shot of the microsoft windows login screen when I switch on the computer?how do i test movie in full screen in flash cs4 or publish it in internet explorer and have the trace("blah") command or output shown there?
I currently have my own class, for arguments sake, lets say it's called User and is for logging into my own system.
I would like to call a function from the user class called, say, login(), which would send the username and password attributes to a service (in my case, PHP), and then get the data back with the response (either successful or unsuccessful).
This would ideally make my code behave like this:
Code: var user1:User = new User("Jim", "password"); var loggedIn:Boolean = user1.login();
[Code]....
I don't know of a way of getting the login function to return a boolean based on the result of the HTTPservice it sends, so does anyone know of a better way of doing this?
I currently have a scene in Flash CS4 that consists of an image layer1 (converted to a motion tween), image layer2 (converted to a motion tween), an actionscript 3.0 layer, and a hotspot layer. Let's say the animation is 10 frames long for simplicity. At frame1 I want the visibility of image layer 1 turned on and the visiblity of image layer 2 off. Then, I want to spin image layer 1 and 2 simaltaneously (I know how to do this with motion tweens of course) but mid-spin, say at Frame 5, I wish to turn on the visiblity of image layer 2 and turn off the visibility of image layer 1.
How do i change the visiblity properties of my image layers with actionscipt? I assume there is a class I need to load and then change the properties of the image layers in the actionscript layer at the corresponding frames I wish those properties to change.
I have 4 mc's that are acting as btns inside an mc on the main timeline...[code]there are 3 other mc/btns and all come up at different frames in mainbranch_mc (mainbranch_mc is on the main timeline)
first question, if I add the above codes to each mc at the beginning or end of mainbranch_mc I get a null error, so the only way I do not is if I add actions to the frames the buttons start in. (is this correct?)
second question, since btn mode is true I do not need to change the mc properties from mc to button correct?
last question, since newolivefour_mc and the 3 other btns (which I did not list are all inside the branch_mc timeline) how and where do I code so the btns when released to getURL's.
I am running a for loop to bring in movie clips from an array, and I have a couple buttons that I want to affect the properties of all of the mcs. The buttons (labelsOff_btn, labelsOn_btn, increaseSize_btn, decreaseSize_btn) are only affecting the second-to-last item on the list, although the drag functions targeting the same mcs (thIcon) are working for everything. Code is pasted below:
if you can set and change different properties of a graphic symbol using AS? I know you can change MC's and buttons. I also know that you can change graphic symbol properties using the prop inspector. I was thinking that since you can change properties like _alpha in the Prop Inspector, how to you set and control them using AS.
I have say 50 movie clips on the stage. each has a name like "button1", "button2" etc and I want to move each one using a for loop instead of hard coding "button1._x = 50"
When I try this it doesn't work.
Code: var buttonName = "button1"; buttonName._x = 50;
I need to move a 3d transformed object (ex. image) from x=0 to x=500 (for example) The problem is that the 3d transformation changes along the movement.I want to constrain the 3d transformation so the image distortion (perspective) doesn change.
I am loading a small scrolling text box dynamically from a .txt doc in the same folder, but I can't find anything about changing the font properties. No matter what changes I make to the code, the font stays size 12, times new roman, black. I want to change all three of these properties, but most of the related forum posts I have found are about changing the font for a given sentence, manually input into the AS. I need flash to list all font in the text file as Arial, 13, and white in color.This is being set up so members of managment can update news without needing flash to do so, so they obviously can't type everything into the AS.
Here is the code I'm using: var myTextLoader:URLLoader = new URLLoader(); var myTextField_txt:TextField = new TextField(); myTextField_txt.wordWrap=true; myTextField_txt.width=200; var style:TextFormat = new TextFormat(); style.size = "12"; style.color = "0xFFFFFF"; style.font = "Arial";
I have created a new font in the library with the settings required, and named it Arial, but this was still unsuccessful. myTextLoader.addEventListener(Event.COMPLETE, onLoaded); function onLoaded(e:Event):void {myTextField_txt.text = e.target.data;addChild(myTextField_txt);} myTextLoader.load(new URLRequest("myText.txt"));
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended. How do one give code to do this in a progressive way.
I will do my best in explaining what is happening. I have a feeling it has something to do with how I declare things, but I am kinda new with AS3 so please have patience.
On my stage I have an movie clip (mContainer). In the library I have another movieclip (mElement), that has been exported for actionScript as mElement.