ActionScript 2.0 :: Loading MovieClip To Start Invisible?
Dec 5, 2009I have a moviclip thats visibility is controlled by a button, but I need the mc to start invisible instead of visible.
View 2 RepliesI have a moviclip thats visibility is controlled by a button, but I need the mc to start invisible instead of visible.
View 2 RepliesI have a simple FLA that pans through an image up/down/left/right. There are several hotspots (transparent buttons) that popup simple captions when the user rolls over them and launches a URL when clicked.
The captions are actually one caption that I dynamically write text to, size, and _x, _y locate when the rollover event occurs.
The caption (cap) is a rectangle and text box MC symbol which is grouped with the graphic and buttons as another MC symbol. It all works great, panning, captions.
The problem is, when the mouse is first moved, the caption box appears over the graphic. I want it invisible until a rollover occurs. I have tried a setup function action in the first frame that performs cap._visible = false;, which did not solve it. That syntax works fine following the first rollout.
on (rollOver) {
cap.desc.text = "Mr Reynolds";
cap._width = 7*cap.desc.text.length;
[Code].....
This is the third thread I've written for my current project (1st was answered perfectly, 2nd failed [but I still figured it out anyways]) but I'm not sure if there is a solution to this problem. I can't really explain my problem, so once again I've included a helpful animation to show you what I mean. Bear in mind that the pale-blue box represents the movie clip's borders, and those borders are usually changed to include the animation (instead of the borders moving with the animation, the borders get bigger).
For the animation problem, I've already got a solution: create an invisible movie clip that has the exact size and shape of the animated movie clip and make it follow the movie clip as it animates, and make the hitTest check the invisible movie clip instead of the animated one. As for the rotation problem, well, I don't know how to fix it. Is there a way to change that?
Is there any ways to set a movie clip(item2) invisible but set another movie clip which located inside item2 visible?
View 1 RepliesI have a moviclip thats visibility is controlled by a button, but I need the mc to start invisible instead of visible.
View 3 RepliesI'm making an interactive book and I would like to make my "Text"-layer invisible when I start the "Turn Page"-animation. It's either that, or I'm gonna have to put a code for EVERY 23 MoveClips with the Texts in them, since I'm using the same "Turn Page"-button.
View 2 RepliesI have two xmls, xml1 and xml2. Both have same structure, only data are different. Button 1 loads xml1 and button2 loads xml2. Both calls same function to load XML. First i press button1, so xml1 starts loading, but if before xml1 is completely loaded, i press button2, xml2 also starts loading. If for some reason the xml2 loads first i get data from xml2. But when i look at the bandwidth profiler in flash , xml1 is still loading. When xml1 is loaded it will replace data from xml2. SInce i pressed button2 last, i would want data from xml2. So is it possible to stop loading the previous xml when i start loading another xml?
View 1 RepliesI'm using AS2 (Flash CS3). I have an invisible button that on rollover should play a movie clip. Within that movie clip I need it to play frame 33. However, when I use the following code it does absolutely nothing. Instance name of the movie clip is "flavorIcons".
on (rollOver) {
flavorIcons.gotoandPlay(33);
}
I'm using a MOUSE_OVER event to display an invisible movieclip...so when user hovers mouse over movieclip it tweens from 0 alpha to 1 alpha. However, I'm having problems with it. The movieclip is a MusicPlayer, which contains other movie clips within it. When I move the mouse over the music player's background it appears....I then move the mouse over the Play button and briefly the MusicPlayer disappears then reappears. This happens every time I move the mouse to different elements of the MusicPlayer? It quickly flashes invisible, then becomes visible again and its a pretty annoying effect.
Are there any alternatives to the MOUSE_OVER event? I was thinking about maybe drawing a rectangle that covered the area of the music player but was separate to the music player, so whenever the mouse was within the rectangle's x and y coordinates the MusicPlayer would become visible.
I have a button in a movieclip. Mc is activated by an invisible btn, on the timeline.... I want the btn "thumb6" in the movieclip to go to the frame called "img1", which is placed on the timeline also.
View 5 RepliesI am loading jpg's, and I want to make a Movieclip('MC') invisible when there is no jpg to load (because it just is not there). How can I detect if there is no jpg, and then make the MC invisible? I think I should use onData, but I can't make it work.
[AS]
function laadNail3(foto) {
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
[Code]....
I have a movie clip which has a dynamic mask applied to it to provide a scroll effect.
The mask is generated with the 'create blank movieclip' method.
So the mask is a movie clip over a movie clip.
I hunted for invisible text last night and found this link [URL]
which implies it's to do with the mask being on a layer, but from what I can gather from reading the AS, it's not it's on a new blank movie clip.
Also many other links I found all imply it's an issue with dynamic text and the font needs to be embeded, but the underlying text is not dynamic, it's static normal text which has been used in a movieclip to create animated rollover/out effects.
So why is the text missing when the content is scrolled into view?
If you hover over where the text is supose to be, the animation plays and the text becomes visible?
Also the arrow graphic next to the text which forms part of the animation does display; it's just the text portion which is invisible?
I have an invisible button that on rollover should play a movie clip. Within that movie clip I need it to play frame 33. However, when I use the following code it does absolutely nothing. Instance name of the movie clip is "flavorIcons"
on (rollOver) {flavorIcons.gotoandPlay(33);}
Is it possible to create a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
View 3 RepliesI have a MovieClip of an bicycle, and I've attached and event listener for mouse clicks on that movieclip. The mouse clicks events are raised when I click on the bike, but I really want to be able to click somewhere in the entire region of the movieclip's rect (to make it easier for the audience this is for to be able to click).
View 1 Replieshow do I keep something invisible until the frame of it tween starts then keep it visible until its unloaded?
onEnterFrame = function()
{
a1._visible = false;
}
if(Key.isDown(Key.SPACE))
{
a1.gotoAndPlay(2);
a1._visible = true;
}
I have a website that loads external .swf files using XML. People viewing my website would have to wait a while for my .swf's to load as some are 5mb plus. Is there a bit of script I can use to say start playback of my .swf when it has loaded 50% of the file?
View 5 RepliesI am a flash newbie, how can I get the flash to start playing before it is finished loading on a website? I embedded a FLV file into a flash and I'm going to export it as a SWF, I want it to start playing the movie before it's done loading so people don't think that it's not working.
View 2 RepliesCreated a text move clip that I have added Motion Tween, It works when I Play. But when I test Movie clip it does not work. What is the action script code to have it start when the it is loded in test.SWF?
View 6 RepliesI need to load all image thumbnails and some other things ( which are loaded externally with xml) at same time, while displaying the percentage of them. The problem i am having is that flash cant get their totalBytes in start, the total bytes of all of these items is rising while the loading is in progress.So the percentage always goes up and down. To understand better what i am meaning here is the link to the preview ( note that it might have bugs as its still not finished ) : http:[url].....You can see last textfield under fps metter is TotalBytes , and the one above total is loadedBytes.
I tried using GreenSock's PreloadAssetManager ( http:[url].... ) but it takes to much time to START loading, it stays at 0% for more than 5-10 seconds.So i cant use it.The only thing i can think about is putting their size to xml and then istead of using getBytesTotal, ill use the data that i load from xml.. ?
I try to execute a code on my Stage, the problem is when I declare my own class on which they load the file (xml) the code start in the background.I tried to add a listener in the custom class for Event.COMPLETE but it doesn't work because it only affect the custom class, not the whole movie.I tried something like this:
Code:
var xmlLoad: XMLLoadData = new XMLLoadData("navigation.xml");
var menuBox:MenuBox = new MenuBox();
[code].......
I've got a configuration xml file that I need to parse for values before a flex application loads. I've created a static class that allows for the values in the xml config file to be retrieved. I'm initializing this class when the application first loads but as the xml file is loaded with a Loader class that loads a synchronously the class is being asked for values before the xml file is actually loaded - so it is throwing a error. Is there a way to load this xml file synchronously. We cannot embed the file as a class variable as we need to be able to change the values remotely.
View 5 RepliesI try to execute a code on my Stage, the problem is when I declare my own class on which they load the file (xml) the code start in the background.
I tried to add a listener in the custom class for Event.COMPLETE but it doesn't work because it only affect the custom class, not the whole movie.[code]...
I am making a website and am having a very hard time with the actionscripting and external loading involved. I have managed to auto load the background externally but the problem is that once the bgload movie(which is loading externally in main.swf) is loaded, it goes back to start. make the "bgload" movie stop right there after its played once....
View 10 RepliesIn my actionscript I have a button that sends the playhead to another scene. The scene has a movieclip that I want to run as soon as it is accessed but I can't get actionscript to run the video clip.
View 4 RepliesI looked up MovieClipLoader tutorials and finally came up with the code:
[code]...
myMCL.loadClip("filename.swf", mcholder); //mcholder is the movie clip holder placed on stage manually
[code].....
I know this is probably a easy change but i can't seem to figure it out.I want the code below to start playing at 25% and continue loading as it plays,
Frame 1 AS:
bytestotal = getBytesTotal();
ON A MOVIE CLIP:
onClipEvent(enterFrame){
_root.bytesloaded = _root.getBytesLoaded();[code].....
I am working on a tabular file that when you click on one of the tabs (there is 7) you view the content of that layer.
The code I am using works fine:
on (release) {
land._visible = true;
Tab1._visible = false;
[Code]....
but when you view the "land" layer, go back to another tab and go back to the "land" layer it doesn't reload and start at frame 1 but the last frame you were at.
I desperately need it to "reload" when you release on the action above and to GoToAndPlay frame 1 but whatever code I try it won't do it.
I insert to timeline modified to movie clip intro. First of all I want close automatically intro. Second of all I want delay start webpage after intro. I tried many options, but without good result. Below I show my as2 in frames.
First Frame:
ActionScript Code:
container_mc.loadMovie("myintro.swf");
(stop);
isstopped = true ;
_root.onEnterFrame = function() {
trace(secondScene);
[Code] .....
I have been playing with this idea for a few hours and now I'm completely miserable,I have two movieclips, mc1 & mc2. mc1 is palying a simple animation.I want to write a script so that when you rollover mc2, it checks mc1's frame number. if mc1's frame number is for example "10", it should play its own animation. otherwise is should wait until mc1 reaches frame "10" then play mc2 animation.
View 1 Replies