I am a pretty good programmer in as3 - but I don't know OOP. -- and I am not so good that I don't have a ton learn -- when I look at all the differnt script commands I know my knowledge is tiny. I am now at the point where I could look at a website and make a pretty good attempt at coppying it and most my programming is dynamic driven. So I was wondering by making the leap to OOP would I have relearn a lot of what I know -- and what are the advantages
See the .fla and try to replace an image in library with another one. It works fine with export to .swf, but try to save, close and reopen the .fla - all images in the library are same!
Here is the zip contains .fla + "good" .swf, "re-exported" swf and folder with all images. [URL]..
I need to important transparent pngs into my SWF, and have them clickable as buttons. Right now, I'm using JPGs with the loader component, but I'm aware this method does not work with PNGs.
I have a level select screen with about 30 buttons. I created an eventListener for each of these buttons. My question is: When I click a level to enter the game, should I remove all the eventListeners, or would keeping them around not cause any problems?
i just wanted to mention, that on the tutorial at this location: [URL]..the actionscript that comes bundled in the file, and the script you're supposed to copy and paste is missing a capital "L" on the command "LoadVars" i spent the better part of two hours looking for the problem with my script, and couldnt figure it out, i downloaded the .fla... everything, to no avail... but as soon as i capitalized that letter, everything started working smoothly...
i dont know if it's just my computer, or if other complete newbies are going to have this problem, i just thought i'd bring it to your attention.feel free to delete this post if i'm just crazy and it's only a problem with my computer edit: if there isnt a problem, maybe someone could explain to me why i was having such a problem untill i capitalized that L?
All I want to do is create a flashing box to highlight an important piece of text on screen.How can I create a simple rectangle that will flash say between blue/ green for a few seconds stop flashing and box still be visible. Its literally just to highoight some text on screen I need to make sure everyone reads.
What I'm trying to do is create a program that, depending on 2 variables, multiplies another variable by a static number. Heres the code I have so far:
Im trying to create a program that, depending on 2 variables, multiplies another variable by a static number. A friend suggested I use case/switch instead of if/else statements,which is what I was using before.
how I can switch between different songs?The idea is that an animation will loop continuously (graphic, not a movieclip), and there is one button that will allow the user to change the background music.
I'm currently building a Flash Game for my work. I made a switch to check if my items fell into the right bucket. But when I was developing all my other functions I realized that I could handle this in an If Else instead...So the question is: What is faster (less CPU intensive), a switch or If Else?Here is my switch:
Code:
function getPoints(naam,orgNaam,baksoort):Void { switch(baksoort){ case "bak_B01":[code]....
I followed a tutorial about how to create a simple website. The buttons i've created SHOULD fade out the current page and fade in the new page. In it's current state it fades out the m1 instance (mainmenu_mc) but won't fade in the new page selected(p1,p2,p3orp4). After it's faded out if i click in the same area the button was the mainmenu_mc page flashes onto the screen. and when i let go of clicking it, dissapears again.
Code: var m1:mainmenu_mc =new mainmenu_mc; var p1:page1 =new page1; var p2:page2 =new page2;[code]......
I am trying to create a weekly calendar. I have a 'switch' statement that shows the week dates and the name of month the week relates too. I have three functions
1. takes the pc date and converts it into the day of the year. eg between 1 and 365
2. it takes the day from 1. and assoicates it to the week number eg 1 - 52
3. functions that are associated with a previous and next button that use the current week number based on the pc date and count up and down.
This is where I have come unstuck. This is the code for my 'next' button.
Code: function onClickNext(event:MouseEvent) { if(currentWkNum != 53)
I've got a variable called coins which contains the amount of coins you have.I've also got a movieclip called customer_marker_mc which I want to change color depending how much coins you've got...I want 100 (or more) - 91 to give one color and 90 - 81 another and so on.[code]...
how I could create a switch in Flash. I have the movieclip, but I don't really know how to program it. I want it to work something like: if hitTest with "char" (our character) and the user is pressing space then gotoandstop(2);. Obviously, that's just the basic idea of how the switch would work EDIT: Here's my current code:
I followed a tutorial about how to create a simple website..The buttons i've created SHOULD fade out the current page and fade in the new page. In it's current state it fades out the m1 instance (mainmenu_mc) but won't fade in the new page selected(p1,p2,p3orp4). After it's faded out if i click in the same area the button was the mainmenu_mc page flashes onto the screen. and when i let go of clicking it, dissapears again.
Code: var m1:mainmenu_mc =new mainmenu_mc; var p1:page1 =new page1; var p2:page2 =new page2;[code]......
I installed the new Flash Builder.Does anybody know how to switch the language to english?Looks like the installer installs eclipse in the langauge of the os.in my case that was german.I know you can change the language for FlashBuilder in Windows by editing one of the dll's. How to get the same result on MacOs?
I have a job where the client wants to switch an animation (movieclip) on the stage between the times of 10 a.m. and 12p.m. EST then the off time will just revert back to the original animation.
I need to include a swf file on my client's web page. The swf file includes 4 movie clips appearing one by one. Each clip links to their designated page. I want to have small buttons to let viewers to click and switch to the clip they want. When click, the still shot (may be the last frame) of the clip appears. [URL]
I've been having a problem for the past month or so, and for the life of me I can't work out how to switch off the pen tool I have in actionscript. I have the following code in frame 2, and frame one doesn't have anything, meaning it doesn't allow the user to draw. However, after returning to frame 1 from frame 2, you can still draw. Is there anyway to turn off this drawing actionscript completely when going back to the first frame?
How would I switch between 2 sounds in Actionscript?I need something where depending on a Boolean, a certain song is playing (a loop) and every time you switch, it saves the time so when you go back,instead of it starting at the beginning,it starts where last stopped.Say I was playing Sound one and stopped it at 0:25.And when I went back to Sound one it started at 0:25.
I have made a button to function like a switch in that it has both an on and off state. However, I can only get it to switch between the on and off state once when it's pressed, with nothing happening after it has been turned off.The code is as follows:
I need to replace some text - it's actually a bunch of textInput area data captured and placed together {inputArea1.text}{inputArea2.text} style - and have it placed in an mx:Text text="{inputArea1.text}{inputArea2.text}".So I have the smart idea to pull a switch case, where the case condition is the id of the canvas and it's pulling from the textInput areas.My output from the aforementioned string into my text just yields: Code:function Function() {}I complete this, I can sleep.
i do not possess any knowledge in using of scenes and i got a proj which requires me do so and i been using the alpha-ing and tweens to do the button switching its really tiring and confusing
so can anyone enlighten me on how to use scene to do switching of 1 scene to other along by using a 'next button' and 'previous button'
In this example, is there anyway to fade in and out 'mcContactAmer' and 'mcY' as well as place them at specific coordinates, other than externally load them as swfs? This is the only thing holding me back from moving forward on this project and my boss would like to move forward,
I am working in CS4 and am trying to use AS3.0 to make buttons that go to different scenes. I am not using "Scene 2" in my AS; instead, I am labeling frame 1 of Scene 2 and am using that frame label in my coding.
Unfortunately I cannot get it to work properly. I am about 8 hours into trying to fix it and cannot seem to get it resolved.
I have attached the .fla file for your reference. I have also pasted my AS coding below in case it is a simple thing (probably not!). The movie needs to stop at a certain frame so the buttons are available for the users.
stop(); btn2_btn.addEventListener(MouseEvent.CLICK, showimage); function showimage(event:MouseEvent):void {