Hi, I just recently started working with Flash CS3 and decided to try my fate in AS3. I did my research and read my sources and still I am having a problem with event handling on a button.
I want to have dynamic hover text on a series of buttons. Below I have implemented one of the buttons and I get this error at runtime:
TypeError: Error #2007: Parameter listener must be non-null.
at flash.events::E ventDispatcher/addEventListene r()...
User Profile
Collapse
-
Button Event Handling AS3.0
-
Thank you for the insight. I used String.equals(S tring) instead and it seems to work just fine. -
String Matching with Parentheses
Hi all,
I am parsing text from a text file and I use Pattern and Matcher for the majority of the matching. My problem comes when I use the String.matches( String) function. Some of the lines have unclosed parentheses or unopened parentheses and These will throw the regex.PatternSy ntaxException ... some sort of exception. I have handled these but I was wondering if there was a way to ignore the parentheses or if I have to just handle... -
Roll over button caption
Hey all,
I Just installed Flash CS3 and was rearing to get animating when I caught a snag... Actionscript 3.0 is NOT Actionscript 2.0...
I want to make a popup caption when I do a rollover of the button...
I get silly errors like: 1119: Access of possibly undefined property _x through a reference with static type Class.
this is my code which is in the first frame of the timeline. I have... -
I think you're on the right track. I also am currently working on parsing large volumes of text. You have the right idea. Go with it. The conditional logic can get cluttered so try to keep it simple, otherwise it will be difficult to debug in the future.
It looks like you know what you're doing.Leave a comment:
-
I found my problem... THere is a line in one of the files that I am parsing which consists of
view)
I am using the string matches function and not the regex engine to compare this line and it is getting all funky dunky on my badunky dunky...
My regular expressions were not the problem but thanks for the help.
May all your days be Exception free :)
KarlLeave a comment:
-
THanks for your time,
I hope its not a simple "hoser at the keyboard error" as my highschool programming teacher used to say...
Yeah I built it from single file case up to multiple files... I am really frustrated because it seems the exceptions are being thrown at random and that doesn't help with debugging. My only idea is that maybe when comparing a string with a ( or ) in it, the regular expression engine...Leave a comment:
-
That's what I said... But there is not logic difference. I just call the same function in a for loop over an array of files from the parent directory...
All of the correct files are in the _files array which I iterate over. and I can run the parse on each file individually.
It opens several files fine but it will randomly? throw the regex.PatternSy ntaxException: Unmatched closing ')' exception and it only works on the...Leave a comment:
-
Are you parsing HTML files that are already created?
You might want to check this out:
http://us3.php.net/manual/en/function.file.php...Leave a comment:
-
Regular Expression Issue
Hi there,
I am parsing some text files using a buffered reader. I use regular expressions to match different lines to their appropriate cases. I can parse one file fine but when I run the parse on multiple files, I get
Exception in thread "main" java.util.regex .PatternSyntaxE xception: Unmatched closing ')' near index 3
view)
The thing is, I never get it in the same place twice. It will... -
oops i did it again...Leave a comment:
-
-
Missing right parenthesis
Hi all,
I'm trying to run this table creation script but I run into the ORA-00907 error: missing right parenthesis. Perhaps someone might know where I am going wrong?
[CODE="sql"]
CREATE TABLE RADLEX.radlinks (
PID varchar(30) NOT NULL,
CID varchar(30) NOT NULL,
relation_type varchar(25) NOT NULL,
preferred tinyint(1),
PRIMARY KEY (PID,CID,relati on_type)... -
Happy 20th Birthday
Perl turns 20 today!! Hooray.
Check out the wired article here:
http://www.wired.com/science/discove...dayintech_1218... -
Showing Database in Oracle
Hi,
I'm normally a MySQL user and I'm used to the commands thereof but I find myself working with Oracle 10g. I was wondering what the command would be to view all databases in the system like the MySql Command:
[CODE="SQL"]
show databases;
[/CODE]
Best wishes,
Karl -
That's very true and also, com.cities.rome wasn't built in a day :)...Leave a comment:
-
Thanks Jos,
That works! but I also figured it out on my own using " \\d+(\\. | )" which is a dot followed by a space or just a space.
THanks for your help,
Karl...Leave a comment:
-
Regular Expression Logic problem
Hey all,
I have a parsing application where I am taking text files and choppiing them up (so to speak) There are small formatting differences which I was hoping to take care of with regular expression logic.
Here is example of one line:
$CHAP_01.txt$ 1 Chapter One
This line should be equivalent:
$CHAP_01.txt$ 1. Chapter One
(See the period after the one?)... -
-
I try to stay away from javascript. We got into a drunken argument and we don't really talk anymorre...Leave a comment:
No activity results to display
Show More
Leave a comment: