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




_visible Property Not Displaying Correctly



I have a problem with programming a simple Memeroy game, where you have to find pairs. Only two cards can be revealed at a time. If it is a pair they will stay visible, if not they should be turned again after waiting some seconds. The pictures are the underlaying layer, the backside of the cards are in movieclips of which the visible property is changed and invisible buttons on top trigger the thing.

The SWF can be viewed at http://www.mhofele.de/Memory3.swf

The code should be fine, because all the trace prompts are correct, but somehow I can't see the visibility changing on the second cards. Can someone see what is wrong with it?
Here's the code of the buttons. (There is only a global variable in the framescript, no other scripts)


Code:
on (release) {
trace ("Beginn");
if (A2._visible == true) { // this script is only doing something, when card was not revealed
trace ("card is not yet revealed");

// 1. Click
if (aufgedeckt < 1) {
trace ("1. Click");
A2._visible = false; // reveal card
aufgedeckt++;
trace ("Variable 'aufgedeckt' was increased by 1");
k = A2;
trace ("movieclip is saved in global Variable k");
trace ("k = " + k);
}

// 2. Klick
else {
trace ("2. Click");
trace ("reveal card");
setProperty("A2", _visible, false); // reveal card

trace (" is partnercard already revealed?");
if (D2._visible == false) { // if partnercard (pair) is revealed
aufgedeckt = 0;
trace (" Card was already revealed, var 'aufgedeckt' is set to 0");

}
else { //if 1. Click was not the partnercard: wait and then turn the cards

//Timer
trace ("Timer for waiting: wait 3 seconds");
x = getTimer()/1000;
y = x+3;
while ((getTimer()/1000) < y){
trace ("Timerstart:" +x +"Timer plus 3 seconds" +y);
setProperty("A2", _visible, false); // Karte aufdecken
}
trace ("Timer finished, now turn cards again");

trace ("turn this card");
setProperty("A2", _visible, true);
trace ("now turn the card that was revealed first");
trace (" What is in k? " + k);
setProperty ("k", _visible, true);
aufgedeckt = 0;
trace ("cards are turned and 'aufgedeckt' was set back to 0");
}
}
}
}
[Edited by MoniH on 05-25-2002 at 05:28 AM]



FlashKit > Flash Help > Flash ActionScript
Posted on: 05-24-2002, 06:32 AM


View Complete Forum Thread with Replies

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

_visible Not Working Correctly
html: http://roscoecreations.com/main_flash_help.html
fla: http://roscoecreations.com/main_flash_help.fla

Go to the html page and click on the manager and you will see the bullet points appear but if you go where the sihouettes used to be they will reappear. If i take out the bullets movieclip this wont happen so it has to be something to with that clip but i cant figure it out. Any help?

_visible Property?
In my main timeline i have a movie clip instance called "menu_mc" that consists of 4 buttons that animate. So when i first load the my swf or whatever i want it so 3 of the 4 buttons dont show. I tried going "_root.menu_mc.buttonName._visible=false; but it doesnt seem to work. Am i doing something wrong or what? plz help thanks!!

[F8]using _visible Property
I'm creating a standalone .exe file in Flash. Instead of loading external swf's (the whole file needs to be completely self-contained if possible) I'm trying to use the _visible property to turn a slide show on and off. However, when I assign a "_visible = true" property to a button, the movie only stays visible for one frame then blinks off again.

Complicating this somewhat is that I'm using a scroll pane component. The button which turns on the _visible property is inside the scrolling content, and the slide show plays on a layer in front of the scroll panel. So the end result I'm looking for is being able to make the slide show visible from inside the scrolling content, then turning it off again with a button that is either inside the slide show or a separate mc.

Thanks for any help!

Gerry

_visible Property
I am loading external swfs as my webpages, but when i roll over them and go over a location where i have buttons on my homepage behind the external swf i still get the little hand pointer, but there is no button in the swf just on the homepage(parent swf) behind it. I thought of trying to make the buttons not visible when i load an external swf but that was no help because then they go away before the page is loaded. Is there an alternative to this problem. Please Help!

