Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Dissapearing Objects



Whenever i put a mask in my .fla, my fonts dissapear. . Does anyone know why, or how to fix this? Thanks for your time.



FlashKit > Flash Help > Flash MX
Posted on: 02-10-2003, 11:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dissapearing MC
Hello all,

I'm trying to setup my portfolio section of my website and figured XML would be the best way to go for this. I have the subnav displaying properly
(website/print/etc.) along with the button-like functions. Ideally, when a user selects one of these sections, a list of all projects in that section would be displayed after duplicating another movieclip created just for this purpose.

This is where my problems seem to be. I can't seem to get the list of projects to list the proper projects and the top two subnav mc's disappear when selected. However the rest remain when clicked on. I can't figure either issue out. Maybe I've just been starring at this for too long and I'm missing the obvious. So hopefully a fresh pair of eyes can help point me into the right direction.

In my XML file, I have it broken down like this:


<code>
<PORTFOLIO>
<WEBSITE>
<CBC CLIENT="CBC" TITLE="" YEAR="2003" ROLE="Brief description here..." LINK="http://ceciestuntest.ca" IMAGE="../portfolio/website/cbc-web01.jpg"/>
<THEBEAR CLIENT="100.3FM The Bear Radio" TITLE="" YEAR="2002" ROLE="Brief description here..." LINK="http://thebearrocks.com" IMAGE="../portfolio/website/thebear-web01.gif"/>
</WEBSITE>
<PRINT>
<PRINTCLIENTNAME NAME="Client Name" TITLE="Project Title" DATE="Date" ROLE="Brief description here..." IMAGE="../portfolio/print/client-project01.gif"/>
<PRINTCLIENTNAME NAME="" TITLE="" DATE="" ROLE="" IMAGE=""/>
</PRINT>
</code>

... And so on.

My code:


<code>
// GET THE XML FILE AND FIGURE OUT ITS CONTENTS
portfolioData = new XML();
// IGNORE WHITE SPACE
portfolioData.ignoreWhite = true;
// FUNCTION WHEN XML IS DONE LOADING:
portfolioData.onLoad = function() {
mainTag = new XML();
mainTag = this.firstChild;
// trace(count = mainTag.childNodes.length);
count = mainTag.childNodes.length;
if (mainTag.nodeName.toLowerCase() == "portfolio") {
portfolioList = mainTag.childNodes;
for (child=0; child<count; child++) {
// FIRST CLIENT IN EACH CATEGORY
// trace(portfolioItem = portfolioList[child].firstChild.nodeName);
// DUPLICATE MC AND POSITION IT UNDER THE PREVIOUS
ONE
currentSubnav = projectCat.duplicateMovieClip("projectCat"+child, child);
currentSubnav.subnavName = portfolioList[child].nodeName.toLowerCase();
currentSubnav._name = portfolioList[child].nodeName.toLowerCase();
currentSubnav.childNum = child;
currentSubnav._y = child*14.5;
currentSubnav._x = 265;
// SET VISITED STATE
currentSubnav.onLoad = function() {
this.visited = false;
};
// SET BUTTON FUNCTIONS
currentSubnav.onRollOver =
currentSubnav.onDragOver=function () {
this.gotoAndPlay("over");
};
currentSubnav.onRollOut =
currentSubnav.onDragOut=function () {
this.gotoAndPlay("out");
if (this.visited == true) {
this.gotoAndPlay("visited");
}
};
currentSubnav.onPress =
currentSubnav.onDragOver=function () {
gotoAndStop("visited");
this.visited = true;
// trace("The "+this._name+" category
currently has "+portfolioList[this.childNum].childNodes.length+" projects listed.");
trace(count2 = portfolioList[this.childNum].childNodes.length);
// LOAD PROJECT ITEMS INTO DUPLICATED
MOVIECLIP
for (child2=0; child2<count2; child2++) {
currentProject = projectItem.duplicateMovieClip("projectItem"+child 2, child2);
currentProject.itemClient = portfolioList[child2].firstChild.nodeName.toLowerCase();
currentProject.itemTitle = portfolioList[child2].firstChild[0].nodeName;
currentProject.itemYear = portfolioList[child2].firstChild[1].nodeName;
// trace(currentProject._name = portfolioList[this.currentSubnav.childNum].nodeName.toLowerCase());
// trace(currentSubnav.childNum);
currentProject.childNum = child2;
// trace(portfolioList[this.childNum].firstChild.nodeName);
currentProject._y = child2*14.5;
currentProject._x = 372;
// SET VISITED STATE
currentProject.onLoad = function() {
this.visited = false;
};
}
};
}
}
};
</code>



Any help would be greatly appreciated.

All the best,

Randomly Dissapearing MC's
I'm working on an Invaders style game. Each enemy is a duplicated MC. For some reason, they dissapear at random. I've checked everything that I can possibly imagine would have anything to do with this--visibility, position, removeMovieClip, etc. However, none of these is the cause of the dissapearances. Is it possible that flash is deleting them because there's not enough processing power? (I'm forced to work on my dad's PI laptop). Can anybody explain why this is happening?

Many thanks for any help that you can offer.

Dissapearing Text
Ok...
I create a single line, 20 char max input text field...
If you highlight the text and your cursor just barley strays from the box, all the text dissapears... the only way to get it back is to click in the field, and press left or right arrows (depending on if you justified the text left or right...)

This is a problem because it confuses users trying to modify their content...
How can I get rid of this issue?
Help!!

I Can't Believe I'm Having A Dissapearing MC Problem, But, Well, Here I Am.
(EDIT: fixed! All I did was change an instance name, but it all works now.)

(Using Flash 5, but it shouldn't make a difference here).

This problem has been driving me crazy for two hours. I duplicate a movie clip, and I can trace its name and position, but it dissapears before the onClipEvent(load) actions are performed. It's not registered in any arrays marked for deletion, in fact, no other MC has its instance name. It just goes never appears. I've checked to make certain that the layers don't overlap, so I know that's not the problem. What the hell else could be causing this problem?

Thanks for your help,
Max Abernethy

Appearing And Dissapearing Box
Hello. im trying to make an options popup box

I have a window/box movieclip in my flash movie which i want to appear on the stage at x50 y50 upon clicking a button.

There will be another button which is a part of th window/box movieclip which when clicked will remove the window/box movieclip from the stage.

If anyone can help mw tieh some script for the button to make this happen i'd be very greatfull.

Dissapearing Text In Mc
I keep having a problem with static text in a scroll pane that just cuts off after a certain point. I have a text block about 2050 pixels deep and 420 pixels wide. once I export to swf or test movie the text just fails to show up after about 1500 pixels, the rest is just blank! This is the second time I have run into this, any experience with this problem/bug?? I am using a scroll componant from FlashLoaded for this.

[CS3] Text Dissapearing
Hi,
I have added text to a flash banner and when I put the banner on my website the text works on some computers but not others.

All the other imagery shows fine. I thought it might be to do with browser versions however, I have tested for this and it doesn't seem to be the case.

Any help would be much appreciated!

Thanks,
Rob

Dissapearing Sound
ok its driving me crazy!!
why does this happen to me ?
sometimes i use sounds and they are compouter sounds
ripped from retro games for buttons etc..
when the file gets published the sound just isnt there?
i try and override the sound settings and still nothing?
does flash only use up to a certain frequency of sound and then does it just drop all others that are being called
or am i missing something ?
please help its driving me crazy, I am reloading the same file / edited as wav as aiff as mp3 still nothing
i giiiive uP!

AttachMovie Dissapearing....
So I have two buttons that attach different movies to the stage when the user clicks on them. I am attaching the movies to an empty movie clip because I have a third button that clears all dynamically added movies off the stage. The set up looks like this:


ActionScript Code:
stop();

videosBTN.onRelease= function() {
_root.cover.createEmptyMovieClip("spaceships", _root.cover.getNextHigherDepth());
_root.cover.spaceships.attachMovie("videos", "v", _root.cover.spaceships.getNextHigherDepth(), {_x:-170, _y:80} );
}


photosBTN.onRelease= function() {
_root.cover.createEmptyMovieClip("spaceships", _root.cover.getNextHigherDepth());
_root.cover.spaceships.attachMovie("photoGal", "p", _root.cover.spaceships.getNextHigherDepth(), {_x:-10, _y:60} );
}

clearBTN.onRelease= function() {
removeMovieClip(_root.cover.spaceships);
}

The problem I am having is this:
When I click on one of the buttons, the appropriate movie gets attached to the stage just like I want. However, if a user clicks on the next button then the empty movieclip gets dropped from the stage and all of the dynamic movies disappear - leaving an empty stage. If I click a second time on the second button, then the movieclip I wanted to attach to the stage appears. What is going on here? Does this description make sense? Help!

Dissapearing Mc After Fade In
When using this script

onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 10;
}

