Another Loading Ques
Is it possible to make the movie load let's say... only the 1st 2 frames of movie that has 8?
Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-04-07
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Clips Into Levels? -quick Ques
Hi, I need a quick bit of code or at least somebody to give me an idea on how to actually have a clip load itelf into a specific level depending on the value of a variable. I want to do this as my duplicateMovieClip() code is putting MC's on higher levels than other elements (other Mc's) in my movie, and one of these elements in perticular needs to be the 'highest'.
I tried using setProperty() as below but it doesnt work, flash complains (I gather it doesnt consider '_level' as a property?)
Code:
setProperty(need2BHighest_Mc, _level, highestLevel);
Any help appreciated
Nav Ques
Hey guys I seem to remember a thread regarding how to make this kinda of NAV :
http://dopepope.com/ntps/Build_onff/
Anyone remember the thread or have a link on a tutorial to dup that kind of load jpg and have the window resize automatically...thanks all
_parent. Ques
im trying to load an external jpg. and the file name of this jpg is the name of the mc 2 levels above the command.
if u dont understand this is thi code im trying to use
Code:
x = _parent._parent._name;
loadMovieNum("x".jpg, 1);
i also tried putting th eparent crap in the load move itself like this
Code:
loadMovieNum("_parent._parent._name".jpg, 1);
and its still not working. any one able to give some advice
AttachMovie Ques
Hi -
I'm using the code below to bring mcs from the Library to the stage. It works fine until I tried to add the x,y at the end.
I thought there was a way to include _x and _y coordinates to the same statement as the attactMovie. Is there?
TIA the correct way to accomplish this.
jl
Attach Code
mc_btn2.btn2.onRelease = function():Void {
attachMovie("Q2WithGame","Q2Game",this.getNextHighestDepth,[_x=45,_y=110]);
};
Simple AS 1.0 Ques
AS 1.0
I have this code in a keyframe on the main timeline:
var score = 0;
if (score == 2500){trace("winner")}
Othe stage in the maintimeline i have a dynamic text field I labeled "score" in the var box. The instance name is "pts" but i wasnt sure if i needed an instance name anyway here. The score box works fine as far as keeping score but when it reaches 2500, I dont get my trace. What am I missing? Thanks
-Chris
Stupid Ques
hello new be ere (welsh) i got a prob wanderin if some1 could help im tryin to get a news page that updates ive got this off yahoo
this
so now tryin to use it but flash does ntlike it im prob doin some thing stupidly wrong now on the verge of not botherin
PLEASE HELP
Attaching MC Ques
hi.. anyone out there can give me a tutorial which teaches attaching a MC to another MC?? urgent..
Stupid Ques
hello new be ere (welsh) i got a prob wanderin if some1 could help im tryin to get a news page that updates ive got this off yahoo
this
so now tryin to use it but flash does ntlike it im prob doin some thing stupidly wrong now on the verge of not botherin
PLEASE HELP
Flash Ques
please can you explane me how can I make this file like on this site:
http://www.t-s-k-b.com .You go on this site and press SAKUBA WORKS and then button Painting/Drawing
I would like to make a picture gallery like in Painting/Drawing: So how I can make when the mause on the button to show small image of the picture and when I press the image to open the picture how is on the site(not in a new window)?
Please tell give me advice how could I make it!
thank you
Button Ques
Ok real dumb ques..I have this animation..u can dl it from here: www.zeroxposur.com/test/nav.fla
So what I want to do is have 5 buttons fade in ..onto the bar as it finishes its animation..but I dont know how to do it.. Can anyone point me in the right direction. Thanks
Easy AS Ques.
ok so I have a flash doc..theres a an MC called target on mainstage that has the entite site in it (doing a fullscreen centered website)..now I have MC nav buttons on the stage (inside target). Inside one of the nav buttons I have a line of AS that says
ActionScript Code:
this.onRelease = function(){
_root.target.loadMovie("bioresume.swf", "loader");
}
Now im not sure If im doing that right..but what i want to happen is; after u release the button, load the ext swf into the empty MC called "loader". But what seems to be happening is it loads the ext swf but everything else on the site disappears. See I originally had this as my AS cause i thought this made sense but it ends up not doing anything:
ActionScript Code:
this.onRelease = function(){
loadMovie("bioresume.swf", "loader");
}
So if anyone knows what I did wrong, much appreciation. Heres the site link if u want a visual:
www.josephsernio.com/test
Easy As Ques.
Ok for some reason the end of this code doesnt work.. on release, i want it to take me to frame 2..and it wont...btw this a movie clip that has button properties through AS:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
gotoAndStop(2);
}
MC Loader As Ques.
im working with the moviecliploader AS..so a button loads an ext SWF and also has a percentage loader .. so on my mainstage i have a loader mc (instance name "loader")and a holder mc (instance name "holder")..heres my AS on the main timeline:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}
mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = "";
}
mcl.addListener(mclL);
Now i have another MC that houses about 20 or so buttons..so within the buttons MC i have say this for one of the buttons:
b4sub.onRelease = function() {
_root.loader._visible = true;
_root.mcl.loadClip("LevisCampaign.swf",holder);
And unfortunetly it doesnt to load the ext. swf..did I code the _root incorrectly?
Thanks for your help.
Fscommand Ques
Hi all, I was working with fscommand, when it struck me what FSCOMMAND stands for.
"Future Splash Command"
Can anybody confirm this, or am I mad, lol
Later
ORANGE900
LoadVariables Button Ques
Hello all. I have this code attached to a button calling up a different text file to a dynamic text field and it works fine, except I'm having to hit the button "twice" for it to work. Can't figure out why. Can someone enlighten me please?
code:
on (release) {
scrolltext = scrolltext1;
loadVariables ("scrolltext1.txt", scrolltext1);
}
Thanks in advance
Easy - Pong AI Ques.
Ok just to see if I could do it(never really got into game programming) I tried to make a pong game everything works so far but I have a problem with this:
Flash code:
PHP Code:
onClipEvent(enterFrame) {
if(_global.cspeed == 0) {
}else{
if (this._y != _root.ball._y){
if(_root.ball._y < this._y){
this._y -= _global.cspeed;
}else if(_root.ball._y > this._y){
this._y += _global.cspeed;
}else{
this._y = this._y;
}
}
}
}
The problem is that instead of moving smoothly up the screen it looks like it s shaking up and down really quickly, but I would like it to be smooth.
Please help.
Movie Clip Ques
Hey i just started doing flash yesterday and i am doing a text fade
I made the motion tween and and everything and when i go to control and play everything is smooth but when i go to test movie nothing it just stays the same and doesnt fade :> plz help me
Movie Clip Ques
Hey i just started doing flash yesterday and i am doing a text fade
I made the motion tween and and everything and when i go to control and play everything is smooth but when i go to test movie nothing it just stays the same and doesnt fade :> plz help me
Quick Mask Ques
Im sure this is an easy one.. on the foofighters website http://www.foofighters.com When U click a button that flourish/swashy graphic looks like it is unwinding or growing rather. I would like to get the same effect.. Its obviously a mask of some sort. I know who to mask, im just figuring its a mask that is animated somehow. Anyone have an idea? Appreciate any insight into this. Peace
-R
Quick Actionscript Ques.
Ok so im building a portfolio website and basically if you click on the art image it goes tothe next art image..I have it set up so the art images are buttons and when u click it, it is coded to goto next scene..On one scene however the art image is a movieclip (fading effect)...now how do you write the actionscript so if you click on the movieclip it goes to the next scene? I dk im right but...my guess is to put the MC within a button symbol? But I dk. Thanks guys.
UI Text Input Ques.
Ok so Im making a form in flashmx2004..I drag out onto the stage the UI compnent textinput box..now I want to make this box multiline but it doesnt give me the option to do so. Do I have to make input boxes in a different way?
Motion Guide Ques
Hi all,
Is it possible to create a motion guide, so the object connected to the motion guide is always in the centre of the screen.
What I mean is, if we were trying to go from point A to point B
we could see the full journey of the object travelling along motion guide in the centre of the screen.
A-------->--------->-------->------B
The sort of thing I mean is included, but with no motion guide instead, the car remains in the centre of screen and is able to move around the track which in turns moves the the track below.
Thanks for your time, sorry for the broken language. Hope you can help.
--------------
FLA = MM2004
<> QUICK QUES RE:Positioning After Dupe
Hi Im using a while loop and the dupliacteMovieClip() to dupe a certain number of my Mc's. I want to postion each duped Mc after its created with setProperty but I cant figure out how to do this within the same loop.
It complains in output box:
Symbol=playlist_Mc, Layer=Layer 2, Frame=1: Line 9: Expected a field name after '.' operator.setProperty(_root.playlist."box" + count, _y, vertpos);
Obviously I cant do the <"box" + count> bit, but how else can i do it?
(see code below)
Code:
onClipEvent(load){
var vertpos = 46;
var count = 0;
//create
while(count!=4)
{
duplicateMovieClip(_root.playlist.box, "box" + count, 1);
-->this doesnt work//setProperty(_root.playlist."box" + count, _y, vertpos);
trace(count);
count++;
}
//position
}
-Rich
Pleez Help With Random Keyframe Ques.
I have four different movie clips on four different keyframes (2-5) the first key frame has a clip with an invisible button over it. WHat I would like to achieve is onMouseover of the button in the first frame......I would like the playhead to randomly gotoAndStop on of the other frames (2-5). To give the illusion of random movement. The on mouseout return to the first keyframe. any help greatly appreciated....either a .fla I can study or some AS would be great.
Probably Simple LoadMovie Ques. For JPEGs
I have a target MC that I want to load some JPG's into in my Flash Movie. The Target MC's dimensions are 650x500px. The JPG's are the same. When I attempt to load them, I can notice that something has changed in the tone of the movie clip (I had the target MC a grey color then that color disappears) but the JPG does not load.
I tried a smaller JPG, like 1/4 the size, and it loaded OK. ANyone have a suggestion?
Action Script Ref Code Ques
Hello i keep getting this this action script error when i attempt to render this swf could some one explain what this error message means ......i am not sure what the variables are looking for ....... the version is Flash 8 - the action script is below and the error message is below that.......
#include "lmc_tween.as"
//classes are loaded on this frame
var state:com.collection.State = new com.collection.State(this);
// start program
var main:com.collection.Main = new com.collection.Main(this)
//
bg_img.tween("_alpha",100,1,"linear",.5)
stop()
Error message (below)
**Error** Scene=Scene 1, layer=actions, frame=5:Line 1: Error opening include file lmc_tween.as: File not found.
#include "lmc_tween.as"
**Error** Scene=Scene 1, layer=actions, frame=5:Line 3: The class or interface 'com.collection.State' could not be loaded.
var state:com.collection.State = new com.collection.State(this);
**Error** Scene=Scene 1, layer=actions, frame=5:Line 5: The class or interface 'com.collection.Main' could not be loaded.
var main:com.collection.Main = new com.collection.Main(this)
Total ActionScript Errors: 3 Reported Errors: 3
Action Script Ref Code Ques 2.0
Hello please see this link it is a follow up to the thread i created before....i am stil trying to figure this error out when i generate the flash swf it works but not properly... below is a link to what the swf looks like there are buttons that should show and i get this message (shown below) in the flash error box that says (output) when i hit ctrl+enter to generate the swf.... any suggestions...?
b1,b2,lgText,redText,arrow,a:link,a:hover
yo
http://www.amjaydesign.com/mainCol.html
http://board.flashkit.com/board/showthread.php?t=744878
Simple Ques About Blue Border Box
I'm using flash 8. When you draw something or import a picture flash 8 puts the blue border box around it. Well mine is gone. If I draw something and click on it it is a broken shape. How do I get the blue border box back?thanks
Html Code Inside Flash Ques
I have a client who wants me too put some html inside the flash actionscript. He's not sure it will work and I'm not sure if it's possible or how to do it. Here's the code any suggestions thanks
<form action="/gift/save/1234" enctype="multipart/form-data"
method="post">
<input name="file" type="file" />
</form>
Small Flash File Loading Into HTML - Weird Sporadic Loading
Hi,
I'm hoping someone can help...
I have a very small Flash file (less than 5k) loaded into a table cell of an HTML page .
On occasion (on Mac/IE) there is a flash of white appears in the table cell before the file starts. On other occasions only a portion of the file appears (while the rest of the cell is white). And at other times, none of the file appears (the table cell that it's in is appears as white).
The background of the flash file is orange (not white) so I guess that means that none of the Flash has loaded. Sometimes when I refresh the page, the problem resolves itself.
Does anyone know what the problem may be? Is there any sort of pre-loading JavaScript that would help, even though the file is very small to begin with?
Thanks for any help, I really appreciate it!
Loading Multiple Swfs And Xmls Started Before Finished Loading
Hi,
I have a encounter a problem regarding loading of the swfs and xmls files.
A preloader is done for these items. However it started playing before everything (swfs and xmls files) is loaded.
I have an array to contains all the files to be loaded. Using this array, i checked and see if the items are all loaded. If loaded, they will jump to the ready frame.
Anyone have any idea what is wrong??
Thanks.
Q On Loading Techniques Tutorial Http://www.kirupa.com/developer/mx/loading.asp
Well i was looking over
http://www.kirupa.com/developer/mx/loading.asp
And i got pretty stumped over when loading a mp3
I have 5 layers
and a mp3 named chillbeat.mp3
do i create a 6th layer for the code and just put it there???
and if i have a button to play it where would i put this
mySound = new Sound();
mySound.loadSound("music.mp3",true);
is that just the WHOLE CODE for that load mp3 process??
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!
I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!
My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!
My second problem... well. I'll need a few minuts to explain it!
I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?
Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH
This website is, of course, incomplete. I'm still working on it.
Could someone help me????
---- Help me Obi Wan: You're my only hope!!!!
Thanks a Lot.
Raul.
Combining External SWF Loading With Dynamically Loading Text Tutorial
I am trying to combine the external SWF loading tutorial with the dynamic text loading (via XML and CSS) tutorial.
Everything loads fine, except the stylesheet is not applied to the text. It must have something to do with the swf being externally loaded, correct?
Any ideas how to fix this?
Here is the code for Frame 1 of the externally loaded swf.
Code:
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
kungFuStyle = new TextField.StyleSheet();
kungFuStyle.load("example.css");
myText.styleSheet = kungFuStyle;
//load in XML
kungFuContent = new XML();
kungFuContent.ignoreWhite = true;
kungFuContent.load("example.xml");
kungFuContent.onLoad = function(success)
{
if(success)
{
myText.text = kungFuContent;
}
}
midframe=10
All the files are in the same dir.
Loading Bar That Shows Loading Time Of HTML Page Not The Movie
Hi,
I have a flash intro that I'm using for my site, but I would like to (if possible), have an intro HTML page that uses JS to pre-load the images on the site and show my loading FLASH movie while the page pre-loads.
I would like the flash movie's loading bar to reflect the images that are pre-loaded on the HTML page.
Question-1: Is that possible to do?
Question-2: Where do I start? I don't even have a loading bar. All I want is just a simple rectangle that has a bar inside that moves from left to right indicating that the page is almost finished loaded. Then when the page has pre-loaded the images I need it to re-direct to the main page.
Can someone help me accomplish this, or tell me where to find out how to do this.
Thanks!
NATE
design@spyderix-designz.com
http://www.spyderix-designz.com
Loading .swf Files While Main Movie Clip Is Loading
Hello,
I know How to do a Loadmovie command, but I can only get it to work when I goto the Movie Clip that I have that command in. For ex:
In movie clip B I have a command: loadMovie ("Submovie.swf", "_root.MovieClipB");
Which works fine.
What I want to do is while movie clip A is playing I what a command to Start the Load movie function into MovieClip B.
I have tryed many diff. commands and Cannot get it to work
Any help?
Thanks
Movie Loading Into Bankmc Is Loading Blank After Its Been Published
I created this site where it loads movies into a blankmc on in the main Fla file. It works fine when I view it on my computer. And Broadband connections show no problem. But on dial up connection. when you click a bar on the navigation. The fla movie loads in blank. You have to click another button then click on the previous but to load. Why is that?
here is the site (its for some community developer)
Doubletree Lake Estates
Thanks for you time..Let me know if you need to see the file and I'll attach it.
Patrick
Loading Components Externally- Site Loading Problems
Hi there!
i learned a little while ago something new about components.Intialli noticed that with afew sites i had made that when i loaded the sites up.I would have about a 10 second delay or so before even the preloader would kick in properly.I was then asked by someone at Flash kit if i was using any components.Turns out i was.Basically now the site in question i am using a textfield and text scroller, so components i guess these are called. Anyhow for some weird reason i guess these are what are giving me that small pause before the loader actually kicks in. So I was told i should load the components in an external swf.How exactly does this work then? What kind of set up do i need to make for this.First i have the preloader which is included in my main site swf.All of the components are also included within the main site swf.And then i have 28 external swfs with photos in each of them. If someone has any good pointers on how this could be set up right please lets me know.
To be honest this site in question that im working on is really catered for Cable users.So you dont really even notice this little pause before preloader problem.But i still would like to figure this out for the odd joe who is still on a 56k.
Cheers!
Chris
test Site can be seen at www.vistakuva.fi/ju
Loading Dynamic Textbox While Dynamically Loading Movie
Hi All,
So, I've got a movie on the stage (but offstage) called: Card. Inside this MC is a dynamic textbox called: CardName. I'm using a for loop to create a column of cards w/ their corresponding textboxes.
Here's the code:
for (var j = 1; j<=6; ++j)
{
var name = "Card_"+j;
var y = (j-1)*game.spacingY + game.originY;
game.path.attachMovie("Card", name, ++game.depth);
game.path[name]._x = x;
game.path[name]._y = y;
game.path[name]._width = game.cardSizeX;
game.path[name]._height = game.cardSizeY;
game.path[name].CardName.text = "card #" + j;
}
The cards and the textboxes inside the card MCs load fine but the actual textboxes don't change from the default text I've hard-coded in. How can I reach the dynamic textbox inside the card Movie Clip to manipulate the text.
Thanks.
Problem With Loading New External Mc Before Existing One Has Finished Loading
Hi all,
I've been building a flash website which loads various external movieclips with preloaders into a main movie using either target or level. All is working fine, except when a user clicks on a button to load an external movieclip (the button actually goes to a frame label and then said frame contains the loadmovie action), but then decides to click on another button which loads another movieclip before the original has finished loading. This basically breaks flash, causing the movieclips to start looping erratically (even though I have stop actions in place).
Obviously this problem doesn't occur when I test locally, but please follow this link to see what I mean. Click on the 'locations' or 'recent shoots' sections and then try to load a new movie before an existing one has completely loaded:
http://www.david-vernon.co.uk/365_2/365.html
Now I've experimented with adding 'unloadmovie' to buttons and frames to no avail (though as I'm loading new movies into the same target this shouldn't be the problem surely?), so my only thought is that the preloader actionscript might be causing a problem. Here's the actionscript I'm using on frame 1 of all my external movies:
Code:
stop();
myInterval = setInterval(preloader, 10);
function preloader() {
if (getBytesLoaded() >=getBytesTotal()) {
play();
clearInterval(myInterval);
}
bar._xscale = (getBytesLoaded()/getBytesTotal())*100;
percent.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
}
I'm not very good with actionscript and I'm really stumped with this, so any help would be greatly appreciated!
Thanks,
Dave
Dynamic Loading Text File Not Loading Correctly
I am loading info from a text file (noticeBoard.txt) using the following code;
sourceTXT = "noticeBoard/noticeBoard.txt";
nodeSource = new LoadVars();
nodeSource.onload = gotoAndStop(printText);
nodeSource.load(sourceTXT);
Then writing it into a textfield when the timeline moves to the 'printText' frame.
The swf is working when I load my html page (notice.htm), with all my values being displayed. If I then navigate away from this page to one where I write more info to the text file and then return to notice.htm the latest info in the text file does not show in my swf. Even if I refresh the html page the new info does not appear until I shut my browser window then reopen it.
Does anyone have any suggestions to why this info is not coming in on the fly?
Thanks
Loading Two Movies & Loading Entire Current Movie
well, having a bit of problems with figuring out my preloader :/. Iv been able to figure out how to load a single external movie with a dynamic preloader graphic that tracks percent and stuff, but i have not been able to figure out how to load multiple external files but useing the same graphic to track the percentage of the loading for the two as if they where 1. Also have not been able to figure out how to make a preloader for the current movie. LIke have the preloader at the beginning of the movie and have it stop, and run the preloader for the load of the rest of the movie file, then continues to play the intro of the same file after loading has been compleated. my code for what i'm able to do is below, any help woudl be helpfull :). Thank you guys and girls^^
Attach Code
var requestObj:URLRequest = new URLRequest ("waterIntroAnimation.swf");
var loaderObj:Loader = new Loader();
loaderObj.load(requestObj);
b1.visible=false;
loaderObj.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,preloadProgress);
loaderObj.contentLoaderInfo.addEventListener(Event.COMPLETE,preloadComplete);
function preloadProgress(event:ProgressEvent):void{
var loadedPercent:int = event.bytesLoaded/event.bytesTotal *100;
preloader_mc.loadingBar_mc.loaderText_txt.text=loadedPercent+"%";
preloader_mc.loadingBar_mc.loaderMask_mc.scaleY=loadedPercent/100;
}
function preloadComplete(event:Event):void{
preloader_mc.visible = false;
b1.visible=true;
}
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.
http://www.bloggot.co.uk/file.zip
Showing Total Progress Of A Loading MC And A MC Loading Inside Of It.
When entering a page I want a main.swf to load, using the MovieCLipLoader. When main.swf has completed loading, it automatically starts loading another swf, home.swf, into itself in a specific area.
I want to display the total download progress of loading the main.swf and home.swf.
First when the whole download progress is done, I want the main.swf together with the home.swf to be visible.
Any ideas on how to do this ?
External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,
Can someone please help me...
I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.
The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )
My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!
Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
//EXAMPLE CODE:
loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;
//This works with JPGs but not SWFs
Thanks in advance!
J
ps. i am using Flash MX
Loading Main Timeline Diff. From Loading External Swf's?
Last edited by enkriptid : 2008-06-30 at 04:16.
hey peoples, im still learning how to load things , my methods are working so far..
what ive been doing to load external swfs is using a intermediate "loading swf" that works between the main timeline and the desired swf to be loaded.. so far it works and is simple enough for me to work with now, but my question is, how do i go about preloading the main timeline if there are mc's being exported .. i tried my previously mentioned method but no dice.. if theres a rock-solid technical answer id like that..my goal is to have most of my site(illsci.com) in actionscript .as files, doc. classes and xml as of now so im looking for a method i can implement using script if i can, if there is one. perhaps a metatag trick of some sort
|