_visible Property...how Does It Work?
Hi!

I'd like to know how can I do to make a button or a graphic to become visible/invisible.

Any idea??

Thanks... and keep on rockin' !!!

Help With Text._visible Property
In my movie when I get to a certian key frame I want to make 2 text fields that are in the next frame invisible. But I don't seem to understand the syntax correctly.

Would not do something like this in the keyframe before you get to the frame with the text? I need to control it from one frame ahead.


Code:
evelutionText1._visible=false;
evelutionText2._visible=false;

Problem With _visible Property
i got this as error

**Error** Symbol=Clock, layer=a, frame=1:Line 6: Syntax error.
clock_mc.0_mc._visible =false

this is the code

clock_mc.0_mc._visible =false

0_mc is a movie clip that is inside clock_mc, another clip, WHATS WRONG :S this is driving me crazy

Please Explain _visible Property...
Can someone please explain how the _visible property works and how I can use it with loading external movies into my main.swf...

I have 3 movies loading into my main and I want to hide two of the movies until my main movie is preloaded. I am using a preloader for the main movie but I don't need it for the other two movies...

Any help is appreciated.

Help With _visible Property Onload...
Hi All,

I'm hoping someone can help me with this... I have 2 EXTERNAL movies being loaded with initial load of my site into my main.swf, one of which (movingbg.swf) is being loaded with a preloader. The problem is that my other movie (menubar.swf) is loaded before my first movie. I think I should use the _visible property to solve this and here is what I have so far...

On second.swf I have:

onClipEvent (load)
{
_y;
_y = 0;
this._visible = false;
}

On my preloader located in my main I have:

this.onEnterFrame = function ()
{
var _l1 = _root;
percent = _l1.empty.percent;
if (_l1.empty.percent == 100)
{
_l1.menubar._visible = true;
this._visible = false;
} // end if
};




I am stuck because I have no idea what to use in the first frame of my main movie. I think I am on the right track here... please let me know if I am not.

Any help is greatly appreciated.

Question On The _visible Property
As in, I want to load up a bunch of jpegs, but not display them on the stage.

Is there a way to load jpegs and swfs, into the library, and not even worry about killing their visibility on the stage?

thanks

Property Assignments Etc. Ignored (_visible And SwapDepths Mainly)
Hi!