my mc dissapears after a seemingly random period of time...

Heres the site im working on.

If you watch the outer border for between 1 and 4 mins (sorry im aware you're all busy!!) it mysteriously dissapears.... cant understand why..... any ideas guys?

Thanks in advance

Behaviours Dissapearing
Im really annoyed. I have an object, and I set the behaviour so it will make a noise when rolled over

But when you first set it, the default is "on release", so when i change it to "on rollOver" it deletes it :(

Please help

Instances Of MCs Dissapearing
Here is the script.







Attach Code

onClipEvent (load) {
i = 10;
timer = 0;
}
onClipEvent (enterFrame) {
if (timer>=27) {
timer = 0;
_root.bomba.duplicateMovieClip("bomba"+bombNum,bombNum);
eval("_root.bomba"+bombNum)._x =Math.round(Math.random()*(590));
eval("_root.bomba"+bombNum)._y = 0;
if (bombNum == 900) {
bombNum = 0;
} else {
bombNum++;
}
trace(bombNum);
}
this._y += 10;
timer++;
if (this._x<10 || this._x>590 || this._y>550) {
this.removeMovieClip();
}
}

As you can see it creates a bomb at a random x position at the top of the movie. Then it has the bomb falling to the bottom at a speed of 10, then it removes it. As you can see it generates many of these at but thats where the problem is. When some of them get about half way down they just dissapear and I can't seem to find any reason why.
I really would appreciate if someone would take a look at this and see if they can find anything wrong. Thanks for all the Help!!!
Brian

Dissapearing Mc After Fade In
When using this script

onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 10;
}

my mc dissapears after a seemingly random period of time...

Heres the site im working on.

If you watch the outer border for between 1 and 4 mins (sorry im aware you're all busy!!) it mysteriously dissapears.... cant understand why..... any ideas guys?

Thanks in advance

Dissapearing Mc After Fade In
When using this script

onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 10;
}

my mc dissapears after a seemingly random period of time...

Heres the site im working on.

If you watch the outer border for between 1 and 4 mins (sorry im aware you're all busy!!) it mysteriously dissapears.... cant understand why..... any ideas guys?

Thanks in advance

Dissapearing Text?
I have certain text in the my movie that when i go to "test movie" it doesnt show up. How do I fix this?

Loaded Movie Dissapearing
Hi,

i have a Movie Clip where i load a .swf file. That movie clip is getting animated from left to right over 10 frames, and when the animation stops, the loaded .swf file gets unloaded. Is this a normal behavior? Should i reload the .swf file everytime the movie clip ends? I hope not because that wouls realy slow things down...
Please help me with this one...
Txs.

Dissapearing ActionScript Window
Hi Again-

For some reason I can't find the ActionScript window. It's selected so it should be visible (I also de-selected and then re-selected but to no avail). I zoomed out to a 10% viewing area, and I still couldn't find it. This happened to me with Flash 5 before with the Scene window; it wasn't until I re-installed Flash that it was fixed.

Any ideas? I need my window back and don't want to re-install. Also, what am I doing wrong to cause this problem?

-Art

Appearing And Dissapearing Buttons
what i want to happen is after you click a button 30 times a different button will appear and the other one wont work. then if the new button is pressed it will dissapear and the other one will work fot 30 more clicks and so on...

-SLUSHIE

Loaded Movieclip Dissapearing?
Ok,

I've loaded a movieclip (leaves) into the bottom layer of my movie. The layer above contains a mask that is shape tweening. This all works well - you can see the leaves 'shrinking' as a reult of the mask, however, when the mask finishes tweening (hits the ned keyframe)the leaves dissapear!

At first I thought i'd done something odd with the mask, but if I place a key fame mid-tween, the leaves disapear at that point instead??

If I change the layer from a mask layer to a normal one, the leaves remain visable throughout the movie.

Just don't get it. Anyone come across this before?

Dissapearing Images And Text
I've got a relatively long block of text and images.
Part of it seems to be missing when I export an SWF. Is this normal in flash and is there no way around it?

thanks

Craig

The Case Of The Dissapearing Masks
Hi!

I am a fairly new flash designer and still am not quite up to speed on the basic 'ins' and 'outs' of how everything works! I have managed to create a problem to which i can not find the answer.

I have created a quick movie with a text effect which i think looks quite good. The effect envolves an enlarging moving image MC which is masked by an enlarging text MC over the top. In the construction window, this works without a hitch. However, as soon as i export or test the movie, the masks are somehow removed leaving the whole image MC!

This website is for my local ATC squadron, and they badly need it to work! If anyone can shed any light on where my masks are going, I would be really grateful! If however I am being really really dumb and there is something I really ought to know about, can someone clue me in???

Thanks for your help.

Commander NRG

HELP... Dissapearing Scroll Bars
I followed the instructions given on the macromedia site on setting up the Flash UI componant scroll bars for a dynamic text box. when i test the scene of the text box w/scrollbar as a graphic and/or mc the scroll bar shows up. however when i through that same mc onto the stage of another mc and test that scene the scroll bars are there and functioning just not visible. I really need to get this working because this is for a paid job. I have used scrollbars before and not had this problem so any help would be greatly appreciated.

thanx...

pete

Odd Dissapearing Text In An MC - Newbie
Hi,

Flash MX 2004 – I have this list of 174 titles (one on each line) that was first typed in WORD then copied and pasted as a text in Flash. This text box (on top layer) is then placed over 174 buttons (bottom layer). These items make a movie clip (called names) with an identifier (text box) in its properties. I have then created this box which displays the content of my names clip.

When previewed, it works but only from title 1 through 102 ?! My buttons appear but the rest of the text is missing. Can someone help me with this ODD problem? I even copied my buttons and my text and placed them in a new FLA file and when previewed… It gives me the same problem !

Any help is greatly appreciated.

Luke

Text Following A Path And Then Dissapearing
Hi

I would like to have my text on a cylinder.

when a button is clicked i would like the text to follow the shape of the cylinder (moves to the right) and dissapear around the back, i would then like some new text to appear from the left to then sit in the middle of the cylinder as before.

any ideas on how to do this? any tips? or tutorials to follow? i've been looking but can't find any for this!

Thanks

Flash Banner Dissapearing Act
It's a flash banner in www.angelicaappraisals.com and I just found out that the top banner( the one with images, and the logo being written out) doesn't show up on someone's computer.
However the flash intro, and menu bars all do show up, and work fine.I'm baffled and really
have no idea why. The site is made in html, with some flash plugged into it.
If you have any suggestions It would be so so helpful

So very much appriciated,
M

Mysteriously Dissapearing Elements
This has happened on two of the flash websites that i've built without any apparent reason: Elements just randomly disappear. text, photos, buttons, movieclips. very strange, take a look and see if you can find the issue…

just preview the file and wait for a little while, you'll see what i'm talking about.


here here

_grennex

LoadMovie Clips Are Dissapearing Why?
wtf! I am making a webpage but it's heavy so i'm loading the graphix in as separate .swfs. The problem is that when they load they dissapear! When I click the refresh button on my browser they reappear and are fine. why is this? Why are they dissapearing in the first place. here is what I have in the main movie all on the second frame

Code:
clip_5.loadMovie("clip5.swf");
clip_1.loadMovie("clip1.swf");
clip_2.loadMovie("clip2.swf");
clip_3.loadMovie("clip3.swf");
clip_4.loadMovie("clip4.swf");
clip_6.loadMovie("clip6.swf");
stop();
and in each swf that loads i have a preloader that says on the 2nd frame:

Code:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
and then on the third frame it says:

Code:
if (iBytes<100) {
gotoAndPlay(2);
} else {
trace("this 3 loaded");
gotoAndStop(4);
}
the graphics are on frame 4. this way they won't play until fully loaded.

So! on my desktop the clips load fine and work perfectly but when it's up on the server they just load and then dissapear. When i click refresh everything shows up. What am i doing wrong? I've tried a zillion different things with always the same result.

Big thanks to anyone who tells me where I'm screwing up. Below is a link to the page. see they dissappear!

http://www.threebrain.com/bs/sack/sackSite4.html

Problem With Dissapearing Data
Hi there

I have created a series of pages that have calculator fields on each.
The problem is that when I change pages I lose all the data typed in on the page before.
I need to fill in four pages then arrive at the last page where all the fields are added up.
Have included a screen shot of the problem as well as the code....hope you can help.

The code is as follows:-

function floor(Number) {
return Math.floor(Number*Math.pow(10,2))/Math.pow(10,2);
}

var _l: Object = new Object();
_l.change = function (evt: Object):Void {

// see what the user has selected
var lbl:String = evt.target.selectedItem.label;
var dt:Number = parseInt(evt.target.selectedItem.data);
var num:Number = Number(myNumber.text);

if (dt==1) {
myOutcome1.text = floor(num*1); // week
calculateTotal();
}
else if (dt==2) {
myOutcome1.text = floor(num/2); // biweekly
calculateTotal();
}
else if (dt==3) {
myOutcome1.text = floor(num*12/52);// Month
calculateTotal();
}
else if (dt==4) {
myOutcome1.text = floor(num/52); // year
calculateTotal();
}
}

myCB.addEventListener("change",_l);

Dissapearing ScrollBar In Scrollpane
I have used the scrollPane component to scroll some content but when I publish the .swf it does not publish out the scroll bar I just get the content with no scrollBar - Any Ideas?

HELP,
-M

Instance Apearing And Dissapearing
Asumming I have an object CAT in my library, can someone give me the code for making an instance of CAT apear, and then the code to make that instance disappear?

Background Layer Not Dissapearing
I am trying to use one of the layers on my stage which is just a black rectangle for a background in another swf file so that when you press on the button which brings you to my other swf file the rectangle acts as a background. I gave the layer which has the rectangle in it an frame label name. Im not sure what the code is, I want the rectangle to be invisible on my stage and have it appear when you press the button to go to my file which is called one.swf. I thought i could make the background image to = false and then on an onpress make it = true so when you open one.swf it will pop up. Right now its just taking over my whole stage....well im sure theres other ways but hopefully someone can help, i am not in a rush or anything so thanks a lot for any help. i also have a few more problems so if theres any way i could upload my file for someone to take a look let me know too... ok thanks...
g

Background Layer Not Dissapearing
I am trying to use one of the layers on my stage which is just a black rectangle for a background in another swf file so that when you press on the button which brings you to my other swf file the rectangle acts as a background. I gave the layer which has the rectangle in it an frame label name. Im not sure what the code is, I want the rectangle to be invisible on my stage and have it appear when you press the button to go to my file which is called one.swf. I thought i could make the background image to = false and then on an onpress make it = true so when you open one.swf it will pop up. Right now its just taking over my whole stage....well im sure theres other ways but hopefully someone can help, i am not in a rush or anything so thanks a lot for any help. i also have a few more problems so if theres any way i could upload my file for someone to take a look let me know too... ok thanks...
g

Dissapearing Swirl Effect
Can anyone help me with an effect I'm trying to make?

I'd like to make an image look like it's disappearing by someone is drinking it down with a straw. The best way to describe this would be if you were looking at a the inside of coffee mug from the top down, and the contents would ripple, and disappear in a swirl effect. I don't want to show the straw, just the effect the liquid would have if someone was drinking out of one. I don't have an example anywhere, but I hope you may get what I mean.

I sort of have the ripple effect done using an oval shape tween mask, but would welcome any better (more realistic) suggestions.

I should mention that I do not know actionscript at all, so if that's the solution please lay it out like you were teaching a 5th grader. Thank you in advance.

Scrollpane Issues. Graphics Dissapearing
I have a scrollpane with mainly text in, and have some graphics , just tiny squares.
They showed up perfectly, then for some reason they disapeared when . If I just draw a squiggle, it wont show up either, just text and other graphics. Why does it do this?

Flash Movie Dissapearing On The Server
Hi,

I have a flash movie that works perfectly fine on my computer, but when I upload it on a server and send out the link, the people who try to open it only see half the movie, and the rest is blank. Does anyone know what might be the problem?
Thanks a lot!

Dissapearing Dynamic Text Boxes
when i create a dynamic movie clip and text boxes inside it, when i make the third text bix it kills the first, any thoughts
Code:
_root.createEmptyMovieClip("main_mc",getNextHighestDepth()) ;
_root.main_mc._y = 80;
_root.main_mc._x = 80;

// *** Client text box
_root.main_mc.createTextField("client_txt",getNextHighestDepth(),0,45,50,18) ;
_root.main_mc.client_txt.text = "CLIENT..." ;
_root.main_mc.client_txt.setTextFormat(generalText) ;
_root.main_mc.client_txt.border = true;

_root.main_mc.createEmptyMovieClip("client_nav_mc",getNexthighestDepth());
_root.main_mc.client_nav_mc.createTextField("nav_txt",getNextHighestDepth(),0,65,50,18);
_root.main_mc.client_nav_mc.nav_txt.text = "nav here";
_root.main_mc.client_nav_mc.nav_txt.border = true;
_root.main_mc.client_nav_mc.nav_txt.setTextFormat(generalText) ;
/*
_root.main_mc.createEmptyMovieClip("client_name_mc", getNextHighestDepth());
_root.main_mc.client_name_mc.createTextField("client_name_txt",getNextHighestDepth,10,10,100,20);
_root.main_mc.client_name_mc.client_name_txt.text = "name";
_root.main_mc.client_name_mc.client_name_txt.setTextFormat(generalText) ;
_root.main_mc.client_name_mc.client_name_txt.border = true;
*/

Text Dissapearing In Internet Explorer 7
I have an into movie that plays on our website. It used to work fine with Internet Explorer 5 but with 7 for some reason the text that fades in and out dissapears. I can't figure it out because it works fine in other browsers like Firefox and the text are graphics in the flash file just like the images that are appearing fine. If anyone knows how to fix this please let me know.

Thanks :-)

Swf Dissapearing Text In Internet Explorer 7
I have an into movie that plays on our website. It used to work fine with Internet Explorer 5 but with 7 for some reason the text that fades in and out dissapears. I can't figure it out because it works fine in other browsers like Firefox and the text are graphics in the flash file just like the images that are appearing fine. If anyone knows how to fix this please let me know.

Thanks :-)

Problems With Parts Of My Site Dissapearing, Sometimes
The Website

Part of the last film strip dissapears sometimes, particularly on low connection, But on most pc's runs fine. I've done everything I can possibly think of to solve this and have had no luck, I have heard alot of people are having the same trouble, with flash 8, I used flash 8 to make this website but have since converted it to flash 9.
Any help would be much aprieciated.

xxx clarissa mosse

Problem With External Swf Dissapearing After So Long
i have a movie using this preloader which i got here from another post that uses this code on the preloader movie itself.


Quote:




onClipEvent(enterFrame){
if(dummy ==1){
_root.text._alpha += 10;
}
loaded = _root.clip.getBytesLoaded();

total = _root.clip.getBytesTotal();
num = int(perc) + "%";
perc = (loaded/total)*100;
bar._width = perc;
if(loaded == total && dummy == 1){
_root.text._alpha = 0;
_root.now = 1;
//trace("dja");
}
}




Then i have on my frame action


Quote:




clip.loadMovie("drive.swf");
clip._alpha = 0;
now = 0;
text.dummy = 1;

//now load the external file into the myData object
myData.load("drive.txt");
stop();




Now it works great but when you go throught the frames and let it sit for about 30 seconds with out hitting a next or previouse to load the next swf it dissapears and then after about 30 sec it reapears and keeps doing it.

