Professional :: Flash Not Reading My Button Hits?
Sep 23, 2010
One of my buttons, flash will not read it as a button when I publish it and run the swf file. The cursor stays as a arrow meaning its not a button in the swf file. Inside of the fla file it is a button with a hit. There is no movie or tweening or anything like that. I think it's not reading it as a button because Flash is placing the hit behind the actual button. Inside of my button there is only 1 layer. When placing the hit usually it covers the button. But in this case, the hit is going behind the image. I think this is why when its ran, its not reading it as a button.
I even removed the AS3 code from the button to see if it was a coding error. Rather if theres code in there or not the swf should still read it as a button and the cursor should change to a hand by default. Because of this, I tried to create another button in another area on the stage to see if it's just that one area thats having that problem. I created a new button from scratch, placed a hit, no AS3 coding added, and it works. The swf reads it as a button. But with that button, I added a AS3 CODE to go to an external website and now Flash isnt reading the AS3 code for that button. Heres the code:
import flash.net.URLRequest;import flash.display.Loader;import flash.net.navigateToURL;
itunesBTN.addEventListener(MouseEvent.CLICK, gotoITUNES);
function gotoITUNES (event:MouseEvent):void{ var req:URLRequest = new
[code].....
View 1 Replies
Similar Posts:
Feb 24, 2011
he bought a template that makes the reading of external files, at first Ihad a problem because the flash CS5 was not opening the fla, so I managed to solvethe updating Flash CS5, solved this problem after another arose, the same open thefla normal, but when you export the swf so it makes reading the menus, most do notread the contents of rest, and saw the variables are correct, only appears the letter "a"sample (aaaaaaa) looks like this should appear where the text in question,
View 3 Replies
Mar 25, 2011
Is the forum-specific search broken? I get 0 hits on the keywords scrollbar and scrollpane, but what's more curious is I get 0 hits on the word movieClip.
View 1 Replies
Feb 7, 2009
I want to export a region of my SWF movie to PDF (image) when the user hits a button. How do I do that?
View 2 Replies
Mar 25, 2012
the conent will not be able to be seen unless the user hits the arrow keys on there key board. So i need to make a group of objects i can make into a movie clip and than inside that movie clip make an animation that plays the squirrel running. i will pause here to ask two things i dont know how to do i want the squirrel to have an animation when standing still where it flicks its tail (like a real squirrel would). and also how would i flip the squirrel so when the left key is pressed it points left and when the right arrow is pressed it faces left? and my main question when it reaches the edge of the stage the extended background that runs off stage moves over to reavel more content. as well as not have the squirrel run off stage? in short i am using the squirrel to view the full pages content.
View 2 Replies
Aug 5, 2008
I am trying to get a html popup window to open when my movie hits a certain frame instead of a button. Im using the following code but it uses a button instead of a frame to open the popup.
on (release) {
customize the window that gets opened
0 equals NO.[code]........
View 2 Replies
Oct 24, 2011
I am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.
View 1 Replies
Apr 13, 2005
i am working on a survey form in MX-04 Pro. I have the main .swf file embedded in an HTML page. The document's width is longer than the viewable screen so the person taking the survey has to scroll down to answer the remaing questions and hit the "continue" button to proceed to the next page/frame in the movie. When the user hits the "continue" button the next frame in the movie appears but the HTML page is still scrolled to the bottom. Is there any ActionScript I can inclued in the frame or continue button to make the movie/survey appear at the top of the html page when the user hits the "continue" button?#2
Is it possible to make the items in a List component sort randmoly? or maybe alternate between "ASC" & "DESC" order? Furthermore, there would be an "Other" option included in my list but I would like that to remain at the bottom of the list while the other items in the list were sorted randomly?
View 2 Replies
Mar 5, 2012
I remember that I tried it on my friend's laptop and it worked. I am using a trial version of flash and is a beginner?
View 4 Replies
Sep 18, 2010
Hi all,
Possibly a noob question, but I am struggling with a problem which seems to affect no one else.
I have the following bit of script which is supposed to read the ID3 tag of an external mp3 file, then display the song name and genre in two separate dynamic textboxes:
import flash.media.ID3Info;var reqObject:URLRequest = new URLRequest("song1.mp3");var slCon:SoundLoaderContext = new SoundLoaderContext();sndObject.load(reqObject, slCon);sndObject.addEventListener(Event.ID3, tagFn);function tagFn (evt:Event):void { var trackName = sndObject.id3.songName; var genName = sndObject.id3.genre; trackName.text = trackName; trackGenre.text = genName;
Seems straightforward. The track's name is read and returned correctly. However, for the genre, instead of displaying "Trance", the script returns "(31)".
Some browsing online revealed that there are so-called genre ID codes, with some 100+ standard genres each having a corresponding number code. It turns out the code for Trance is 31. For some reason, Flash displays that code instead of the actual title of the genre.
If I change the ID3 tag of the mp3 file so that the genre is something which is not on the list of genre ID codes, e.g. "abs123", the code works correctly, returning "abc123". It is only when the entry matches an item from the genre ID list that its number is shown instead.
I am really stuck and would appreciate any input! Until then, I am very confused indeed... :-(
View 1 Replies
Jul 23, 2011
I have a grid of objects that have been added to the stage dynamically, the objects are either of a Class Red or Class Blue, how do I perform a hit test on the Classes? I want the Blue object to disappear once it hits a Red one.
View 3 Replies
Apr 22, 2011
I am creating a tower defense game and I want to make a tower that shoots a bullet and every enemy that the bullet hits is damaged. The bullet can hurt multiple units. My problem is detecting if the bullet hits the enemies. Right now, I have the enemies in an array. With other towers, when an enemy is in range, the tower fires and when it hits its original target, it causes damage to that target.
For the tower I want to make, it will shoot the bullet the maximum range every time and I need it to damage every unit it hits on the way to that final destination.
View 4 Replies
Aug 15, 2011
I've got tree movieclips called: greenpip(this is the dragable object, which is visable), greenpip_target(which is invisible, but becames visible when greenpip hits it, and grrenpip is becaming invisible) and then the third one: greenpip_flask (which is the animation I want to play when the greenpip hits the greenpip_target).
Everything works but I don't know how to make the greenpip_flask play, when grrenpip hits the greenpip_target. This scenario takes place three times with three sets of objects
View 5 Replies
Jun 19, 2011
I am doing an Actionscript 3.0 project which involves introspection. I am wondering if there is a way to get all the classes within a given package structure.
[Code]....
View 3 Replies
Apr 9, 2004
Alright, I'm doing this to make a catalogue better for people on dial-up.Theres two movie clips, one will be hidden at all times, the next image is loaded into the hidden movieclip.The next button is working fine, although the previous is not, the objIndex changes down although that array index is not called in loadMovie();
I plan to switch over to colin moocks' preloader later when I get this working, make it draw/attach a preloader into each movieclip incase the movie has not loaded before the user presses "next".
Code:
var objIndex = -1;
picPath = "";
pics = ['winterrangep1.jpg', 'winterrangep2.jpg', 'winterrangep3.jpg', 'winterrangep4.jpg', 'winterrangep5.jpg', 'winterrangep6.jpg'];
_root.createEmptyMovieClip("holder_mc", 1);
[code]....
View 4 Replies
Apr 9, 2004
Alright, I'm doing this to make a catalogue better for people on dial-up. Theres two movie clips, one will be hidden at all times, the next image is loaded into the hidden movieclip. The next button is working fine, although the previous is not, the objIndex changes down although that array index is not called in loadMovie(); I plan to switch over to colin moocks' preloader later when I get this working, make it draw/attach a preloader into each movieclip incase the movie has not loaded before the user presses "next". Anyway, code is below, looks fine to be but I've been looking at it too long.
[Code]...
View 3 Replies
Feb 17, 2010
I have an XML doc that was exported from FileMaker Pro that I need to read into flash to get the variables from. The XML doc is laid out like this (shortened for brevity):
<FMPXMLRESULT>
<ERRORCODE>0</ERRORCODE>
<PRODUCT BUILD="06-20-2006" NAME="FileMaker Pro"/>
<DATABASE DATEFORMAT="M/d/yyyy"/>
[code]....
It keeps telling me a term is undefined and has no properties. This I've isolated to the backgroundArray.push statement. Just not sure how to fish the data out of that XML doc properly. What call would I use to iterate thru the different ROW tags to get to the DATA info?
View 2 Replies
Apr 13, 2011
I have a dynamic textbox in flash called vt. It has attached to it the following in a class file:
vt.text = xml.video.@vt[cv];
and pulls the information from an XML File:
<?xml version="1.0" encoding="utf-8"?>
<playlist>
<video src='videos/video1.flv' vt='abcdefghijklmnopqrstuvwxyz'/>
</playlist>
Now for some reason only the letters a d g i l n o will actually display when tested with all the alphabet above.
UPDATE: Solved - Just needed to change the textbox AA to Use Device Fonts :) (New user cant answer my own question)
View 1 Replies
Jul 9, 2009
I'm making a small adventure game, and I want the game to go to the next frame once the main guy MC hits another invisible mc, like where the door is. I suppose another way of doing this is when the main guy mc hits an xy coordinate. So basically what I want is a script that says, when MainguyMC hit another MC/ coordinate, go to frame 2
View 14 Replies
Mar 10, 2009
Here is the code I have and the flash file runs for about 10to 15 mins then stops updating from the dynamically created xmlfile and just hangs displaying undefined. Is there something wrongwith my code? The only way to clear it out is close the app andrestart it but that leads me to believe its a caching problem. Butbelow i did use some ideas about dynacially loading and unloadingthe content to stop the caching problem. I am not great at actionscript and only understand a little.
View 3 Replies
May 26, 2011
I have a php file that generates an xml, the php file:
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>[code]....
without any success.I also tried changing the encoding of the XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?> But still not working.
View 2 Replies
Jan 1, 2011
I know that we can publish a flash rtmfp stream with this piece of code:
private const CirrusAddress:String = "rtmfp://p2p.rtmfp.net";
private const DeveloperKey:String = "your-developer-key";
private var netConnection:NetConnection;
[Code]...
View 1 Replies
Feb 14, 2011
very simple question, i have this: (only a part of the complete rss file)
<item>
<title>Ok, de regalo de San Valentin me pueden dar un viaje a Playa del Carmen! Digo, entre todos lo pagan! No?? #SoñarNoCuestaNada</title>
[code]........
View 1 Replies
May 26, 2011
I have a php file that generates an xml, the php file:[code]
View 1 Replies
Jan 12, 2009
I'm writing an app that I want to ideally pull a random entry from a txt file. Each row of the txt document has 12 separate entries. When I use LoadVariables to read the file, I get the entire file. I cannot for the life of me figure out how to parse the individual lines.
I have so many questions I don't know where to begin...
First, do I need to use varName= in front of each item in the text file? Second, does flash anything that will allow you to read a file by line, then parse based on tab delimiters? Third, should I be using something besides loadVariables to retrieve data, or should I be using something besides a txt document?
this will get me started, but there is still the matter of randomly selecting a line in the txt document.
View 3 Replies
Nov 30, 2009
I would like to know if it's possible to tie Flash into physical devices, so the display is of course flash, but underlying input is from a physical device. Such as metal detector, water gauge, battery voltage, etc.
View 1 Replies
Nov 8, 2011
I have a flash file that has a movie clip in it. In this movie clip there are two movie clips. What I need to do is show a one movie clip and hide another. I basically only need help with setting up the reading of the flash parameter code in flash...
Code:
var imageToShow:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
This is basically what I have.I'm not sure what to go on to next or if this is even correct. I basically need to get to the point where I can say...
Code:
if (parameter == "image1") {
image.image1.alpha = 1;
image.image2.alpha = 0;
}[code].......
View 3 Replies
May 30, 2011
I was going to download the trial version of Flash Professional CS5.5 but when I got to the download page it wasn't downloading. The "Download now" button was there, but it was unclickable, when I clicked on it it didn't work, plus it was a little dimmer than I remember it was when I downloaded another trial. I'm also using the latest version of Google Chrome and I tried downloading it on IE and Firefox.So, is there any solution to this?
View 4 Replies
Sep 9, 2009
I have a normal XML file which i chucked together that works fine with the code i have below - this is obviously saved as an xml file as well. What I'm trying to do is generate an XML page using PHP. I have done so, works fine and reads as it should correctly when simply viewing the page in a browser, but when i try and read out the data in flash (loading in a php file instead of an xml file, everything is undefined!! Below is the flash code, which works when the load() link is changed to a straightforward xml file...
Code:
newsPageContent_txt.html = true;
var test_xml = new XML();
test_xml.ignoreWhite = true;
[code]....
the header at the top of this PHP is generating the page as xml, so it should all be valid.
View 2 Replies
May 24, 2011
I am new to flash. I am working with RFID readers and tags within flash and I cant figure out how to stop a tag from reading more than once. I want it so when the tag is swiped, it wont read it a second time, but after 3 seconds, it can read it again.
View 1 Replies