I have a lot of functions which are called in an onClipEvent(enterFrame) based on a lot of boolean variables. One of the functions sets ._visible = true and .swapDepths(nDepth)
on a clip, but it doesnt happen. if I try to trace the ._visible property, it's true, but in the debugger it's still false. the clip doesn't show either. I even tried to call ONLY .swapDepths in one frame, but this results in some random behavior.
Seems like only 60% of my new settings is applied, but all of the code is correct. (believe me, I'm not green)
Is there some rules not described by Macromedia for those properties and methods? Like "this action must be executed in a frame for iteself".
I haven't found anything in the documentation.

please help!!

bonghead

Changing The _visible Property Of A Symbol
As above, how do I set & change the visible propery of a symbol?

The only reference to visibility I could find was under properties in the actionscript menu.

Looping And Setting _visible Property
Hi everyone, I've been a lurker for awhile, but now I'm stuck myself.

I'm basically trying to load a given number of .swfs into new mc's and then turn the _visible = false but it's not working. I think I'm reference the mc's correctly since the positioning is working...here's the code. And it is getting in the if..then statemement. THe movies are loading and positioning, just not hiding. Thanks!

PHP Code:



for (x= 1; x <= maxSlide; x++) {
    var sName = "slide" + x;
    this.createEmptyMovieClip(sName,x+1);
    this[sName]._x=0;
    this[sName]._y=50;
    var sPath = "content/" + sName + ".swf";
    trace (sName + ", " + sPath);

    if (x>1) {
        trace ("in loop, " + sName);
        this[sName]._visible = false;
    }
    
    loadMovie(sPath,sName);


CreateEmptyMovieClip() And Setting _visible Property
I am attempting to create a series of empty MCs, load an external .jpg into each created MC and then make the MCs invisible so I can have my way with them later in the file.

My code is as follows:


Code:
var slideCount = 1;
while (slideCount<=6) {
createEmptyMovieClip("slide"+slideCount, slideCount);
loadMovie("img/img"+slideCount+".jpg", "slide"+slideCount);
setProperty("slide"+slideCount, _visible, false);
slideCount++;
}
The creating and the loading are working fine. But it seems it is not possible for me to set the _visible property of the created movie to false. Strangely, any other property I attempt to manipulate this same way (_alpha, _x, _xscale, everything else I've tried) works. But not _visible. I've even tried using direct references in later frames to make these created clips invisible and it's not working.

What am I missing here? So baffled.

._visible Property True...only For Several Seconds?
Hi everyone,

I'm wondering if there is a way to make a movie clip only visible for several seconds. Instead of saying


Code:

this._visible = true;



Is there a way that "true" could be replaced with the amount of seconds somehow?

Thanks for any advice here.

Brian

_visible Property Resets After Scene Redraws
Hi,

I have a button on a scene. I make it invisible onrelease and goto a different scene. When I come back it is visible again.

What can I do besides not leave the current scene?

Not Displaying Correctly...hlp
hello everyone, I have a problem with an external MC not displaying correctly when loaded into a container. i have 3 other MC's that load fine into the holder but for some reason when the one i am trying to load into it , it is displaying half way into the holder. any reason why this is happening?
the size of this ext. swf is the exact size as all the others.

Not Displaying Correctly
Hi
I'm trying to get my movie to fit the screen and scale when resized.

But it only displays a small section at the top of the window in firefox.
Like this:
http://i27.photobucket.com/albums/c197/rab_1972/web.jpg

Heres me flash code:


Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";

sizeListener = new Object();
sizeListener.onResize = function() {
trace(Stage.width);
trace(Stage.height);
}
Stage.addListener(sizeListener);

nBtn.dt.text = "NEXT";
pBtn.dt.text = "PREV";

var pathToPics= "images/";
var pArray = ["0.jpg", "1.jpg", "2.jpg"];
var pIndex = 0;
var fadeSpeed = 10;
var total = pArray.length;
var p = 0;

loadMovie(pathToPics+pArray[0], picHolder);

this.onEnterFrame = function() {
filesize = Math.round(picHolder.getBytesTotal());
loaded = Math.round(picHolder.getBytesLoaded());
preloader._visible = true;
if (loaded < filesize) {
preloader._xscale = 100 * loaded / filesize;
} else {
preloader._visible = false;
if (picHolder._alpha < 100) {
picHolder._alpha += 10;
}
}
};

pBtn.onRelease = function() {
if(picHolder._alpha > 0) {
picHolder._alpha -= fadeSpeed;
}
prevImage();
};
nBtn.onRelease = function() {
fadeOut();
nextImage();
};

function nextImage() {
if(p >= pIndex || p <= total - 1) {
//his.onEnterFrame = fadeOut;
fadeOut();
} else {
this.onEnterFrame = null;
}
if(p < (total - 1)) {
p++;
if(loaded == filesize) {
picHolder._alpha = 0;
picHolder.loadMovie(pathToPics+pArray[p], picHolder);
}
}
}

function prevImage() {
/*
if(p >= pIndex || p <= total - 1) {
//this.onEnterFrame = fadeOut;
fadeOut();
}
if(p < 0) {
p = 0;
}
*/
if(picHolder._alpha > 0) {
picHolder._alpha -= fadeSpeed;
}
if(p > 0) {
p--;
picHolder._alpha = 0;
picHolder.loadMovie(pathToPics+pArray[p], picHolder);
}
}

function fadeIn() {
if(picHolder._alpha < 100) {
picHolder._alpha += fadeSpeed;
} else {
picHolder._alpha = 100;
this.onEnterFrame = null;
}
};
function fadeOut() {
if(picHolder._alpha > 0) {
picHolder._alpha -= fadeSpeed;
} else {
loadPic();
}
};

function loadPic() {
var p = picHolder;
p._alpha = 0;
p.loadMovie(pathToPics+pArray[pIndex]);
this.onEnterFrame = loadMeter;
};

function loadMeter() {
var i, l, t;
l = Math.round(picHolder.getBytesLoaded());
t = Math.round(picHolder.getBytesTotal());
if (t > 0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
And the html:


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled-7 - mx2004</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" id="Untitled-7 - mx2004" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Untitled-7 - mx2004.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="Untitled-7 - mx2004.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="Untitled-7 - mx2004" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>

SWF's Not Displaying Correctly
I have an issue of two different SWF's not displaying correctly in Firefox (though one displays fine in IE, sometimes) on my site.

The first is my newsletter form. I have a background text area that just populates with a message. In IE, sometimes that text area will come to the front (but if clicked, will return to the back), sometimes it will load with the text area in the back where it should be. In Firefox, it's always up front and just looks like a white box.

The second is a poll SWF I have. In IE, the radio labels appear fine and I've never seen any issues. However, in FF, the labels never appear, just the radio button. No matter how many times I reload, it never displays.

Does anyone have any particular knowledge of something that would make it react differently in each browser? Of course, I know HTML/CSS behaves differently but I never had a clue Flash was browser-dependent as well. Please tell me this is a known bug or something? Thansk.

Tim

SWF Not Displaying Correctly On Internet
I have an .swf file that works fine on my computer. However, after uploading the file to the internet (located at http://bang.vootie.net/honors/hrnssite.swf ) I can't get the file to properly load! Actually, once in a great while the file will load correctly, but most of the time the file will either partially load and freeze or not load at all! Any help towards fixing this problem will be greatly appreciated! I can upload the .fla file if necessary.

Images Not Displaying Correctly
I have several mc's which only contain small png images (with transparency).
When they are positioned over a background image, the ones at the sides appear normal, but the ones in the middle appear distorted. They are all instances of the original created with mc.duplicateMovieClip. I am using Flash 8 and have tried setting compression for the images in the library to Lossless and JPG 100%. Any suggestions appreciated, thanks.


The chips to the left look fine, but not so good on the middle of the table!

Txt Not Displaying Correctly In Dymanic Txt Box?
i have a dymanic txt box on my site. but for some starnge reason the font doesnt display correctly, it looks all small and crapie.

have a look here. http://www.future********tainment.com

you can see the real font at the top. the name of the site. this is the font im using. looks fine. set in flash player 6.

u will see a line of squares and u roll the mouse over them and it changes the txt underneath. this is a dymanic txt box using the same font. it look fine when i publish it locally and it on my pc. ive tryed it on other pcs and macs and it looks all crap and small. its set to flash player 6.

is there anythingim not doing to get this dymanic txt box to display correctly on all browsers??

Txt Not Displaying Correctly In Dymanic Txt Box?
i have a dymanic txt box on my site. but for some starnge reason the font doesnt display correctly, it looks all small and crapie.

have a look here. http://www.future********tainment.com

you can see the real font at the top. the name of the site. this is the font im using. looks fine. set in flash player 6.

u will see a line of squares and u roll the mouse over them and it changes the txt underneath. this is a dymanic txt box using the same font. it look fine when i publish it locally and it on my pc. ive tryed it on other pcs and macs and it looks all crap and small. its set to flash player 6.

is there anythingim not doing to get this dymanic txt box to display correctly on all browsers??

Flash Not Displaying Correctly
Hi,
I designed a site for a client approx 2 years ago and up and til recently certain areas of the site are not showing in a number of customers browser, internet explorer. It shows fine in firefox and safari but not ie. The strange thing is that it views fine in my ie, any ideas as the client is putting on the pressure to resolve this problem. Please help!!!

Firefox Not Displaying Correctly
Hi all,

In the website I am trying to build (to teach myself flash) I have put a image gallery. I have a problem however that it won't display properly in firefox, whereas in internet explorer it works fine. I'm not sure whether I'm allowed to post URLs so I won't post the one too it, but my code for the image gallery is:


Code:
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}

};
Key.addListener(listen);
previous_btn.onRelease = function() {

prevImage();

};
next_btn.onRelease = function() {

nextImage();

};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (picture._alpha<100) {

picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}

stop();
The problem is that the images won't load and the dynamic text isn't working showing description/image x of y.

Many thanks

Gareth

Movieclip Not Displaying Correctly
Hi all
When i publish my flash file to an exe file, it displays incorrectly unless I have a copy of my fla file open in flash. It fails to display my games background or the correct font. Same problem on diff pc's as well.

any ideas?
thanks!

HtmlText Not Displaying Correctly
Hi all.

I've used the tutorial here for loading text from a .txt file into a .swf, and it works just fine. I even tried replacing the .txt file with a .html file and it still worked just fine... the first time I tried it. I don't know what the problem is, but this time it isn't working correctly. Maybe it's because I'm loading many different html files into different variables? Here is the code...


ActionScript Code:
System.useCodepage=true;

_root.content_mc.content_txt.html=true;

var home = new LoadVars ();
var about = new LoadVars ();
var services = new LoadVars ();
var calender = new LoadVars ();
var associates = new LoadVars ();
var contact = new LoadVars ();

//load the contents of the text file into the LoadVars object

home.load("home.html");
about.load("about.html");
services.load("services.html");
calender.load("calender.html");
associates.load("associates.html");
contact.load("contact.html");

//check to see if the loading is completed and, if so, put the contents in the text field
home.onLoad = function (success){
  trace("home loaded!");
  trace(home.myText);
 
  if (success == true) {
    content_txt.htmlText=home.myText;
  }
}

So, the trace shows me that the file loads correctly... but for some reason the text isn't displaying in the .swf file when I publish it. Nothing. Nada. The text only displays when I replace that very last line with this


ActionScript Code:
content_txt.text=home.myText;

But that doesn't have any of the HTML formatting. It's FlashMX, of course.

Correctly Displaying The Website
Hello... I am very new to Flash and need some help. I purchased a pre developed template from Template Monster... however it was designed to be 766 x 790 px... so it is very narrow, small & hard to read.

I adjusted the HTML publish settings to Scale = Default (show all)... and now it is much more readable however there are some things I don't like about it:

1) It aligns to the left... and when I center it... you have to use the scroll bar to see it.

2) You currently have to scroll to see the bottom most text.

Basically, I have noticed that top notch websites like Amazon always take up the entire screen, and seem to be correctly sized.

How do I accomplish the following objectives without simply stretching & distorting the content?

> Take up the entire width of the screen
> No need to scroll down to see the bottom.

If it help, I am providing a link to my site.

http://www.wellness-rd.com/

Thanks!

XML Text Not Displaying Correctly
Hi
I had the same problem before and solved it by adding a .htmlText property behind the instance name but in this interactive it won't work.

I'm pulling text from an XML file which should be dumped into a dynamic textfield. The text has some m-dashes and opening and closing quotes which won't display once it's rendered. It even takes out that space so for example "Levi's" suddenly renders as Levis. I embedded the font including punctuation, nothing... I also didn't embed anything and then the quotes etc. show up but they look really weird and much bigger than the rest of the text like it's a different font.

The same problem happens if I choose a different font.

Any ideas?

Flash 8 Swf Not Displaying Correctly
I'm using Flash 8 since recently, and came across this problem.

When i make an swf, import it on a html page with Dreamweaver (MX), it will not display correctly on a machine without the newest flash player installed, nor will it send the user to the download page.
The swf will load partly, but not completely (the vector shapes load, but the button is simply not there).

Could this be because the embed code for Flash 8 is different from the one Dreamweaver MX is using?

100% Flash Not Displaying Correctly
Hi,
I have a flash website stretched to 100% but the navigation down the bottom seems to be getting cut off on some screens when people have extra browser tools etc. Here is the site:
http://www.pearmanmedia.com.au/

Does anyone know how i can fix this so that all screens and resolutions can see it properly?

100% Flash Not Displaying Correctly.
Hi,
I have a flash website stretched to 100% but the navigation down the bottom seems to be getting cut off on some screens when people have extra browser tools etc. Here is the site:
http://www.pearmanmedia.com.au/

Does anyone know how i can fix this so that all screens and resolutions can see it properly?

Mask Text Not Displaying Correctly.
Hi there,

I've create a masked text with a blue background and a glint animating in between. When I play the movieclip in the library it shows correctly. You'll see my name in blue with a 50% transparant glint going across, but when I play in test or swf,it only shows the blue box and glint going across. What happened to the masked text?
I've never experienced this problem before, so if there's something new about this please let me know. Thanx.

Problem With Bitmap Displaying Correctly
I've tried a number of things, bringing it in as a PNG-24 and .gif, lining everything up so its sitting on whole number pixels, but my bitmap graphic its cutting out a line of pixels or duplicating a line (in other words, distorting the pixels in my graphic). I've used lossless publish settings, and turned smoothing off. Nothing seems to help. I've tried rescaling by decimal points as well. Its fairly important that it matches up, becauses its a small icon graphic.

I guess my other alternative is to recreate it in vector art.

Does anyone know any sure fire ways to get bitmap graphics to display correctly? Anyone had similar problems before?

Bob

Text Files Not Displaying Correctly
I am importing external .txt (simpletext files) into my flash 5 text fields.

All the paths are good and the text comes in fine. But some of the files use accents eg. é which display inccorrectly (wierd sybols etc.)

is there a solution.

can i import a more stable text file type?

rat

Fonts Not Displaying Correctly After Export?
Hi, I have a problem with some of the fonts in my project not displaying correctly after I export my project. I don't understand why because they look fine when im in flash.

Image Not Loading/displaying Correctly
hi-
i have a function (below) that is called withing a class, after an image loads. Essentially, this function creates thumbnails for each larger image. So, the strange thing is that on a trace(from the actual ParentImage class) i can watch the bytesLoaded rise, as Flash is getting the thumbnail. But, after Flash downloads the image, things go wrong and it does not appear. Below you can see i run a second trace and my results are 0,0,0,1 respectively...what am i missing. There is no issue with the URL, the images are certainly in the directory, and as i stated, i can see it is loading....if you need to see ParentImage class, i can post that next.


Code:
private function addThumbs(cd:BigPicture):void
{
thumbPath="images/Thumbnails/"+eachImage[this.counter];
var th:ParentImage=new ParentImage(this.thumbPath);
th.child=cd;
this.addChild(th);
trace(th.x,th.y,th.width,th.alpha);

}

LoadMovie Not Displaying Correctly Within For Loop
Hi all,
I'm currently having difficulty loading multiple images within a for loop.
This is what i have:

Code:
var company_detail = active_projects_mc.createEmptyMovieClip("holder", this.getNextHighestDepth());
company_detail._x = 0
company_detail._y = 35

for (var j = 0; j<company[i].length; j++) {

company_detail.createTextField("project_name"+j,j,0,0,0,0);
company_detail.createEmptyMovieClip('cont',j+1)
fName="../images/folder_icon.jpg";
company_detail.cont.loadMovie(fName);
company_detail.cont._x = 0;
company_detail.cont._y = j*20
trace("$ "+company_detail.cont._y)

with (company_detail["project_name"+j]) {
html = true;
_x = 10;
_y = j*20
_width = 190;
styleSheet = styles;
border = true;
htmlText = "<p><a class='default_link' href='asfunction:_parent.navFunction,add_client_company,"+company_type_2+"'>"+company[i][j].project_details['pm_project_name']+"</a></p>"
autoSize = true;
latestHeight = _height;
} // end with
}
When i trace trace("$ "+company_detail.cont._y) i get the correct output eg. 0, 20, 40 etc.
If there is more than one result it only outputs the last image.
Any ideas as to how i can get the others?

Cheers

Opera Not Displaying Flash Correctly
hey, has anyone ever had problems with opera? i have a video player that is doing something weird. it's not updating the variable i have that takes into account the bytes downloaded of a netstream.

http://h108design.com/vids

the player is fine in firefox and IE. if anyone can help me out, let me know.

thanks.

£ Sign Not Displaying Correctly From Dynamic Txt
Dyanmic text loading into a movie with the rootlocked because it is then in turn loaded into another movie. Anyways...
imtrying to display

This costs £67.00


when run looks like this:

This costs £67.00

...if i change it to a dollar sign its fine, anything else its fine, ive tried url encoding the £ /A3 or what ever it was, but that gives the same results.
so how can i display £ correctly?
-arran

Type Not Displaying Correctly When Publishing
I have a Flash MX file which I created a couple of years ago. I edited it (in MX) and when I published the .swf, the type only displayed every other letter or so. Any one know what the problem is and how to fix it. The type face was Avante Garde Italic, if that matters.

Flash Not Displaying Correctly In Firefox
With an image in the top left corner, this page displays the same in IE6/7 and FF:

http://www.simobile.com/hansen/hansen.html

but when Flash of identical dimensions replaces the image, it works in IE6/7 but I get a gap around Flash in FF:

http://www.simobile.com/hansen/hansen-bad-flash.html

I've tested on Windows XP/Vista, and I'm using Flash CS3 to generate AS2 content for Flash Player 9.

I've searched over an hour across the web for a solution, and done all sorts of fiddling with CSS properties and removing whitespace but no joy.

Does anybody have any advice?









Attach Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>My Hansen</title>
<style type="text/css">
<!--



object {
display:inline;
margin: 0px;
padding: 0px;
}

#header img
{
display:inline;
}



body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #666666;
margin: 0px; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0px;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
background-image: url(bg_img.jpg);
}
.twoColFixLtHdr #container {
width: 720px;
margin: 20px auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px;
text-align: left; /* this overrides the text-align: center on the body element. */
border-style: solid;
background-color: #FFCC00;
}
.twoColFixLtHdr #header {
background: #DDDDDD;
padding: 0px 0px 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.twoColFixLtHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.twoColFixLtHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 200px; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 0px;
margin: 0px;
background-color: #FFFFCC;
}
.twoColFixLtHdr #mainContent {
margin: 0px 0px 0px 200px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 0px 30px 0px 30px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
background-color: #acc4e8;
}
.twoColFixLtHdr #footer {
padding: 0px 0px 0px 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
background:#DDDDDD;
}
.twoColFixLtHdr #footer p {
margin: 0px; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
padding: 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
-->
</style><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 0px; }
.twoColFixLtHdr #mainContent { zoom: 0; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body class="twoColFixLtHdr">