Can some one please help?

Thanks!

Problem With External Swf Dissapearing After So Long
i have a movie using this preloader which i got here from another post that uses this code on the preloader movie itself.


Quote:




onClipEvent(enterFrame){
if(dummy ==1){
_root.text._alpha += 10;
}
loaded = _root.clip.getBytesLoaded();

total = _root.clip.getBytesTotal();
num = int(perc) + "%";
perc = (loaded/total)*100;
bar._width = perc;
if(loaded == total && dummy == 1){
_root.text._alpha = 0;
_root.now = 1;
//trace("dja");
}
}




Then i have on my frame action


Quote:




clip.loadMovie("drive.swf");
clip._alpha = 0;
now = 0;
text.dummy = 1;

//now load the external file into the myData object
myData.load("drive.txt");
stop();




Now it works great but when you go throught the frames and let it sit for about 30 seconds with out hitting a next or previouse to load the next swf it dissapears and then after about 30 sec it reapears and keeps doing it.

Can some one please help?

Thanks!

Dissapearing Object When Dropped On A Target?
Hello,

I was wondering if anyone know how to make and object (movie clip) dissapear when dropped on a specific target.

Lindsay

Random Appearing And Dissapearing Movie-clips?
Hey there
I want to create a litl game where graphics appear randomly. When the user clicks on them they must dissapear. Any help???

XML Loaded Image Dissapearing After Movie Repeats
I'm using the below code to load an image via xml into an existing movie clip "pic1" within another movie clip "pics". It works fine except that when the movie loops back to the beginning, the image loaded into "pic1" is no longer there. Any ideas?

function ParsePics(picsInput:XML):void {
var picsList:XMLList = picsInput.pic.image;
//for (var i:int = 0; i < picsList.length(); i++) {
var picsElement:XML = picsList[0];
var imageURL = picsElement;
var loader:Loader = new Loader();

var picMovie = pics.getChildByName('pic1');
picMovie.addChild(loader);
loader.load(new URLRequest(imageURL));
loader.y=-185.5;

}

Input Textfield (w/dissapearing Pre-filled Text)?
Can this be done easily?

Basically I want an input textfield that is pre-filled with some text. I want this pre-filled text to dissapear when the input textfield recieves focus (and if possible re-appear if the text field losses focus without having any text entered in to it).

Right now I'm thinking of having the pre-filled text inside a MC that sits on top of the input textfield and dissapears on mouse over, and re-appears on mouse out after checking if there is any text in the textfield. I was just wondering if there was a cleaner way of doing this?

Wierd Font Issue, Text Dissapearing After Embedding
Hey everyone -

I'm having a very frustrating problem. I have a text field that I am loading text into dynamically. I am loading it with html tags and have that selected on the textfield.

