ActionScript 3.0 :: Loaded MovieClip No Longer Remain Interactive
Aug 12, 2009Surely this is not normal? I haven't had the need to do this in AS3 yet, and the first time I try it, the buttons don't work. I don't even know why?
View 1 RepliesSurely this is not normal? I haven't had the need to do this in AS3 yet, and the first time I try it, the buttons don't work. I don't even know why?
View 1 RepliesIt's about a website where a Photo Gallery exists. It all works fine until I press the Gallery button and then try to go elsewhere. The photos not only they remain on the page (the text and other images load normally on the current page, but under the gallery photos), but if I press the Gallery button again after pressing another button, it keeps loading those images over the previous ones. The code:
// <imports>
import flash.filters.*;
import flash.display.BitmapData;
// </imports>
[Code]....
I have a few MovieClips that are motion-tweened via the timeline. I have a function that places a glow filter on the tweened movieclip. The glow works, but... the movieclip no longer moves. I found that if I tween via actionscript (AS3) that it does tween. However, I have about 1000 movieclips, all w/ different tween properties.Is there a (much easier) walk around or am I going to have to code for a few days/weeks?
View 1 RepliesThe movieclip variables I create in the xml loop no longer exist after I load a picture into it. Specifically books[].url is undefined when you click the movieclip. What's going on?
[Code]...
Recently I've been developing a new site that runs 100% with noScale. What I'm aiming to achieve is the ability for the user to move their mouse up and down on the Y Axis to effectively scroll the site. (Without having to click). I've tried adapting the Interactive Image Panner Actionscript from the Tutorial on kirupa - but it doesn't seem to be working quite right I've changed all the X Values to Y.
Code:
stop();
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1); };
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _ymouse/Stage.height;
[Code] .....
The zip containing the fla and html files are located here - [URL].
I have 12 movieclip buttons which each contain a question. When you click on one, the answer appears. I need the answer to remain on the screen. On that same frame, there's a button for "more information".When that is selected, it goes to another frame within the mc, and more info appears. However, it is covered up by the other 11 buttons from the main screen
View 2 RepliesI am trying to create a series of buttons that when finally "clicked" will simply stay on or in their "hit" state. This is not for a web page at all, but for an interactive SWF. Now, I've come to the conclusion that I can't do this with a button graphic so I've created a four state button movie clip with the aid of some online tutorials. Unfortunately all the tutorials end with a URL reference and I simply want the button to function like a button until it's clicked... and then freeze there until the SWF is run again.[code]
View 19 RepliesI'm loading an external swf that is a button to close other loaded movies. I want it to stay above all the other movies at all times so that the user has a way to close them and go back to the main stage. There are buttons on the stage that load external movies and the close button movie loads automatically. All of the movies load in fine but once I load in a movie from a dynamically created movieclip button on the stage, it covers up the close button movie.The following code is where I dynamically load movies from the dynamic movieclip buttons and then after that is where I load in the external swf for the close button.
//Dynamically assign external movies to load from
//the dynamic buttons
for (j=1; j<holderArray.length; j++) {
[code]...
First,I have a menu screen for my game, but for some reason the buttons remain during the game (not visible), I think I need to use swapDepths but I'm not sure. Second, I need to make a restart button from the Game Over screen but I'm not sure of the coding I need to use,would using something like this work?
Code:
on (release){
_root.gotoandPlay ("Menu");
}
or would that only work in replaying a movie?
Is it fine to display the output of Array.toString() to the user, or is there a possibility that the string format could change in future versions of ActionScript 3 or other compilers?
View 3 RepliesI have a simple movie that just runs to the end and stops. When it stops, I want an object to appear and remain visible while the movie is sitting there in its stopped state. Trivial. My current model of the Flash stage is that if you drop an object onto the stage, it's there for the whole movie and it's up to you to move or hide it to get what you want. (That is, you can't add an object to the last frame of the movie, at least without bringing ActionScript into play.)
So, as far as I can tell, the only way get what I want is to add the object to the stage, make it into a button, and use alpha control to hide the object/button until the last frame of the movie, when the alpha goes from 0 to 100. This works, but I'm filled with the feeling of "this has to be overkill". I'd have the same feeling if I started the movie with the object off-stage and moved it on-stage in the last frame. Is there a more reasonable / lighter weight way to do this?
I have a flash quiz that I created. The file is an external swf loaded on top of another flash swf. The quiz is all radial buttons and drop down menus. Once the user choose which answer they feel is correct they click submit. Before they click submit they have an option to close the window. What i want to happen is if they close that window and return I want those selected answers to remain or even if they submitted before; i would like for those answers to remain.
View 5 RepliesI am trying to create a drag and drop tutorial by building a chemistry set.
The object of the tutorial is to drag and drop the appropriate instruments onto the target to build the kit.
I have the chemistry stand which had been designated as the target and five instruments which the user can drag and drop though only one will connect to the stand and send the user to the next frame. The instruments that are not correct snap back to their original position.
This process continues over 6 seperate frames.
The whole drag and drop process works fine, the only issue is that when the user picks up the wrong instrument and it snaps back to original position, and the user then picks up the correct instrument and send the user to the next frame, the wrong instrument (only the one that was picked up) is behind all the other new objects.
How do I get the wrong object that was picked up in the previous frame to not be in the new frame?
I have also included the actionscript for both the correct and and incorrect instrument.
Correct Instrument:
package Chem.DragDrop
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
[Code]....
I got a project containing 4 movieclips to be duplicated by random and placed on a certain position on stage.all movieclips are placed on top of on another.the problem is: already placed movieclips don't remain on stage - they get replaced by the next movieclip duplicated in.How can I make the already placed clips stay on the stage?
View 1 RepliesI've built my first flash application and it's very close to being finished. I have a problem with two buttons that are on the are on the left and right of the stage. When the browser is enlarged these buttons don't remain on the edge of the browser. Not sure if I explained that very well so here is a link to the application [URL] if you make you browser wider you will see my problem.
View 2 RepliesI got a project containing 4 movieclips to be duplicated by random and placed on a certain position on stage.
all movieclips are placed on top of on another. the problem is: already placed movieclips don't remain on stage - they get replaced by the next movieclip duplicated in.
How can I make the already placed clips stay on the stage?
I'm creating a simple shooter game and I've replaced the mouse cursor with a custom one. It works good but my monsters appear above the cursor. How do I make the cursor always remain on the top most level/layer?
View 15 RepliesI have 2 images, a base and a top. I want the top to rotate to face an object but the base to remain constant. I can get close but when the top rotates it is rotating around the corner of the rectangle it is placed inside of rather than the center. Here's the AS code for the object.....but the important elements are bolded.
public class Turret extends MovieClip{
private var _root:MovieClip;
[Embed(source='mortarbase.png')]
private var mortarBase:Class;
private var mbase:Bitmap = new mortarBase();
[Code] .....
I have a flash panorama that has hotspot links to pop-up windows that contain more information about the object. Right now if you are in fullscreen mode and click a hotspot you are automatically kicked out of fullscreen mode and the pop-up then opens. Is it possible to have the pop-up open and have focus while in the background the panorama is still in fullscreen mode?
View 2 RepliesBefore I get started, I would like to point out that I'm just getting started in flash, so this may very well fit better under the newbies forum. The goal: I'm trying to put together a countdown timer, which can count down from preset amount of time to zero, then trigger an announcement event, as well as an event at 30 seconds, 1, 2, and 3 minutes left. Later on I hope to add in a setup for this to turn into a Debate timer with start/stop/next speech button, but for now, I just need to figure out the timer bit.
[Code]....
I'm trying to create a simple quiz with a few questions, the code I have below doesn't seem to work. It comes up with my final score as -15 all the time, its not even checking to see if the answer is correct, as soon as I load the movie the Output comes out as -5 -10 -15.
quizBut.onRelease = function() {
totalOutput_txt.text = "Your final score is: "+score+"/30.";
};
score = 0;
if (_root.answer1 == "flush") {
[Code] .....
Am using the XML Photo Gallery tutorial (with grid thumbnails) - it was a slight modification by a Kirupa user here:
[URL]
I have a problem though. I have several sections that you visit from the main page, and one of these is the photo gallery. However, when I visit this page and then goto any other section of the site, the thumbnails remain visible.Thumbs still visible when going to other sections:My guess is that the actionscript needs to say somewhere - hide or get rid off thumbnails when moving out of the gallery?
Here's the code:
cliparray = [];
columns = 3;
spacex =50
spacey=50
[code].....
I have an object that gets attached to the stage everytime I click (like a side shooting game). What I want is the object to have a speed in a specific direction. I got it to work by the code-
Code:
if (total_bolt_no>0) {
var bolt_name="bolt"+total_bolt_no;
var bolt_n:Sprite=this.getChildByName(bolt_name) as heroweapon;
[Code].....
The problem that arises is that when I spawn another object the previous one becomes still. I tried using the for loop but everytime I click the angle also changes, thus changing the speed of all attached objects.
what I'm trying to do is accessingsnapText = scrollPane.source.textSnapshot;from an external swf. I've tried:
trace("-->: "+scrollPane.source.textSnapshot.getText(0, 1000));
trace("-->: "+myLoader.content.textSnapshot.getText(0, 1000));
trace("-->: "+mc.textSnapshot.getText(0, 1000));
[code].....
Im making a movie with a menu that loads movie clips according to which menu is selected simple enough. However, the newly loaded movie clip also needs to allow the user to load another movie into the main movie effectively swapping the first movie clip with the second. This needs to be done without using the main menu.
View 6 Repliesknow how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip,
View 3 RepliesI am importing a PSD file with a background layer, which I want to remain static throughout the movie and also several other layers which I am going to animate. Here's my problem...I cannot figure out how to get the background layer to remain visible throughout the movie once I create tweens for the other layers, without manually copying and pasting frame 1 to every other frame...yikes! There must be something very obvious I am not doing, yes? It probably goes without saying that I am a first time 'designer'.
View 2 RepliesI am trying to get a stationary object to follow the mouse but remain in its location. Example: i am trying to get the center of a compass to follow the mouse around screen while remaining inside the compass. i have only found out how to have it chase the mouse but not remain on a fixed point and rotate.
View 7 RepliesI have a flash menu that I'd like to use on a HTML page. I'd like to make it so that when a user clicks one of the buttons, that button will remain highlighted on the page that uploads. An example of this would be at [URL]. How is this possible with action script? I was told in another board that it had to do with variables, though the person did not give a clear explanation that I could understand. I'm new to action script but am learning bit by bit!
View 6 RepliesI am trying to get a stationary object to follow the mouse but remain in its location.i am trying to get the center of a compass to follow the mouse around screen while remaining inside the compass. i have only found out how to have it chase the mouse but not remain on a fixed point and rotate.
View 7 Replies