Well, I fianlly got it.
this is the magic pattern:
[PHP]
$tag = 'sample id="1"';
$base = 'sample';
preg_match('/<' . preg_quote($tag ) . '>([^`]*?)<\/' . $base . '>/i',$str,$a);
print_r($a[0]);
[/PHP]
User Profile
Collapse
-
preg_matching an XML node not working
Does anyone know why the following isn't working, I'm losing my mind over this.
[PHP]
//if this is part of the xml file your loading
$str = '<xmlRoot>
<sample id="1">
<Company>GSK</Company>
<JPG_400>1gskmi sc_400.jpg</JPG_400>
</sample>
<sample id="2">
<Company>GSK</Company>... -
Well,
This is depressing because I have found that everything I was trying to do has already been done for you by Adobe (and of course done better).
I guess I am answering my own question here.
If anyone cares all you have to do is:
Code://your movie clip is named "myClip" import mx.transitions.*; import mx.transitions.easing.*; TransitionManager.start(myClip,
Leave a comment:
-
Do you mean a button that is invisible?
draw a shape
convert to symbol - make it a button
open the button and drag the first frame (labled up) over to the last frame (labled hit)
thats it, hotspot!
-JasLeave a comment:
-
Attaching a animation to a movie clip and calling it later
This is a project I have been working on lately and I keep running into problems.
The idea is to be able to attaching an animation to a movie clip and call it later. Or multiple animation at once.
example:
on the stage you have a black box called: myClip
in actionscript you type:
growClip = grow(myClip);
spinClip = spin(myClip);
now when you call:
growClip.run();
spinClip.run();... -
YOUR a freakn genius!
and i feel retarded...
I must have copied code a while ago and never changed it in the mail() function
Thank you so much!!!!!!!!!!! !!!!!!!!!!!!!!! !!!!!!!!!!!!!!! !!
-JasonLeave a comment:
-
Thanks for the link. I inserted the code for the header and still no luck.
Could it be a php security thing?
here us the code i am using:
[PHP]
$cancelSubmissi on = false;
if(!isset($_POS T['formName'])){exit('Error: no form name found!');}
//if(!isset($_POS T['submit'])) {exit('Error: submit was not pushed!');}
//This value defines the subject
$strSubject = "Message...Leave a comment:
-
Sending email from form - can't get html though
I am trying to send and email from a form using php. I got that to work.
The problem is that when I receve the email it is a text version with all the html tags showing.
looks like this:
Code:<HTML><HEAD><TITLE></TITLE></HEAD><BODY><table width="440" border="1" cellspacing="0" cellpadding="3"><tr><td colspan="2"><em>The
-
Never mind this post.
This is a messed up way of doing the same effect that I could do with all flash. Plus, every browser I've tested it in, it's differant or it dosn't work at all.
-JLeave a comment:
-
Yeah, truthfully I haven't used this function much (but then again I don't do a lot of really advanced coding). But, if anyone needs to do this I though I'd help them out. Thanks for the artical link thou, that site has helped me a out a bunch in the past as-well.
I unually try to get a page to work universally, it just makes thinks easier. But, like recently, where a page with CSS styles will look perfect in all the other browsers...Leave a comment:
-
Function to check a users browser v1.2
I though I'd share this with everyone.
Browser detection can help a lot with your web page and this function I have been working on will do just that.
I welcome any revisions to this that you can suggest.
Also, any bugs that need corrected.
The following function will return the users browser name, version, and their OS.
Enjoy!
-J
[CODE=javascript]
//-----------------------------------------------------------------------------------//... -
I've seen this happen as-well. Acually, thanks for the tip.
I bet it has something to do with how IE handles empty tags , kinda like when you make a table and you have an empty cell.
recommend this
<tr>
<td> </td>
</tr>
instead of
<tr>
<td></td>
</tr>Leave a comment:
-
Give this a try. It will create a multi-dimentional array from the record set.
Code:Dim recordSet, CollectedData 'allcode to populate the recordSet variable ... CollectedData = recordSet.GetRows(); 'Now access the data like this: CollectedData[column][row]
http://www.w3schools.c om/ado/met_rs_getrows....Leave a comment:
-
If you are using FLVs, you can change the content path with the differant selections made. Just make sure the FLVPlayback component is in the library
Like this:
Code:import mx.video.*; attachMovie("FLVPlayback", "myFlv", 1); var movieLinks = new Array("flvs/movie1.flv","flvs/movie2.flv","flvs/movie3.flv"); button0.onRelease = function(){
Leave a comment:
-
This is a function I have been using to call javascript from flash. It works way better than getURL(), plus it will return a value from a javascript function if needed (returns false if not).
place this in flash:
Code:function runJSFunction(fn){ import flash.external.ExternalInterface; js_response = ExternalInterface.call(fn); if(js_response != ""){return js_response;}else{return false;}
Leave a comment:
-
Hey,
You might have tryed this but. On the flash CSS put:
position:relati ve; z-index:4;
on the menu:
position:absolu te; z-index:5;
Usually you can't float anything over flash but recently I was able to float a Div tag over a flash movie like this.
-JLeave a comment:
-
Moving div tags in Firefox with setInterval
I am working on a site where we are doing some experamental Javascript and Flash actionscript. Basicly, at a certain point the flash movie tells the javascript function on the page to move the div that conatins the flash movie off the page to the right.
I finally got everything to work, by using window.setInter val(); to start calling a function that moves the div off the screen by 5px untill it reached 1000 px.
The...
No activity results to display
Show More
Leave a comment: