Search:
Type: Posts; User: mngn9drb
Search:
Search took 0.04 seconds.
-
-
Well firstly you can't load an Excel doc into Flash to do anything functional with it. Your code is slightly off too as you need to use doc.load to get the data into Flash, not "LoadVars". Try this...
-
Button.prototype.useHandCursor = false;
-
This will put your movieclip named 'theMouseCursor' onto level 1000 which should be above everything else - if it isn't then increase the value!theMouseCursor.swapDepths(1000);
-
Add this to _root. It will detect any mouse presses and forward the user to the scene specified in the gotoAndPlay();gameOver = new Object();
gameOver.onMouseDown = function () {
//trace...
-
//increase by one
counter++;
//decrease by one
counter--;
//increase by 5 (or whatever)
counter += 5;
//decrease by ten million
counter -= 10000000
-
It doesn't make much difference to be honest. As long as it's set to false, you may aswell leave it on - makes it easier if you want to make changes in the IDE in the future.
Glad to help :)
-
I forgot to say, this won't work in the Flash IDE - only when testing in the browser. Sorry, I should have said this earlier. Basically the random number generated is appended to the SWF request so...
-
Well you seem to have answered your own question alreadymyIdentifier=Math.round(Math.random()*10000);
photo.loadMovie("photogallery.swf?uniq"+myIdentifier, 1);This should get past the browser...
-
Ah ha, cool stuff ArmedJimmy. Always good to see a simpler method!
I'd avoid the if/elses though and just have an array of days of the week then just grab them like thisdaysOfWeek = ["sun", "mon",...
-
Flash can't do it directly (at least I've never seen it done) but you could always call a PHP script and use mktime() to get the day of the week (or whatever) from a given date. This PHP script for...
-
It should be like this - dupeMovieClip only accepts 3 args and I think you've confused it with attachMovie (I ommitted the initObject). I had to change the ref to the MC as Flash doesn't like numbers...
-
For the upper/lowercase letters, use a loop like thisvar str = "hey look at me, I'm typing like a script kiddy!!1 weeeee!!1";
var newStr = "";
for (i = 0; i < str.length; i++) {
num = Math.round...
-
clipCount = 64;
columns = 8;
n = 15;
function shuffleNums () {
return (Math.round (Math.random ()) * 3) - 1;
}
numsArray = new Array ();
for (i = 0; i < clipCount; i++) {
numsArray.push...
-
PHP. Any language that has lines that don't end in a ';' can't be trusted!
If you're used to ActionScript, JavaScript, Java etc, you'll find PHP a lot easier. The syntax is very similar.
Check...
-
Use a for in loop to pull out all the data from the textfield then you won't need to know how many exists in the file. If you need to use the value later, increment a counter in the for in loop and...
-
Tryvar x = eval("headline" + _root.hnews);
-
Is that space between java and script intentional? I know the board parses that word weirdly. Make sure it just reads "javascript" in your getURL line if you copied the code off a board like this one.
-
You haven't actually said what you're trying to do yet. getDate() returns a value between 1 and 31 - will be irrelevant if you're evaluating a day of the week.If you're using getDay() it can't be...
-
Instead of using an external player, use Flash's MP3 streaming. You can initiate a new Sound object and then load an MP3 through thattune = new Sound ();
//load sound, set streaming to true:...
-
getDay() returns a number between 0 and 6 (0 being Sunday and 6 being Saturday). Your if statement will never work since getDay() doesn't go upto 7.
-
You need to either set that textfield's wrap property to "multiline" in the Flash GUI or give the field an instance name and use this code to set it to wrap text:textField.multiline = true;...
-
OK, I'll keep the post in the open so other people can benefit (or add comments). Here's your modified <embed> code to go in your index.php where the Flash button resides (just replace your...
-
If you're loading content into files on lower levels, you need to modify the paths for new data to reflect the new location on the hard disk. Your files loaded into main.fla now need to go back...
-
Well the sessionhash is specific to PHP so you'll only be able to get to it when using the PHP module, so to pass that value to index.php, you'll need to let Flash know what it is before invoking...
|
Click Here to Expand Forum to Full Width
|