ActionScript 2.0 :: Slider Menu In The Swf Stays Inside The Target Movie When Loaded?
Feb 14, 2004
When I load a .swf into a target movie that I have on my main page, it is all wrong, the slider menu that I have loading into the target movie, does not stay inside target and it seems to reposition the slider menu to the x psotion of my main movie How can I fix this, so the slider menu in the swf stays inside the target movie when loaded?
FLA file is too large to attach, if needed I can attach it in pieces.
I am trying to make a menu that has a "slider" arrow at the top that points to the current button that you clicked. Right now I just have it so that if you click a button it changes the x position of the arrow movie clip to go over a certain button. I would like to create the effect where it moves slower to the different buttons and then it "springs" back and forth over the button getting closer and closer until it finally stops.
I have tried using some formulas that I found on the web, but I can't get the button to control the motion of the movie.[URL]
I have seven loops in total. I imported them into the library. i've put each of them in a seperate movie clip with the names loop1,loop2,.In those movie clips, the first (key)frame contains the action stop(); . The second frame is a keyframe too and from here on the sound starts. And of course they loop.Okay, now the buttons to control the movie (Prev, Stop, Play, Next) work fine, but let me explain the system i used. I used a var loopnumber and everytime you click Next or Prev, it '+'es 1 or '-'es 1. I also set a variable number_to_play = "_root.loop"+loopnumber, so you would get _root.loop--number--, where --number-- is 1,2,3,4,5,6 or 7. To actually play the sound, i used tellTarget(number_to_play) {gotoAndPlay(2)}.That's why i added stop(); to the first frame of those clips.how can i make a volume slider for those sounds inside my movie clips ? I've checked this forum already for questions like this but they don't use the system I use.
is it possiable to target/query a specific frame in a movie that i am loading into an empty MC...?
eg:
on (release){ if (loadedMoviePath._currentframe == 10); loadedMoviePath.MC1.play(); } loadedMoviePath - what would the path to the MC in the movie that has been loaded be? whatGoesHere.MC1
I am trying to load an external swf into a target. When the swf is completely loaded, I want to execute the next set of actions. I am trying to develop my flash websites so that no coding is done within the child swfs. So I would assume some code like this would work: _root.holder.loadMovie ("child.swf"); if(_root.holder.getBytesLoaded ==_root.holder.getBytesTotal){ _execute some other command; } However it doesn't work! So is there a way to detect when a specific child swf has fully loaded into a target (not _framesLoaded please!) and then set a variable to allow some other actionscript to kick in?
I am currently making an interactive Map, as i rollover to a certain continent, the continent will light up in a yellow highlight, afterward as i click on the continent the box menu will pop up on top of the continent, everything went fine until i browse around inside the box menu( the box menu is bigger than the continent,..wider) cause at one point the cursor will go to a certain area inside the box menu that is not on top of a part of the continent, That's when the yellow highlight went down. I was just wondering how do i make sure the yellow highlight on the continent stays on while i freely browse around the box menu( which is wider than the continent)
I made a Flash menu with this tutorial:[URL]The animation is different but the scripting is basically the same. I have animated buttons (They're actually movie clips though) that play one animation on rollover, and a different animation on rollout.
What I want to do, is have the button stay on the over state if it's clicked, (so people know what page they're on) until another button is clicked in which case it would do the rollout animation, and then the new button would stay clicked.
[URL]
But the scripting is different I'm not sure how to make it work with what I already have, and I don't really want to start over completely.
i have a mc with instance name "preload" on the first frame of the main timeline, with a movie clip instace "numbers" inside that, which contains 100 frames, with text 1-100, masking a gradiant. on the preload mc i have the following code:
ActionScript Code: onClipEvent (enterFrame) { var bytes = _root.getBytesTotal();[code].....
which goes to the 2nd frame once loaded marvelously... but it just stays at 1% the whole time until loaded... i keep tweaking it but no improvement.
I'm trying to use the scroll pane component for the first time, and I've spent most of the day getting nowhere. Based on my experience with other components and with loading content into movie clips, I expected that I would point my scroll pane to its content and be off and running, but that hasn't happened.
MainMove.swf is doing a loadmovie of SecondMovie.swfThe Button that loads SecondMovie.swf also disables other buttons in MainMovie.swfon (release) { _root.intro_btn.enabled = flase; loadMovieNum("SecondMovie.swf", 2);How do I Re enabled the Buttons in MainMovie.swf from a Button within SecondMovie.swf???
The whole problem is in the title. I have a gallery which looks a lot like coverflow. Each button in it loads a new gallery which is a swf with a new XML. The Problem is it only works on the first time i click on a button. The XML does not renew when i click on another button. It does load the new XML.
I'm using some action script code for a slide. The problem is that when a smaller image is loaded, the big one stays behind for one slide more. Maybe this happens with all slides but is only visible when a smaller one is loaded... What could be done? The code is:
I have a basic XML menu that dynamically attaches the menuItem instances to the stage. They are being attached to the root timeline, but I want to put all of the actionscript inside a movieclip called "menu1_mc". I am having some trouble with the proper syntax, because when I move the code inside of the movieclip, I can't get them to attach to the stage unless I still reference _root. I'd like them to attach at (0,0) of the menu1_mc movieclip.
i want to add new Menu in flash IDE and i want to add inside the adobe flash menu. How i can add new menu in menubar and new menu item inside the help menu. is it possible to do this things if yes then which language i have to use for this. what is way to start development and what is the .MXP file and how to create this .MXP file.
I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?
I have a very simple problem but I can't find the very simple solution to it. I've create an animated menu with animated movie clips inside to work as buttons. All the main buttons work perfectely but I've got just on button with a sub-menu. On this sub-menu I've placed an invisible hitarea button in order to place some gotoAndStop action. The thing is, it seems to me like this submenu hitarea are underneath something else (even though is the seccond layers right about the actions layers). I've placed a simple trace action whenever the mouse rolls over this area but I get nothing... Am I doing something really wrong? I'm losing all my hair already.
ActionScript Code: public function layoutLoad(e:Event):void { FlashConnect.trace("Display.loadLayout()");
[Code].....
It will compile but I get a "Cannot access a property or method of a null object reference." So I am not targeting right. I did double check my instance name is correct and in the root of the loaded SWF
I loaded this "slider" swf into a "sliderHolder" on my index swf file. inside that loaded swf there's a movice clip called icon_mc. I'm trying to target it and make it go to a specific y position within that loaded swf on a MouseEvent inside the index.swf. I can't seem to make it work.I triedI have traced sliderHolder and it says it's empty.I have traced sliderLoader and it gives a Loader.So how do I access the movieClip if I just have those two as references?Here's what I have and want to do in code:
Code: Select all var sliderLoader:Loader = new Loader(); sliderLoader.load( new URLRequest("sliding/ImageBar.swf"));
I'm running into an error accessing a movieclip from a loaded swf. Inside of my loadedMovie.swf file, I have a movie with the instance name of "bg". I want to change the width of that to movie clip when it is loaded into the parent movie but I'm getting an error saying "Access of possibly undefined property bg through a reference with static type flash.display:Loader."
Code: Select all/* ---------- LOADER ---------- */ var myLoader: Loader = new Loader(); myLoader.load(new URLRequest("loadedMovie.swf"));
I am attempting to have the main timeline move from a stopped position over a movie clip to frame 1, where my start menu is.The code I'm using does move the timeline but in doing so it somehow breaks the 4 buttons I have in frame 1.
My code in the movie clip: stop() function replayMovie(event:MouseEvent):void
I have a .swf that loads into a movie clip in a Flash website. The .swf has all necessary stops to play once and stop once loaded. When tested outside of the movie clip, it does what it should, but once loaded, it loops forever and the speed is faster. How do I make this stop looping? (This only happenes to .swf that were made in CS4, doesn't happen with older .swfs that were made in Macromedia)