AttachMovie Not Loading On Correct Level?
May 1, 2010
Code:
thumb03.onRelease = function(){
image_holder.loadMovie("images/03.jpg");
submenu01_holder.attachMovie( "submenu01", "submenu01_new",this.getNextHighestDepth());
getURL("./htm/03.html", "tracker");
};
So I'm working on a portfolio and I'm trying to load an image with a submenu on top of it that will let you click through a couple different related images. However, right now the submenu keeps loading underneath the image, so the buttons are there and you can see it a split second before the other image loads over the top. I tried manually putting in levels for the image and submenu and no luck.
View 4 Replies
Similar Posts:
May 27, 2007
I'm trying to make a file that creates an empty MC, then another MC is attached. Here is what I have, but it isn't working:[code]In the linkage properties for logoMC, I have the identifier set as "logoMC" and I left everything else blank.
View 1 Replies
Jan 26, 2007
in my movieclip, I have some objects that I have manually inserted (at design time). Then at run-time I call:
mc.attachMovie("box","box1",0)
note that I specify level 0. However, all the objects in the movieclip are still there. I thought they were supposed to be replaced, since they lie on level 0. Is that supposed to happen?So how can I delete whatever's in this movieclip? I also tried mc.clear() but it doesn't work either.
View 6 Replies
Sep 27, 2011
I may be confusing myself as I seem to do this whenever working with multi-D arrays... but perhaps you guys can set me back on the right track. I'm working on a flash application that is kind of a game. It's a memory test consisting of 10 blocks, it is very similar to the one shown in the video below.... but there are some differences where this one wouldn't for my situation. (apparently I can't link) The title on youtube is Spatial Span... it will be the first result if you search for "Spatial Span" The difference is that there are 2 sets to every level and you only need to get 1 correct to move onto the next level.
[Code]....
View 0 Replies
Mar 19, 2009
Need some help on getting my images to load in order rather than trying to all load at the same time. The code I am using at the moment is ..
Code:
var imagesx = new XML();
imagesx.ignoreWhite = true;
imagesx.load("content/xml/action.xml");
imagesx.onLoad = function (success)
[Code]...
View 1 Replies
Jan 20, 2011
I'm using an xml to feed content to a flash website, to load the content I use an array to create a new movie clip per item. What I need to use is for every item to have an action to attach a movieclip in the fashion of a modal window and load the content of this item into the popup movie clip. So far I've managed to get it to get it to attach the mc but the variables with the content do not load.I tried with this but it still didn't work:
_root.contenedorPop.attachMovie("popup", "popnoticia", this.getNextHighestDepth());
_root.popnoticia.onEnterFrame = function() {
_root.noticiaTitulo.text = "textoooo";
[code].....
View 4 Replies
Jun 23, 2007
I encountered a strange thing when experimenting with attachMovie. So, here's the deal: 2 button, 1 mc_colder. Each button onPress loads a different MC into the holder ( mc1 and mc2 ). Beside those 2 buttons that load the 2 MCs i have 2 more buttons that should remove the loaded MC. Nothing bad until now, loading, removing works fine, but a problem occurs if I click one of the 2 loading buttons twice.. Example: I pess the first buttons once, and loads mc1, i press button 2, loads mc2, i remove both mcs, now, i press button 1 again, loads mc1, i press buton 1 again ( and it should load the mc again or do nothing ? ) but when i want to remove this MC it won't. How can I fix this? Or how can I tell flash not to attach the MC again, once it has already been loaded? I tried a few tricks but nothing yet. I'll keep experimenting with it.
View 3 Replies
Apr 11, 2008
Adobe Flash CS3
publishing as Flash 8, AS 2.0
I have a movieclip named menu (instance name = mainmenu). Inside of that there is a button named btn_about (instance name = about). On the main stage there is an empty movieclip named empty_mc (instance name = mcholder, linkage id = empty). I want a user to press the button which causes a movieclip in the library named tesst (Linkage name = testid) to load into the empty movieclip (mc_holder).
Here is the code on the button:
on (release) {
this._parent.mcholder.attachMovie("testid", "tesst1", this.getNextHighestDepth());
}
It does not work.
View 2 Replies
Sep 3, 2005
loading var into different swf in different level.
I got the index.html to hold navigation.swf, navigation.swf loads login.swf in level 10 then I got an var coming from the database but login.swf cant receive it (it shows nothing). So I try to use index.html to hold the login.swf then it works, does anyone know why login.swf can't receive the var? If I load into different swf in different leve, does it mean I have to specify the level for the var?
View 1 Replies
Jan 30, 2005
Top level = main.swf bottom level = pagexx.swf (xx = 1,2,3,etc)
Problem: When loading another swf from the main.swf into main.swf, it works fine. But now I have a problem of loading page2.swf from page1.swf which is now opened in main.swf. I've tried using loadmovienum but they overlap each other instead of page1.swf disappearing. Hope I explained the situation well enough. Here's the script from main.swf used to load page5.swf (where all the 5 = page5).
on(rollOver) {
if(_root.link<>5) {
gotoAndPlay("s1");
}
[Code]....
View 6 Replies
Jan 18, 2010
Again some questions I feel a decent as3coder should know...I created a class to load image files. It works nice and all, but I have some questions... ok here goes ...This is my class :
ActionScript Code:
package {
import flash.display.Loader;
[code]......
View 1 Replies
Feb 8, 2007
Currently, I use loadmovie to load a jpg into a movieclip. However, when the jpg is loaded, I believe that the top left hand corner of the jpg is in the middle of the clip and does not line up with the top left hand corner of the clip.
How do I get the jpg to line up correctly?
View 3 Replies
Oct 19, 2005
Im having trouble with this script again. I need to load a movie on the 2nd leve this is the script here.
// Time value, in milliseconds, after which, failing any mouse movement, an action is to occur.
numMouseTimeoutMS = 30000;
// Define what is to happen should the mouse be moved.
[Code]....
View 2 Replies
Dec 26, 2005
The trouble is that when I click in the button in the first film, the "main.swf", the "album.swf" is loaded into level 10, but the images and description does not load. Seems to be here some parsing problem between flash and xml, but I can't solve it.
View 8 Replies
Nov 5, 2002
I am loading a swf into a level, but need to use actionscript to manipulate its location in the root movie. This is my code:
stop ();
loadMovieNum ("logo_sm.swf", 1);
_level1._x = 300;
// whatever you want for upperleft x
_level1._y = 300;
// whatever you want for upperleft y
yet the loaded swf continues to load in its native position, rather than at any coordinate which I specify. It is riding in the upper left hand corner, even tho here I am indicating a much different position.
View 5 Replies
Jan 10, 2009
Does anyone know how I can load a movie into level1 that has sounds embeded in it and be able to play them? I would like to load the sounds using code on the timeline. I don't understand why my method is not working.Here is what I tried.I have a movie that I am loading into level 1.My sounds are inside the movie that I load into level1.So I ran a test and if I load the movie into level0 the following code works fine and plays the sound.[code]But then when I load the move into level1 and change the code to the following, it deosn't work.[code]
View 3 Replies
Jan 15, 2009
I am using levels for this project to allow transparency transitions between swf files as they load. I created two variables:levelvar=5;removevar=(levelvar - 2)The external swf files load into _level0.levelvar and removevar prevent the root file from unloading. All is well except on one button I want it to load the swf at a particular frame. I tried this:
button.onRelease = function() {
loadMovieNum("contact.swf", _level0.levelvar);
gotoAndPlay ("_level0.levelvar" 52);
[code].....
View 0 Replies
Sep 30, 2009
I have a swf file ("myfile.swf") which i want to load using preloader.
I referred many tutorials for preloader but problem is I want to load "myfile.swf" at _root level as I have referenced many movieclips in it as for example _root.mc1.mc2
I tried following but may be i am mistaking somewhere...
1) I used preloader in frame 1 and frame 2 and swf content in frame 3 but the file is so huge that the preloading almost starts at around 69% or so
2) I kept preloader in scene 1 and swf content in scene 2. But i cannot see the preloader or i can see at 98% or 99%
3) I used preloader in "pre.swf" and used loadMovie() to load "myfile.swf" at _root. But as i m loading "myfile.swf" at _root so preloader's code is overwritten and so i m not able to see preloader
My "myfile.swf" is very complicated file and so i cannot change all the movieclips which i have referenced as "_root.mc1.mc2".
View 9 Replies
Jan 10, 2003
how do I load an external .swf files in order for them always to load on top of the one loaded previously. I've tried to put all of them in the same level but the transition is abrubt. I want the transition to be smooth and each .swf file to load on top most level.
View 3 Replies
Jul 19, 2004
I have figured out how to randomly load and fade in poems from text files. Only, after trying to add additional functionality, namely, an index from which visitors may choose a poem to load, I have run into problems. To put it simply, I can't figure out how to modify the code he provided to load text onto lvl0 so far. Here's some sample code I placed on the first button, which is an mc inside an mc (and that mc is placed on the stage, which is a separate swf loaded on an upper level by lvl0):
Code:
on (release){
var poem = new LoadVars();
poem.onLoad = function(ok) {
[code]....
Here's the url for the files [URL] Main.swf is the main site, which provides a button labeled "INDEX". PoemIndex.fla is the source for the swf loaded when the user clicks the INDEX button. "mcButtons" holds all the buttons for each individual poem (wish I didn't have to hard code all of it), and I've also provided "poem1.txt", for testing purposes.
View 2 Replies
Nov 24, 2010
My problem is on my stage i have a loader_mc invisible movieclip that i want to load .swfs into using addchild
Problem is, everytime i click on a button that addchild the .swf keeps adding ontop like layers, therefore in my function button i tried to removechild before addchild but i will keep getting error #1009
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at bla_fla::MainTimeline/frame1()
I was wondering if anyone can teach me any other better ways how to load movies like in as2, on the same level when the button is clicked, the previous .swf is kicked aside and the new one will load.
View 2 Replies
Apr 19, 2004
I have a button that is a few levels down in movie clips. When It is pressed, it is supposed to load diamonds.swf. It does this, but not on the first press. On the first press the _root time line goes to and plays "fade," but doesn't execute the rest of the script.
[Code]...
View 2 Replies
Sep 3, 2004
Is there a way to clear a loaded swf from a level without loading something in its place? I just want to be able to clear out levels that aren't in use anymore.
View 4 Replies
Dec 30, 2009
I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?
View 4 Replies
Nov 12, 2010
How could I make a preloader with multiple levels in as2? Should I use loadMovieNum or the MovieClipLoader class?
I want to make a main progress bar, that represents the loading of all the levels, not a progress bar for each level.
View 7 Replies
Nov 10, 2011
I've got main time line as Main.swf (level 0) and few external swf files: Message_01, Message_02, Message_03 etc.By the end of the main time line there is a key frame with the script (AS2).The script should call randomly one of the external swf and load it to level 2.
View 5 Replies
Sep 3, 2004
Is there a way to clear a loaded swf from a level without loading something in its place?
View 4 Replies
Nov 2, 2009
I am loading objects in a paper-vision gallery through xml. I have a footer with some links in them, but the problem is the XML stuff is being loaded on top, how do I get the links and such to be on top so they are not underneath?
View 4 Replies
Apr 22, 2011
im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:
on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}
[Code]...
View 0 Replies
Aug 26, 2010
I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF. Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1. When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1. However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not. Here's my AS2 code:
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{ trace("loaded"); //This works removeMovieClip(mc_Empty1.mc_FadedBg); //This works}
[code]....
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not.
View 3 Replies