<div id="container"><div id="header">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','200','height','120','title','flashstuff','src','header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','header' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="200" height="120" title="flashstuff">
<param name="movie" value="header.swf">
<param name="quality" value="high">
<embed src="header.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="200" height="120"></embed>
</object>
</noscript><img src="slogan_anim.gif" alt="slogan" width="320" height="120" hspace="0" vspace="0"><img src="top_right.jpg" alt="topright" width="200" height="120" hspace="0" vspace="0"><!-- h1>Header</h1 --><!-- end #header --></div>
<div id="sidebar1">sidebar-start<h3>Sidebar1 Content</h3><p>The background color on this div will only show for the length of the content. If you'd like a dividing line instead, place a border on the left side of the #mainContent div if it will always contain more content. </p>sidebar-end<!-- end #sidebar1 --></div><div id="mainContent">maincontent-start<h1> Main Content </h1><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero.</p>maincontent-end<!-- end #mainContent --></div><!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer"><img src="bottom_left.jpg" alt="bottomleft" width="200" height="120"><img src="bottom_wide.jpg" alt="bottomwide" width="520" height="120"><!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>

























Edited: 09/28/2008 at 11:17:13 PM by miner2049er

Displaying Flash Content On The Web Correctly
Hey everyone,

I am wondering if there is something extra I need on the server side to display my flash content CORRECTLY? What I mean by that is that I have uploaded some .swf files to a site. I go to open them, but when I click them it commences to download them as if they were like a mp3 or zip file; it doesn't display the preloaders. They aren't cached either, I've tried it on other computers and still, doesn't display correctly.

