ActionScript 2.0 :: Can't Get If Else To Work Correctly?
Jan 22, 2009
ok, i have been working on this for a week or so, and yes it has been a week. I don't have the internet where i am from so I resorted to ebooks that I had downloaded. The problem is, is that I have made a very simple math program. You decide which operand you want to use and a randomly generated questions pops up. You answer the question and you are told whether you are right or wrong. This continues 5 times where you are graded based on percentage correct. I am not worried about taht part yet, I want to get my if else statement working correctly first.
The first frame is the frame where you choose your operand. The second frame is where you solve the problem, and the last frame is where you are told whether you are correct and what your percent so far is.I have an ebook teaching me but I have had some success in prior programming. When my program didn't work, I debugged and eventually ripped the program straight from the book. It still isnt working correctly.
[Code]...
View 8 Replies
Similar Posts:
Feb 18, 2009
I got some problem with a task. I Can't get removeChild work correctly.When u push i_golf three buttons appear (i_golf1, i_golf2, i_golf3) and each button is connected to a picture.
i_golf.addEventListener(MouseEvent.CLICK, visaGolf);
function visaGolf(e:MouseEvent){
var v_golf_bild:MovieClip = new golftumbs();[code]....
View 0 Replies
Sep 3, 2006
why the text disapears 1/2 way down the scroll?
Download FLA Here
Download ZIP Here
View 1 Replies
Dec 28, 2008
Tried to load one .swf file into another using loadClip method:
var MCL:MovieClipLoader = new MovieClipLoader();
MCL.loadClip("1.swf", "loader");
The .swf file is loaded but controls inside it won't work (I have some buttons and stuff in it). Separately everything works just fine. Also, what is the difference in loadClip usage between AS 2 and 3? The code above generates some compiler error messages in AS 3 mode, like
"1180: Call to a possibly undefined method MovieClipLoader" and
"1046: Type was not found or was not a compile-time constant: MovieClipLoader."
View 1 Replies
May 6, 2006
I've just made a 2'nd version of my portfolio: [Code]... with xml used to read the content & i have several problems that i can't fix.
1: The site works well only in InternetExplorer. In all other browsers, jpg files are not loading correctly - they should fade in when the button is rolling & fade out when the button is rolling up, but they doesn't. Thare are also preloaders for each artwork & they doesn't appear (excepts IE). 2. The main preloader doesn't work correctly (even in IE) It appears, when about 80% of the site is loaded :S I don't know what to fix to the site to work correctly in all browsers.
View 9 Replies
Aug 12, 2009
We have created on-line game that uses Ruby on rails for the server part. SWF client works well under browsers on Win&MAC. Windows stand-along client also works well but the MAC client runs down just after start. Analysis of the LOG file on the server shows a problem with a cookie for the session id. The server is not able to create the cookie on MAC to store session id.
View 5 Replies
Aug 28, 2009
We have created an on-line game that uses Ruby on Rails for the server part.The SWF client works well under browsers on Win & MAC. Windows stand-along client also works well but the MAC client runs down just after start. Analysis of the LOG file on the server showsa problem with a cookie for the session id. The server is not able to create the cookie on MAC to store session id.
View 1 Replies
May 19, 2010
I'm searched and searched and tested this, but I can't seem to get a simple scroll pane to work correctly. I have a bare-bones file, with dummy text here:[URL]..
Can someone download this and put the dummy text inside a scrollpane for me (using the ruler guidelines as a guide)? I'll even send you $10 via PayPal if you can get the text to look right inside the scrollpane...
I can't believe I have to resort to this, but I'm about to pull my hair out,
View 1 Replies
Apr 28, 2007
I am having trouble to get the SendAndLoad() function to work correctly so that when the php script echo's or print("result") is called it gets a string saying pass, or fail... the following is my code for php, and action script. Also I have provided two pictures explaining the what exactly I want.
[Code]...
View 3 Replies
May 25, 2009
How do you get buttons to work correctly inside the Movieclip? When i click on my buttons they show what is supposed to be shown for a split second then goes to the nested frame 1. my website is: [URL] If you go to the Interest button, you'll see what i mean. the clip loads up fine but when u click on the Adobe cd it won't work correctly. The images flash on screen then disappear.
View 7 Replies
Jul 2, 2009
Have small thumbnails that will enlarge when the mouse is over them and shrink when it's not. For some reason sometimes only the X or Y will scale or the buttons won't work correctly. The animation will pop and I don't know how to fix it. The only reason I drop the opacity on all the others is because sometimes other images will get in the way.
View 2 Replies
Jan 10, 2010
I'm building a page that plays back 5 videos. If there is no interaction, the videos will playback in a random order every time the page loads. If the user interacts with any of the buttons for each video, after a video completes & if the user has stopped interacting, it would ideally playback only the videos that haven't been played.
I've been able to get the automatic random playback to work. What I haven't sorted out is how to get the video playback to work correctly if the user interacts.I've modified this code, which uses some 3rd party code, and it won't work outside of their environment. The logic would work outside of their environment, though. They only provide video tools. This code is used to create the buttonArray and the random array:
Creat the button array
var buttonArray:Array=new Array(scroller.scrubber.vidBtn1,scroller.scrubber. vidBtn2,scroller.scrubber.vidBtn3,scroller.scrubbe r.vidBtn4,scroller.scrubber.vidBtn5);[code]...
how to make buttons playback only the remaining elements of the randonArray if the user stops interacting after interacting,
View 0 Replies
Feb 13, 2011
I wanna make a gallery using xml. Every photo is gray, after ROLL_OVER on it position loads it's colored copy, and after ROLL_OUT copy dissapears. After click, it should navigate to URL. And I have 2 problems:
1. ROLL_OUT doesn't work correctly: it's strange, but it work after ROLL_OVER ... :<
2. how to make linking, hm.. for example, if it's first thumb, to "proj/1", if second to 'proj/2' etc...
it's my code:
[Code]...
View 3 Replies
Jan 7, 2011
I have a big problem - I decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out. I am a complete novice so advice will have to be spelt out in black and white.
View 2 Replies
Jan 7, 2011
I decided to make a website using flash as I am good with photoshop and thought it would be fairly easy to construct in flash using tutorials. All went well except now the website is published, weird things happen. The homepage works fine but when you click on "portfolio" some of the buttons don't appear and when you try the buttons, some images don't appear. Occasionally some of the buttons take you to the wrong place also. When I test the movie in flash, everything works fine so I can't work it out.
View 9 Replies
Jan 20, 2012
If you set a .swf with wmode transparent mode and register the Event.RESIZE in it. It will not work correctly in Chrome and will ultimately crash the Flash Player. Of course same thing in FF, EI or any other browser works like a charm. Setting wmode to window fixes the problem but anyone knows a work around with wmode set to transparent?
View 0 Replies
Jun 2, 2009
So i've created an interface for a lobby display. It's running on a 52" LCD (1280x768). I have the computer hard wired to the display (HP Laptop with standalone flash player) and have the same resolution settings set on it. Now, I built the interface on my Mac desktop and have the stage set to 1280x768.
The kicker: When i run it on the display, there's a lot of extra vertical space at the bottom. When i change the resolution to 1280x1024, it fills the screen vertically properly, but then shortens it horizontally.
View 3 Replies
Jul 7, 2009
This was created with frames in dreamweaver and the nav bar and index page movie are swf files. When you click on the pages in the nav bar it redirects to the index page. It does this the majority of the time and every now and again when you click it will go to the actual page.The way it is set up in dreamweaver, it has the nav movie in the top frame and the content in the bottom. All I did was change the old i.p address to the domain name because our host changed. I did nothing else and then this started not working correctly.I have checked and double checked all links in flash and they work from the swf but when it is loaded in the browser it does that weird linking to the index again. This is the code in flash to link to the pages:
on(release) {
getURL("http://www.fostersfreeze.com/Food.html","_top");
}
[code]....
View 4 Replies
Feb 23, 2010
I made a swf using a software some softwares allow to create swf...but i want to put in some extra buttons into it...now when i try to import the swf into the fla it wont load properly..it fact it wont load correctly into the fla...anyway i can fix it? and get it to load correctly?
View 6 Replies
Sep 2, 2009
The movie will not play the same after I embed it in a pdf. pretty sure all the right selections were made when exporting.
I have a stop in the first frame of the movie and a button to start the movie. But when the movie is opened in the pdf it has skipped that frame and it starts to play automatically.
View 1 Replies
Sep 7, 2009
I created a flash file (I will refer to this a swf.1) that plays correct when published as swf.However when I place it into another flash file the nested animation inside the swf.1 does not run.The nested animation in swf1. that does not run has a mask. Would this have anything to do with it?
View 1 Replies
Dec 1, 2009
I have a Flash movie embedded as shown below. In Firefox, the movie renders beautifully In IE7, the movie is scaled down, pixelated, and looks bad.There is no HTML aside from what you see here - no CSS or anything.
<html><body><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"> <param
[code].....
View 5 Replies
Jun 1, 2011
I have tried a million different ways, nothing works.My main website is a .php file, so I am having trouble getting it to work.I embed using[code]...but it just shows up as a white box flash. (with the flash watermark)if i load the flash directly, it works fine.my website is [url]...
View 4 Replies
Oct 30, 2011
I created an animation in Flash CS5 and tried to publish it as a .gif. For some reason,there's a dark box around the moving text, as you can see.
View 5 Replies
Apr 20, 2010
How can I set my countdown correctly? I'm counting from 33,000.00 to zero. It works in a fashion, but the minus operator appears in the textfield.
//Countdown from 33,000.00 to zero
var timer:Timer = new Timer(10);
var count:int = -3300000; [code]..........
EXAMPLE: I need something I can update with XML, to be an up-counter or down-counter depending on the variables.
//Count up from 33,000.00
var countValue:int = 3300000;
count = countValue;[code].................
View 3 Replies
Jul 21, 2010
I can not generate a working .swf file from my old files. It is either that I have not saved the correct file from 2005 or my cs3 is not compiling it
correctly.
View 8 Replies
Dec 15, 2010
I'm trying to build a slideshow, I don't have issue with parsing. But the main problem is I can't make it load correctly to next photo. I go that error message:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:isplayObjectContainer/addChild()
at com::handleLoadedEachThumbnail()
[Code]....
View 0 Replies
Apr 5, 2011
The script pulls in data relating to the video file (title, artist etc). but I think I may have written it wrong, but I can't see it.
The error is that it's pulling in the final line in the xml list and when I click the buttons it states that it is not defined.[code]...
View 1 Replies
Apr 21, 2011
Just want to be sure I am broadcasting my p2p stream correctly. I cannot play the stream so I want to make sure I am broadcasting correctly first then I will move on to worrying about playing it.
I created a netconnection. nc.connect("rtmfp://blah/multicast"); onNetStatus I check for connection success. On connection success get my webcam and audio and attach it to my stage for local viewing.
When I click Publish it makes a netgroup with the nc. On netgroup success I create a netstream with the nc.I attach the camera and audio to the netstream. On netstream success I publish. I get publish success.
Does that mean I am publishing correctly? I have no way of conveniently viewing the stream. When I try to make a new netconnection, netstream, and try play it doesn't work. I don't know if it is because it refuses to play my own stream or if I am not publishing correctly. It does say I am publishing.
View 0 Replies
Oct 6, 2009
I have used a scrollpane on my new site, it scrolls but only if you click the arrows or click in the scroll bar, if you actuall try and scroll by dragging (which people would because it's long) it vanishes![URL]
View 1 Replies