I've applied some css to the textfield to highlight <a> tags. It shows up when i publish the movie when the fonts aren't embedded, but as soon as i embed the font, all of the things in the <a> tags disappear.

If I take out the css styles, everything shows up fine. I don't get it...

Can anyone help???????

Thanks

How Can I Rotate A Dynamic Text File Without The Text Dissapearing?
Using XML, a text file and Flash actionscript I was able to upload text into a Flash file externally. Here's how I did it:

In the Actions keyframe:

loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
paragraph1.text = this.paragraph1;

};

Then in data.txt:

paragraph1=Blah blah blah blah blah blah blah.


The problem began when I wanted to tilt my paragraph of text a few degrees to the left. I can do this to a regular Static Text box and the text doesn't dissapear. However, when I went to Transform/Rotate/-0.6 degrees, the external text immediately dissapeared. Why does this happen and how can I solve this?

Store And Retrieve Array Of Custom Class Objects From Shared Objects.
Hi,

I am stuck up with a problem in ActionScript 2. I am using Flash MX 2004 on windows XP.

I have created 3 custom classes say Parent, Child, and GrandChild. Parent class contains in it an array of its Child objects. Similarly each Child object contains in it an array of GrandChild objects. Also I do have one global array of all the Parent objects.

I want to store this array to the shared objects on specific events(say exiting the session) and then reload them from the shared object(on next session startup). I am able to store the global array to the shared object but when I try to retrieve the same array from shared object, I could not do it. The retrieved array is not of my custom class type [Parent].

Help needed to solve this problem urgently. Does anybody have idea how to do it??

Thanks in advance.



Cheers,
Naishadh Sevalia

Objects Talking To Objects, Parent/child Communication, Scope
I've been using AS3 at an intermediate level, and am getting deeper
into classes. I'm loving classes! I'm just cloudy on a few general
concepts.

It's easy for me to create a child object from a parent object, like a
ship in space for example (not working with ships right now but seems
fun to talk about). I can then navigate the ship from the parent
object.

What happens if the ship's engine temperature reaches critical? Is it
wise to dispatch a ship event that tells space that my ship is nearly
scrap? Or do I periodically query the temperature amount of the ship
from space? To me an event sounds like the solution, but I remember
hearing somewhere that parent objects should only talk to child
objects, not the other way around. Is this true?

Could I trouble someone for a basic example of how you would make this
communication work best?

Thanks for the assist. I'll post if I find anything interesting in
the meantime.

Copyright © 2005-08 www.BigResource.com, All rights reserved