I'm using IE 6.0 to view this.

Do I publish this in html or embed it in html? .php? <--- don't really know that. Shockwave? ahhhhh. Whats the last step here? Does the host need a plugin? Thanks.

-Ed

Probelm With HTML Displaying My Flash Correctly
This isn't really a flash question but I don't know where else to go for help so... In I.E. or Netscape my page looks fine, but if I look at it in Safari on my Mac the table looks screwed up. Check out what I'm talking about. Site Any help would be awesome. Sorry for the non-flash question again.

Cdata W/html Tags Not Displaying Correctly [mx]
Hi,

i am having an annoying problem with an xml document and flash.

i have a dynamic textfield on the stage and this is set to render html.

in the xml doc i have a child node that is wrapped around cdata (as in the kirupa tut). No matter what i do, i can't get flash to correctly parse and display the text.

i.e.

in the xml:



<![CDATA[<b>make this bold</b>]]>



so in flash i get this in the text field:
<b>make this bold</b>

tried it with different tags, and read all sorts of forums including this:
http://www.kirupa.com/forum/showthre...a+dynamic+text

all i really want to do is hav line breaks in my block of text (i have some bulleted points and then a paragraph of text).

any help is really appreciated.

thanx

Cdata W/html Tags Not Displaying Correctly [mx]
Hi,

