Actionscript 3.0 :: All The Files Are In The Right Spot Adn The HTML Is Identical To Lee's?
Sep 11, 2009
I am right at the beginning but am already having an issue. I have watched Lee's tutorial over and over and I cannot see what I am missing. All the files are in the right spot adn the HTML is identical to Lee's. The problem I am having is that the URL does not change properly. The URL shows Home.html# and not Home.html#/ASU Foundation or Home.html#/Tempe The title changes in the browser perfectly but nothing happens in the URL.
Code: Select allimport com.asual.swfaddress.*;
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, onChange);
function onChange(e:SWFAddressEvent):void
I need to allow users to preview audio files for purchasing. I have CF pages that return records form a SQL database. Each record contains the same swf file however, each swf file points to a different mp3 for previews of different audio examples. So far, everything is working fine. My problem is that I need to be able to stop the sound from one swf when I click to play a second swf .The only solutions I see in Flash forums deal with loaded swf files. These are not loaded files they are separate files within a page. The question is: How do control one swf from another swf in the same page.The following items have not worked: soundChannel.stop();,soundMixer.stopAll()
I would like to put 2 identical mc's on top of each other... the bottom one bright red... and the top one black... and blur the one on top in such a manner that it does not let the red one be seen.... (blured from it's edge out... instead of on the middle)
Is that possible? like specifying where the blur should start (like how you can specify in some programs if the border is in the middle, exterior, or interior of a box)
Such as the famous game Plants VS Zombies, or Machinarium. They have Mac and PC version, and even online flash demo. It must be a flash engine or something, does anyone know this, what's that?
I am working on a game in which i need to compare two movieclips for being identical. What i am doing is creating a complex shape out of some primitive shapes and then I allow the user to drag and drop some primitive shapes to recreate a similar shape. how can I calculate that the user created shape is similar to the original complex shape or not.
i'm working on a project with numbers, but there has appeared an logicalmisunderstanding. so what i want to make (this is just simple code to see the logic not the whole project) i have :
ActionScript Code: var numberVar1:Number = 5; var numberVar2:Number = 6;
I have two buttons that listeners for the same event that have identical instance names?For example, I have two buttons which have the same instance name: imageOne.Can those identical buttons listen for the same event? I tried, but only one button responds to the event listener .why do I need two buttons with the same instance name that listens for the same event?because I have a looping scrolling panel of thumbnails, and when you have scrolling panels, we all have duplicate panels inside for looping purposes...so since I have to have two identical panels grouped together to do the loop, I have multiple buttons with the same instance name.and these buttons listen for events...now of course I can rename the other half of the identical buttons with different instance nams, but a problem arises when i want to use an if statement to check to see if that image is already loaded.for example, say I image1 is already loaded, and someone clicks identical thumbnail that has a different instance name, ti would be too complex to write an if statemen to determine whats loaded.
I'm trying to build a bingo card, that will show random words in different locations each time you reload the page. It's 5x5 grid. I'm planning to set up 25 arrays (for each text field on my card), containing lists of the same 25 words. I have a code that pulls random words from each array into my text fields, but I can't figure out how to prevent the words from repeating on the card. A different word should be pulled out from each array.
Here is my code so far:
var words1:Array = ["word","table","lamp"]; var words2:Array = ["word","table","lamp"]; var words3:Array = ["word","table","lamp"];
I've taken a shot at trying flash for the first time ever, using internet tutorials and whatnot. Everything was working fine, but I later decided to add a few extra buttons and all that was originally there works, the rest doesn,t work anymore.[code]I stopped at button 5 originally, and buttons 1-5 work fine. The rest of them I added after, and they don,t work (goto page 5 and the urls)I get no errors from flash though..
I want to embed multiple swfs on a single page. they will be identical. i was wondering if browsers will redownload the swf each time or store the first one and retrieve the others locally? if they re-download it, is there a way to tell the browser that it can use the same one?
I am trying to make a web page that has multiple of the same SWF on it. I am having a problem with it being stupidly slow loading (download time is fine though). I have a 4x4 table in each cell there is a swf file embedded in an iframe. (Note: 4 X 4 table => 16 SWFS).
Is there a good way to embed multiple identical swfs into a web page? Why are IE and Firefox struggling so poorly? I suspect it has to do with the fact that both IE and Firefox each only have one thread to run plugins (Flash) in. I have a similar app written in AS2 (not written by me, I just have the swf file). It is much more complex but it loads orders of magnitude faster in IE and FF. Is there a reason that AS3 pins the browser when AS2 does not? How can I embed multiple AS3 swfs into FF & IE 7 without pinning the browser? Is there a way to make an application that is more light weight?
is there a way to do collision detection amongst identical movieClips? The movieclips have all been added to the stage from one symbol in the library using AddChild().I've attempted to create 2 different arrays for them and push them into each array as they are added to the stage so that there was a means of comparing them. When I perform the collision detection, Flash thinks that the movieClips are in constant collision with each other!I used trace ("bang") to test the collision, and the output window starts tracing "bang" infinitely and doesn't stop, and none of the movieClips are touching each other.
Say if the structure of my game is set up like this:mainMenu- Classes inside the mainMenu package.instructions- MainMenuButtonClass.- Other classes inside the instructions package.game- MainMenuButtonClass.- Other classes inside the game package.The class MainMenuButtonClass is a button that, when clicked, directs the user to the MaiMenu and is identical in both the instructions package and the game package. Would it make sense just to save the same file in two locations or is there a better way to handle it.I'm not trying to access variables between the two classes. I'm not looking for any code either.
I want all of my buttons to have an identical code and being able to tell my variable on _root to get the instance name of the clicked button. that possible?
I'm creating this math based game for my son to learn math. Everything was going fine until the last if statement. What I need it to do is compare two values and determine if they are an identical match and if so say is correct and if not then say its incorrect. I have a random number generator and that number is being stored in a variable String and then it is being converted into a number, that part works. I then have setup like a calculator 4 different variables that act as plus, minus, multiplication and division. Since there is 4 different variables i have been thrown into a loop and can't figure this one out!This is my random number generator:
ActionScript Code: var RandomNumS: String = "0"; var RandomNum : Number = Number(RandomNumS);
I'm trying to build an 8x8 grid of identical movieclips, in a multidimensional array, that I can then access by row, and play each in order. So far, I can get them into the array, but I'm having trouble playing each item in a row. Basically, I have 8 more selector buttons in another array, and I added an event handler to each of those, and I want to use the index position of each selector button to play the corresponding row in the first array.
Code: //The first Array for ( i = 0; i< 8 ; i++) { //create a row beatsArray[i] = new Array(); for (var j:Number = 0; j<8; j++) { //add 8 instances to the row beats = new Beats; addChild(beats); [Code] .....
here's the link that i followed step by step with the exact same code to get slide out panels: [URL]..All the code makes sense how it should work but I keep getting
TypeError: Error #1009: Cannot access a property or method of a null object reference. at slideOutInfoPanel_fla::MainTimeline/frame1() and here's my code just as in the tutorial
New to AS3, long time programmer. Essentially I am creating a myriad of objects, all of which will have the same functionality, although the properties will vary between each object, including the artwork. I believe they will all be movieclips as they will be interactive and I believe they will be moving.
I am wondering what the best way to create these objects are. I am assuming that I create an object class with the functionality and properties, I'm just unsure how to instantiate multiple copies with different properties, if that makes sense.
Can anyone offer a clue as to why flashdevelop would compile to a smaller swf than Flash Builder?The FD swf is 150k, FB swf is 220k.I'm exporting as a release build in FB.
I am making a few animated flags for the corners of my website... so I made some pretty cool ones in Flash. but HTML doesnt like the swf files... So I had the ingenous idea to make them into gifs.... But now the mask I used to make the flags comes out on top and you cant see the 'flag' part anymore You can download it here [URL]
I have a .mov movie that I want to play on my website. In years past, I would use Adobe Video Encoder CS3 (I believe that's what it was called) and would turn the file into a .flv. Then, I believe I would use swfobject and it would display with the typical play and expand to full size buttons as well as the timeline.
I downloaded the latest version of swfobject (2.2) but this only seems to play swf files.
Was just wondering if its possible to have a two swf files on the same html page that can communicate to each other.
I have one movie that asks a series of question and what I'd like to happen is for those results to be shown in the 2nd swf. Sounds simple, which means it probably isnt
I have been desperate to find how to do this. I have found some answers to this, but nothing I can make work. The main place I have found is[URL].. and it wants to have the html docs as a template for flash. This is just confusing the issue and would rather find an example and don't mind editing and adding things by hand. I know this is difficult, at least from what I read and I don't know what I am missing. I assume the java in the html is what is messing me up.I don't have mx, so I cannot do the local thing, and need a flash 4 or 5 way of doing this. I have found some small ways of java, but I need to instruct the second movie to go to a label depending on what button is pressed in the first movie.