ActionScript 2.0 :: External MC Loaded On Stage - Can Press Buttons That Are On The Stage Through It
Sep 26, 2008
An external swf is loaded using this code...
[Code]...
The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie.
on my root i have an external swf being loaded into the stage. when you refresh, a random swf will be loaded again, etc., etc., now wut i want to be able to do is have a mask on my root that will mask the external swfs. so 2 questions. 1- making a mask, is it better to use duplicate movieclip or animate everything (ultimately im going to have shapes form the image) 2- how do i go about scripting
im not asking for people to just give me the answer, but point me into the right direction so i can study it.
- A.fla includes buttons, movie clips and also B.swf is loaded in A.fla using a LOADER
- i want to access elements in A.fla, from the actionscript codes inside B.fla to modify those movie clips and buttons based on actions going on in B.swf
for instance, lets say there is a button X in A.fla, and there is a button Y in B.fla, B.swf is loaded into A.fla, and I want the button Y to erase button X when clicked.
general question: accessing elements in a stage, through a SWF file loaded into that stage.
4.Try and set/change the label of the radio button from the document class.
I noticed this problem when I quickly knocked the code together to catch the radio button value through an event, which worked perfectly when the code was on the timeline. I tried to clean up the code into a class file, at which point it broke. I stripped the whole thing down to bare bones and just could not get the label or the value to set from the document class. If I've missed something, I'd love to hear it, as I've wasted hours AGAIN on a silly problem.
I have noticed that when I load an external swf, I lose my stage event listeners while my mouse is inside of the loaded swf. Is there a way to fix this?
Code: // load the swf var swfContainer:MovieClip = new MovieClip(); container.addChild(swfContainer);[code]....
I'm making a mockup for a client and I need to Load the .swf with the exact stage size so the graphic elements do not float outside the loaded movies stage area. [URL]Basic load code I'm using...
How can use stage variables and function from external loaded swf files.& Can Possible without using parent.parent fromat, can possible root.format if possible how .
i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.how would i go about this, since the external file would be read as a string by flash?
I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following
[Code]....
I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.
I have a problem when making flash applications with more than one frame that has symbols placed on it in that I can't declare all of the event listeners for the objects at the same time and I have found that even if I put them all on the first frame, add the event listeners, then click through to the next frame then the buttons won't work on that frame.
Does anyone have any idea how I could solve this? I did consider myself a fairly competent AS3 programmer until I realised I had no idea how to handle this sort of thing. Solved: I initialised the clips from my external class and then addChild'd and removeChild'd them as I needed to and placed their x and y on addChilding.
i have an input textfield and when i press a button on the stage, i need it to indent the paragraph were the cursor is located. whether its selected text or not.i've been trying to figure this one out for almost a week now. and i can't seem to find what i need. i'm sure theres an obvious solution that i'm overlooking
The problem is: when the game starts, "SPACE BAR" is working fine and changes the game from day to night. When the game ends and I press restart, the SPACE key is not working. On the third time it works, on the fourth not and it follows that way. Every second time that I play the game, the SPACE key doesn't work.
The game initializes the player and sends him as a parameter a stage object and the player listens for KEY_UP.When I press restart, the game runs the init() function again.Below there are the Game.as and Player.as classes.
I have got a movie clip moving up the stage and when I press the keyboard I want it to come back down to its starting position on the bottom of the stage. What code do I add to the following?
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
On the stage I have buttons that should load different swf. Usually I should put all the code on a single "action" layer. But, it is not what I want to do I have a movie clip that I want to play before the loading ( button click - movie clip - loading the swf).
So I put this code at the en of the movieclip: var mLoader:Loader = new Loader(); var swf; var mRequest:URLRequest = new URLRequest(swf); function startLoad() { mLoader = new Loader(); [Code] .....
For the scenario lets consider Car to be the highest SWF(stage) inside I load tyres. Inside tires I have rims. Now if the rims need to be positioned relative to the stage (car body) how can I do that? Inside rims if I write stage and load it results in an error.
I'm familiar with using arrays with for loops, where the buttons are created dynamically.However I'm building an application with calendar month grids, where maybe half the dates are clickable. How would I use an array to address these buttons so I don't have to write code for each individual button? Or is there a better way than using an array to keep my code as simple as possible?
I wanted to make each button load an swf.How do I connect a button to loading a swf? contentButton1.addEventListener(MouseEvent.CLICK, N); function N(e:MouseEvent){ var request:URLRequest = new URLRequest("N-Infant.swf");var loader:Loader = new Loader()loader.load(request);addChild(loader);
Anyhow, I have a few buttons (six of them) to scroll from left to right non-stop via looping. Those buttons are in the up state. What I want to achieve is that when someone hovers over one of the buttons, the entire scrolling temporarily stops and perhaps the hovered button becomes larger as well. I'm sure you've seen something similar on ebay listings before shown as slideshows.
my Over buttons are managed via movie clips, but not the Up state buttons.
I want to have serveral different words to appear on my stage with their own buttons. Here is my code for your review. Process.visible = false; Cycles.visible = false; stop(); function playMovie(event:MouseEvent):void { play(); [Code] .....
I have several buttons on stage (8), and I want to add a slighty different action for everyone of them. How do I do that, All the buttons always get the last past of the "FOR"..
Code: function loadThumbs(eventoUrl:String) { for(i=1; i<=9; i++) { temp = this["thumb_"+i]; with (temp) { image = "fotos/"+eventoUrl+"/thumbs/"+i+".jpg"; loadImages(image, temp); temp.onRollOver = function() { this.play();}; temp.onPress = function() { this.loadImages(image, image_big); };};};}; loadImages() is a LoadMovieClip type function I created.
how I could resize my swf stage with buttons and change the look of things, without affecting what's in the webcam / chat area of something similar to this: [URL]
I have several button symbols on my stage, some of which are enabled while some are not (I enable/disable them using actionscript).I just need a way to access the "enabled" property of all the buttons on the stage so that I have an array which has the full path of enabled buttons and another for the unenabled buttons. That way, in case I have to lock the screen by disabling all the buttons, I'll know which ones to enabled once I turn them back on.
I'm familiar with using arrays with for loops, where the buttons are created dynamically. However I'm building an application with calendar month grids, where maybe half the dates are clickable. How would I use an array to address these buttons so I don't have to write code for each individual button? Or is there a better way than using an array to keep my code as simple as possible?