Loadmovie Preloader... Why Dont You Not Work?
the problem... have a preloader counting bytes...
when i use it in my loadmovie the path dont work..
please tell me where...
i´m starting to getting lack on this problem now...
the button in main.swf
on (press) {
loadMovie("stationen.swf", "_root.target");
}
preloader in frame 2 stationen.swf (external swf)
loadedbytes = this.getBytesLoaded();
totalbytes = this.getBytesTotal();
loadedbytes = Math.ceil(loadedbytes/1000);
totalbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene();
}
dont count...
FlashKit > Flash Help > Flash Newbies
Posted on: 04-15-2003, 09:49 AM
View Complete Forum Thread with Replies
Sponsored Links:
Preloaders Dont Work Properly With Loadmovie
my preloaders work fine, and the movie loads in fine. The problem is that the preloaders wont work properly when i load them into a movieclip. THey either are stuck on 100% or nothing shows up at all.. the movie still continues to load after the preloader is done..
any ideas???
thanks
View Replies !
View Related
My Preloader Dont Work Right All The Time Help
Hi
I have this script for a preloader that i used on 2 pages and worked just fine but on my last page the preloading starts working when the loading is at 50% until then its all white.
code: stop();
myInterval = setInterval(preloader,10);
function preloader() {
if (getBytesLoaded() >= getBytesTotal()) {
play();
clearInterval(myInterval);
}
progressBar._xscale = (getBytesLoaded()/getBytesTotal())*100;
}
Can anyone tell me whats the problem?, i thing is my page not the preloading since it works fine on 2 pages.
Thank you very much.
View Replies !
View Related
Preloader In External MC Dont Work - Why... Why... Why...
I put a empty movieclip on frame 1 - i give the mc a instance escalade2 , and then i put this actions on the frame actions using the Behavior Load MC panel -
//load Movie Behavior
if(this.escalade2 == Number(this.escalade2)){
loadMovieNum("cars/escalade2.swf",this.escalade2);
} else {
this.escalade2.loadMovie("cars/escalade2.swf");
}
//End Behavior
The movie loads, but the preloader dont work, but if i see the escalade2.fla the preloader works 100% -
i have like 132 external swf with the same problem, and i need that each external preloader works :
pleasee i need feedback! urgent
View Replies !
View Related
The Preloader Of A External Movie Dont Work
I use flash mx 2004 -
I have logo.fla and external.fla
logo.fla have their own preloader, in external.fla i put a empty movieclip that logo.fla will load there using the behaviors...
When i debug the movie, the preloader of logo.fla dont work, the movie is in blank unti all the image is load...
In logo.fla the preloaders works! - i dont know whats going, the problem here is that the logo preloader works, but no if i use the .swf as a external movieclip.
Please download the 2 files, i need help for this really urgent! anyone!
Thanks
View Replies !
View Related
LoadMovie+preloader = Not Work
LoadMovie
http://www.kirupa.com/developer/mx/full_site.htm
and
preloader http://www.kirupa.com/developer/mx/p...epreloader.htm
i've done both of these tutz separately and they both work fine but when you put them together it doesn't work.
this is what i did...
made an "index" page called "Main"
made a "content" page called "gallery"
the gallery page contains a preloader in it. both the index and the content page work separately but when you ask the index page to load gallery, it does not work. i think the problem is in the coding in the preloader. Instead of loading frame 3 in the content (gallery) page it loads frame 3 in the index (main) page.
can somebody help me please????
Btw I’ve tested out the preloader and it works fine by itself. I also know “When you preview the animation in your browser from the Hard Drive, you WILL NOT see a preloader.”
here are the <a href="http://users.bigpond.net.au/kechen/help.zip">files</a>
View Replies !
View Related
Dont Understand Why This Dont Work
ok this file is from another post and workes fine as far as the movement and stopping. i tried to add a button to it but the function seems to overtake every other script in the movieclip. heres the fla. is there a workaround or am i doing this wrong?
thanks for your time!
View Replies !
View Related
LoadMovie JPGs Into MC: The Preloader Won't Work.
I have tried several methods of making a preloader to show the progress of a JPG being loaded by loadMovie into a MC.
Here's what I have:
Frame 1:
barColor = new Color (mc_loadBar);
barColor.setRGB(0xFF0000);
var itemloaded = _parent.mc_loadArea.getBytesLoaded();
var itemtotal = _parent.mc_loadArea.getBytesTotal();
if ( itemloaded == itemtotal ) {
_parent.mc_loadArea._visible = true;
_parent.areaButton._visible = true;
this.stop();
this._visible = false;
} else {
_parent.mc_loadArea._visible = false;
_parent.areaButton._visible = false;
gotoAndPlay(2);
}
Frame 2:
itemloaded = _root.mc_content.mc_loadArea.getBytesLoaded();
itemtotal = _root.mc_content.mc_loadArea.getBytesTotal();
if ( itemloaded < itemtotal ) {
mc_loadBar._width = ((1-(itemloaded / itemtotal)) * 300);
var_thisPercent = int((itemloaded / itemtotal) * 100) + "%";
} else {
_parent.mc_loadArea._visible = true;
_parent.areaButton._visible = true;
this._visible = false;
this.stop();
}
Frame 3:
var retest = int((itemloaded / itemtotal) * 100);
if ( retest < 100 ) {
barColor.setRGB(0x00ff00);
}
if ( retest < 66 ) {
barColor.setRGB(0xff9900);
}
if ( retest < 33 ) {
barColor.setRGB(0xff0000);
}
gotoAndPlay(2);
mc_loadArea is the MC, in _parent, that I am loading the MC's into.
mc_loadBar is a MC in the preloader, basically a wide rectangle.
In the parent MC all the objects are in a single frame with this for action:
var itemNum = "101";
var folder = photos;
function getPhoto (request) {
if ( request > 0 ) {
itemNum++;
}
if ( request < 0 ) {
itemNum--;
}
if ( itemNum < 150 ) {
nextButton._visible = true;
} else {
nextButton._visible = false;
}
if ( itemNum > 101 ) {
previousButton._visible = true;
} else {
previousButton._visible = false;
}
mc_loadArea.loadMovie("downloads/photos/small" + itemNum + ".jpg");
mc_loader._visible = true;
mc_loader.gotoAndPlay(1);
}
getPhoto(none);
stop();
The preloader will not show up at all. The only solution I can think of is to use a Level, and not to use a seperate SWF for each picture. I use the function getPhoto(); to start loading/preloading a picture, starting with picture # 101. It would help to check the FLA, email if you wish to be so kind.
URL: http://www.str8uponline.com/str8up.html
Click: media&forms
View Replies !
View Related
Preloader Doesn't Work When Using Loadmovie....help
Hey all,
I'm creating a site and when a button is pressed in the menu it loads a movie into an MC. And in the movie that's loaded I'm using a bar and percentage preloader.
Now when I test only the movie, that is not throught the menu, the preloader works fine.
But when I use it through the menu and with the loadmovie action, the preloader just jumps to 100% and stops there until the movie is loaded and then continues, in other words the preloader is pointless. Here's the preloader I'm using:
http://www.actionscripts.co.uk/tutorials/kimholland/01/
Does anybody have any clue of what I could do?
thanks in advance
Cetrez
View Replies !
View Related
Preloader Doesn't Work With LoadMovie
hi!
I am creating a website and I have a main .swf file that loads other .swf files when needed. for each swf file I have created a preloader and all of them work fine individually (if I open the swf file directly).
The problem is when I make the loadMovie from the main swf, the file loads fine but jumps the preloader!!?? the animations starts imediatly and freeze when they have bigger things to load!
the preloaders are in a scene and have the folowing code:
bytesloaded = _root.getBytesLoaded();
bytestotal = _root.getBytesTotal();
percent= int(( bytesloaded / bytestotal ) * 100);
if(bytesloaded == bytestotal) {
gotoAndPlay(3);
}
else {
loadBar.gotoAndStop(percent);
}
I have read the other topic about preloading and loadmovie but I decided to post here because the problem is different.
Thanks a lot
please help, it's really really urgent!!
View Replies !
View Related
Preloader Doesnt Work With LoadMovie
Hi
I am loading swf's into movie clips using:
this.target20.loadMovie("pics/20.swf");
I want each swf. I load to have a percentage preloader but when I use the preloader along with the above loadmovie command it doesnt seem to work...?
The code for the preloader is:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Can anybody see what is going wrong??
thanks
View Replies !
View Related
Preloader+loadMovie=doesn't Work
Hello all,
I am working on a mini folio for my website. I have a main movie into which I am loading individual projects. I have a preloader with each project and what is happening is when I put the files on the server, the preloader will load to 100%, but not go to the next frame to show the project? Works like a dream locally of course. To see it online check out: http://www.erikwallace.com/folio/
Here is the code I am using for the preloader:
onClipEvent (enterFrame) {
mctotal = _root.getBytesTotal();
mcloaded = _root.getBytesLoaded();
mcpercent = Math.round((mcloaded / mctotal) * 100);
display = mcpercent + "%";
progress_mc._xscale = mcpercent;
if (mcpercent == 100) {
_root.play();
}
}
Thanks to everyone for looking!
EW
View Replies !
View Related
Loadmovie With Preloader (preloader Won't Work)
I finally managed to get my .swf to load into a movieclip on my main movie.
now the problem is that it doesn't show the preloader, it just sits there until it's loaded then starts to play.
i've read just about everything i got my hands on but can't figure out why the preloader won't play.
here is my code on my main movie's main scene
myButton.onRelease = function (){
_root.target_MC.loadMovie ("movie.swf"), 1);
}
any help would be greatly appreciated.
thanks
View Replies !
View Related
OLDNEWBIE's Preloader...how Can I Get It To Work With GETURL Instead Of Loadmovie?
I need to use OLDNEWBIE's preloader as shown below (it is placed in the first frame of the .fla.) BUT (there is always a BUT). I need it to use getURL once the movie has loaded in the clipholder.
Any ideas? I've tried many variations, but nothing works.
Thanks a Million!
fitchic77
==================================================
/* First thing to do is set the stage size of
this movie at the same size as your
"to be loaded" movie, and re-position the display
elements to your liking.
Also set the same framerate as your movie.
Then replace "sound.swf" in 2 of the lines below,
with the name of your movie.
Last, make sure your present movie is cleared
of any preloader, and most importantly, that it
starts off with a first blank keyframe.
*/
// Hides displayed elements
this.reelmc._visible = false;
this.loadbar._visible = false;
this.outline._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("intro_movie.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
if(!isNan(percent)){
// trace(percent+"% loaded");
if (percent == 0) {
percent_display = "";
} else {
percent_display = Math.ceil(percent) + "% Loading";
}
this.loadbar._visible = true;
this.outline._visible = true;
this.loadbar._xscale = percent;
if (percent > 1) {
this.reelmc._visible = true;
}
container.stop();
} else {
// trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
this.reelmc._visible = false;
percent_display = "";
this.loadbar._visible = false;
this.outline._visible = false;
loadMovieNum("intro_movie.swf",0);
}
}
stop();
View Replies !
View Related
Hittests Work/Dont Work
Ok, I think I may know the problem. I have a movie clip called "mario_mc". THen I have a background called "background_mc". Inside I have coins, blocks, and boxes. The ONE box is called "box_mc" and the ground blocks are all called "groundBlock_mc". Now when I do:
Code:
trace (mario_mc.hitTest(background_mc.groundBlock_mc));
it says "false". But when i do :
Code:
trace (mario_mc.hitTest(background_mc.box_mc));
Is it because there is more than one ground block? The .fla is attached.
Note: Mario copyrighted of Nintendo of America.
View Replies !
View Related
My Pop-ups Dont Work In IE6
my pop-ups dont work in IE6. They work perfect in IE5.
Here is the code.
-----------------------------------------------------
on (release) {
getURL("javascript:NewWindow=window.open('http://www20.brinkster.com/megalo5/marie.html','newWin','width=640,height=480,left=0, top=0,toolbar=No,location=No,scrollbars=No,status= No,resizable=No,fullscreen=No'); NewWindow.focus(); setTimeout('NewWindow.resizeTo(640,480)',0); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(640/2); top_point = parseInt(screen_height/2)-(480/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");
}
--------------------------------------------------
I got the code from http://www.flash-db.com/PopUp/
The example im refering to is @ http://www20.brinkster.com/megalo5
The 3 thumbnails on my portfolio site should make popups, but not on IE6.
View Replies !
View Related
So It Dont Work Then ?
so what your all saying then is flash cannot store localy to txt files?... even if you had flash 5 to use the magical "save" fscommand" would be pointless, cos no other player would allow it.
only people with flash 5 players.
flash cannot write to txt files... simple only communicate with scripts.
View Replies !
View Related
Get Url Dont Work HELP
on (release) {
getURL("http://www.borneogungeraad.dk", "_blank");
}
its work when im in the flash program but when i oploade it, then it wont open the page What is op with it please help me
one more thing
if i want to make a butten to open a download.
what to do then ??
View Replies !
View Related
Y Dont Dis Work Mar?
I have this code:
Code:
never mind I found it....
but it dont work. it was now its not, I pritty sure the problem is within the huge do while loop. I just can not find the problem....can ne1 see it?
also is there any way I could achive the same result as the do while loop with something smaller?
View Replies !
View Related
Certain X, Y Dont Work.
Hi,
I have a problem regarding the x, and y coordinates on a flash project of mine. Whenever I set the x and y coordinates for a movieClip:
ActionScript Code:
function setPos() { with (mc1) { _x = 400; _y = 300; }}
The MovieClip never gets sent to the proper coordinates. If anyone could help me, that would be great. Thanks.
Sincerely,
-Joman.
View Replies !
View Related
Certain X, Y Dont Work.
Hi,
I have a problem regarding the x, and y coordinates on a flash project of mine. Whenever I set the x and y coordinates for a movieClip:
ActionScript Code:
function setPos() { with (mc1) { _x = 400; _y = 300; }}
The MovieClip never gets sent to the proper coordinates. If anyone could help me, that would be great. Thanks.
Sincerely,
-Joman.
View Replies !
View Related
Nope It Dont Work....
ok i thought the code would work
but i need it to be an instruction
to a particular movieclip.
for instance the code would be in a button instance
and when the button is clicked it tells the movieclip
to fade out. Thats it.
im thinking along the lines of
on (rollOut, DragOut){
with (MC1) {
//this is the part that i need help with eg the code
to make the MC fade out to nothing, i reckon theres a loop operator in here some where..
}
Please please help!!!
View Replies !
View Related
Buttons Dont Work?
I have submitted this before but I have added more info.
Here's more info on my problem. I have an electronic governor and I have 22 scenes which show the circuit board and the 22 steps that are needed to calibrate it.
To simplify this problem for trouble shooting lets say you have a ball it goes from the bottom left goes to the top then sideways and back to the bottom. (On the actual movie this is the preview of the current step. When it finishes you can go to a button to play a movie which has gauges). As it makes it way around the scene it stops and a popup with a info panel on it. On each scene you have a button togo to previous scene or the next scene. The button's have action which say
on (release) {
gotoandplay("nextscene"),1;
}
or for the other button:
on (release) {
gotoandplay("previousscene"),1;
}
I have tried nameing the scenes also that didnt make any diffrence it works fine when you have 10 or 11 scenes but when you try more when you publish it just switches the scene and freezes on frame 1 so instead of gotoandplay it gotoandstops? If you put a play action on frame one it dosnt do anything.
I have also eliminated the play movie button with the movie to simplify it but that didnt make a diffrence. This is so basic yet it doesnt work.
Any ideas? The total scene are about 12 mb's. This finished movie will be placed on a cd and not the web so Iam not worried about size. Do you know if flash has a max on scenes. If you send me a place were I can send the file you can check it out.
ALpajack
View Replies !
View Related
Functions Dont Work
I've searched for a tutorial/answer on this but can't find what I've done wrong.
I have a 2 movie clips. 'recon' has a checkbox component. If it is checked, I want a movieclip in 'stress' to go to another frame.
My comments show what I think I'm doing but the clip in 'stress' never shows up...
'recon' has this code:
Code:
//capture values of checkboxes
function setValues() {
image.setValue(image_value);
}
//convert to variables
function getResults() {
image_value = image.getValue();
}
and a gotoAndPlay(1); on the second frame, to make it keep checking.
'stress' has this code:
Code:
//if box checked, go to visible frame
if (_root.recon.image.image_value == true) {
image2.gotoAndStop(2);
} else {
image2.gotoAndStop(1);
}
and again a gotoAndPlay (1);
Hope you can help
View Replies !
View Related
_currentFrame Dont Work
hello guys
i made a button and i called it button1 and i want that when i click on it the movieclip that i made go the next frame and check if its frame11 then stop,else next frame.
i checked my code and there is no syntax errors but it doesnt work, whats wrong? the code:
Code:
button1.onPress=function(){
mcPic.nextFrame();
if(_currentFrame==11){stop}
else
mcPic.nextFrame();
}
Can anyone help me? plzz becuz it drives me nuts
View Replies !
View Related
The If Statment Dont Work....
hello everyone...
let me bother u a little with my stupid problem
i made a button that ask the movie to go to next frame and play until it stops in the 15th frame and if the current frame is 15, then it goes to the next frame but that didnt work, i attached the file and i hope that u resolve it..
anouther question:
how to make a menu like the menu in this site: http://www.teknision.com
when i hit on company it opens a new menu and it doesn`t cover the other buttons and they go down, whats the idea of this menu? i tried to make one like it but it didnt work, it covers the other buttons. i hope u will answer me......
thanx in advance
View Replies !
View Related
Buttons Dont Work
Oke this is the problem.
I'm loading a movie clip (movie name = News-ned-movie, Instance name = news-ned) in my timeline.
This movie contains a Scroll Pane (Scroll content = Movie named "news-ned").
The movie contains buttons named nieuws-ned01 / nieuws-ned05, and a code:
news01.onRelease = function () {
_root.gotoAndPlay("nieuws-ned01");
}
news02.onRelease = function () {
_root.gotoAndStop("nieuws-ned02");
}
news03.onRelease = function () {
_root.gotoAndStop("nieuws-ned03");
}
news04.onRelease = function () {
_root.gotoAndStop("nieuws-ned04");
}
news05.onRelease = function () {
_root.gotoAndStop("nieuws-ned05");
}
I hope someone can tell me what's wrong
Thanks
Joris
View Replies !
View Related
On Keypress Dont Work
hi,
have some buttons with
on (release, keyPress "<Enter>") {
go somewhere
}
but the keypress doesnt work (the release does), but dont know why. i'm using flash player 6 with AS2.0
steven.
View Replies !
View Related
I Know The Problem Dont Know The Work Around
I have main movie, i am loading this little .swf in the BG into an empty MC, but it has _root in the actionscript so it wont play. Well i need it to be in the BG cause its a rotationg BG image. So how do i get this to work? Can i change it to something other than root and keep it in the BG? it can not load on top of the main movie it must load behind. I can offer up the .fla or whatever you need to help or better understand. Thanks in advance for any help you can offer.
View Replies !
View Related
Arrays Dont Work.
Hello All. I am making an array that is supposed to tell something to text. Here is the script in Frame 1:
Code:
stop ();
var modeN:Number = 0;
var modeInfo:Array = newArray();
this.modeInfo[1] = "Adventure Mode";
this.modeInfo[2] = "Classic Mode";
this.modeInfo[3] = "Practice Mode";
this.modeInfo[4] = "Event Mode";
modeN is the number that says what mode is selected (There are 4). Then modeInfo stores the info for that mode.
In another frame there is a button that when clicked sets modeN to 3.
Then in the final frame there is this...
Code:
stop ();
text_txt.text = modeInfo[modeN];
For some reason the text box says undefinded. What am I doing wrong?
View Replies !
View Related
SendandLoad - Dont Work For IE?
I have the code below that sends a query to a PHP script every 5 seconds.
useing firefox I have absolutly no problem with this code.
But when I test it with IE I it returns "undefined" as values.
ALSO Im testing on a localhost.
I pray some one can help.
setInterval(getsv, 5000);
sendvars = new LoadVars();
receivevars = new LoadVars();
function getsv() {
sendvars.sendAndLoad("gets.php?ask_time=" + _root.ask_time ,receivevars);
}
receivevars.onLoad = function () {
// stuff.
}
View Replies !
View Related
Button Dont Work With MC
I really dont understand this. I have a OnRelease function that triggers an animation. withing that animation reveals two new buttons. First I have noticed that when the animation starts, no matter what I click (non-assigned buttons) restart my animation and my buttons dont work....
Here is the Fla if anyone can help.
Thank you.
View Replies !
View Related
[F8] Why Dont My Links Work? Please Help
ok my links work when i test the movie yet once i uplod my flash to the site everything works but the links here is the websight and also my .fla i have the latest flash media player update and i still cant view it. any help?
http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=119 55890
.fla
View Replies !
View Related
IF Statements Dont Work? Please Help...
Hi,
Im having serious problems with this, am I missing something? It reads in and XML file fine and pwearing is the correct part of the XML file, but for every time pwearing == true I want it to output pwearing but atm it outputs everytime no matter what pwearing equals, so where am I going wrong?
Code:
_xml = new XML();
_xml.ignoreWhite = true;
_xml.load("playerItems.xml");
_xml.onLoad = function(){
aNode = this.childNodes;
len = aNode.length;//do this
oArr = [];
for (var r=0; r<len; r++){
pfile = aNode[r].firstChild.nextSibling.childNodes;
pwearing = aNode[r].firstChild.nextSibling.nextSibling.nextSibling.nextSibling.childNodes;
pwearingString = pwearing.toString();
trace (pwearingString);
if(pwearingString == true){
trace (pwearingString)
}
}
};
View Replies !
View Related
AS Dont Work After Tweening.
I have a MC with the instance name "heart". In the first 20 frames i am tweening it. Not by AS but on the timeline. On frame 22 i start moving "heart" around using AS (_X and _Y) but nothing works. I have figured out that "hearts" needs to be absent for one frame before i can target it with AS after the timeline tween, what i mean is that there needs to be one keyframe without the "hearts". Is this correct? Can anyone tell me a fix for this cause i would like to be able to use timelin tweens AND AS.
View Replies !
View Related
Using [] Instead Of Eval() In AS3.. Still Dont Work
Hi,
I have a MovieClip in libary Exported as: myMC.
Now, I wanna attach it to the flash at runtime.. in AS2 this would be easy using attachMovie and eval functions. But how to do it in AS3?
ActionScript Code:
var i:Number;
var makeTotalMc:Number = 10;
for ( i=1; i<makeTotalMc; i++)
{
var addedMC[i]:myMC = new myMC();
this.addchild(addedMC[i]);
}
What am I doing wrong? Please help me with this code while I'll bang my head against the wall
View Replies !
View Related
Dont Get Why This Shouldnt Work
I have this code for my game
function PlayCards(){
cardsArray=new Array("hydrogen","helium","lithium","beryllium")
for(c=0;c<=cardsArray.length;c++){
for(i=0;i<=cardCount;i++){
cardsArray[c+i].onPress=function(){
}
}
}
}
and everytime I execute it it comes up with an error i am declaring the card count varible
any ideas?
View Replies !
View Related
_parent Dont Work~
hi all~
this is part description of _parent from Flash help:
specifies or returns a reference to the movie clip or object that contains the current movie clip or object.
it said mc or object yes ? and this is my code:
Code:
var a = new Object();
a.b = new Object();
a.b.c = new Object();
a.b.c.func = function()
{
trace(_parent);
}
a.b.c.func();
to my surprise the output is: undefined !!! what's on earth happening and how can i get parent object within that function ???
thanx~
View Replies !
View Related
My Buttons Dont Work Right
I wanted my buttons to be somewhat dynamic so I made 2 movie symbols to enhance them.
One of them is a movie symbol of a glow that pulses. I put that in the Over frame and it seemed to play well.
The other movie symbol is a pulse of rings that I wanted to have emit from the button when it is pressed, so I put that one in Hit. It does not seem to show up at all. why is this?
Also my Down graphic only stays when the button is held down with the mouse button. I figured Down would be more like a Down-State and it would stay down when pressed. Are there more advanced options to buttons besides just Up, Over, Down and Hit?
View Replies !
View Related
Flash Dont Work
hi
ive got a dell pc running windows xp with 4 login accounts,the pc is regestered to my wife,the problem i am getting is that flash works ok on my login account but will not work on the other 3 accounts,have tried uninstalling,re installing on both mine and my wifes accound but am still unable to get flash working on all 4 pc users any suggestions !
View Replies !
View Related
AS3Flex2b3StarterFiles Dont Work
When I try to load the SimpleOutputUsage.as class I get an error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Output$iinit()
at SimpleOutputUsage$iinit()
at test_class_fla::MainTimeline/test_class_fla::frame1()
Which I think is from this line:
mainStage.addEventListener(Event.RESIZE, fitToStage);
I think mainStage is not being set correctly....
As I cannot trace in this Output.as file (local trace function overrides), I'm finding it hard to debug..
I'm thinking that the is a problem with the order the objects are constructed.. perhaps the SimpleOutputUsage class isn't passing the stage variable properly?
Can someone please advise as to how to fix the file or provide a working version.
Thanks.
View Replies !
View Related
JUST NOT RIGHT - Dont Get It? - Should Work Fine?
I have tried everything and the stupid thing just don't work.
I have an xml file with a location to a swf file. All good. I know it works fine because I have outputted it to the screen. Fine.
Ok, now I want to show this on the screen, no problem, I just did this:
ActionScript Code:
_root.createEmptyMovieClip("swfMC",1);swfMC.loadMovie("flash.swf");swfMC._y = 10;swfMC._x = 0;
Ok all is great. Now because I am loading it from the xml file, and we know it is being pulled in correctly, I tried this:
ActionScript Code:
_root.createEmptyMovieClip("swfMC",1);swfMC.loadMovie(swf);swfMC._y = 10;swfMC._x = 0;
swf is just the variable from my xml file. and nothing is being displayed, ahhhhhh what am i doing wrong here, just dont understand it?????
Please help us out here, must be something really simple, just not noticeable to me .
Cheers
View Replies !
View Related
I Dont Know How To Make It Work
I've wrote this code...
Code:
function makeTree(xmlLoad:String) {
import mx.controls.Tree;
createClassObject(Tree, "myTree", 1);
myTree.removeAll();
myTree._x = 150;
myTree.setStyle("backgroundColor", "0x00ffcc");
trace("clicked");
var trDP_xml:XML = new XML();
trDP_xml.ignoreWhite = true;
trDP_xml.onLoad = function() {
myTree.dataProvider = this.firstChild;
};
trDP_xml.load(xmlLoad);
}
dokimi.onPress = makeTree;
What i want to do is to when i press the dokimi movieclip to call the makeTree function. This script works but i cannot figure how i can pass the xmlLoad variable value to the function... If i write for example
Code:
dokimi.onPress = makeTree("lib.xml");
it doesnt works as i want it generates the tree component first and then it doesnt work anymore.
(sorry for my english)
View Replies !
View Related
Buttons Dont Work?
I have made a drop down menu and added a button to it but the button doesnt work at all I also have a hilights button which works but doesnt load text properly. altogether it is a very mess bit of work to my shame. But hey im learning. Would someone in there spare time if they dont mind have a look at what I have made and tell me where I am screwing up or if I should just kick it back to the drawing board.
http://www.softgoowything.com/buttons.zip
thanx
View Replies !
View Related
I Am Pretty Sure This Is What I Did Before But Now It Dont Work
I have a for loop
Code:
for(var i:int = 0; i<arrX.length();i++){
arrLoader = new Loader();
arrLoader.load(new URLRequest(arrX[i].@asset));
arrLoader.name = "arrH"+i
arrLoader.x = i * 200;
mainHolder.arrHolder.addChild(arrLoader);
}
// for testing purpose i added a button, i want to shift all items to the LEFT 50 pixels, but i don't want to move the container mainHolder.
button.addEventListener(MouseEvent.CLICK,clicked);
function clicked(e:MouseEvent):void{
for(var c:int = 0; c<arrX.length();c++){
mainHolder.arrHolder.arrH[c].x =+ 50;
}
}
This should be simple solution.. anyone got suggestions?
View Replies !
View Related
Why XML Dont' Work In Flash 8 ?
Last edited by Profano : 2006-04-04 at 01:22.
Hi all.
Time ago i do a code for a simple xml>array converter. This code don't work in flash 8 (in Flash 7 work perfectly), and i don't find what's wrong. Can someone help me please?
/* ------------------------------------------------------------------------
Creo i namespace.
*/
if (_global.com == undefined) {
_global.com = new Object ();
}
if (_global.com.commoedia == undefined) {
_global.com.commoedia = new Object ();
}
if (_global.com.commoedia.Struttura == undefined) {
_global.com.commoedia.Struttura = new Object ();
}
/* ------------------------------------------------------------------------
/*
================================================
Funzione per la creazione di array da file XML
================================================
Metodo:Struttura()
Descrizione:Controlla in un nodo XML la presenza di figli
convertendola in array.
Parametri:nodo_xmlil percorso del nodo da convertire.
*/
com.commoedia.Struttura = function (link):Void {
// creato un nuovo ogetto XML.
var cont_xml:XML = new XML ();
var controlloProgresso:Function = function (xmlObj:XML):Void {
var bytesCaricati:Number = xmlObj.getBytesLoaded ();
var bytesTotali:Number = xmlObj.getBytesTotal ();
var percentualeCaricata:Number = Math.floor ((bytesCaricati / bytesTotali) * 100);
trace ("millisecondi passati : " + getTimer ());
trace ("bytes caricati : " + bytesCaricati);
trace ("bytes totali : " + bytesTotali);
trace ("percentuale : " + percentualeCaricata);
trace ("---------------------------------");
};
cont_xml.onLoad = function (success:Boolean) {
cont_xml.ignoreWhite = true;
var nodo_xml:XMLNode = this.firstChild;
trace (cont_xml);
var menuSito:Array = com.commoedia.main = new Array ();
for (var i = 0; i < nodo_xml.childNodes.length; i++) {
// Riempio l'array con i parametri dei figli.
menuSito.push (new Object ());
menuSito[i].nome = nodo_xml.childNodes[i].nodeName;
menuSito[i].link = nodo_xml.childNodes[i].firstChild.nodeValue;
// Controllo se i figli hanno a loro volta figli,
if (nodo_xml.childNodes[i].firstChild.hasChildNodes ()) {
// In questo caso creo un nuovo array.
var subMenuSito = com.commoedia[nodo_xml.childNodes[i].nodeName] = new Array ();
var elabNodo = nodo_xml.childNodes[i].childNodes;
for (var l = 0; l < elabNodo.length; l++) {
subMenuSito.push (new Object ());
subMenuSito[l].nome = elabNodo[l].nodeName;
subMenuSito[l].link = elabNodo[l].firstChild.nodeValue;
}
}
}
clearInterval (intervalloID);
trace ("intervalloID: " + intervalloID);
};
cont_xml.load (link);
var intervalloID:Number = setInterval (controlloProgresso, 100, cont_xml);
delete com.commoedia.Struttura;
};
error found...sorry
View Replies !
View Related
Buttons Dont Work In Mc
i have an mc with actions applied to it and in the mc i have several mc's with button actions applied to them. so on rollover its supposed to highlight.
the only thing is that the buttons wont work because there are on rollout actions applied to the mc that the buttons are in.
is there any way around this?
thanks!
austin
View Replies !
View Related
|