i am having an annoying problem with an xml document and flash.

i have a dynamic textfield on the stage and this is set to render html.

in the xml doc i have a child node that is wrapped around cdata (as in the kirupa tut). No matter what i do, i can't get flash to correctly parse and display the text.

i.e.

in the xml:



<![CDATA[<b>make this bold</b>]]>



so in flash i get this in the text field:
<b>make this bold</b>

tried it with different tags, and read all sorts of forums including this:
http://www.kirupa.com/forum/showthre...a+dynamic+text

all i really want to do is hav line breaks in my block of text (i have some bulleted points and then a paragraph of text).

any help is really appreciated.

thanx

Flash Dynamic Text Not Displaying Correctly
hey all,

i have been looking for a clear discussion on this problem but have found none, either here or on google. if anyone knows of one please redirect me.

ok, the problem is this: i have a flash menu that dynamically pulls text values from the db and displays them for various portions of the menu. there are 5 menu categories, each leading to one article with one synopsis and a "read more" button. All the variables gather their data correctly as it is printed out from the PHP. All the text fields are set up with the same font face, size, etc. However, the title and synopsis for the first link, for some reason, seems to be displayed in a much larger and possibly bold font size/face than it should be. the other 4 are fine and the problem only seems to happen with one of the links.

was wondering if anyone has ever seen this behavior with text in flash before. can find no reason in any discussions online as to why the text field in one scene will display incorrectly while the rest display properly.

thanks for any help you can give with this.

Sliced Image Not Displaying Correctly When Converted To Clips
All I wanted to do was slice up an imported bitmap image into clips to then manipulate with AS. So…
I import a jpeg – select it & break it apart, then generate a grid using the line tool, position it over the bitmap – select “break apart” & start converting the squares that the jpeg has been sliced into, into individual clips – simple!!

Problem is at some stage when I convert the squares into clips & test it, it makes the whole mosaic image (Original sliced image now made up of clips) gets screwed up – squares not showing, moving out of position etc. I say “at some stage” as I can quite happily process 4 or 5 clips, test & the image remains as it should, but do one more & test it & it has gone out of whack!



I have tried “Grouping” the individual squares before converting to clips, but this has no effect.

Thanks for any help.

Fla below

Flash Not Displaying Correctly On IE, But Works Fine On Firefox.
The site loads perfectly for firefox, but just displays a white box for IE:

Can anyone please advise me on how to fix this? Thank you in advance for your replies.

Update: Moderators feel free to delete this post.

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