Search:
Type: Posts; User: a_modified_dog
Search:
Search took 0.41 seconds.
-
that would be the expected result on removing that particular section of script.
what the script does there is pull a random swf file out of the list of swf
files that it loads from the xml file....
-
if you do not need a random movie to load on each visit, yes :)
-
open a new fla in the same folder as the test.xml and swf files.
copy/paste the above code into the Actions Panel, frame#1 of the main timeline.
-
for simplicity, output the xml file as -
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<node swf='1.swf' />
<node swf='2.swf' />
<node swf='3.swf' />
<node swf='4.swf' />
<node...
-
addItem requires a capital "I"
alternate code (Flash 8, AS 2 componenet, instance name - yearCombo )
yearArray = [];
for (var n=1910;n!=2010;n++) yearArray.push({label:n});
...
-
send to php (using LoadVars - AS2) -
myLoadVars = new LoadVars();
myLoadVars.delete_path = "your.jpg";
myLoadVars.sendAndLoad("your.php", myLoadVars, "POST");
myLoadVars.onLoad = function(){...
-
add an image attribute to the XML -
<?xml version="1.0" encoding="iso-8859-1"?>
<menu>
<menu buttonName = "item 1" imgName="1.jpg"/>
<menu buttonName = "item 2" imgName="2.jpg"/>
<menu...
-
use onEnterFrame to constantly poll the position of the clip timeline.
when clip._currentframe == clip.totalframes, end the onEnterFrame
and navigate to your next frame
-
Here is a breakdown of your output -
del_pic = _root.galpic;
/members/1/images/31.jpg,/members/1/images/32.jpg,/members/1/images/33.png,/members/1/images/34.jpg,/members/1/images/35.png,...
-
so can you extend the output and show where the code falls down ..
make del_pic a multiline textfield and --
on (release) {
del_pic = _root.galpic;
tmp = _root.galpic.split(",");
del_pic +=...
-
when you try -
on(release){
trace(_root.galpic); // what is the output here ?
}
-
could be your problem stems from i=1
when arrays always start from zero.
does this method address your problem ?
var bombs = 10;
mainArray = new Array();
for (var i=0; i!=10; i++) {
-
split to an array using the comma delimiter
then split the array to separate the numbers -
...
-
where you are sending -
http://www.domain.com/file.php?myVar=1
try using -
<object ...>
<param name="movie"
value="file.swf?myVar=<? echo $_GET['myVar']; ?>" >
<embed...
-
defaultString = "http://www.example.com#";
myButton.onRelease = function(){
addString = myText.text;
fullString = defaultString + addString;
trace(fullString);
getURL(fullString,...
-
make use of the TextField onChanged handler -
dayNum.onChanged = function(){
if(dayNum.text.length>1) Selection.setFocus("monthNum")
};
monthNum.onChanged = function(){...
-
// button, input textfield and code all on main timeline
defaultString = "http://www.example.com#";
myButton.onRelease = function(){ // instance name of buttton
addString = myText.text; //...
-
just to be sure :)
you have removed the comment operator on the getURL line ??
// getURL(param,"_blank");
should be -
getURL(param,"_blank");
-
seeing the images above, i used this code in a test file -
btnArr = [btn1,btn2,btn33,btn56]; // note: button and clip instance
clipArr = [clip1,clip2,clip33,clip56]; // names all end in numbers
...
-
is it still failing in Opera ?
try a google search -- opera window focus
-
best method is to use Flash to communicate with an online database of users
this way you can ensure unique username/passwords are used for login/register
a good start would be -
...
-
Hi and welcome
is this example any help to you ? it is in AS2 (you haven't specified your version)
cArr = [clip0, clip1, clip2]; // instance names of movieclips
for(var a in...
-
edit your html file to -
<body onLoad="window.document.${application}.focus();">
-
force the server to send a fresh file by appending a timestamp -
myMovie.loadMovie("http://www.nathanderksen.com/book/trailer.swf?timestamp="+new Date().getTime());
Flash cannot clear your cache...
-
to be more specific in any answer i could give, i would need
to know which version of Flash that you are using and which
version of ActionScript you are publishing with (AS2 or AS3)
you also...
|
Click Here to Expand Forum to Full Width
|