LoadVariablesNum In Higher Levels
When I use LoadVariablesNum and place my dynamic text box on the main timeline it works perfectly. But when I place the textbox inside a MC its not showing any text. I used loadVariablesNum("newsbox.txt",0); where textbox.txt is placed in the same folder as the swf file. I guess this 0 shows the level and I should change it but I don't know what to put, putting number 1 doesn't work, and I found no tutorials on levels....
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-13-2005, 04:49 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Keeping .swf's Loading On Higher Levels...
Hi there,
I've got a menu system in which new .swf's are loaded into levels. However if a person was to select a button such as Home which is on level 1, and level 3 was already loaded it would not be visible, as level 3 is visible. I don't want to simple unload level 3.
I want to be able to load the .swf's always on top of the current one that is visible.
Any possibilities? I need to be able to do this because I want the .swf's to slowly come across the current loaded swf, as one smooth transition, instead of being instantly visible.
Any help?
Thanks.
Scaling The _level0 Movie To 100% But Not Higher Levels
I have a swf that is supposed to act as the background image like in an HTML page, but in this case it needs to be in flash. I have it set to width & height = 100% in the HTML code and it works ok (get's a little distorted) but it's the movies that are being loaded into the upper levels that I am having trouble with. I do not want them to be scaled, I have the fsCommand (allowscale, false);, in the upper level movies, but it's not working.
How can I insist that a movie in level5 does not get scaled to a smaller or larger size?
Any help is greatly appreciated.
LoadVariablesNum Levels?
i'm having trouble with assigning the depth of the text...
i made this swf before where in the file read variables from a textfile. my textfile was in the root, and only when i put the argument "0" in loadVariablesNum, the textfield can read it. when i use all other numbers (1, 2, 3... 100) it doesn't work - nothing comes out in the textfield.
since 0 worked, i just stuck with that. but now, i have a textfield inside a movieclip, and nothing's coming out, whether i put in the argument 0, 1, 2, etc. what do i do?
thanks,
mon!
[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!
Higher Fps Help?
whenever I change the fps of my movies higher, the sync of the sounds and movie gets messed up. does anyone know why? -eric.
my website: http://www.kocompany.com
Going Higher Than 256?
Flash's Animated GIF Export dropdown only goes up to 256, causing major color loss. I was wondering if--at all possible--Flash could go higher.
Although, this won't be a problem when I get Photoshop, because I can make Flash CS3 export all 155 frames to a PNG Sequence, then I export each individual frame into Photoshop and then animate it. Photoshop can export an animated GIF over 256 colors; but why can't flash?
Edit: The FLA file is below if anyone wants to compress the GIF too, I don't like it being 31 KB (I'd love it below 10 KB if anyone can manage). Also; for some odd reason, I can't put stop(); in the last frame of the DoYouVelvet? movieclip for actions (the movieclip DoYouVelvet? continues to loop infinitely even though Flash told it to stop.) The zip/fla file is over 2 MB, so I have to offlink it for you people.
http://iyeru42.info/Velvetar.zip
If you want what the GIF looks like: Click Here
Higher Bug
Hi
I'd never imagined that flash has real bad problems working with compositions with a largest height than width.
I'm working right now a composition of 800 height x 400 width for a vertical plasma TV and flash really cannot operate eficiently. Testing the clip takes 15 minutes to render and even changing colors of a symbol or whatever is difficult.
Instead, if I flip my composition horizontal everything comes back to normal
Just an informative post, maybe somebody would like to comment something related!
Cheers!
Getting Rankings Higher
Hi any help and as many replys as poss apriciated!!
Having real trouble getting a site up the rankings, Ive been told that the meta tags dont do much now?? My friend who i designed the site for is selling Irish golf tours in a competitive market but his site is no where to be seen when searching for "Irish golf tours" or any thing like that after months of it going live... the site is wellplayd.com,
Is the only way to get it up the rankings to pay someone, the market he is aiming for is american/UK so any body recommend a good method or "pay per click" site that wont rip him off?
Thanks for any replys in advance
JP
Looking For A Higher Power
Sorry to have to post again, but as I got no replies to my previous posts I thought I would need to seek advice higher up.
Can anyone put me in touch with a "super guru" who could give me an answer/statement on the flash caching issue.
As far as I can tell it is not possible to stop either your swf, external jpegs, sendandload scripts called, or anything for that matter from caching into a customers "Temporary Internet Files" directory.
If this is the case then I will probably have to abandon a great deal of work and put it down to my ignorance of not finding out before I started the project ... if it is possible I just need to know where I go to get the assistance and advice required to continue.
Can anyone help?
How Can I Get The Mc With The Higher _width
Hi!
Im doing a poll system in flash... I have 6 movie clip simply called:
mc_bar01
mc_bar02
mc_bar03
mc_bar04
mc_bar05
mc_bar06
(I know I could use For function).but I wanted to keep it simple)...
each of this mc have a different _width
I need a function that found the movieclip that have the higher width value...
any help will be much apreciated!!
thanks a lot
Pat
Better Aim For Higher Resolutions?
hi everybody, i didnt really know where to post this but since its quite a general question i guess it doesnt really matter
the thing is that a friend of mine recently told me that nowadays tft screen are getting more coming so there are more people using higher resolutions such as 1280 x 1024 instead of 1024 x 768 or 800 x 600, doing a site that can be seeing well at different resolutions can be quite tricky( either using flash or xhtml ), i usually work for 1024 x 768 or (not that much) for 800 x 600, do u think is better to keep in mind higher resolutions when making a site or 'normal' ones? i hope i made myself clear
cheers
No Lower Then 0 And No Higher Then 100.
Hey guys, I am trying to make HP and I want it to so that the HP goes no lower then 0 and no higher then 100 xD.
Anyone has any kinda scripts like this x.X ... I tried to figure it out but I just got complete confused x.X.
XML In Flash MX And Higher
Hi! I just did the "Displaying XML Data in Flash" tutorial (from 2004) which was very helpful, however, it doesn't work correctly with Flash 8. I'm a newbie to XML (obviously) and don't know if I need to change the XML version in the XML doc or in Flash. When I publish the Flash file, the output is that the .xml is "undefined." I also followed the instructions to remove "xmlData.onLoad = loadXML;" line for Flash MX and higher. I'm sure this is something simple - can someone please help? Thanks!
Sound In A Higher Level?
I'm having a problem with getting my sound swf to work in a higher level then 0. I just don't get to hear it.
but if i play it seperately it works fine, how can this be. I used this method (cause maybe thats the problem):
myMusic = new Sound();
myMusic.attachSound("Loop");
myMusic.start(0, 1000);
Please can someone fix this
Greetz Chojin
Should IfFrameloaded() Not Be Used In Flash 5 Or Higher?
I want to use ifFrameloaded() so I can check directly on a frame label to see if it is loaded, but Moock's book sez it is depreciated in Flash 5.
Is it still going to be supported or should I really not use it?
How would I otherwise check to see if a framelabel has loaded?
Thanks!
How Do I Speak To An .swf Higher Up The Chain?
Hi people!
Got a bit of a query with loading .swf's into my site.
So far I have one main swf 'holding' the rest - we'll call this MAIN.
Inside MAIN I have a second .swf being loaded in from a menu option - we'll call this one CHILD-A
I also have a third swf that is loaded into CHILD-A; we'll call this one CHILD-A2
These are a called using loadmovie
So.....
MAIN
> CHILD-A
> CHILD-A2
I have button in CHILD-A2 to call a fourth movie that will sit in the same Hierachical level as CHILD-A
eg......
MAIN
> CHILD-A__________> CHILD-B
> CHILD-A2
Does this make sense? I hope so!
I guess basically I'm saying that I need to get a button within CHILD-A2 to send a loadmovie command from CHILD-A2 up to the MAIN.swf to load in CHILD-B.swf
Can anyone pls help??
Hope you can - I really need this to work.
Thank you very much,
Deadhands
PS. sorry for going into so much detail - I just wanted to be sure that I was saying the right thing.
Last edited by Deadhands on 01-07-2004 at 04:05 PM
Exporting A SWF At A Higher Scale...
Hiya...
Quick question, is it possible to export a swf at a higher scale than the actual document size...?
for example, i have a 200x200 banner... I want to then rezise this to 300x300... rather than resize everything on the timeline, can it be done in the export settings...?
cheers, rob
Constructor Difference Between FP6 And FP7 And Higher
I seem to be having trouble with AS2 classes compiled for FP6. When I use the following code:
ActionScript Code:
class Application
{
private function Application()
{
trace("Application::Application");
}
}
ActionScript Code:
class MyApplication extends Application
{
private function MyApplication()
{
trace("MyApplication::MyApplication");
}
static public function main(root : MovieClip) : Void
{
var myApp : MyApplication;
trace("MyApplication::main");
myApp = new MyApplication();
}
}
ActionScript Code:
//-- on first frame
MyApplication.main(_root);
When compiled for FP6 it traces:
Quote:
Application::Application
MyApplication::main
Application::Application
MyApplication::MyApplication
while for FP7 and higher it traces:
Quote:
MyApplication::main
Application::Application
MyApplication::MyApplication
I would expect to see the FP7 output also for FP6, but apparantly there is a difference. Does anyone has any idea why, when compiled for FP6, the Application class constructor is called before the MyApplication.main method?
Thanks!
File Size Becoming Higher
Hi friends,
I have created a photogallery using a file which I got from some site, but when I publishing it the size is coming upto 597 kb without any images inside the file...
I am attaching the movie here with the XMl file. pls help me...
MC Higher Depth Than DuplicateMovieClip?
I am using duplicateMovieClip(); and I would like to find out how I can ensure that an MC has a higher depth than the duplicates. Could someone tell me please?
wB
LoadMovie In Higher Level In Different URL
ok....i'm really new at this, but i have been getting the hang of actionscripting. this is my dilemma. i have two swf files now.. a main, and a target. when published, i have moved and resized them to be side by side the way i like. i would like it when i click on a button on the main, the target movie changes to another movie. i know i need to use loadMovie and change the level. i did so in the action of the button on the main. but it loads the new swf inside the main.. not the target. how do i get it to direct it to the target's url? i would greatly appreciate it if someone could help me out.
thanks.
How To Put An Instance In A Higher Level?
Hi world,
this is a simple one I think..
How can I put a mc on a higher level....let's say _level2
what is the AS for that?
Any help is truly appreciated
Cheers,
Marvin
Testing For Higher Res Utils?
ok-
so I've been messing with a lot of full-window flash stuff recently, but my laptop maxes out at 1280x800. any ideas for testing for high resolutions on my machine? (the ie zoom thing doesn't really cut it....)
t
NestedMovieclips Get Higher Resolution?
Hello
I have about 4 or 3 nested movieclips. And in the lowest level movieclip (the one that I have to click the most to get into) has like a higher resolution, or pixels per inch sort of thing.
So if I write in the highest level MC in size 10 font, and then if I write in the Lowest Level MC in size 10 font, the one in the lowest movieclip is bearly readable because it's so small and the text in the highest movieclip is perfectly readable. THis is not just with fonts. It's with graphics, ActionScripted Stuff (carousel) and EVERYTHING. It's so frustrating how I have to resize everything to match the size. I can upload an example if needed...
Do any of you get this type of stuff?
If so, are there ways to fix this within flash? I just hate that bigger resolution thingy. I'm not sure if it's a flaw, bug, or intention.
Thank You!
Keehun Nam
Streaming Sound In A Higher Level
Hey there,
I´ve a problem with using a streaming sound file.
Sound is working fine in the movie as long as I don´t load this movie into an higher level.
When I call the movie with loadMovieNum("sound.swf",1); the sound is not starting.
How can I use a streaming sound in a higher lever like 1 or 2?
Could anyone help me out?
Thanks
Higher End Effects Sites/postings.
Just out of curiosity - If you know of any sites which give code to higher end / creative flash effects i'd appreciate it. I remember several months ago one site posted it's source to it's page, and it was a phenomenal learning experience. (I since lost the %$#@ link!) Some of the effects were outstanding. Flashkit has great stuff, but been through most of it through the years. Many, many thanks...
Load Movie On Higher Level
Hi
I am doing a site in which each section is a different swf which needs to be loaded onto a higher level.
Is there some script which tells the movie to be loaded onto a higher level as opposed to having to stipulate which number level it is??
cheers Max
Load Movie In A Higher Level
Hello.
In my movie I have a data base fron xml, and I have a button. When I press the button I want it to loadMovie in a movieclip which is at the top layer but when it does, it shows below the text from the data base. How could I get to show it above anything else?
thank you everybody
kisses
Really Basic Problem Higher Than Lower Than.
Trying complete a quiz that gives u a rank based on ur score..
just using an if statement
but for the love of me i can't remember how to envoke the function to check if the score is higher than a number but lower that another
i've tried
if (score <=3 && >= 6)..
but with no joy...
Andy. i'm using flash 8 action script 2..
can anyone help me here?
Making A Higher Res SWF Fit Smaller Res Screens
Hey everyone,
I'm really hoping that somebody out there is able to give me a hand on my current project. http://www.laurenweekley.com
Problem 1: I need to make the site SWF resize to a smaller resolution when it is displayed on 1024x768 or smaller screens.
Problem 2: I haven't found any tutorials that worked for me on how to implement customized (or at least better looking) scrollbars within the flash. Every time I use them, they show up but don't function.
Details: I'm a novice at Flash and have used a purchased template to create a photography site for a client. The site is entirely flash based and fits a 1280x1024 screen beautifully. The problem is when I pull it up at 1024x768, it doesn't resize and it doesn't really even work. The lower section is hidden. I have tried half a dozen javascript commands before and within the <embed> tag to tell the swf to resize if a user's resolution is less than 1280 but nothing ever changes. I'm not experienced with this so it is possible that I just did it wrong but I followed five or six different tutorials and none of them worked at all. I have also tried setting the size to 100% width and 100% height- no luck. Additionally, the 'noScale' settings didn't seem to produce the desired effect, no matter what setting I used.
If anyone can help with these two problems, I would so greatly appreciate it. I have come to a dead halt on the site because of these issues and I won't be paid until they're resolved.
Thanks again,
Varzea.
[F8] Sorting Next Higher/lower Value From Array
Hi, My brain has gone really dead on this.
I am generating an array of movieclips and I need to set the width of the movieclips around the selected movieclip so that they get smaller the further they are away on the x axis. I thought the best way to do this (correct me if im wrong) would be to find the next higher value in the array then the next lower and so on.
I just cant think how to work out which ones are higher and which ones are lower in the array.
If anybody could point me in the right direction or has a better way of doing it that would be really helpful.
Thanks.
Is It Possible To Publish A .mov W/ A Flash Player Higher Than 5?
I have a project where my client needs quite the long and complex intro to their site. In the process of making it fit their standards my file size has exceeded 1,400 KB, it also has a music file which needs to be on point for the whole thing to be what it should be. So, im trying to publish it as a .mov file... heres my issue....
when i go to the publish settings and select .mov (quicktime), I get a pop-up saying:
"the installed version of quicktime does not support this type of Macromedia Flash movie. QuickTime requires Macromedia Flash version 5 or before.. etc)
Im not familiar with publishing .mov's, I also just got this computer no more than a couple weeks ago... can anyone help me out? My brain is shot.
Also, is there any other good way to have high KB swf's w/ audio tracks play on the web like you had just opened the swf from your desktop?
thanks in advance for any help. -UA
Loading Each External Swf Into A Level One Higher Than The Last...please Help
I'm designing a site at the moment & I've run into a minor snag. I am loading about five external swf's, for each page of the site, from the main 'home' page. you can view it here Trouble with levels. I can load the movies fine, but what I want is to load each new movie into a higher level than the last, as each movie appears with a mask (for an example have a look at the site I've done then click on the 'Contact Us' button - that is what I want to do on all of the pages...) all of the swf's are loaded into level one with the exception of the 'Contact Us' page. (By the way, there is no 'News' page yet)
The very simple code I used to load the movies is:
Code:
on (release) {
loadMovieNum("contact.swf", 1);
}
I hope you understand what I'm trying to get at.
Cheers
Z
Making Swf Native Resolution Higher
Hi everyone,
I am currently animating a musicvideo/story in flash MX 2004. It started as a school project, but I'm planning on entering it into a contest and feel I made it too small. Details I put in it are hard to spot and I generally feel this is hurting the film a bit. Is there an easy way to increase the size of the document without ruining the animation done so far?
You can see a little bit of the animation here: http://www.newgrounds.com/portal/view/366583
Also, any good tips on exporting to movie format? One where I maintain good picture quality and objects animate correctly?
Thanks,
Michael
Rewinding A Movie On A Higher Level
I am trying to create a rewind button that will work on a movie I include in level2.
The button script is the following:
on(release){
_level2.gotoAndPlay(_currentframe - 10);
}
It doesn't work for me.
Stop and play work fine:
on(release){
_level2.stop();
}
Is there an easier solution here?
Thanks
I'd gladly pay you on Thursday
for a hamburger today!
AS3 Button Blocked By Higher Layer
Hello,
I have an AS3 issue -- while converting a file from AS2 to AS3, I noticed that buttons won't work if they're behind something else... which is understandable, and usually desirable, except in a case that there is a PNG over that button, and you can see your button through the transparent part of the picture, but can't click it because it's considered to be obscured by that PNG...
I would really appreciate if someone can help on this!
thanks in advance.
Publishing With Version 6 Is Ok But Higher = Not Working
I have a old flash file that works fine when published for flash6 but nothing happens when I try and and publish with version 9. Im using some of the code from http://levitated.net/daily/index.html , and I need to publish with version 9 so I can use the bitmap caching that is used in the rest of my site. I can load the version 6 .swf externally, but Im not sure if thats the most efficient way of doing things.
Thanks
Gregg
Variable Won't Update From Higher Level Into Root
Hey
I am making search game. If the player has found all missing object a new page will load were they can download a song.
The problem is that I can't get the variable "allFound" update.
_level0:
frame 1: allFound = 0;
frame 2: some other code;
frane 3: gotoAndPlay(2);
_levelx:
onmouse release;
_root._level0.allFound = allFound+1;
It updates the allFound variable only ones.
I tried testing it with buttons wich are in level one and that works.
Why doesn't it work from a higher level into the root?
can anyone help me?
Tell Target Action From A Higher Level Swf Movie
i wish to assing an action to a movie clip (by using tell target action) from another swf movie louded in a higher level. Is that possible, who knows? maybe you.
if not, maybe you need to know too. thanks for helping me.
Bringing A MC To A Higher Level On Clip Event
Well I need to make the clicked on movie clip come to a higher level than the other movie clips(bring it infront of) and then go back to its original place on the second click. Anyone have any ideas?
Regards,
Scott
Targeting Main Timeline From A Higher Level
Hello,
Does anyone know how to target the maintime from a movie loaded into level 1? I want the main movie to go to frame 3 when I click a button in an swf loaded in level one. I tried saying:
blahblah_btn.onRelease = function() {
_root.gotoAndStop(3);
}
This code is on the timeline (actions layer) of the movie in level 1. It doesn't work. The main movie still stays in frame 1. Do I need to specify level 0 somehow? How do I say this?
Thanks!
Mary
Scrollbar Works With LoadVar With On Level0, Not Higher.
Well, that is part of the problem, but not all of it. I read the macromedia tech note (attached for those who are interested) about scrollbars and loading with LoadVar. I followed their directions and it works great when I test the file. Of course that is only on level0. The text loads fine when the file is launched from level0 and played on level three, but the scroll bar does not.
I wondered if part of the problem was that I used two Loadvars objects. The first LoadVars object loads text into the dynamic textbox a very small file). When the second LoadVar is loaded, the movie moves to a frame with buttons for different txt variables. I tested the hypothesis that the second LoadVars was affecting thigs by removing the second loadVar object. That changed things slightly. The up/down arrows on the scrollbar work, but the bar does not (i.e., can't drag to scroll).
Since it works fine on level0 but not on level3, it would seem to be a path issue. Where would I specify the path, do you think?
Here is the code I am using:
Frame one
stop();
fstLoadVars = new LoadVars();
fstLoadVars.load("Open.txt");
// loadMovieNum("AppWait.swf",4);
//assign a function which fires when the data is loaded:
fstLoadVars.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "Heavybox" equal to the
//contents of the variable
Heavybox.text = this.Greeting;
gotoAndPlay("SecondLoad")
} else {
trace("not loaded");
play();
}
};
Frame two-
prevFrame();
Frame three-
stop();
scndLoadVars = new LoadVars();
scndLoadVars.load("units.txt");
// loadMovieNum("AppWait.swf",4);
//assign a function which fires when the data is loaded:
scndLoadVars.onLoad = function(moresuccess) {
if (moresuccess) {
trace("done loading");
//Now that we know the Units data is loaded,
//stop preloader and show buttons (ButtonsHere)
//The dynamic test stays unchanged until buttons
//are clicked.
unloadMovieNum(4);
gotoAndPlay("ButtonsHere");
} else {
trace("not loaded");
play();
}
};
Frame four-
prevFrame();
Fame five (ButtonsHere)-
stop();
Anybody have an idea?
Referencing Buttons Back To A Higher Layer
Hi
I'm having problems linking buttons back to a higher level in Flash MX.
I'm trying to link a button back to the original file from a movie that has been loaded into a layer on top of it (eg, layer 2, 3, etc)
For example:
My index page = layer 0
I want to load a movie onto layer 2. I need a button in that movie (on layer 2) which will take me back to the index page on layer 0.
All my attempts to do this have so far failed.
Can anyone help? (I'm sure it's something really simple I've overlooked)
Cheers
Rob
rjb@ace.edu.au
Problems Referencing Buttons From A Higher Level
On my index page, I have a movie clip with a series of buttons. The button(s) need to load a movie, which I've managed to do in 2 different ways:
1. By loading movies into a movie holder
on (release){
goToAndPlay("scenemain", "framelabel1");
_root.loadMovie("movie1.swf", movieHolder);
}
2. By loading the movie onto a separate level
on (release) {
_root.loadMovie("movie1.swf", level1);
}
Both of these ways work. However:
From the loaded movie (movie1.swf) I need to have a button which goes back to the index page EITHER:
a) By removing the movie which has loaded
Or
b) By linking back to the main movie on the Index page.
The following button code I've tried doesn't work:
on (press) {
_root["newclip"+(level-1)].removeMovieClip();
}
Can anyone help, or tell me what's wrong with this button code?
Cheers
Rob
|