Levels In Flash
I did a swf file(swf 1) with some buttons on it. Then I had a button to load another swf file(swf 2) on top of swf1. What happens is swf 2 loads up fine. But when I move my mouse around swf 2, it seems that the buttons in swf 1 are still clickable on swf 2. I moved to where the buttons in swf 1 on swf 2, the cursor actually changed to a hand and I'm able to click on it and get to where ever swf 1 button is coded to.
My swf 2 has full background. And it is load into level 1. Swf 1 is level 0 and swf 2 is level 1.
I need to design this such that I want whatever information (say text) user entered on swf 1 remains there and click on a button opens up swf 2 on top of it. Just like layers.
But how can I make the buttons in swf 1 unclickable when swf 2 is on top? If I set the codes to disable the buttons in swf 1 when swf 2 is on top, then when i closed down swf 2(a button to unload the swf), the buttons will not able to click in swf 1.
So anyone got any idea how I can make this work?
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-09-2004, 10:47 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Talking About Levels..controling Levels, Loading Swfs Into Levels, Etc
Hello, people!
I have a little tweaking i need to adjust.
To get to the point:
if (1==1)
{
loadMovieNum("test.swf", 3);
_level3.gotoAndStop(10);
}
else (...)
The problem is that on the if cycle, it doesnt consider the level as being loaded. I've tryed a while to wait for the level to load, nothing worked.
I've tested with a button to see if the level exist and is possible to control it and it is, with the onRelase.button etc etc.
Any ideas?
Ricardo
Thanks!
[levels] Snapto And _levels Targeting Levels
This code is on the root of a movie, it workks fine. However, when i load it into level 100(from another movie) , the snap-to code no longer works.
I've worked with levels a lot, but this really stumps me.
I've tried many many variations to taget the correct path, _levels. _root, this._name, targetPath,
The basic code appear below.
//code on root movie
onEnterFrame = fsnapto;
function fsnapto(){
//trace("pushed @ snapto ==" +choices);
// target1
area_oftarget_x = target1._x;
area_oftarget_y = target1._y;
//target2
area_oftarget_x2 = _root.target2._x;
area_oftarget_y2 = _root.target2._y;
}
// == end snap to==
// code on buttons
on(release){
if(_root.a3._droptarget == "/target1"){
trace("dropped 3================" +this.targetPath);
_root.fchoice("a3");
_root.a3._x= area_oftarget_x;
_root.a3._y= area_oftarget_y;
}
}
Swapping Levels - Levels Infinate?
Hi
im trying to produce a little news panel that you can swap between news items. The problem im having is the following... when I click a 'next' button I want a new story swf to load over the top - and so on for anouther 5 or 6 times. I want to be able to click forwrd randomly between stories - BUT how do I make sure that the next storie loaded is always on the next level up - and that the last swf is unloaded when the new one has loaded?
thanks for your help
PS: I thought of just putting all the news items in the same SWF but this would meen loading them and all their pictures at the same time and also make it harder to change/update indivdual stories
Levels In Flash MX
I had a movie i developed in flash 5 opening mvies on different levels, however when i open it in flash mx and view the movie my mvies that r o different levels arent showing y is that, does it have something to do with flash mx
Levels In Flash
I was hoping someone could help.
I'm linking one flash movie to a number of others - and i want each movie to load on top of the PREVIOUS one - not go back to the 'base' movie each time. I'm assuming levels is the way to do this...Each movie that loads has its own navigation aswell.
The code i'm currently using to load each movie is -
on (release) {
loadMovieNum("MOVIE CLIP1.swf", 2);
//
}
The URL for the test site is here :
http://members.ozemail.com.au/~yazzi/MANTA_V2.htm
Thanks : Jason
Levels In Flash
I was hoping someone could help.
I'm linking one flash movie to a number of others - and i want each movie to load on top of the PREVIOUS one - not go back to the 'base' movie each time. I'm assuming levels is the way to do this...Each movie that loads has its own navigation aswell.
The code i'm currently using to load each movie is -
on (release) {
loadMovieNum("MOVIE CLIP1.swf", 2);
//
}
The URL for the test site is here :
http://members.ozemail.com.au/~yazzi/MANTA_V2.htm
Thanks : Jason
Levels In Flash
I did a swf file(swf 1) with some buttons on it. Then I had a button to load another swf file(swf 2) on top of swf1. What happens is swf 2 loads up fine. But when I move my mouse around swf 2, it seems that the buttons in swf 1 are still clickable on swf 2. I moved to where the buttons in swf 1 on swf 2, the cursor actually changed to a hand and I'm able to click on it and get to where ever swf 1 button is coded to.
My swf 2 has full background. And it is load into level 1. Swf 1 is level 0 and swf 2 is level 1.
I need to design this such that I want whatever information (say text) user entered on swf 1 remains there and click on a button opens up swf 2 on top of it. Just like layers.
But how can I make the buttons in swf 1 unclickable when swf 2 is on top? If I set the codes to disable the buttons in swf 1 when swf 2 is on top, then when i closed down swf 2(a button to unload the swf), the buttons will not able to click in swf 1.
So anyone got any idea how I can make this work?
Levels In Flash
I have buttons placed as small movies, onRollover i want the buttons to change levels so the dont animate under each other.
Also I want to set a buttons level from the start
This involves setting instance levels in Actionscript
IE. On start of flash movie Buttons are at level 4
On rollover and release they are on 5
Any ideas?
Antonio
Levels In Flash
How are levels created?
When you drag in a movie clip into the stage, or if you double click movie clip element and opens up its (different) timeline, are you in a different level?
I'm having trouble making secondary buttons call actions while not affecting actions controlled by main buttons.
Levels In Flash
I did a swf file(swf 1) with some buttons on it. Then I had a button to load another swf file(swf 2) on top of swf1. What happens is swf 2 loads up fine. But when I move my mouse around swf 2, it seems that the buttons in swf 1 are still clickable on swf 2. I moved to where the buttons in swf 1 on swf 2, the cursor actually changed to a hand and I'm able to click on it and get to where ever swf 1 button is coded to.
My swf 2 has full background. And it is load into level 1. Swf 1 is level 0 and swf 2 is level 1.
I need to design this such that I want whatever information (say text) user entered on swf 1 remains there and click on a button opens up swf 2 on top of it. Just like layers.
But how can I make the buttons in swf 1 unclickable when swf 2 is on top? If I set the codes to disable the buttons in swf 1 when swf 2 is on top, then when i closed down swf 2(a button to unload the swf), the buttons will not able to click in swf 1.
So anyone got any idea how I can make this work?
Levels In Flash
HI all....
Here is an useful question:
_level3.gotoAndPlay("start");
is possible to change the "3" dynamically?? using a variable?
this is 'cos i have many movies on different levels and i'd like to control them using variables......
how can i do that?
thanks;-)
Flash Levels
can someone either explain or point me to a reference where I can learn about addressing flash levels.
What I mean is I want to reference a variable or an object that is inside a movie clip, that is inside another movie clip, that is inside another movie, on a frame in the main timeline.
any help would be greatly appreciated.
thank u.
Problems With Levels In Flash
please help?!?!
i have been using levels in flash to reduce site load times...
so here is the prob: whenever i preview the "main.swf" file in flash or by clicking the .swf file i have created, all of the sublevels "eth01.swf, eth02.swf" come up fine and everything works wonderfully...
however, when i bring it into dreamweaver or try to preview it out of flash by choosing "file, publish preview, HTML", only the main.swf file shows.
i have tried to look at the code and can't seem to find anything wrong with it.
on (release) {
unloadMovieNum(2);
loadMovieNum("/subswf/eth01.swf", 1);
}
any suggestions or sulutions?
thanks, alex
Talking Fo Flash Levels?
i had this ages ago but i cant find the script i need,
it used to be sometihng like
tellTarget ("/level200") {
gotoAndStop ("1");
}
but its not workin! anybody help?
Flash & Levels, Why Is It Doin This?
Hi Group
I have a swf which loads up on level 4.
For some reason, even though it cant be seen, when I move my mouse over this swf, Flash is detecting the buttons I have on level 3!!
I dont want to unload level 3 or move to a blank frame where I dont have the buttons on the stage then have level 4 load.
How can I stop Flash from picking up the buttons on the layer down below.
Thanks in advance
Vic
Loading Levels In Flash 5
Hi, i know i've been here for a long time, and should know this by now, but i just want to know the theory behind 2Advanced... i want to know how they Load specific scenes. I.E: When you press Any button at the top (portfolio, experiments...etc), only a specific part of the webpage starts to move, i want to know how they made THAT specific part load, and everything else still loop or stay the same... any replys to this would be appreciated... if you have examples, please post them for me to study.
Using Flash Levels Within Dreamweaver
i have designed a site in flash using levels. when previewed in flash and flash player, the levels are connected and working. i am placing the first swf file into dreamweaver and when previewed in a browser, the levels are not working. i have all of my swf files in my images folder. what do i have to do to make the site fully functional within the dreamweaver page? thanks.
Levels And Flash's Performance
Quick question: If I attach a movieclip to level 1 million, will Flash perform worse than if I attach the same movieclip to level 1?
I ask because I plan on creating a collage program for Flash- Basically, Flash will stick together random symbols from the library to form a giant, printable image. The collage elements need to be attached beneath the previous elements. So, if I put the first element in a high level, and put the next element one level beneath it, I should be able to make a pretty massive collage before running out of levels.
Er, if anyone has some other suggestion for a project like this one, please let me know. For instance, I suppose that I could put the first element at level 1, then use a counter and a for loop to "push" every element up one level before attaching a new one at the bottom of the "pile". So, any suggestions would be appreciated.
Flash 8 Layers/levels
I have a problem with a site I'm building for my company.
The site is basically a 3 page site, 'About the company', 'Contact' and 'Portfolio', with a submenu on the 'portfolio' section that contains about 10 examples of our work.
Onto the main timeline I've created an empty movie clip "container_main_mc" and from the navigation load another movieclip into it using the following script (this is the script which loads the 'portfolio' section. I've loaded the movie clips like this so the old clip remains as the new clip loads over the top. As I wasn't sure how else this could be done.
----------------------------
on (release) {
_root.container_main_mc.attachMovie("master_fade_t o_portfolio","master_fade_to_portfolio2", _root.container_main_mc.getNextHighestDepth());
}
----------------------------
This works really well between the 3 main level navigation areas and is not causing any problems.
The problem I get is when I come to add a sub navigation area for the portfolio and try to load external SWF files using this script:
----------------------------
this.createEmptyMovieClip("portfolio_holder_mc", this.getNextHighestDepth());
loadMovie("portfolio_GM.swf", portfolio_holder_mc);
stop();
----------------------------
The first time the movie loads the portfolio section works - if however you leave the 'portfolio' section for example and go to the 'contact' section, then go back to the portfolio it fails to load in the topmost level and remains on the layer beneath.
Even if I manually create a empty movie clip on the 'portfolio' timeline
----------------------------
loadMovie("portfolio_GM.swf", portfolio_holder_mc);
stop();
----------------------------
and load the swfs into that the same problem remains.
Anyone know a technique for making sure the porfolio details stay at the 'top level' and are visible?
Hope this makes sense, and thanks in advance.
John
Flash Limit Of Levels
Hi there can anybody tell me the number of levels flash supports ? If there is any limit of levels for Flash do tell me. Thanks in advance.
Help: Saving Levels In Flash MX
does anyone have an fla file that saves levels that i could see because i have tried but the code i have does not work, or code that works well
Creating Levels In Flash + Html
Using flash V5.
I'm designing a website in Flash that uses links to a HTML text files. within the text files there are links(created using HTML) that, in turn link to another swf file. I am really crap with HTML, but have managed to do this ok except for one small problem. when I click on the link, it opens the swf file, but I lose the navigation bar in the background. I know in flash I could solve this by changing the level on which I open the swf file, but I have no idea how to do this using HTML.
The link is www.tomhackney.com ...go to the exhibitions link and then onto the the top 'dream sequence' link within the text and you'll see what I mean.
thanks
PMH
Commanding Movies From Different Levels In Flash MX
If I have a movie in a level (0) of an alone frame, the only one scene and
that contains an interface of several active buttons
that call other movies in levels (n) (praise movie and unload movie)
concealing the interface
1.-how to achieve that when the mouse moves on the levels (n)
does not there cause confusion the interactivity of the interface of the level (0)?
2.-how to command from the levels (n) the level (0)?
Levels And Different Dimension Flash Movie's
Hello,
I have a question.
I'm running a site using the blank movie clip/load movie method.
ie:
MAIN -> PORTFOLIO -> NEWS -> INFO
each menu option is a seperate .swf that loads in a blank movie clip.
If I run the Main.swf directly, and click on "News" the News.swf will load and the .Swf dimensions will change to reflect the News.swf's document size.
ie, if Main is 500x600 and News is 600x550, the .swf will change dimensions to fit accomodate the 600x550.
Now, when I translate this to the web, by embedding the .Swf in an HTML file, it leaves "Excess" on the sides of the .SWF and reduces the size to fit into the 500x600.
Now, my question is -- is there a way around this? Can I use the .SWF by itself in a pop-up?, or is there a way to embed into the HTML that keeps the same properties as the .swf ran by itself?
hope this makes sense, I'm tired..
thanks all!!
Flash Levels / POST Variables
here's my script that's not sending the variables like it's supposed to
PHP Code:
on (press) {
if (_root.window.content.mailform.name eq "" or _root.window.content.mailform.email eq "" or _root.window.content.mailform.message eq "") {
_root.window.content.mailform.errortext.gotoAndStop (2);
} else {
loadVariablesNum ("form.php", 0, "POST");
_root.window.content.mailform.gotoAndStop (2);
}
}
since the path to the variable is _root.window.content.mailform should i put the loadVariablesNum to level 3 instead of 0 ?
Loading Few Swf In The Flash Player ( Levels )
Hi
I am loading different swf in the flash player (local HD) with getURL("second.swf", "_level0");
Because only the first movie got 2 scenes i am having problems giving the right level to the others swf.
the only way I can make it works is to assign at the end of the first movie the action getURL with the order to load the new swf in the _level0 but i got a 3 second of WHITE screen between the two clips.
I would like to replace every single swf next to the other in a smooth way.
structure
1 swf ( 2 scenes )
2 swf ( 1 scene )
3 swf ( 1 scene )
4 swf ( 1 scene)
5 swf ( 1 scene )
6 swf ( 1 scene )
all the movie got same stage size, black bgk, same frame rate ( f/s=10) fscommand full screen
Anyone can help me °?°
THANKS !!!
Preloading Levels In A Flash Movie
Ok first of all I am using flash 5 (boooo)
this is my preloader for my flash movie:
onClipEvent (load) {
tkb = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
p = Math.round((_root.getBytesLoaded()/tkb)*100);
_root.percent = p;
if (p == 100) {
_root.play();
}
}
Now I want to add a sound file on level 2 of this movie, but how can the percentage be corrected so it takes my base fla and external swf into consideration?
onClipEvent (load) {
tkb = _root.getBytesTotal();
loadMovieNum ("sound.swf" , 2); //this is my sound file being loaded into level 2
}
onClipEvent (enterFrame) {
p = Math.round((_root.getBytesLoaded()/tkb)*100);
_root.percent = p;
if (p == 100) {
_root.play();
}
}
Flash Shop Scripting Between Levels
The description below is what i want to do. Right now I am using paypal's cart, but I want to have the cart in flash. You can see what I have done so far: http://www.creationdaze.com . You'll notice that for every item added to the cart it opens up another html page for the cart. Thats why I want to have a cart in flash. Your help would be greatly appreciated!
I am using MX, I am sending the variables to Paypal. I have about 32 items right now. I have a mainmovie (_level0) witch loads a vertical menu to the left (_level1) and loads the maincontent (_level2).
There are three catagories of items. So in the menu(_level1) there are links to the 3 catagories witch when click on load there catagory in _level3. So there are different items in these 3 catagories and I want the visitor to be able to add the items to the cart. Have the cart add up the total, with short description for each item (identifing the item) and send the two variables to paypal. Hope that was clear enough.
Main Movie (loads to _level0)
:holds all the other loaded movies using (loadmovie command)
Menu (loads to _level1)
:has the buttons that link to the catagories of items. ie.. (cat1,cat2,cat3) when clicked loads to _level3
Content movie (loads to _level2)
:initial content page
Cat1 - button on menu (when clicked loads cat1.swf to _level3)
Cat2 - button on menu (when clicked loads cat2.swf to _level3)
Cat3 - button on menu (when clicked loads cat2.swf to _level3)
Each catagory has items that when click "add to cart" next to that item should be added to the cart.
It should add up all items to a "total price" and add up all descriptions for each item to "total description"
When click on check out - should send "total price" and "total description" to paypal.
You know what I mean! =)
Please let me know if you need further information. Looking forward to your help!
-Travis
Is There A Limit To Number Of Flash Levels That Can Be Displayed
i have been creating a site that uses 4 levels of flash movies - one level controls another etc ....
this works fine - testing locally on may machine
when i uploaded it it works fine in Safari (i am mac os x) but in internet explorer one of the levels keeps unloading
the link is here:
www.nexusmediadesign.co.uk/james070106/
i could change it, but it seems that every change he makes it - makes the whole thing start to get jumbled up -0 so i would rather have an explanation as to what is going on first
cheers
jd@nxmd.co.uk
How To Deal With Flash 256 Levels Of Recursion Limitation
Hi,
I am working on an dynamic flash component. I got data from xml and based on that data i am creating movieClip.
Now i want to place the movieclip on unique place, for that i had implemented some logic using currently created movieclip hitTest with already placed movieclip.
This will work fine till the data from xml is small in length. But when the number of data is incresed in xml. I got an error as ..
"256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie."
Is there any way to fix this ?
Thanks in Advance
Horizontal Flash / XML Menu With 3 Levels Navigation ?
Hello the expert ones...perhaps you can have some minutes to help me solve my problem. I looked at the http://www.kirupa.com/developer/actionscript/xml_dropdown_menu7.htm and was inquiring whether this menu could be converted into a horizontal one with easing and loading external swfs?
I searched on many forums and the one I found there, the vertical one, is the more plausible for my requirements.
Please help if you can. Thanks.
Edited: 09/11/2007 at 05:02:11 AM by benfaY
Limitation Of Levels In Flash Action Scripts?
i got a output when i tested my movie it says -
"256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie."
is there anyway i can stop it from looping and enable further execution of action for the movie?
Preloading And Loading Levels Into Flash Question?
using this code :
PHP Code:
on (rollOver) {
loadMovieNum("homefire.swf", 1);
}
Will the animation be included in the total once I create a pre loader for the main stage? Why I ask is, I wan't these animations to be ready once the page has loaded up, rather then flash loading them when the rollover has taken place, thus having a pause untill the download is complete.
Issue With Multiple Flash Movies + Levels
Hi,
anyone faced issues with having multiple flash movies and levels (depths) being messed up?
I have one SWF loaded on a HTML page as my navigation, while I have another SWF loaded on the same HTML page as my content.
Because I swap depths for interactions and effects on my 'content' SWF movie, I have noticed having a seperate SWF movie messes up my content. All works great when I test my content SWF on it's on HTML page. The problem persists when I integrate the navigation SWF and content SWF files into one HTML page. At times, some parts of the navigation SWF seemed to be invisible.
Cheers.
Conflicting Levels? Too Many Levels?
I've been working on this pattern maker and I have a movie clip that is basically a pixel. I duplicated that movie clip 1024 times using the following code:
for (y=0; y < 32; y++) {
for (x=0; x < 32; x++) {
_root.newName = "sampleMovie" + ((y * 32) + x);
duplicateMovieClip (sampleMovie, _root.newName, ((y * 32) + x));
xPos = getProperty(newName, _x);
yPos = getProperty(newName, _y);
setProperty(newName, _x, (x*movWidth) + xPos);
setProperty(newName, _y, (y*movHeight) + yPos);
}
}
Well, I tried duplicating another movie clip the same way with a slightly different code as follows:
for (a=0; a < 32; a++) {
for (b=0; b < 32; b++) {
_root.gridName = "grid" + ((b * 32) + a);
duplicateMovieClip (grid, _root.gridName, ((b * 2048) + a));
xPosG = getProperty(gridName, _x);
yPosG = getProperty(gridName, _y);
setProperty(gridName, _x, (a*movWidth) + xPosG);
setProperty(gridName, _y, (b*movHeight) + yPosG);
}
}
When I did that it duplicated the "grid" movie clips, but it didn't duplicate the "sampleMovie" movie clips. I figured it was because there were conflicting levels. So what I did was made a horizontal rule and just tried duplicating that just 32 times using the following code:
for (a=0; a < 32; a++) {
xLine = "horLine" + a;
duplicateMovieClip (horLine, xLine, a + 1025);
xAxis = getProperty(xLine, _y);
setProperty(xLine, _y, xAxis + 10.4);
}
This code only duplicated the movie twice. Am I using too many levels? How many levels can Flash recognize? The first code I showed produced 1,024 levels of movie clips and worked fine. Why would that last code only duplicate it twice instead of 32 times? Thanks for the help.
Levels, Jerry, Levels
Anyone who how to change a movie's level with a command? Sorta like swapdepths but for levels. I'm tryin got get a movie to basically go from being on level1 to levelo and replacing the movie in level0. I've asked in the newbies sections but no one knew for sure. Was hoping you guys would have a little something for me.
Vij'n
[F8] Controling Levels From Other Levels
Hi all,
I would like to have a button on level 0, that loads a swf on level one. In the swf loaded on level one I want to have another button wich controls a movieclip on level 0. Is that possible? I don't want to use containers, but use loadMovie("movie.swf", 1) method. Any ideas?
Thank you
Please Help Flash Levels/gotoandplay Question. (been Buggin Me For Hours Lol)
Hi,
Hope you can help,
Im trying to edit the following piece of code with very limited knowelege of actionscript lol
on(Press){
_level0.play()
}
Ive established that this code makes the swf in level0 start playing again when a button in another swf (loaded in another level) is clicked but I want the script to play a specific scene of the swf in level0 instead of just playing it from whatever is the next scene.
How would I go about doing this??
Thanx
Lewis
PS. Ive tried the following code modification but it dont work
on (press) {
_level0.gotoandplay("Scene 3", 1)
}
9 Flash Sites On One Html Page. Loading Levels Problem
I have 9 flash sites enbeded into 1 html page. The visitor has to scroll to each site on the page.
The problem I am having is as follows:
Each movie has several levels which can be loaded and unloaded. There is text also that loads from an external txt file. This site works on my hard disk but not on the web, why? Does loading and unloading levels affect the other flash movies?
here is the site so far!
Celtic Sofa Surfer
[F8] HELP Only Have 6 Hours-Canīt Get Flash To Completely Clear Levels On Movie Load
Hello ALL!! NEED SOME AS HELP HERE PLSS.... I know this is long but please bear with me as it is a FUN Problem! One of great mystery!!!!
i need to solve this in the next 6 hours -- please help
Flash 8 - Win XP - tested in IE 6+, Opera 7+, FF 1.5
Problem:
Have created a flash site that loads slide show from .xml(txt) file. Everything works great in each individual section ie. Logos Section (logos.swf), Brochures (brochures.swf) etc. . .
The movie load into the main level and upon clicking on a category the slide show script loads and plays the right images at a 4 second interval.
The problems occures when I choose another section to load into the flash movie the slide show script no longer automatically loads the corresonding pictures. If you click on the next/previous image button the images load.
Then to make things worse when I return to the section that was working before the automatic slide show does not work. It only works the first time a section movie is loaded into the main Flash movie.
I believe it has something to do with not entirely clearing the main Flash movie memory upon loading a new section.
You can see an example of what I am talking about at . . .
http://12.168.39.123/earlybirdlb-com/home.html
1. Click on Portfolio
2. Click on Logos & Corp Identity
3. Click on Constrtion and Eng
4. You will see the slide show begin (4 sec interval)
5. Click on any other catergory ie. Food and Beverages, Hospitals
6. You will see the slide show begin
7. Click on any other section at the top ie. Brochures
8. Choose a category ie.Banking & Finac...
9. The slide show will no longer work
10. The next/previous buttons work in the lower right
11. Return to the Logos section and choose a category
12. The slide show will no longer work.
Note; the only way to make the slide show automatically work again is by closing your browser and reloading the page.
I think that is has something to do with my loop conditional code and loading from movie to movie. Here is the code. Attached are the files.
jj = 0;
interval = 4; // 4 seconds
_global.canMoveForward = true;
function doTheLoop() {
onEnterFrame = function () {
if (_global.canMoveForward) {
jj++;
if (jj>=interval*25) {
if (_root.curnum == _root.maklen-1) {
_root.pics.bnext._visible = false;
_root.curnum = 0;
} else {
_root.curnum = _root.curnum+1;
_root.pics.bnext._visible = true;
}
if (_root.curnum == 0) {
_root.pics.bback._visible = false;
} else {
_root.pics.bback._visible = true;
}
loadMovie(_root.mak[_root.curnum], _root.pics.photo);
pics.play();
jj = 0;
}
}
};
}
function chk(prop)
{
s = eval("_root.myvars." + prop);
_root.mak = s.Split(",");
_root.maklen = _root.mak.length;
_root.curpic = _root.mak[0];
_root.curnum = 0;
_root.pics.bnext._visible = true;
_root.pics.bback._visible = false;
loadMovie(_root.mak[0], _root.pics.photo);
if (_root.maklen == 1)
{
_root.pics.bnext._visible = false;
} // end if
} // End of the function
if (_level0.incom != "1")
{
tellTarget(_level0.incom)
{
gotoAndStop(2);
} // End of TellTarget
} // end if
var pressed = "b";
var opened = "b";
var pressed1 = "b";
var opened1 = "b";
mak = new Array();
var maklen;
var curpic;
var curnum;
var myVars = new LoadVars();
myVars.load("Brochure.txt");
_root.pics.bback._visible = false;
_root.pics.bnext._visible = false;
Any help would be greatly appreciate and you will have a Flash friend for life.
thanks - zepherpaul
Xml Flash Sidescroller With Levels Of Xml In Flash
Hello I have a side scroller that is created to load the levels from xml and works perfectly, but for game distribution needs to be self contained.
what is the best way to have all the xml levels in flash?
( i already have several scripts thst make the xml into all the aspects of the game, like enemies, speed, type x , y, platforms and such. so with keeping that script do i just make the xml file a new xml thing in flash? or what?
the xml looks like
Code:
<level endx="1199.8" endy="229.5" ><blocks><block x="0" y="320" type="cloud1" graphic="cloud" container="false" /><block x="45" y="320" type="cloud1" graphic="cloud" container="false" />
Juggling Levels And Creating A Simple "photo Gallery" In Flash
Howdy folks! I just got done reading and experimenting with Kirupa's tutorial on loading movies:
http://www.kirupa.com/developer/flash5/loadmovie.htm
Very cool and fairly straightforward stuff, but I have an issue that the tut didn't seem to address. Specifically I am working on a Flash presentation where there will be a image which changes depending on a variety of buttons you can press below it. Basically it is a photo gallery of sorts and clicking on the thumbnail buttons is supposed to load up the larger images (all in the same place, each one over the last). Sounds pretty straightforward, right?
I understand the whole concept of loading movies (in this case making each of the larger images it's own .swf movies to load i when the corresponding button is pressed) - but my question is this - how do i specify exactly where the image will appear (eg. x and y coordinates?) and also, in terms of using levels, is there a way to put all the loading movies on the same level, but not have the image that is being replaced by a newly loading image disappear before the new movie is loaded?
Does that make any sense? Hopefully I am not rambling too badly here. I've had a lot of tea this morning.
Many thanks in advance if anyone can help me out with this, or point me to a tutorial that deals with these issues specifically!
Zeep zeep
Levels
how do i know what level i work in?
thnx
Levels PLEASE
hi all!
ok, who can tell me how to set the level of a movieclip? i want to make a page with draggable windows. now if two windows overlay each other, how can i make the one in the back come to the front when clicked??
please help!
c!
PLS HELP ME WITH LEVELS
Flashies,
got major head trauma from trying to nut this one out solo:
what i've got is a movie that loads variables from an external .txt file to dynamic text boxes inside movieclips (this is so i can animate the textboxes), i managed to get the movieclips to automatically update and animate the number of text boxes needed from one of the variables in the txt (so all I need to do for multiple movies is change the txt, not the fla.)
now to the problem!!:: i can get everything above working fine on level0 but when i load it from inside another movie i get nadda. even if i go back and change all references to level0 in the first movie to level5 and load that into level5 i still get nothing
are there any hard and fast rules about levels that i'm missing or is my attempt at being smart making me look stupid?? any clues will be appreciated...
Please Help With Different Levels
I'm nearly going insane so please help me. I just published my site with a javascript popup (usual one). It works but here is the problem:
On my site, i've got three buttons. On release they are supposed to show a movie on level 2. But on my released site it does not work at all. It shows nothing on level 2.
If I release my site without javascript popup, just in normal explorer window it works. Why doesn't it work with a popup window? Is this a common problem or do I have to change anything. (maybe write the location of the the level 2 .swf anywhere in my index.html?)
Here is my index.html:
<HTML>
<HEAD>
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
<TITLE>home</TITLE>
</HEAD>
<BODY bgcolor="#000000">
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=150% HEIGHT=150%>swLiveConnect=true NAME=home.swf
<PARAM NAME=movie VALUE="home.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="home.swf" quality=high bgcolor=#000000 WIDTH=150% HEIGHT=150% TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
Please heeeeelllppp meeee!!!
Thanx
|