Non-regular Pattern
I would like to get an information if it is possible to do in FlashMX 2004 that the sequence of multimedial CD would not have a shape of square or rectangle but a non-regular pattern without frame.
Thanks for your answer
FlashKit > Flash Help > Flash MX
Posted on: 04-29-2005, 02:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Regular Expression Pattern Matching
Does anyone know if Flash has pattern matching functions built in like PERL does?
For example, say I'm checking the name field to only accept letters, hyphens, apostrophes and periods. In PERL we have..
if ( $firstname !~ /^[-'.A-Za-z ]+$/ ) {
print "hi";
}
I came up with the following in flash, but was wondering if there was an easier way to do it. Like to only accept letters, rather than searching on everthing that is not a letter.
name = "Sir Brian";
// restricted symbols array
// doesn't include ` & - ' , .
symbols = new Array("~", "!", "@", "#", "$", "%", "^", "*", "(", ")", "_", "+", "=", "{", "}", "[", "]", ":", ";", """, "<", ">", "?", "/", "|", "\");
symbolCount = symbols.length-1;
while (symbolCount>=0) {
symbol = name.indexOf(symbols[symbolCount]);
// if invalid symbol is found...
if (symbol != -1) {
fail = "Invalid Character Used!";
}
symbolCount--;
}
Regular Expressions
Is it possible to use regular expression directly in Flash 5? I would like to do email validation using a regular expression like the following which I have done in typical asp pages:
function validEmail(email) {
var re = /^w+(-w+)*(.w+(-w+)*)*@w+(-w+)*(.w+(-w+)*)*(.w+)+$/;
if (re.test(email)) {
return true;
}
return false;
}
Thanks in advance for any help or suggestions you can give me.
Regular Expressions
Hi,
Has anyone come across an extension or similar offering regular expressions in Flash, or am I stuck with FSCommands and JavaScript?
Gaius
Animating A Regular Pic.
Hey I dont really get into flash a whole lot, but im interested in animated a few little peices of a site. examples of this would be the computers on the front page of this site http://www.edevstudios.com/flashmxindex.html. Another is ofcourse at 2advanced.com where u can see the clouds moving in the background of the bridge picture. I have also seen the windows of buildings made to look like the lights are being turned on inside the building. I hope this is a easy effect to grasp. Can anyone help me with it
2004 Regular Or Pro?
How does one determine if they need PRO or just the regular MX 2004?
In a nutshell please... I've already looked through Macromedia's "Tour".
Regular Expression
Please note that I am new to programming, so go easy on me [Smile]
I've tried finding the syntax for regular expressions online but cannot find a decent website. In Flex I will be downloading a text file containing 2 lines.
First, I will need to separate the first line from the second. Then, I will need to use regular expressions to put the first string into an array. In the first line, the strings are separated by spaces, and in the second line they are separated by commas.
For example, let's say the text I download is as follows:
"This is the first line
123,he,all,wow"
In the end, the first array should contain:
["This" "is" "the" "first" "line"]
and the second
["123" "he" "all" "wow"]
Thanks in advance!
Help With Regular Expressions
Hi
I need help in regular expressions:
I'm creating a Find and Replace tool for a text editor
the attached code is part of the code I use for Find Next Button, but it only finds [a-z] and [A-Z] and [0-9],
if the string contains any other character all code go wrong.
notice that the RegExp object is created dynamically so that it change from time to time.
any body can give me a code that find and string in the v_Find variable.
please see the code.
thanks a lot.
var matches:Array = new Array();
var StartIndexes:Array = new Array();
var i:Number;
var v_Find:String = new String();
var v_Modified:String = new String();
//====================
MyRegExp1 = new RegExp(v_Find, "gi");
//====================
/*
inside Find Next button code I use:
(a lot of code but this is the part I need you to see)
*/
//====================
v_Find = T1.text;
v_Modified = T3.text;
var MyRegExp1:RegExp;
i = 0;
while ((matches = MyRegExp1.exec(v_Modified)) != null) {
StartIndexes[i]= matches.index;
i++;
//trace(matches.index);
}
[CS3] Regular Expression Help
Okay so. I'm beginning to learn about regular expressions, and I'm having a little bit of difficulty with the syntax. Let's say I was testing for a specific string, and I want to make sure there are no characters following this string (in otherwords when I do a test() I want it to return false when there are characters following the string I search for.) Is that possible?
Thanks in advance,
Mavrisa
Regular Expressions?
Hi,
I want to add a search box to my application. So it will compare the value entered by the user with an array.
But what I want is that when the user writes "be" to find "be", but also "before", "tube", "abel"...
So, with other programming languages I've user regular expressions for that. What function should I use?
Could you help me with an example? Thanks a lot!
URL Regular Expression
HI,
I'm looking for a regular expression to help me extract the domain name from a URL.
For example if the domain name was "http://www.youtube.com" I'd like to just extract the "youtube" part.
I wasn't too sure how to go about it? Regular expressions scare me!!
Should I search for the ".com" and then do a sub string from "w." to ".c"?
Thanks
dub
Help With Regular Expressions
Hi
I need help in regular expressions:
I'm creating a Find and Replace tool for a text editor
the attached code is part of the code I use for Find Next Button, but it only finds [a-z] and [A-Z] and [0-9],
if the string contains any other character all code go wrong.
notice that the RegExp object is created dynamically so that it change from time to time.
any body can give me a code that find and string in the v_Find variable.
please see the code.
thanks a lot.
Attach Code
var matches:Array = new Array();
var StartIndexes:Array = new Array();
var i:Number;
var v_Find:String = new String();
var v_Modified:String = new String();
//====================
MyRegExp1 = new RegExp(v_Find, "gi");
//====================
/*
inside Find Next button code I use:
(a lot of code but this is the part I need you to see)
*/
//====================
v_Find = T1.text;
v_Modified = T3.text;
var MyRegExp1:RegExp;
i = 0;
while ((matches = MyRegExp1.exec(v_Modified)) != null) {
StartIndexes[i]= matches.index;
i++;
//trace(matches.index);
}
Regular Expression Help
I have a problem with a regular expression. I'm doing a kind of code-highlighting thing with a number of keywords stored in an array.
the code is essentially this
ActionScript Code:
for(var i in KeyWords) {
var KeyRegExp:RegExp = new RegExp("(([^a-z0-9]|^)"+KeyWords[i]+"([^a-z0-9]))","gi")
var Results:Array = this.text.match(KeyRegExp)
}
so the regular expression is bascially this (for the var keyword):
Code:
(([^a-z0-9]|^)var([^a-z0-9]))
now this works for the following:
Code:
var hello
var:hello
var.hello
...etc...
it does NOT work for
Code:
var var var var //only highlights first and second 'var'
and I know WHY, because it's actually picking up "var " (with a space at the end, or whatever charachter is there)
what i want to know is how to stop it from doing that and just ignore the leading chars and just take the key word
Regular Expression Bug?
Anybody who can tell me why the following code outputs "false"? None of the two patterns matches the string - while according to my knowledge of reg. exp. several of the options should match it!!
ActionScript Code:
var str = "po sldjflskjflks";
var patt1:RegExp = /(p[. ]+o[. ]+box|PO|p.?o.|post.*office)/i;
var patt2:RegExp = /^(po|po.|p.o.|post.*office)/i; //somehow the above does not match "po " when it was the beginning of the string
if (str.search(patt1) || str.search(patt2)) {
trace("true");
} else {
trace("false");
}
Regular Expression Help
hi there,
i am new here, i got stuck with AS 3.0 regular expression class. Here is the problem
i am trying to use RegExp to parse a math expression, here is part of the code for add&sub function
var stringNum1 : String = "([-+]?\d+\.?\d*)"; //standing for a regular number
var parseAddSub1 : RegExp = new RegExp(stringNum1 + "([-+])" + stringNum1, "g");
var parseExpression1:String="3-200*4*2+1000*2*1-10000-2";
var result1:Object = parseAddSub1.exec(parseExpression1);
while (result1 != null)
{
trace(result1);
trace(parseAddSub1.lastIndex);
result1 = parseAddSub1.exec(parseExpression1);
}
Str: 3-200*4*2+1000*2*1-10000-2
results:
0: 3-200
1: 1+1000
2: 1-10000
But if I need to exclude any number with * as prefix or suffix
so i give:
for Prefix: var parseAddSub1 : RegExp = new RegExp("(?![/*^])"+"stringNum1 + "([-+])" + stringNum1, "g");
this gives results:
0: 3-200
1: 1+1000
2: 1-10000
Obivously, this is not correct, only after I change
var parseAddSub1 : RegExp = new RegExp("(?<![/*^])"+"stringNum1 + "([-+])" + stringNum1, "g");
this gives results:
0:3-200
2:-10000-2
Question: Does AS 3.0 really support "?<!", as far as I know and also you adobe claimed in AS help, only "?!" is supported
anyway, the prefix has been solved
Next, i am trying to figure out suffix,
var parseAddSub1 : RegExp = new RegExp("stringNum1 + "([-+])" + stringNum1+"(?![/*^])", "g");
i give results:
0: 3-20 //hoho, funny right? but actually this is true
1: 1+100
2: 1-10000
then, same as prefix, I change "(?![/*^])" into "(?<![/*^])", this gives
0: 3-200
1: 1+1000
2: 1-10000
so either works, so can anybody have some ideas?
hoho, maybe too massy for you guys to read, but thanks in advance for your help or any comments
Regular Expression Help
I need to check the name of a file so I can make the right button become visible. I am trying to test the name of a media file to see if it ends in ".mp3" or not. If it does, I want to make the audio play buttons visible. If not, I want to make the video buttons visible. Here is the code I've written so far. This always returns true whether the file ends in ".mp3" or not. There are 8 buttons in all and they will either be audio or video. I don't understand regular expressions that well in AS, so I appreciate any help.
Attach Code
var re = new RegExp(".mp3");
function testString(str) {
re.test(str);
}
if (_level1.movies[link] ne null) {
testString(_level1.movies[link]);
if (true) {
audioBtn1._visible = true;
trace("audio is true");
} else {
videoBtn1._visible = true;
trace("video is true");
}
}
Help With Regular Expressions
Hi
I need help in regular expressions:
the attached code is part of the code I use for Find Next Button, but it only finds [a-z] and [A-Z] and [0-9],
if the string contains any other character all code go wrong.
notice that the RegExp object is created dynamically so that it change from time to time.
any body can give me a code that find and string in the v_Find variable.
please see the code.
thanks a lot.
Attach Code
var matches:Array = new Array();
var StartIndexes:Array = new Array();
var i:Number;
var v_Find:String = new String();
var v_Modified:String = new String();
//====================
MyRegExp1 = new RegExp(v_Find, "gi");
//====================
/*
inside Find Next button code I use:
(a lot of code but this is the part I need you to see)
*/
//====================
v_Find = T1.text;
v_Modified = T3.text;
var MyRegExp1:RegExp;
i = 0;
while ((matches = MyRegExp1.exec(v_Modified)) != null) {
StartIndexes[i]= matches.index;
i++;
//trace(matches.index);
}
Regular Expression With As
i was doing this tutorial that show how to shake user input information; to see if they're valid (like in standard html form) but if find it a little too long. So my question is if there is a way to use regular expression with actionscript ?
for example if you want to shake if a user's email is valid
Regular Expressions?
How do I match a newline character "
" in a string?
I'm using TexField.getCharBounds to get the position of the last character in a line.
When is space I just match it with an empty string (" ") but with the newline character I didn't have any luck....
Regular Expression
How to replace white spaces between html tags? I have <b>My little text</b> and I want to do a RegExp/replace match that returns <b>Mylittletext</b>. Any other white spaces must be left intact.
AS3 Regular Expressions
Does anyone know of a good, in-depth guide on using regular expressions? I looked at the adobe docs and a few others I found. However, they weren't very clean and seem to have been created for users with previous experience.
I'm trying to match the FROM: address in a mail header...
eg: From: Name [mailto:email@domain.com]
I'd like to get the name and the email address into a matches[] array.
However, I'd appreciate an in-depth guide because I'd love to learn more about regular expressions.
Thanks,
- Phaaze
Help With Regular Expressions
Hi
I need help in regular expressions:
I'm creating a Find and Replace tool for a text editor
the attached code is part of the code I use for Find Next Button, but it only finds [a-z] and [A-Z] and [0-9],
if the string contains any other character all code go wrong.
notice that the RegExp object is created dynamically so that it change from time to time.
any body can give me a code that find and string in the v_Find variable.
please see the code.
thanks a lot.
Attach Code
var matches:Array = new Array();
var StartIndexes:Array = new Array();
var i:Number;
var v_Find:String = new String();
var v_Modified:String = new String();
//====================
MyRegExp1 = new RegExp(v_Find, "gi");
//====================
/*
inside Find Next button code I use:
(a lot of code but this is the part I need you to see)
*/
//====================
v_Find = T1.text;
v_Modified = T3.text;
var MyRegExp1:RegExp;
i = 0;
while ((matches = MyRegExp1.exec(v_Modified)) != null) {
StartIndexes[i]= matches.index;
i++;
//trace(matches.index);
}
Regular Expression Help
I have a problem with a regular expression. I'm doing a kind of code-highlighting thing with a number of keywords stored in an array.
the code is essentially this
ActionScript Code:
for(var i in KeyWords) { var KeyRegExp:RegExp = new RegExp("(([^a-z0-9]|^)"+KeyWords[i]+"([^a-z0-9]))","gi") var Results:Array = this.text.match(KeyRegExp) }
so the regular expression is bascially this (for the var keyword):
Code:
(([^a-z0-9]|^)var([^a-z0-9]))
now this works for the following:
Code:
var hello
var:hello
var.hello
...etc...
it does NOT work for
Code:
var var var var //only highlights first and second 'var'
and I know WHY, because it's actually picking up "var " (with a space at the end, or whatever charachter is there)
what i want to know is how to stop it from doing that and just ignore the leading chars and just take the key word
Regular Ol' Scroll Box...
I have searched high and low for a good reliable vertical scrolling box, even in the forums I haven't been able to find anything.
The code I have been using only allows text in a dynamic text field.
<Code>
Drag out text box, make dynamic, add instance name,
then add
on (release) {
scrolltext.scroll -= 1;
}
//to the up button//
on (release) {
scrolltext.scroll += 1;
}
//on the down button//
All the others that I have gotten, from UShock, and dare I say, flashkit, are ones that include all kinds of ease and bounce back physics, etc.
All I want it a bar that scrolls text as well as images, and two buttons that make it go up and down as well.. Without blurring pixelfonts.
Could someone help me out here or point me to a thread I may have over looked.
thanks...
Help With Regular Expressions
Hi
I need help in regular expressions:
I'm creating a Find and Replace tool for a text editor
the attached code is part of the code I use for Find Next Button, but it only finds [a-z] and [A-Z] and [0-9],
if the string contains any other character all code go wrong.
notice that the RegExp object is created dynamically so that it change from time to time.
any body can give me a code that find and string in the v_Find variable.
please see the code.
thanks a lot.
Attach Code
var matches:Array = new Array();
var StartIndexes:Array = new Array();
var i:Number;
var v_Find:String = new String();
var v_Modified:String = new String();
//====================
MyRegExp1 = new RegExp(v_Find, "gi");
//====================
/*
inside Find Next button code I use:
(a lot of code but this is the part I need you to see)
*/
//====================
v_Find = T1.text;
v_Modified = T3.text;
var MyRegExp1:RegExp;
i = 0;
while ((matches = MyRegExp1.exec(v_Modified)) != null) {
StartIndexes[i]= matches.index;
i++;
//trace(matches.index);
}
How To Create Flash Pop-up's? Not Regular Pop-ups.
I need some help/info - These new pop-up's (well sort of new) that are now being used by major marketing agencies - The one's that sit on top of an entire web site then quickly fade away or that you have to chose a graphic "X."
Does anyone know how this is done and/or with what technology besides the fact the animation is Flash?
I'm not trying to create annoying pop-ups here, I have had a request to put them on a site that promote the same site.
Anything will help...thanks!
- Rob
Regular Expression OR Equivalent
if I wanted to automatically look at string and automatically insert URLS to any website/URL how would I do that?
For instance www.yoursite.com becomes <a href='http://www.yoursite.com' target='_blank'>www.yoursite.com</a>
Oh Yeah,
Happy Holidays
Regular Expression: Replacing With $1.50
Hi Guys
I've used Regular Expressions in flash for a while to replace strings. This is getting a little complex through.
I have a string in a variable that has a price in as _sendPrice_.
I have a variable in an xml file, replaceString which is usually £1.50
I then use Reg Exp to replace _sendPrice_ with £1.50.
This all works fine.
However, when I change the price in the xml file to $1.50 it all goes wrong as regExp is trying to find the first backreference string in the replaced string. so I get .50 in the final string.
I have added a second regEx replace to try to get round this:
REDollar = new RegExp("\$","g");
replaceString = REDollar.replace(replaceString,"\$");
this is suppsoed to escape the $ so that it appears in the string. The above results in $1.50 appearing in the final string. if I do this instead:
REDollar = new RegExp("\$","g");
replaceString = REDollar.replace(replaceString,"$");
I get .50 in the final string.
I hope this makes some sense to someone and that you can help me.
Thanks
Testing The Regular Stutter
Hi,
lately I am seeing stutters!
I am used to work with the lmc_tween.as tweenClass, and use onEnterFrame movements too. Maybe I just didn't look right in the past but lately I am confused by a stutter in movements and tweens. I did a little test using 3 different ways of movement, onEnterFrame, setInterval and the tweenClass.
The setInterval, at least on my pc is stutterless, the other two are not. By stutter I don't mean the low framerate jerkyness, but a regular stutter, let's say every second or so. In this example you'd see one or two stutters per mc movement.
Does anyone recognize this? Know the reason? Can you see it too in the fla?
If you copy this code and the mc's in you version of Flash, does it look the same? Because I'm getting paranoid and sometimes think it could be something in my version.
Stutter,
Jerryj.
Simple Regular Expression Help
I need to have html code in xml, but xml dosn't like it
so i figure if i use { and } instead of <> it will solve my problem.
I have tried to understand regular expressions but with no progress.
but i think they are what i need to make this work.
could someone help me out.
Regular.easeOut Issue
I'm using MX2004.
This is basically what I want to happen: When a button is clicked, a movieclip starts playing. When that movie clip hits a certain frame, I want another specified movieclip (_root.viewer_mc.slides_mc) to move left by 170px. I'm using the following code:
_root.viewer_mc.slides_mc = new mx.transitions.Tween(_root.viewer_mc.slides_mc, "_x", mx.transitions.easing.Regular.easeOut, (_root.viewer_mc.slides_mc._x), (_root.viewer_mc.slides_mc._x-170), .75, true);
This works fine ONCE but if you click the button again, nothing happens. I think maybe flash isn't updating the value of _root.viewer_mc.slides_mc._x or something. Any idea how I could get this working? It driving me crazy!
Regular Expression To Validate XML.
Hi there, I am looking for an advanced Jedi in Regular Expression to help me:
I need to find a simple way to validate an xml within Flash/Flex. As far as I searched I did not found a way to play with internal DTD declaration.
So I guess regular expression can give me a simple an dquick way...
Assuming you have an xml like the following:
<?xml version="1.0" encoding="utf-8"?>
<structure>
<content>
<node>content of node 1</node>
<node>content_of_node_2</node>
<node>content of
node 3</node>
</content>
<node>content of external node 1</node>
</structure>
At present time I have this regular expression:
<(?<tag>w*)>(?<text>.*)</k<tag>>
The result is:
<node>content of node 1</node>
<node>content_of_node_2</node>
<node>content of external node 1</node>
Problem 1: <node></node> within multiple lines aren't found:
<node>content of
node 3</node>
Problem 2: tags containing other tags are not found: cf <content>
Problem 3: I need that if a tag (opening <abc> or closing </abc> ) has not its counterpart the test returns false
Problem 4: I need that each starting < has its corresponding >
Problem 5: I am sure more will popup
I hope I will find someone to help me
If you are a newbies, as I am, about Regular Expression check the following link, I think it is a good way to start.
"Expresso" Regular Expression Editor by:
http://www.ultrapico.com
Thank you in advance!
Simple Regular Expression
Hi
Can anyone help me out with a simple regular expression which restrict a username to [a-zA-Z0-9_.] character
Regular Expression Weirdness
Hey all, hoping someone might be able to help me. I'm doing some work with regular expressions and HTML tags. I'm trying to extract the attributes from an HTML tag using this expression:
ActionScript Code:
var regTmp:RegExp = / (.+?)="(.*?)"/g;
now I plan use this twice, the first time will be a match like this:
ActionScript Code:
var Tag:String = '<img src="image.jpg" alt="my image" />';
var arrTmp:Array = Tag.match(regTmp);
which puts both sets of attributes (src and alt) into an array, so:
ActionScript Code:
//arrTmp[0]='src="image.jpg"'
This part works fine. I then tried to use the same expression with a regexp.exec to extract the name and values from the attributes, so I have this code which half works:
ActionScript Code:
for(i=0;i<arrTmp.length;i++){
arrTmp2 = regTmp.exec(arrTmp[i]);
trace("arrTmp2: "+i+" : "+arrTmp2);
}
The problem is that the first set of properties get put into the arrTmp2 array like it should but the second set (in this case the alt tag) just gets set as null.
I've been staring at this piece of code for wayyyy too long and hoping someone might be able to spot something I'm missing.
Any help / suggestions would be greatly appreciated.
Thanks in advance.
Where Are The Regular Maintenance Updates?
Most expensive/professional software I own licences for receives maintenance updates and bug fix patches on a regular basis. Even with shareware and freeware, the patches and updates just keep coming. Flash Professional should certainly be no different, there's more than enough bugs to warrant some fixing. But what did we get? Nothing! Some measly updates for the Flash player, that's all. Clearly Adobe/Macromedia cannot be trusted in this department, they just move on to the next project and leave users to wrestle with bugs.
A few examples off the top of my head:
- The new smoothing algorithm introduced in Flash 8 is kaputt. It blurs bitmaps even when they're shown in 1:1 scale, anti-aliasing intentionally aliased stuff. Clearly there's some rounding error or something messing with the scale of things. For example, I used Flash 7 to make document and application icons in 128x128. They fit exactly to the pixel grid and when I exported them from Flash 7 they were sharp as can be. When I export the same icons to PNG from Flash 8 at 128x128, using the same source files, the edges are suddenly blurred. With some trial and error I discovered that I had to export them in 129x129 in order to make them look as they did from Flash 7, then crop the picture in Fireworks to 128x128.
- "Convert Lines to Fills" is a mess. It generates a completely warped rendition of the selected lines if they overlap. You have to walk Flash through the process by selecting a few lines well away from eachother, move them away from the rest, convert to fills, then repeat this process until you finally get a WYSIWYG rendition of the lines you wanted to convert.
- Various UI graphics bugs. For example if you drag-select across a number of layers and frames in the timeline and insert or delete, leftovers from the black selection rectangle are still visible in the timeline. You have to minimize/maximize the window to make it redraw correctly.
- If I enter W/H/X/Y coordinates for an object, say "10.0", it's because I want exactly 10.0. I don't want Flash to arbitrarily change it sometimes to 10.1 or 9.9. Sometimes you have to enter it twice to make it stick.
- Flash 'forgets' parts of audio files in the library. I import a lot of WAV files to the library, and sometimes a few saves down the line I discover there are mysterious silent gaps in the audio. I have to re-import the files again to fill these gaps.
- FlashPaper (it installed correctly on very few computers, you had to fix it in a DOS prompt, or FlashPaper would just hang when you try to print). I've also had complaints that my FlashPaper rendered PDF:s won't open in Mac OS X.
These are just a handful of examples I can think of at the moment, I know I've stumbled upon dozens more and I'm sure there's a collective pool of thousands. What I want to know is why Adobe/Macromedia feels it's OK to not bother with maintenance updates and fixes for a product of this price and magnitude? It's a despicable business practice I would expect from shady vaporware peddlers.
Edited: 02/15/2007 at 07:01:28 AM by PitchBlank
PHP Regular Expression Of URL In Text
I have some text that is displaying from a database table and inside
that text is a web address (i.e., http://www.whateverthisaddressis.com).
I'd like to know if anyone has a code out there to where php can find
text with a http:// or www. and change it into a link automatically. I
know there's many out there, but I don't have a clue what I'm looking at
and where to put it.
Any help would be greatly appreciated!
Toad78
How Do I Make A Regular Button With Url?
I made my button and want to add my url to it. I know I have to go to "get url" then type window, then something... Can some one help me out here. I have flash mx2004. On the old flash, it's so much easier. Thanks in advance.
Regular Pop-up Window (swf, Not Html)
getURL("mySWF.swf", "_self");
The above code launches a html-page with mySWF.swf embedded.
But how can I launch another window with just the swf-file?
[Help] Help Convert MX 04 File To Regular MX
Hi there. I am currently working on a project for armorgames, but their logo/intros are all in MX 04 format.
Will someone help me convert those to regular MX?
http://dounanthebarb.tripod.com/armorgames.zip
(copy and paste the url)
Thank you very much.
Happy holidays
DBarbarian
Flash Gap In IE With Regular Html :S
In the process of fixing the embed metthod for swfs for www.theolivebranchchurch.org and I can't remember how to fix the space that somehow magically appears in between the header and content. (the blue line of background that shows just below the nav and above the white content background).
It's probably really easy but it's 3 am here and i can't remember lol.
Thanks!
-jesse
Geturl + Makerequest + Regular Url?
Hi there,
At the moment i am just using an Ajax makerequest in combo with getURL like this
ActionScript Code:
gotoArray = ["javascript:makeRequest('/content.php?nav=2','contentText');javascript:makeRequest('/incs/submenu.php?nav=2','submenu');", "javascript:makeRequest('/content.php?nav=3','contentText');javascript:makeRequest('/incs/submenu.php?nav=3','submenu');", "javascript:makeRequest('/content.php?nav=4','contentText');javascript:makeRequest('/incs/submenu.php?nav=4','submenu');" ];.....curr_item.gotoURL = gotoArray[i];curr_item.onRelease = goto;....function goto() { getURL(this.gotoURL,"_self");}
Now i want to have the url address bar to change as well, but this didn't work
ActionScript Code:
gotoArray = ["Nav2;javascript:makeRequest('/content.php?nav=2','contentText');javascript:makeRequest('/incs/submenu.php?nav=2','submenu');", "Nav3;javascript:makeRequest('/content.php?nav=3','contentText');javascript:makeRequest('/incs/submenu.php?nav=3','submenu');", "Nav4;javascript:makeRequest('/content.php?nav=4','contentText');javascript:makeRequest('/incs/submenu.php?nav=4','submenu');" ];
Any tips??
Regular Expressions - Using Output?
Hey Guys,
I am trying to add "Newline" before and after beginning of every lesson.
Suppose Input is
ActionScript Code:
var str:String = "Lesson 1 Jobmatching." + "
" + "This is Job Matching Lesson text" + "
"+ "Do you know this." + "
" +"Lesson 2 Basics of FlashDesign." + "
" + "This is Basics of Flash Design Lesson Text";
Now when you trace str, it will be this.
HTML Code:
Lesson 1 Jobmatching.
This is Job Matching Lesson text
Do you know this.
Lesson 2 Basics of FlashDesign.
This is Basics of Flash Design Lesson Text
So i have already written a regular expression which matches this text
ActionScript Code:
var pattern:RegExp = /Lesson+ ([0-9]+) ([a-z]+)*./
Looks Correct...isn't it.
Now I have tried "str.replace"...."str.match" etc but couldn't get the desired output.
This is the output i am looking for:
HTML Code:
Lesson 1 Jobmatching.
This is Job Matching Lesson text
Do you know this.
Lesson 2 Basics of FlashDesign.
This is Basics of Flash Design Lesson Text
So how can i achieve this.Any thoughts?
Thanks.
How Do I Make A Regular Button With Url?
I made my button and want to add my url to it. I know I have to go to "get url" then type window, then something... Can some one help me out here. I have flash mx2004. On the old flash, it's so much easier. Thanks in advance.
Regular Pop-up Window (swf, Not Html)
getURL("mySWF.swf", "_self");
The above code launches a html-page with mySWF.swf embedded.
But how can I launch another window with just the swf-file?
How To Create Flash Pop-up's? Not Regular Pop-ups.
I need some help/info - These new pop-up's (well sort of new) that are now being used by major marketing agencies - The one's that sit on top of an entire web site then quickly fade away or that you have to chose a graphic "X."
Does anyone know how this is done and/or with what technology besides the fact the animation is Flash?
I'm not trying to create annoying pop-ups here, I have had a request to put them on a site that promote the same site.
Anything will help...thanks!
- Rob
ActionScript 3.0 Regular Expressions
Now using ActionScript you can perform high-speed patern matching within strings using RegExp. "The RegExp class will be implemented natively in C++, not in ActionScript, for maximum performance. And it will be fully Unicode-aware so that it can be used with any languages."
http://labs.macromedia.com/wiki/inde...ces:apis:regex
MVC Pattern
Is there any MVC Pattern samples available for Flash 8(AS2)?
Edited: 02/11/2008 at 01:08:34 AM by kamsky
This Pattern To AS
Hello,
http://theremedy.be/scrap/starsAs.gif
I'm looking for some clues here to generate this kind of pattern using Actionscript.
Probably it's gotta be a "star" attached from the library then generated on stage randomly with colordifference, scaling and skewing.
*Note how the pattern should follow the specified path.
Is it possible? Is it hard to do?
Appreciate any help.
|