ActionScript 2.0 :: Targeting Mess - Blank Movie Clip Created In The Preloader Swf
Jan 1, 2004
I have a looped sound and some components in my main movie (scroll bar) which for some reason is really bogging down my swf and causing the preloader bar not to show up until like 46% or something ridiculous.
So I am trying to solve the problem by having a preloader swf as suggested by Kode in this thread. However, now all my targeting is messed up in my main movie. Everything that was _root has to change but I can't tell what to load it into. I tried using _parent, _parent._parent, _root.container_mc (which is a blank movie clip created in the preloader swf that main is loaded into after the preloader is 100%) and others but nothing works. Even the simple looped sound which was originally just _root.backsound.start(0,999) can't be targeted. how to target things on my main stage based on the preloader swf?
View 14 Replies
Similar Posts:
Jan 27, 2005
I am having trouble targeting a movie clip that was dynamically generated from information in an XML document. Basically, what I want to do is be able to manipulate the movie clip after it was generated by the initial function. Unfortunately, I can't figure out how to properly target the clip even though I am pretty sure I have the proper title and location (tried both _root. and _level0.).[URL]the string at the bottom - "_level0.mc_image2" - is the name of the last movie clip (with an image inside) to the right.
View 1 Replies
Oct 6, 2009
i'm creating a menu where i place movieclips dynamiclly:
for each (var button:XML in XMLgothrough) {
//Create a new menu item
var menuItem:MenuItem=new MenuItem ;[code]....
but i keep getting a ReferenceError: Error #1065: Variable menuItem1 is not defined.at MethodInfo-359()error.
View 14 Replies
Jan 27, 2005
I am having trouble targeting a movie clip that was dynamically generated from information in an XML document. Basically, what I want to do is be able to manipulate the movie clip after it was generated by the initial function. Unfortunately, I can't figure out how to properly target the clip even though I am pretty sure I have the proper title and location (tried both _root. and _level0.).
I've put the files I am working with online for reference:[URL]
If you load the swf [URL] ) the string at the bottom - "_level0.mc_image2" - is the name of the last movie clip (with an image inside) to the right.
Also, if you look at the code, you'll see this is a modification of the portfolio from: [URL]
View 1 Replies
Mar 11, 2009
I'm trying to work with movie clips as buttons here but am getting very frustrated because I don't know where to really look for help in terms of google search terms. I have a movie clip button which has some activity whilst it is rolled over. I want this mc button to load 2nd movie clip inside it. At the moment the second movie clip is loading automatically (only want it to load when first mc button is hovered over) and 2nd mc disappears when hovered over. I need to be able to hover over 2nd mc as there are buttons on it! Perhaps I am going about this in totally [URl]
View 4 Replies
Jun 27, 2006
if it is possible to load a movie clip into a blank movie clip?On my main timeline I have a button (mode_btn) and I want to be able to click it and load another movie clip (mode_options_mc) into a blank movie clip I have (mode_empty_mc). Is this even possible?
View 11 Replies
May 9, 2010
im currently trying to target frame 2 and a movieclip on that frame This works. But now im trying to target a movieclip inside a movie clip.This code works when trying to target one movieclip.cal.onPress = function() {gotoAndPlay(2);message.total = unit1;}how can i edit that code to find another movieclip inside the movieclip message?
View 6 Replies
Feb 26, 2011
I am trying to target a movie clip within a movie clip.
I have a movie clip on the main stage with an instance name of a
I have the following action script on it
on (release) {_root.a.gotoAndStop(2);
}
So on frame 2 of a I have a button (instance name b) which also has two frames and a stop action on frame 1. All I want to do is click on the button and make it go to frame 2. It should work but it isn't Here is the actionscript on the button (b) on (press) {_root.a.b.gotoAndPlay(2); }
View 2 Replies
May 9, 2010
Im able to link to a movieclip inside a movieclipUnfortunately one of the movieclips now are a scrollbar and scroll. Now the actionscript isnt working?cal.onPress = function() {gotoAndPlay(2);message1.contentMain.message.total = unit1;
View 17 Replies
Oct 10, 2002
I'm still a rookie in flash and I'm having a little bit of trouble with some actionscript. I've gotten as far as placing the buttons and assign the correct actionscript for them to work. Everything is working fine with the buttons activating the external .swf into a blank movie clip in the main movie. Ony thing is, I would like the external movie assigned to the first button to open once the movie is loaded.
I thought by using the same actionscript i used on the button {and removing the on(release) tag} and placing on the first frame of the main movie would help, but it doesn't.
View 2 Replies
Mar 26, 2006
Q1) The registration point of a created clip is top left - my question is how can I dynamically change it's registration point - say to center center?
(I am trying to attach a movie clip to a created clip and I wanted it to be centered inside the container - a related sub-question, how can I find the x-y coordinates of the attached movie clip within the created movie clip?)
Q2)When I tried to create two different movie clips, I found I had to create them at different depths, else the first would load and the second would not. Why would that be so? I'm on MX 2004 Pro.
View 4 Replies
Oct 7, 2003
I have a movie clip in my main movie. The movie clip has buttons on it that tell where the play head should go in the main movie. I'm using this script;
[AS]
_parent.gotoandStop(28);
[/AS]
The play head goes to the right frame but it keeps playing even though I've specified it to "gotoAndStop" at frame 28. I've tried using labels and addressing it that way but same thing happens.
View 2 Replies
Oct 7, 2003
I have a movie clip in my main movie. The movie clip has buttons on it that tell where the play head should go in the main movie. I'm using this script;
[AS]
_parent.gotoandStop(28);
[/AS]
The play head goes to the right frame but it keeps playing even though I've specified it to "gotoAndStop" at frame 28. I've tried using labels and addressing it that way but same thing happens.
View 2 Replies
Feb 24, 2010
I cant get the swf to load into my placeholder movieclip "gallery_ph"... instead it just opens a new window with the loaded swf inside.
here is my xml:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<NAVBAR>
<BUTTON NAME='Neuro' LINK='swfs/gallery/atlas/neuro.swf' TARGET="this.gallery_ph"/>
</NAVBAR>
[Code].....
View 2 Replies
Aug 25, 2010
how would i go about using a draw code(Code that allows users to draw within the flash) and restricting it to a certain size and location on the movie? for instance a 75x75 box located at xPos=200 and yPos = 150?
Like would I have to use a blank movie clip for the position? then make an invisible box within it to restrict drawing area?
View 1 Replies
Dec 16, 2009
how to target to the another movie clip to animate?I was using code as below but the output is not really correct.It seemed something is duplicating (I just suppected)
PHP Code:
import flash.display.MovieClip;
var mc_Ripple:MovieClip = new Ripple_Text() ;
[code].....
View 7 Replies
Mar 18, 2010
this is weird, ive tried all my resources and cant come up with the solution.
heres the heirarchy
Main Stage
sampleStage_mc (this contains all my samples)
sampleStageNavigation_mc (this is the movieclip that houses my buttons)
............................................
what i want to happen is when you click on one of the button_mc, i want it to target a frame label on the "sampeStage_mc" timeline.
heres my code:
Actionscript Code:
toshibaBtn_mc.addEventListener(MouseEvent.CLICK, toshibaSample);function toshibaSample(evtObj:MouseEvent) { parent.gotoAndPlay("toshiba");}
theres four timelines, here is the outline
button_mc (i click this and it runs the code in sampleStageNavigation timeline)
sampleStageNavigation_mc (timeline that holds the ActionScript and the button_mc)
sampleStage_mc (timeline - this is the one I need to access)
main stage (timeline)
View 10 Replies
Jul 28, 2005
I have three small images on the stage in frame 1. I also have an invisible button symbol over one of the images and have given this button an instance name. On frame 2 there are the same three images but with a lower opacity level and also on this frame 2 is a movie clip instance containing an animation. I need an onRollover event connected to the button on frame 1 so that when the user rolls over it, the playhead jumps to frame two and shows the images and also plays the animation in the movie clip.
I've applied the following code to the button symbol on frame 1:
stop();
specialised_btn.onRollOver = function() {
gotoAndPlay(2);
}
and I've also put a stop action on the last frame of the animation within the movie clip in frame 1 so that it won't loop.
The problem is that when I test the movie, when you roll over the image on frame 1 it just continually loops between frames 1 and 2 - it doesn't play the animation on frame 2 as I thought it would.
View 3 Replies
Oct 20, 2004
I have a movie clip on the main timeline calledbg_graphics, I want to target a movie clip within that movieclip called bg1_mc. to gotoAndPlay frame 2.The bg_graphics clip goes to a random frame within that movieclip, there are 3 frames. 1st has bg1_mc, 2nd has bg2_mc, and 3rd has bg3_mc. How could i determine which file to gotoAndPlay frame 2 in bg_graphics when i don't know exactly which frame its going to be on, let alone target a movie clip within a movie clip.I used this code to generate the random frame
function randomBg() {
//generate random BG based on random frames within the MC
randFrame = random(3)+1;[code].....
View 7 Replies
Jun 21, 2009
Is there a way to make a movie clip based on a blank object?the way i usually make one is by drawing a rectangle and making it a movie clip.
View 1 Replies
Feb 10, 2010
Trying to target a button inside a mc in order to trigger a swf.the mc is called "nav_btns"the button is called "contact_btn" The swf has the same name as the listener in order to repeat the function with multiple swfs. my problem is, i'm getting an error of an Access of undefined property with my mcI geting an error:"1120: Access of undefined property nav_btns.
my code:
var Xpos:Number = 461;
var Ypos:Number = 294;
[code].....
View 1 Replies
Jun 10, 2009
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"));
[code].....
View 1 Replies
May 27, 2005
The swf successfully loads where I want it to, but I'm having trouble moving the new movie clip to a specific keyframe in the timeline.
Code:
on (release) {
_parent.productImage.loadMovie("./flash/BT_Closeup.swf");
_parent.productImage.gotoAndStop("set2");
}
View 1 Replies
Jul 29, 2009
In what combination of as2 code would instruct a preloader to recieve bytes loaded and bytes total in addition to loading a external swf file into a blank movie clip? I've seen countless issues regarding the same problem but still haven't goten a clear answer. I dont want to use the video player component standard on Flash. I want a preloader to preload a external swf file and play it inside a movieclip.
View 5 Replies
Jan 28, 2003
1)I was able to load an external .swf file into a blank movie clip (A TARGET CLIP WHICH I CREATED using createEmptyMovieClip) 2)Also by placing a button on the stage I was able to remove the movie clip
BUT I WOULD LIKE TO BE ABLE TO KEEP ALL MY CODE IN THE FIRST FRAME. I would like to Remove the Movie without putting the code on the button. But it didn't work.
Here is the code on the button that Does work
[Code]...
View 4 Replies
Jul 28, 2008
I have a function that attaches a movie clip to the stage each time at a new level.
myLevel++
attachMovie("myMovieClip", "instanceName"+myLevel, myLevel)
}
At the moment it works just fine but I want to target specific instances and I can't work out the instance names.I am trying this..
instanceName[myLevel]._x = 400
View 9 Replies
Nov 17, 2009
I'm having some issues getting a button to work from ctionScript.I created a movie clip and export it. Added it to stage and that displayed fine. I then added some text on the movie clip, converted it to a button and exported it... but then hit a wall. The button is in the library, but it doesn't like the ' import fl.controls.Button;'
Here's the code:
package{ import flash.display.*; import flash.events.*; import fl.controls.Button; public class coffeeAS extends
[code]......
View 9 Replies
Oct 12, 2006
I have an XML file that I am pulling thumbnails from. I would like these thumbnails to be links, but for some reason onRelease does not work on my movie clip created with createEmptyMovieClip.
I have this theory that my onRelease function is being called before my thumbnail image is fully loaded, but I may be completely wrong. Here is some example code of what I am trying to do.
[Code]...
View 3 Replies
Jul 8, 2009
here what i wanted to say i have created sq_thumb movie clip. then i linkage sq_thumb with class name "thumb". then i double click sq_thumb in the library to go to inside sq_thumb timeline. then i write following code
[Code]...
View 4 Replies
Jan 22, 2009
So I have a movieclip that I am dynamically adding to the stage when a user clicks a particular button. There are multiple button that each result in the movieclip getting attached to the staged and scaled to a different particular size. Instead of attaching a new instance of the movieclip every time a button is clicked, I only want to attach a new movieclip the first time one of the buttons are clicked and then scale the dynamically added movie to the size specified in the functions for all of the subsequent button clicks. To be clear, I want to attach the movieclip on the first click and then scale it for all of the subsequent clicks.
Here is the code I am using for the buttons:
ActionScript Code:
stop();
videosBTN.onRelease= function() {
[Code]....
View 4 Replies