XML Loads But Don't Shows...
Hi guys,
I'm on a game clan (GRAW2), I'm trying to make a kind of "Games Stats" with the xml generated by the game self but can't. I'm using AS2. I'm sure it loads the xml file but don't show the information.
But when I take away all the next line it shows
Code: <match_statistics version="1.0" 01_05_2008 00:42> <match map="tdm_arroyo" gametype="Recon Vs Assault" rounds="2" winner="Bravo" score_team_a="0" score_team_b="2">
Replaced by
<match_statistics> The solution should be to ignore this line but I don't know the way to do this.
This is the code i'm using on Flash, AS2:
Code: var xmlObj:XML = new XML(); xmlObj.ignoreWhite = true; xmlObj.load("xml/match_info.xml"); xmlObj.onLoad = function(success) { var rootNode:XMLNode = xmlObj.firstChild; if (success) { trace(this); } /* Crear variables Nodes +3*/ var extraNode0:XMLNode = rootNode.firstChild.firstChild; var extraNode1:XMLNode = rootNode.firstChild.firstChild.nextSibling; var extraNode2:XMLNode = rootNode.firstChild.firstChild.nextSibling.nextSibling; var extraNode3:XMLNode = rootNode.firstChild.firstChild.nextSibling.nextSibling.nextSibling; var extraNode4:XMLNode = rootNode.firstChild.firstChild.nextSibling.nextSibling.nextSibling.nextSibling; /* --------------------- */ for (i=0; i<=4; i++) { pName0 = extraNode0.attributes.name; pKill0 = extraNode0.firstChild.attributes.total_kills; pDeath0 = extraNode0.firstChild.attributes.deaths; pSuicide0 = extraNode0.firstChild.attributes.suicides; pFired0 = extraNode0.firstChild.nextSibling.attributes.bullets_fired; pAccur0 = extraNode0.firstChild.nextSibling.attributes.accuracy; /////////////////////////////////// pName1 = extraNode1.attributes.name; pKill1 = extraNode1.firstChild.attributes.total_kills; pDeath1 = extraNode1.firstChild.attributes.deaths; pSuicide1 = extraNode1.firstChild.attributes.suicides; pFired1 = extraNode1.firstChild.nextSibling.attributes.bullets_fired; pAccur1 = extraNode1.firstChild.nextSibling.attributes.accuracy; /////////////////////////////////// pName2 = extraNode2.attributes.name; pKill2 = extraNode2.firstChild.attributes.total_kills; pDeath2 = extraNode2.firstChild.attributes.deaths; pSuicide2 = extraNode2.firstChild.attributes.suicides; pFired2 = extraNode2.firstChild.nextSibling.attributes.bullets_fired; pAccur2 = extraNode2.firstChild.nextSibling.attributes.accuracy; /////////////////////////////////// pName3 = extraNode3.attributes.name; pKill3 = extraNode3.firstChild.attributes.total_kills; pDeath3 = extraNode3.firstChild.attributes.deaths; pSuicide3 = extraNode3.firstChild.attributes.suicides; pFired3 = extraNode3.firstChild.nextSibling.attributes.bullets_fired; pAccur3 = extraNode3.firstChild.nextSibling.attributes.accuracy; /////////////////////////////////// pName4 = extraNode4.attributes.name; pKill4 = extraNode4.firstChild.attributes.total_kills; pDeath4 = extraNode4.firstChild.attributes.deaths; pSuicide4 = extraNode4.firstChild.attributes.suicides; pFired4 = extraNode4.firstChild.nextSibling.attributes.bullets_fired; pAccur4 = extraNode4.firstChild.nextSibling.attributes.accuracy; } /////////////////////////////////// };
This is the kind of XML generated by the game:
Code: <match_statistics version="1.0" 01_05_2008 00:42> <match map="tdm_arroyo" gametype="Recon Vs Assault" rounds="2" winner="Bravo" score_team_a="0" score_team_b="2"> <players> <player name="Gamekos"> <summary rank="1" total_kills="14" assisted_kills="2" instant_kills="0" deaths="12" suicides="0" scores="0" tags="0"/> <weapon name="crye" bullets_fired="353" grenades_thrown="0" enemies_killed="14" teamates_hit="0" teammates_killed="0" accuracy="16" far_kill_range="66" short_kill_range="6" avg_kill_range="24"/> <weapon name="m61" bullets_fired="0" grenades_thrown="2" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> </player> <player name="[HI]ARCAN"> <summary rank="1" total_kills="32" assisted_kills="1" instant_kills="1" deaths="19" suicides="0" scores="0" tags="0"/> <weapon name="crye" bullets_fired="580" grenades_thrown="0" enemies_killed="31" teamates_hit="0" teammates_killed="0" accuracy="15" far_kill_range="76" short_kill_range="4" avg_kill_range="31"/> <weapon name="m61" bullets_fired="0" grenades_thrown="16" enemies_killed="1" teamates_hit="0" teammates_killed="0" accuracy="6" far_kill_range="44" short_kill_range="44" avg_kill_range="44"/> </player> <player name="bohy010"> <summary rank="1" total_kills="6" assisted_kills="1" instant_kills="1" deaths="12" suicides="0" scores="0" tags="0"/> <weapon name="rx4" bullets_fired="49" grenades_thrown="0" enemies_killed="6" teamates_hit="0" teammates_killed="0" accuracy="36" far_kill_range="96" short_kill_range="18" avg_kill_range="40"/> </player> <player name="AIKI70"> <summary rank="1" total_kills="10" assisted_kills="0" instant_kills="0" deaths="7" suicides="0" scores="0" tags="0"/> <weapon name="crye" bullets_fired="195" grenades_thrown="0" enemies_killed="9" teamates_hit="0" teammates_killed="0" accuracy="17" far_kill_range="53" short_kill_range="1" avg_kill_range="18"/> <weapon name="m416" bullets_fired="10" grenades_thrown="0" enemies_killed="1" teamates_hit="0" teammates_killed="0" accuracy="10" far_kill_range="13" short_kill_range="13" avg_kill_range="13"/> </player> <player name="kipkorn"> <summary rank="1" total_kills="10" assisted_kills="0" instant_kills="0" deaths="7" suicides="0" scores="0" tags="0"/> <weapon name="crye" bullets_fired="88" grenades_thrown="0" enemies_killed="5" teamates_hit="1" teammates_killed="0" accuracy="15" far_kill_range="60" short_kill_range="8" avg_kill_range="32"/> <weapon name="g36" bullets_fired="41" grenades_thrown="0" enemies_killed="3" teamates_hit="0" teammates_killed="0" accuracy="9" far_kill_range="43" short_kill_range="8" avg_kill_range="22"/> <weapon name="g36_compact" bullets_fired="30" grenades_thrown="0" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> <weapon name="grenade_launcher" bullets_fired="2" grenades_thrown="0" enemies_killed="2" teamates_hit="0" teammates_killed="0" accuracy="100" far_kill_range="27" short_kill_range="25" avg_kill_range="26"/> <weapon name="m61" bullets_fired="0" grenades_thrown="2" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> <weapon name="m8_compact" bullets_fired="2" grenades_thrown="0" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> <weapon name="rx4" bullets_fired="7" grenades_thrown="0" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> <weapon name="saw" bullets_fired="10" grenades_thrown="0" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> </player> <player name="joliver"> <summary rank="1" total_kills="0" assisted_kills="1" instant_kills="0" deaths="7" suicides="0" scores="0" tags="0"/> <weapon name="crye" bullets_fired="38" grenades_thrown="0" enemies_killed="0" teamates_hit="1" teammates_killed="0" accuracy="5" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> <weapon name="m61" bullets_fired="0" grenades_thrown="2" enemies_killed="0" teamates_hit="0" teammates_killed="0" accuracy="0" far_kill_range="0" short_kill_range="0" avg_kill_range="0"/> </player> </players> </match_statistics>
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 10-02-2008, 10:52 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Movie Loads Before Preloader Shows Up
hey guys,
i'm getting really frustrated because i just can't seem to get this preloader to work! the preloader pops up on screen when the movie is 91% loaded. i have the publish settings set for top down loading and my script & preloader are on the top levels, first frame.
why doesn't flash show the preloader first?!?!
please help!
External Movies - Bg Shows Between While Next Loads
I'm just hoping someone can suggest an idea here...
I have a main Flash movie with an empty movie clip that lays over top it. When a navigation button is chosen, an external swf loads into the movie clip. This is fine for the transition between "main" and the first in-coming swf, but once another nav. button is pushed from the new swf, it loads another swf.
The problem is that: when the next swf is about to come in, you can see the "main" movie sitting in the background for a split second, as the new one loads. It doesn't flow well in the scheme of things & well... it doesn't look pretty for that split second.
Has anyone else had this problem, before & figured out a solution? Does anyone have any suggestions?
~Vik
White Box Shows Up Before Site Loads
hello,
I have built a site and it seems to be a re-occuring problem that when I go to a site that I've made you see a second or 2 of a white square where the flash file is within the html table. Is there a way around this to make this not happen?
here is the site-
www.bartendercalendar.com
thanks in advance for any help...
External Movie Loads, But The Dynamic Text That Loads With It Won't Render HTML?
I have a set of SWFs that load when a button is pressed on the parent SWF file...they all load into an empty placeholder, and each contains it own dynamic text field. the problem i'm having is, the text loads, but the HTML won't render, so i get plain text and html tags
the script in my external SWF files is as follow.
var lv = new LoadVars;
lv._parent = this;
lv.onLoad=function(success){
if(success)this._parent.home.text = this.guide;
}
lv.load("guide.txt");
everything is filled out correctly in the Property menu, someone PLEASE help
2 QUESTIONS: 1)get Internet Browser 2)htmltext Loads After Image Loads
1) is it possible to check whether the user is using internet explorer, or firefox, opera, etc. /retrieve the browser info?
2) how can i tell a text to load once it's html text has loaded. as in if it had an image tag in the htmlText, and i want the text to size itself [_width = textWidth] but it will do it too early, and i need it to function when the htmlText is loaded.
EDIT: i made a button to go to the second frame when clicked, and the second frame would resize the text. so i clicked it once the image loaded. however the text still went to like 1x1. so it doesnt register an image as text..obviously..soo..how could i make it size itself to the image.
Load Movie By Number 1.swf Loads 2.swf Loads 3.swf
hey everybody,
i have a main movie in which i load an externel "1.swf". i've got plenty of swf's to load (2.swf, 3.swf, 4.swf and so on) how can i make a link in 1.swf which automatically loads 2.swf.
i don't want to specify load 2.swf - i want it to load mynumber+1.swf (i think you get the idea). so that i don't have to make every link. i want 1 code for all.
thanks for helping me out on this one
MC That Loads Another MC That Loads Another MC, Images Look Pixellated. WHY?
Is there something I can do to prevent this? I unclicked the "anti-alias" button in the properties of the imported image, and also tried making it lossless (png). For some reason the images, when I test the parent MC, still come out pixellated. Here is the hierarchy in case u don't understand where the images are:
Parent SWF (my portfolio) contains "container"
|
Loads MC (printwork.swf) into it
|
printwork.swf has a "container"
for loading external swfs
|
brochure1.swf is loaded
into the "container" on
printwork.swf.
The image brochure1 comes out very pixellated....anyone know why>???
TV Shows
Just wondering, What TV Shows/Cartoons are made in flash? if any.
Only The Last One Shows Up?
Anyone know why only the last mainNav button shows up on stage? Tell me if you need more info.
Code:
function createMainMenu() {
var a = 1;
var total = mm_array.length;
while (a<=total) {
ypos = ((a-1)*homm)+1;
container_mc.attachMovie("mainnav_mc", "mainnav"+a+"_mc", this.getNextHighestDepth()+100, {_x:0, _y:ypos});// attach the movieClip
var nc = container_mc["mainnav"+a+"_mc"];
nc.menutext = mm_array[(a-1)];// set the title text for each button
nc.itemnum = a;// set the menu #
a++;
}
}
Sometimes It Shows Movies, Sometimes Not
hi there, i have a html- based website and when you click certain buttons, small popup-windows appear and show movies, which were mpeg movies that i imported in flash mx.
now on some machines everything works out properly, on others, the movies are not displayed. but on all machines is the flash player 6 plugin installed.
why o why???
Preloader Shows Only 100%
I have a preloader.swf and a wedding.swf
The wedding.swf is pretty large and I want a preloader to show where it is at on the loading.
The preloader.swf loads the wedding.swf and I want the loading bar to represent how much of the wedding has loaded.
Also, is it possible to go ahead and start the wedding before it is fully loaded (streaming) but after say 50% is loaded????
http://www.reflectionsbydesign.com/assets/preloader.fla
http://www.reflectionsbydesign.com/assets/preloader.swf
I did see somewhere that when using this technique all references to _root in the preloader code needed to be changed to "this"
When I made this change the loading bar text said loading 0 KB of 0 KB and the wedding never loaded.
GRRRRR I feel so confused. Really appreciate all the help I have received in order to get this far.....
Thanks in advance, Cherie
Time Always Shows AM... Why?
Hi
Can someone please look at my code and tell me where i've gone wrong.
Everything works fine but no matter what time of the day it is, the AM always shows and not the PM.
hope someone can help
Heres the code
onClipEvent (enterFrame) {
myTime = new Date();
nSeconds = myTime.getSeconds();
nMinutes = myTime.getMinutes();
nHours = myTime.getHours();
if (nHours>=12) {
ampm = "pm";
} else {
ampm = "am";
}
if (nHours>=13) {
nHours = nHours-12;
}
if (length(nMinutes) == 1) {
nMinutes = "0"+nMinutes;
}
if (length(nSeconds) == 1) {
nSeconds = "0"+nSeconds;
}
nTime = nHours+":"+nMinutes+":"+nSeconds+" "+ampm;
}
Thanx
Silde Shows
how would i use a Button to goto a another slide need script for it
Preloader Shows Up At 60%?
Hey all,
I am using this code as my preloader:
code: bytes_loaded = Math.round(_root.getBytesLoaded())+1;
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded >= bytes_total) {
_root.gotoAndPlay("start");
}
When i load my site the preloader doesn't show up until 60%. I was wondering is there a way to rewrite the code better so that it measures the preloader by bytes recieved instead of percent? Or is it only showing up at 60% because of image sizes on the preloader frames?
Preloader Only Shows From 97% On...
hey guys...what am i missing here? i have an empty clip on the first frame. there is a Dy.TextBox called txLoader, and an mc called mcBar. The mcBar is scaled to 1% and should grow according to the percentage.
what i see in the test movie is a blank until the last 4%...then the preloader pops up, and plays the movie (ie:97%,98%,99%-play)...why is that happening. Why doesn't the preloader start from the get-go?
code:
onClipEvent (enterFrame) {
var lBytes = _root.getBytesLoaded();
var tBytes = _root.getBytesTotal();
var percent = Math.floor(100*(lBytes/tBytes));
if (percent<100) {
_parent.txLoader.text = "loading " +percent+ " %";
_root.mcBar._xscale=percent;
} else if(percent==100){
_root.gotoAndStop(2);
}
}
HtmlText Shows Nothing
I have 3 dynamic text fields vertically aligned, and one of them needs to be able to link to another web page. So I figured an easy way to do this would be to make it an HTML field.
Here is my code:
Code:
_root.text_Client = myImagesInfo[theNumber].imageClient;
_root.text_Title = myImagesInfo[theNumber].imageTitle;
_root.text_Agency.html = true;
_root.text_Agency.htmlText = '<a href="'+myImagesInfo[theNumber].agencyURL+'">'+myImagesInfo[theNumber].imageAgency+'</a>';
text_Client and text_Title work just fine. However, the there is no text in the third dynamic text field.
If I do remove the htmlText:
Code:
_root.text_Agency = '<a href="'+myImagesInfo[theNumber].agencyURL+'">'+myImagesInfo[theNumber].imageAgency+'</a>';
I see everything, the text and the HTML (html is not rendered).
Any ideas? I'm not sure what else to try...
Thanks
Tyler
Border Shows In IE?
does anyone know why a border shows around my flash file in Internet Explorer? and how do i get rid of it?
thanks
J
How Do I Get Rid Of A White Box That Shows Up
Before my pre load shows up and my site plays, for a split second a white box
appears.
There is no empty frame before my preload, my back ground color is set as dark green in the flash file.
In my html, I also have the table set as a back ground color that contains the flash file.
But each time I clear my cache, I can see this or if I go to my site from another computer the white area shows up that is the size of my flash file.
Kind of annoying since I never see any other flash site show this.
Thanks in advance.
[F5] Swf Shows Up Blank On Net
Hi all you Flash magicians....
I created a simple animation using Flash CS3 but when I preview it on the net I cannot see it - it is blank.
I get a message that says: IE has restricted this webpage from running scripts or Active X controls that could access your computer.
Do
Does anyone know how I prevent this message from happening so that my viewers can see it?
This is the site:
http://www.neomassage.ca/
The animation is to occur beside the logo.
I'd GREATLY appreciate any help/feedback.
Thanks kindly,
Web Gal
[F8] Pre-loader Only Shows At 80%
I have tested the attached pre-loader and it only shows the first frame and progress bar at 80%.....
I am testing by pressing ctrl-enter when in test movie.....
Can anyone have a look and see why this would be happening?
Thanks
It Shows When Tested But Not On The Web
Okay, I've bumped into a little problem...
I'm loading some external flash movies into my main "placeHolder" movie. All these load images/swf files using a little xml to establish their path, etc. but I don't think that's the problem. Y'see, when I test the "placeHolder" movie it loads everything fine, but when I use either the bandwidth profiler or check it on my test site online, only half of the external files load. I've checked my scripts and they all seem to be pointed in the right direction... I'm just lost right now.
If anyone's come across this problem or knows how and why something will test fine but load incomplete, gimme a holla. In the mean time I'll be rubbing my very red eyes whilst buning my retnas staring at this screen.
Thanks a bunch, guys n' gals, y'all always come through...
Brady
It Shows When Tested But Not On The Web
Okay, I've bumped into a little problem...
I'm loading some external flash movies into my main "placeHolder" movie. All these load images/swf files using a little xml to establish their path, etc. but I don't think that's the problem. Y'see, when I test the "placeHolder" movie it loads everything fine, but when I use either the bandwidth profiler or check it on my test site online, only half of the external files load. I've checked my scripts and they all seem to be pointed in the right direction... I'm just lost right now.
If anyone's come across this problem or knows how and why something will test fine but load incomplete, gimme a holla. In the mean time I'll be rubbing my very red eyes whilst buning my retnas staring at this screen.
Thanks a bunch, guys n' gals, y'all always come through...
Brady
It Shows When Tested But Not On The Web
Okay, I've bumped into a little problem...
I'm loading some external flash movies into my main "placeHolder" movie. All these load images/swf files using a little xml to establish their path, etc. but I don't think that's the problem. Y'see, when I test the "placeHolder" movie it loads everything fine, but when I use either the bandwidth profiler or check it on my test site online, only half of the external files load. I've checked my scripts and they all seem to be pointed in the right direction... I'm just lost right now.
If anyone's come across this problem or knows how and why something will test fine but load incomplete, gimme a holla. In the mean time I'll be rubbing my very red eyes whilst buning my retnas staring at this screen.
Thanks a bunch, guys n' gals, y'all always come through...
Brady
Nothing Shows In The Output Box
Gday
im in year 12 doing multimedia and im making this interactive animation
we have to have an input box and like an output box
this input box is where user puts in there name ok and this is in one scene
and my output box is in another scene
in this input scene
-i have a next button to gotoandplay to the next scene which is on one layer
-a stop(); on another layer
-and my input box on another layer and on this layer i have this code:
next.onRelease = function() {
input = output;
gotoAndPlay("Scene 12", 1);
};
i named in the var: boxes in the properties of them input and obviously the output one output... but nothing shows in the output box lol
i would really appreciate your help! cos iam so lost lol
Movie Shows Ok In FF, Not In IE
Hi,
I made an expandable movie with the javascript (more info on that here http://www.mustardlab.com/developer/flash/objectresize/)
Problem #1...
When you open the site using FireFox, it starts loading right away.
When you open the site using Internet Explorer (tested it with 6 and 7), it comes up blank. Only when you rollover the movie is when it actually appears.
You can see it here - http://thepanamaexplorer.net/ (its the movie with grass background, only the bottom left icon is working)
Problem #2...
Im using div style absolute so the flash movie can be on top of everything when it expands. I have the div set to the normall size (520px). Because of the javascript flash function, the movie expands to 800px. This works fine in FF and IE6. BUT, here is the BUT, on IE7, the movie doest expand to 800.
This is the code im talking about:
Code:
<div align="left" id="flashid" style="position:absolute; width:520px; height:559px; top:215px; z-level=100;">
Any ideas, explanations or suggestions to fix these problems in IE.
Any help appreciated.
Thanks,
Al
Preloader Shows Up At 68%?
This might be a common mistake im making here
if anyone wants to have a look :
http://www.edg3creative.com/promo.html
the loader:
ActionScript Code:
stop();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, preLoading);
function preLoading(event:ProgressEvent):void {
var percent:Number=event.bytesLoaded/event.bytesTotal*100;
loader_mc.scaleY=percent/100;
loaded_txt.text=int(percent)+"%";
if(percent==100){
this.gotoAndPlay(2);
}
Thanks for your help!
Only 1 Image Shows Up
Hey,
I have a weird problem and I need some help on this one.
In a dynamically created movieclip I dynamically attach
several movieclips. These movieclips have one image file
and several dynamic textfields. All the textfields get populated
with the correct data, but the images don't show up!!! What's
even more weird, only in the FIRST attached movieclip the/a
image shows up!!! The wrong one by the way 'cause it's the
image that's supposed to end up in the LAST attached movieclip!
When I trace the filepath to the individual images for each attached
movieclip everything looks okay?!?
Code:
var mc = albumHeadlines.attachMovie("albumHeadline",albumHeadline,80+x);
mc._x = 0;
mc._y = x*76;
mc.img.loadMovie(pathToIMG+"/albums/"+xmlNode.childNodes[2].childNodes[j].attributes.image);
trace("img "+pathToIMG+"/albums/"+xmlNode.childNodes[2].childNodes[j].attributes.image);
mc.artistName.text = xmlNode.childNodes[0].childNodes[0];
mc.albumName.text = xmlNode.childNodes[2].childNodes[j].childNodes[0].childNodes[0];
mc.releaseDate.text = xmlNode.childNodes[2].childNodes[j].attributes.released;
Anybody some ideas?
Preloader Only Shows Up After 50%
I'm putting together what is essentially a movie gallery and obviously would like to include a basic preloader. I'm working off of the totrail found here .
It all seems pretty straightforward but the preloader doesn't show up until my movie is about 50% loaded. I even tried using the downloadable example from that link and adding my content to it but still had the same result. It's as if flash has to load half of the file before it can start functioning as wanted. Does anyone have any ideas on what might be causing this? My movie is at www.akbdesignstudio.com/test/ if you would like to see what I mean.
I'm using Flash MX 2004 so was working off of that example file and not exactly how the article says to do it in terms of where you place the actions. You can download my source file here
EmbedFonts Not Shows
hi
i am using as2 to generate a text field using the code
class textgen1
ActionScript Code:
{
var iname:String;
var xpos:Number;
var ypos:Number;
var wid:Number;
var hei:Number;
var who:MovieClip;
var dy_text:String;
public function textgen1(what:MovieClip,inst:String,x:Number,y:Number,width:Number,height:Number,oritext:String)
{
who=what;
iname = inst;
xpos = x;
ypos = y;
wid = width;
hei = height;
dy_text = oritext;
}
public function txt_creation()
{
who.createTextField(iname,_root.getNextHighestDepth(),xpos, ypos, wid, hei);
setValue(dy_text,iname);
}
public function setValue(txt:String,inst_name:String)
{
var my_fmt:TextFormat = new TextFormat();
my_fmt.size = 24;
my_fmt.font = "Arial";
with (who[inst_name])
{
setNewTextFormat(my_fmt);
multiline = true;
wordWrap = true;
autoSize = "left";
border=true;
text = txt;
type="dynamic";
selectable=false;
embedFonts=true;
}
}
but the text created on the state not shows only border shows
if i use embedFonts=false then the text is displayed.
whats the reason?
and i want to know that how i animate a textfield using as2 the text field is generated through createTextField command.
if anyone help me in this
thans
Slide Shows
Has anyone used some of the commercial slide show components for Flash? I am specifically referring to SlideShowPro and the ThumbGrid component on the usemoreflash web site.
My experience with Flash: I consider myself at the Intermediate level using Flash and the beginning level using ActionScript. I have used Flash for about 2 years to enhance web sites, but have never build a complete Flash web site.
Here's my question: What experience is required to use these components? This question is not addressed on the components' web sites. Will someone with my meager experience have trouble using these components?
Just Want To Do Slide Shows
Ok. I did a web site in go live. I added slide shows that i did in iPhoto. The slide show files are too big.
I was told they need to be Flash so that they will load quickly. I bought Flash, I bought two books but all i want to do is get these slide shows to play on my web site. Nowhere in any of the books is there any discussion about something as simple as making slide show into a flash that I can then put on my web site.
Help Please!!!!!
Dennis McGill
www.headwaterscorvetteclub.com
Text Shows Without CSS
Hi -
In the 2nd panel (Cuisines and Menus) of a site I'm trying to build at:
http://www.thymetoeatpcs.com/index2.html
there's a dynamic TextField that brings in Text and CSS.
It works fine locally but when I upload it and view it, the CSS doesn't get loaded.
To make this more confusing...sometimes it does and sometimes it doesnt.
I've attached the code but I really have no idea what's wrong.
How can I make sure the text and CSS load in time to appear correctly when the user gets to that page?
TIA your expertise.
JL
Attach Code
this.createTextField("news_txt", 99, 130, 230, 260, 160);
news_txt.html = true;
news_txt.multiline = true;
news_txt.wordWrap = true;
news_txt.border = true;
news_txt.borderColor = 0x524D16;
// Location of CSS and text files to load.
var txt_url:String = "CuisineList.html";
var css_url:String = "thyme.css";
// Define onLoad handler and Load CSS file.
styles.onLoad = function(success:Boolean):Void {
if (success) {
/* If the style sheet loaded without error,
then assign it to the text object,
and assign the HTML text to the text field. */
news_txt.styleSheet = styles;
//news_txt.text = storyText;
} else {
trace("Unable to load CSS file.");
}
};
styles.load(css_url);
// Define onData handler and load text to display.
myVars_lv.onData = function(src:String):Void {
if (src != undefined) {
news_txt.htmlText = src;
} else {
trace("Unable to load HTML file");
}
};
myVars_lv.load(txt_url);
Shows In Ie, Opera, Not Ff
I have been trying to figure out why this doesn't load in firefox. I designed this site in ff and now a year later I noticed the slideshow isn't coming up in ff. I don't know what the dealio is. I think the only think changed is that i added code in the page for the active content to be shown in IE.
the page to see is
http://floridahus.is/slideshow_auto/auto.php
It uses action script to change the slides and I can't for the life of me figure out what broke it.
All help appreciated.
Alpha = 0 But Still Shows Through?
I have a page http://www.inertia1.com that has alot of transparent items. I set thier alpha values to zero. But when I looked at the page the transparent sections still show through.
It is only when your color settings for your windows display are at 16 bit. If I change my settings to anything better the transparent areas are completely see through just as they should be. But still I would like to find a way for it to be the same no matter what.
Any suggestions would be greatly appreciated, Thanks.
IE Shows Button Where There Is None
I am working on a short animation. It works fine in firefox, but when I am in IE if I bring the mouse over the animation it shows a hand, and a border around the edges of the animation. There are no mouse events in the movie. I am guessing it is a setting in Flash, but I can't find it. Any advice would be appreciated!
Thanks in Advance!
Preloader Only Shows Once
Hey.
Need some xpert help.
I have a a Main movie, from which I load external swf into empty movie clip.
---------------------------------------------------
this.createEmptyMovieClip("printa_mc", 10);
loadMovie("kencato.swf", printa_mc);
printa_mc._x =-180
printa_mc._y =-145
printa_mc._xscale = 100
printa_mc._yscale = 100
-----------------------------------
I have made a few buttons that each loads an external swf into the same movieclip.
(like a thumbnail gallery)
The preloader is inside the external swf file.
When I test the movie, the preloader shows up perfect and indicates the loading time etc th FIRST TIME. If I try to click on another thumbnail, the preloader do not show up. but after a while the external swf is visible. If I click the first swf that was correct loaded with the preloader. The preloader do not show up.
NEED HELP!!
To see my files, see www.mikael f a g er.com and click portfolio > print.
( take away the blanks from the address
cheers
Preloading: Swf Always Shows Up Before 100%
Dear all,
I am loading an external swf which contains an audio file. The preloader is working well; I mean I can see the preloaded percentage and when it finished. The problem is, the swf is shown before it is 100% complete. In some way, that is ok because I do not want to load 100% of the file before to render it, but I would like to detect when the swf will be shown. It seems it always happens around 30%.
I guess this occurs because the streaming process but there is a way to control it?
Thanks in advance
Preloader Only Shows At 80%
I have tested the attached pre-loader and it only shows the first frame and progress bar at 80%.....
I am testing by pressing ctrl-enter when in test movie.....
Can anyone have a look and see why this would be happening?
Thanks
Alpha = 0 But Still Shows Through?
I have a page http://www.inertia1.com that has alot of transparent items. I set thier alpha values to zero. But when I looked at the page the transparent sections still show through.
It is only when your color settings for your windows display are at 16 bit. If I change my settings to anything better the transparent areas are completely see through just as they should be. But still I would like to find a way for it to be the same no matter what.
Any suggestions would be greatly appreciated, Thanks.
Pop Up Menu Shows Behind Swf
I have created a js pop up navigation menu that I call to each page. However, on some of my pages I have a flash movie playing, and the pop up shows behind the movie when the trigger image is moused over. I also created the same menu using CSS with the same result. Not sure how to make the menu show over the movie when moused over.
My OnMouseUp Shows Too Many Mc's
Check out this snippit of code. I don't quite know how to get what I want. I'm dynamically creating some resize handles around a textarea. What I need is for the onMouseDown event to show me which one of the 8 'Grabber' handles I'm on.
With this setup, it traces out all 8 every time the onMouseDown event fires. You can also see where I commented out an eventlistener, I couldn't seem to get it working.
Any Ideas? Thoughts? Comments?...
Thanks
Code:
for (var r = 1 ; r < 9 ; r++){
_root.attachMovie("GrabSquare" , ("Grabber-" + r) , currentDepth++);
var thisItem = eval("Grabber-" + r);
//thisItem.addEventListener("onRollOver", myGrabberMouseOverListener);
thisItem.onRollOver = function(){
Mouse.hide();
_root.attachMovie("MoverMouse" , "NewMouse" , currentDepth++);
startDrag(NewMouse, true);
}
thisItem.onRollOut = function(){
Mouse.show();
NewMouse.removeMovieClip();
stopDrag();
}
thisItem.onMouseDown = function(){
trace(this);
}
}
Border Shows Up On Mac Only
Does anyone know why a border for a component would show up just on a Mac? I tested in Safari, and component only shows a border during the loading phase. Border does not show up on IE7 or FF for PC...just Mac. WTF? Isn't the Flash player supposed to be cross-platform?
View here: http://www.swfflex.com/cfs/list_fixed_FLA8v2.html
Any help would be appreciated.
-CK
Guestbook That Shows All Threads
I want to create a guestbook in Flash 5. Unlike the guestbook that can be downloaded from this site I want one that shows a title of every thread that has been posted on the mainpage. (It is supposed to be a forum for discussion with a text that everyone can react to and comment.
I want evrey thread title to be clkickable to see the whole message.
Is this possible in Flash and does anyone have a file or a script for me? Or can I just make some adjustments in the one from the Flashkit page?
Thanx
Katulka
Movie Shows On My Web Only If I Reload?
1.Anybody has an idea why my .swf movie doesn't show from the first time - only when I use reload button it's visible (Check url: http://www.geocities.com/ilieva_victoria). Keep in mind it starts with the "loading movie".
Thanks
Menu Shows Wen Transparent...
i have set my 'Export movie' so that it doesnt display the menu. but wen i put this into the HTML of the swf in dreamweaver:
<param name="wmode" value="transparent">
the menu appears, even tho i told it not to...
is this me just bein stupid or is it a recuring problem?
cheerz 4 n e help
jh
IE Window Shows Up Behind Projector
I have completed my interactive cd and tested it on two different computers with two different outcomes. One computer shows the browser window in front of the Projector, which is what I want. The other computer puts it behind the projector, which is not what I want.
Is there any code that I can use so that it wont change from computer to computer?
LoadVars That Shows Progress
Can someone please help me create script for LoadVars object, that will tell the progress of data transmitted?
The LoadVars.onLoad initiates only when all the data has been transmitted. I dont know which event handler must be used to get the LoadVars.getBytesLoaded().
I'll keep searching and thanks for all hints :-)
Picture Shows Every Other Click
Would anyone have an idea why my jpg, based on an XML file shows everyother click?
FLA File
XMF File
Thanks for any help...
Munkie!
Line Spacing Shows In Fla But Not In Swf
I've got a problem, both in 5 and MX, that isn't one of embedding the font outlines, as far as I can see.
The letters themselves look great, its just that enhancements like line spacing show up in the fla, but are lost in the swf when a word of the text is used as a hyperlink or the text is ticked as "selctable".
It may be easier to understand with the attached example.
|