Append To ClipEvents?
hey there. i was wondering the other day about how i would add actions to a currently running clipevent. example
clip.onEnterFrame=function(){ this.dosomething(); } and then if i wanted to have it do something and something else, but i didn't know exactly what it was currently doing
clip.onEnterFrame=function(){ this.onEnterFrame //and add something else? this.dosomethingelse(); }
i just want to add something to onEnterFrame ?
anyone
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-31-2004, 07:27 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Append To ClipEvents?
hey there. i was wondering the other day about how i would add actions to a currently running clipevent. example
clip.onEnterFrame=function(){
this.dosomething();
}
and then if i wanted to have it do something and something else, but i didn't know exactly what it was currently doing
clip.onEnterFrame=function(){
this.onEnterFrame //and add something else?
this.dosomethingelse();
}
i just want to add something to onEnterFrame ?
anyone
[append Vs Overwrite] Need To Append Not Overwrit
I originally included to much or to little of the entire code. There is much more. However, the part I need help on is pasted below. I'm trying to get data from my array dataset to APPEND newly entered data vs overwriting existing data. I'm using the "push" array method combined with the so.flush. My data is being replaced with each execution of my function. Again, I need the data to append.
Also, I commented the code to help clarify what I think is being accomplished at each stage of execution.
arrcheckmark = new Array(); //popuplated from button clicks
function fset(choice) { //param passes vars from buttons
arrcheckmark.push(choice); //values populate array
vCookieData = arrcheckmark; //dataset assigned to var
vset = so_IOC.data.vCookieDate4=vCookieData; // var pass values to shared object
so_IOC.flush(); // created shared object/cookie and stores values on users machine.
}
On Clipevents Help
Hey can any one help ?
Im learning clipevents on movies and what i would like to do is:
On click of a button move a movie clip which gradually slows which also scales up to say 300% as it comes to rest.
Can this be done.
flash newbie.
Help With ClipEvents Or Something
Here's what I need to do:
I have 4 items (they might be text or graphics, haven't decided).
I want to reveal items 1, 2, and 3 in any order which the user mousesOver them. Once the user has mousedOver all 3 items, I would like to reveal the 4th item.
Is this an if/else situation and does anyone have the code for this?
Rush Job, so very appreciative to anyone who can help.
ClipEvents And GotoAndPlay
How can I direct the movie to go to a specific frame after a condition is true? Can someone tell me what's wrong with this script?
//----------------------------
onClipEvent (load){
counter =1;
}
onClipEvent (enterFrame){
if (counter <10){
counter +=1;
trace (counter);
}
if (counter >=10){
gotoAndPlay ("frameName"); //Target frame. This line is not being executed! I tried this.gotoAndPlay.... didn't work!
}
}
//------------------------------
If I put a stop(); in the frame action the counter is executed but the playhead doesn't go to "frameName". I get a feedback from trace.
If I take off the stop(); the play head automatically goes to "frameName" when the movie starts and it ignores the conditional script.
Clipevents And Functions
i have multiple movie clips that would be using virtually the same code, so i thought i would make a function so it looks all nice and purty. unfortunately, the code includes clip events.
is there any way to include clip events in a function? or am i not allowed to do that? because if i don't put the function in a movie clip, but put it in the timeline, it tells me i cannot have the clip events becuz it is not in a mc.
consequently, when i do set the function within a mc, it says that i have to have the function within a clip event... or something.
so should i just give up and copy and paste the code to each mc individually?
i hope this is not a stupid question... it's hard being a n00b these days.
Help With MouseOver ClipEvents Or Something
Hello,
Here's what I need to do:
I have 4 items (they might be text or graphics, haven't decided).
I want to reveal items 1, 2, and 3 in any order which the user mousesOver them. Once the user has mousedOver all 3 items, I would like to reveal the 4th item.
Is this an if/else situation? and does anyone have the code for this?
Rush Job, so very appreciative to anyone who can help.
Thanks please email me asap if you can help
AttachMovie And ClipEvents
Hello everyone! In a few different flash projects, I have noticed a pattern of duplicating movie clips that have clipEvents attached to them (onEnterFrame, for example). To keep things cleaner I would like to attach these movie clips from the library, rather than duplicate the movie clips when needed. The problem that I face here is that I do not know how to give clipEvent actions to attached movie clips. I would love some help on the issue, or at least just a point in the right direction.
Thanks!
Ange52
HTMLText And ClipEvents
I've created text boxes that are embeded into a Movie Clip. The text boxes are using HTMLText that is displaying imported strings that contain URL links.
Everything works fine until I assign a ClipEvent to the above-mentioned movie clip. Once I do that, the links in my imported strings no longer work.
Is there a work-around for this? Did I do something wrong? Have I been bad?
Clipevents, Just A Theoretical Thought...
I just wonder if it slows my movie down to have dozens of Clipevents in a movie, especially onClipEvent(enterFrame), as these get checked regularly. Is there a way to deactivate a clipevent, or does it not matter on new and fast computers?
Thanks!
Small Question About Clipevents
Ok so just tell me if i've got this right ok??
On.....
Load: Whenever the movie passes through the frame with this control, execute the code below once. Like, if you had 2 frames in a movie, and on the 2nd was a MC with on(load) on it, the commands for on(load) would run once and then stop, then run again when/if the movie went to another frame and then passed by that one again.
Enterframe: Whenever the movie is on the frame with this control, execute the code below continuously at the rate of the fps, stop when its not on that frame anymore. Like, if you had 2 frames in a movie, and on the 2nd was a MC with on(enterframe) on it, the commands for on(enterframe) would run over and over again until another command stopped it, or when/if the movie went to another frame.
Unload: Whenever the movie was onthe frame with this control, but then left that frame, execute the code below until its back on that frame. Like, if you had 2 frames in a movie, and on the 2nd was a MC with on(unload) on it, the commands for on(unload) would run once the movie got to the 2nd frame and then passed the 2nd frame, and keep playing only in the 1st frame and then stop on the 2nd frame. And repeat like that
The mouse and key ones: Easy enough
Data : No idea
Please help me with this
Using ClipEvents For Dynamically Created Movieclips
Hey, I just joined the board today hoping that I might be able to get some help. I am creating a Flash app that requires the dynamic creation of movie clips using createEmptyMovieClip. How can I reference the clipEvents of the newly generated movie clips? Any help would be greatly appreciated. Christine
Append With CGI?
Can anyone point me to a simple implementation of CGI that can collect variables from a form, format them into predefined simple html and then print them - unadorned with special symbols to the top of a text file, leaving prior entries unmarred beneath.
I simply do not have the perl coding ability to do it myself and all of the tutorials I find are for PHP, etc, which my server does not support.
Any help in this matter would be greatly appreciated, I am at my wits end.
-ca
XML InsertBefore Or Append Help PLEASE
My structure looks like this:
(dataroot)
_(level)
__(info)
___(company)somecomp(/company)
___(website)www.something.com (/website)
___(email)me@myself.com(/email)
__(/info)
__(info)
___(company)(/company)
___(website)(/website)
___(email)you@myself.com(/email)
__(/info)
_(level)
(dataroot)
I've got to append more nodes. So I'm using this code:
sponsors.appendChild(sponsors.firstChild.firstChil d.lastChild.cloneNode(true));
Doesn't work though....please advise.
I Want To Know If Able To Append Sound?
Flash MX professional 2004
I want to know if able to append sound
Example:
The number you insert is “dynamic text box = 345”;
I want to know if I’m able to do like this;
Complete sound = Sound (The number you insert is) + Sound Number(3) + Sound Number(4) + Sound Number(5)
I hope some of the Flash Gurus here can show me the script that I can use….
I Want To Know If Able To Append Sound?
I want to know if able to append sound
Example:
The number you insert is “dynamic text box = 345”;
I want to know if I’m able to do like this;
Complete sound = Sound (The number you insert is) + Sound Number(3) + Sound Number(4) + Sound Number(5)
I hope some of the Flash Gurus here can show me the script that I can use….
Append Extension To URL
so far to append a .asp extension to the URL
the code takes the url string and set it to a variable while stopping the string at the period of the url. I'm trying to display the url in a dynamic text box on the main stage, below is what i have which doesn't seem to work, i get underfined at the trace....? any thoughts on this
Code:
var myURL:String = this._url;
trace (myURL);
var myURLLength:Number = myURL.length;
var mySubLength:Number = 0;
for (i:Number = myURLLength;i>=0;i--) {
if (myURL.charAt(i) == "."){
this.mySubLength = i;
break;
}
}
var myNewURL:String = myURL.substr(0,mySubLength);
theURL = myNewURL + ".html";
message.html=true;
message.htmlText += "<font color="#0000FF" size="10"><a href='"+ theURL +"' target='_blank'><b><u>"+ theURL +" </u></b></a></font>";
Append Vs Overwrite
I originally included to much or to little of the entire code. There is much more. However, the part I need help on is pasted below. I'm trying to get data from my array dataset to APPEND newly entered data vs overwriting existing data. I'm using the "push" array method combined with the so.flush. My data is being replaced with each execution of my function. Again, I need the data to append.
Also, I commented the code to help clarify what I think is being accomplished at each stage of execution.
arrcheckmark = new Array(); //popuplated from button clicks
function fset(choice) { //param passes vars from buttons
arrcheckmark.push(choice); //values populate array
vCookieData = arrcheckmark; //dataset assigned to var
vset = so_IOC.data.vCookieDate4=vCookieData; // var pass values to shared object
so_IOC.flush(); // created shared object/cookie and stores values on users machine.
}
Append Variable To Url
I don't think I asked this question correctly earlier. I'm trying to append a variable to a URL. The URL "index.xml" below and the variable is "user_id" below. This doesn't seem to work. Am I writing this incorrectly?
my_xml.load("index.xml", user_id, "GET");
Thanks in advance.
Append One Movieclip To Another?
In my FLA file I have two movieclips. each made of a number of frames.
Is it possible to append or prepend one movieclip to the other?
Append Node
I'm attempting to add the nodes:
<deli>
<item sku="rb-798">Roast Beef</item>
</deli>
via AS what did I goof?
Code:
//create the xml object
XML_Shopping = new XML();
XML_Shopping.onLoad = parseXML_Shopping;
function parseXML_Shopping(success) {
if (!success) {
trace("Shopping document failed to load");
return;
} else {
if (this.status != 0) {
trace("This document not well formed."+this.status);
return;
} else {
addAisle();
trace(this);
}
}
}
XML_Shopping.load("./shopping.xml");
function addAisle() {
newAisle = XML_Shopping.createElement("Deli");
XML_Shopping.appendChild(newAisle);
newItem = XML_Shopping.createTextNode("Roast Beef");
XML_Shopping.firstChild.appendChild(newItem);
}
Code:
//FROM OUTPUT WINDOW
<list>
<freezer>
<item sku="p-444">peas</item>
<item sku="g-444">green beans</item>
<item sku="pp-444">pot pie</item>
<item sku="i-444">ice cream</item>
</freezer>
<bakery>
<item sku="r-444">rolls</item>
<item sku="j-444">jelly doughnuts</item>
<item sku="br-444">bread</item>
</bakery>
<produce>
<item sku="ba-444">bananas</item>
<item sku="k-444">kumquats</item>
<item sku="a-444">apples</item>
</produce>
Roast Beef</list>
<Deli />
Append An Object
Is there a way to append an object that has already been created:
CODE:
userobject;
userobject = {uname:username, uage:so.data[username].age}
what if I wanted to add a phone property?
Thanks in Advance, Dvl
How To Append Variables To GetURL
Does anyone know how to append variables to a getURL string?
What I am trying to do is once a variable has been passed back to a Flash movie I am looping through an if statement and based on the variable I direct a user to a different URL. Along with directing them to a differnet URL I need to pass the variable on the querystring. I'm familiar with doing it as a loadmovie expression but not as a getURL. Any help or suggestions would be appreciated.
How Do I Append A Counter To The Name.swf When Using LoadMovie?
hi
when i'm loading an external swf, how can i append a counter to the "nameCOUNTER.swf" so i can load "name1.swf" , "name2.swf" etc .. but using a counter instead of a number..
sorry, it's a bit hard to explain... and the board software keeps killing half my post...
Append A String To A File
Can this even be done:
I want to have a group of text strings written to a text file based on user selection.
if checkbox1 is selected, append this string to file example.txt and enter a return so the next selected string is added to a new line.
Ideas?
v MX
Append Text To Variable
I know this sounds stupid and easey but I am stumped. I have a for loop that pulls some data from an array. each time I need to append that data to a varaible.
Code:
for (h=0; h<tLevelAr.length; h++) {
if (dataText!= undefined){
dataText =+ tLevelAr[h][0]+":<br>";
}else{
dataText=tLevelAr[h][0]+":<br>";
}
}
but for some reason it just replaces is it. Basically I am trying to output the data from the array, format it with some html and display it back to the user.
any help would be good.
thanx dave
Memory Allocation & Append To SO?
Hi,
I'm new to this and there's so much to learn, so...
Is it true that there's no manual memory allocation in Flash? (Does a Number type variable always occupy 8 bytes in memory?)
And can I append to a previously stored SharedObjects file? I tried flush() but haven't got anywhere.
Thanks.
Append To (not Overwrite) A Function
I want to add functionality to a rollover function. In my mind the code should look something like this:
Code:
this.onRollOver = function() {
this.onRollOver;
trace("test");
}
But of course this doesn't work. I wouldn't be here if it did.
Is what I'm attempting possible? If so, how?
How To Append A Value To A Dynamic Text
Hi all,
I'm using the code
Selection.setFocus("nam_txt");
keyListener.onKeyUp = function() {
if (keyCode == 13) {
stopAllSounds();
gotoAndStop(7);
}
};
Key.addListener(keyListener);
If the user types something and then presses enter key then the animation proceeds , its not working , can anyone suggest..
Append XML File With Flash With PHP
Hello Everyone,
I am having trouble updating my xml file I have set the correct permissions and everything. I have a blog and i want to make a front end updater for it. here are the sourcees maybe theres something wrong in it.
this is writeAttributes.php
PHP Code:
<?php $titleValue = $_POST['title']; $descriptionValue = $_POST['description']; $imageValue = $_POST['image']; $dateValue = $_POST['date']; $fromValue = $_POST['from']; $dom = domxml_open_file("catalog.xml"); $root = $dom->document_element(); $story = $dom->create_element("story"); $title = $dom->create_element("title"); $titleText = $dom->create_text_node($titleValue); $title->append_child($titleText); $description = $dom->create_element("description"); $descrtiptionText = $dom->create_text_node($descriptionValue); $description->append_child($descrtiptionText); $image = $dom->create_element("image"); $imageText = $dom->create_text_node($imageValue); $image->append_child($imageText); $date = $dom->create_element("date"); $dateText = $dom->create_text_node($dateValue); $date->append_child($dateText); $from = $dom->create_element("from"); $fromText = $dom->create_text_node($fromValue); $from->append_child($fromText); $story->append_child($title); $story->append_child($description); $story->append_child($image); $story->append_child($date); $story->append_child($from); $root->append_child($story); if ($dom->dump_file("catalog.xml", false, true)){ echo "result=success"; }else{ echo "resut=failure"; }?>
this is my actionscript
Code:
stop();
var myXML = new XML;
var submitVars:LoadVars = new LoadVars();
var returnVars:LoadVars = new LoadVars();
returnVars.onLoad = function(success) {
if (success) {
if (this.result="success") {
loadXml();
} else {
trace("something's jacked up, jack");
}
} else {
trace("no return from php.");
}
};
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
trace(myXML);
submit_mc.enabled = true;
get_mc.enabled = true;
} else {
trace("xml.noLoad();");
}
submit_mc.enabled = true;
get_mc.enabled = true;
};
function loadXml():Void {
myXML.load("catalog.xml");
}
submit.onRelease = function() {
if (title1.text == "" || title1.text == undefined || description.text == "" || description.text == undefined || image.text == "" || image.text == undefined || date.text == "" || date.text == undefined || from.text == "" || from.text == undefined) {
return;
} else {
this.enabled = false;
//this._parent.get_mc.enabled = false;
submitVars.title = title1.text;
submitVars.description = description.text;
submitVars.image = image.text;
submitVars.date = date.text;
submitVars.from = from.text;
// for local testing
submitVars.sendAndLoad("writeAttributes.php", returnVars, "POST");
// for live server use
//submitVars.sendAndLoad("addQuote.php", returnVars, "POST");
}
};
I appreciate any comments or help i can get.
Joseph Nwachukwu
Dynamic FLV Playback Via URL Append?
I'll do my best to try and explain what I want to do here...
I'd like to have a generic FLV Player page that will play a specific FLV file when visited. The file would be dictated via a forwarded email, and so ideally I'd like to be able to append the filename to the end of the URL and have Flash read it?
I don't know if this is possible, and I'm also not sure that I've communicated my dilemma appropriately. I have my page built and the missing pieces are the dynamic file playback. I'm not sure if this is even Flash related, or if it's more Javascript or even some other programming language. I hate to use the venerable example of Youtube, but I suppose I'll have to, in that, they've obviously developed a script that handles the dynamic video playback, and it's not that they have a million+ static pages linked to the FLV, it's dynamically generated.
Any help or guidance to be put on track would be great.
Append Local Text File
Hi
I am trying to make a phonebook which will be stored on a local drive, which stores data into a local text file.
Is there a way in which i could add a persons name address etc.. and save it to a text file with delimiters and when another persons data is stored through the same flash file, that data gets appended to the earlier data. I have a code that reads this kind of a text file, i need a code to solve the above problem.
Thanks
Append Path To Object Using Variable
I would like to do something like this
for ($i = 0, $i < 10, $i++){
_root.object1.object($i).text = "object"+$i;
}
And this would allow me to modify 10 text objects on the stage and insert the text object1, object2, object3, etc.
The part i don't know how to do is in bold and itallics.
Thanks Guys!
Can Any One Help To Clear This Issue (Append Child)
hi
can Any one help me to solve this issue...
~~sk
Attach Code
var details:Array = new Array();
var EmpDetail:XML = new XML();
var Employeedetail:XMLNode = EmpDetail.createElement("Employeedetail");
var Employee:XMLNode = EmpDetail.createElement("Employee");
for (var i:Number = 0; i<=__empDetails.length; i++) {
var str:String = __empDetails[i];
details = str.split("_");
Employee.attributes.PAM = details[4];
Employee.attributes.PM = details[3];
Employee.attributes.prjName = details[2];
Employee.attributes.SeatNumber = details[1];
Employee.attributes.Empname = details[0];
EmpDetail.appendChild(Employeedetail);
Employeedetail.appendChild(Employee);
trace(EmpDetail);
}
Hi,
Array details contain the result like this....
__empDetails[0] = Kel_34_I_Ash_Sa
__empDetails[1] = Devr_35_I_Rae_Sa
<Employeedetail><Employee Empname="Kel" SeatNumber="34" prjName="I" PM="Ash" PM="Sa" /></Employeedetail>
<Employeedetail><Employee Empname="Devr" SeatNumber="35" prjName="I" PM="Rae" PM="Sa" /></Employeedetail>
But i need to get the result like
<Employeedetail>
<Employee Empname="Kel" SeatNumber="34" prjName="I" PM="Ashish" PM="Sa" />
<Employee Empname="Devr" SeatNumber="35" prjName="I" PM="Rajnee" PM="Sa" />
</Employeedetail>
Can any One help me to solve this issue
~~Sk
How Can I Append Streams/play Continously?
Hi
Two q's in a row, you may officially call me a n00b :)
I have a MP3-streamer app that generates an audio object, and i use NetStream.play() to make it play. (I need the scrubbing and volume an so of the audio object). So when I request a new MP3 file I experience a second or three of pause before the next file starts playing, I've set buffering time to zero.
Is there a way of appending the next file to the end of the file playing so I dont get the pauses? This way I could send over a request for the next file when, say there's 5seconds left of the playing file, then appending the next file and make the files play continously.
I've done this with recording and the publish(..., "append") function, from the client, but now I want the server to append files for me.
Alternatively I could send over the entire playlist at statup and generate the entire stream once if this is possible.
Any thoughts or methods, please?
Thanks, Trond
Using Manual JS Active Content Fix, But Now How Do I Append The *.swf?
Hi all I am using this method to fix the Active Content issue,
http://www.adobe.com/devnet/activeco...pleoccurrences
but now I have come across a situation when I have to append the end of the .swf.
EG: Active content fix script. It does not use the extension .swf
<script type="text/javascript" >
AC_FL_RunContent(
'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0',
'width', '764',
'height', '141',
'src', 'images/footer_graphic_1_about',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'footer_graphic_1_about',
'name', 'images/footer_graphic_1_about',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'images/footer_graphic_1_about',
'salign', ''
); //end AC code
</script>
I need to add .swf?<%response.write qs%>" to the images/footer_graphic_1_about, because I am passing a variable through the .swf.
Eg: images/footer_graphic_1_about.swf?intro=no
Any help would be great.
Append A String To A Variable In For Loop
I need to craete an new instance of the class newloader within each run of the for loop. The easiest way would be to add the value of j to the end of the variable, how can I do this?
Code:
for (var j = 0; j<array.length; j++){
var newloader:LoadImage = new LoadImage();
newloader.loadit(array[j].imageURL);
}
Thanks!
Append +UR+L With Data Fetched From XML Problem
Hi,
I am trying to get an image to load into a movie clip that is selected via xml and a list box. I have been looking at the as3 and xml tutorial on this site and I can only get things half working.
My problem is the image file. If I enter the address manually into imageload(); it works fine. However I want the image to update depending on whats selected from a list box.
If I give a textArea an instance name of 'ib' it prints out the name of the img just fine. However when I try to append the image to the end of a url it fails and I get this error...
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at albumread_fla::MainTimeline/frame1()
Multiple Ending URL// Append Text?
There are a few choices for my URL that i want to link to.
www.this.com/Thing1
www.this.com/Thing2
.
.
.
www.this.com/ThingX
I would like when the first button is pushed it sets a string to the end link:
Saved = "Thing1"
Then later on it is able to make the final URL "http://www.this.com/[Saved]"
Is there a way to do this? Is there an easier method? will i have to do something like have String1 = "www.this.com" and String2 = "/Thing1" then merge them together with some sort of append?
Thanks for any help with this...
Flash Message Board - Insert Vs. Append
I have a flash message board that accepts messages and sends the data to a txt file via php. However the data is appended to the end of the file. i would like the new data to be inserted at the beginning of the file without overwriting what already exists. How can i accomplish this? Thank you.
I've included some of the actionscript below that I believe would be applicable.
// Create our LoadVars Object
myData = new LoadVars();
// Call to scripts for data
myData.load("addentry.php?" + randNum + "&name=" + name + "&message=" + message, myData, "POST");
Flash Message Board - Insert Vs. Append
I have a flash message board that accepts messages and sends the data to a txt file via php. However the data is appended to the end of the file. i would like the new data to be inserted at the beginning of the file without overwriting what already exists. How can i accomplish this? Thank you.
I've included some of the actionscript below that I believe would be applicable.
// Create our LoadVars Object
myData = new LoadVars();
// Call to scripts for data
myData.load("addentry.php?" + randNum + "&name=" + name + "&message=" + message, myData, "POST");
Append Data To Dynamic Text Field
I am still relatively new to flash so please bear with me.
my question comes from a project i am working on where I read in data entries from a mysql database. in each of these entries, i have several fields which i would like to display. i have been able to succesfully read and output these entries in my text field, events_txt by using
events_txt.text += "whatever i'm adding";
what i am trying to do is display each field with a different format, (i.e. i want to display the "title" of the entry in the same box with the "details" of the entry, but at different font sizes and styles.
i have tried using the event_txt.setNewTextFormat() function at different times during the write process, but as many of you probably already know, this simply sets the text area to whatever format is last written.
do any of you know a way using actionscript to input different sections of text, at different font styles, to the same text area?
How Do I Increase A Score In A Text Feild Using Append?
My text field is called points.
Code:
points.text="1";
then
Code:
points.appendText(points.text+1);
I tried using += but Flash said use the new appendText. Can someone help me increase the score by one point?
I just want something really simple. Not a for loop.
Regards,
Glen Charles Rowell
I Need To Append A Random String To A LoadVariablesNum File...
i need a little help creating a random (2 digit?) string to append to this html call... if someone wouldn't mind helping me with this...
url = "xxxxx";
loadVariablesNum(url+"_main.html", 0);
something like:
string = "whatever()";
url = "xxxxx";
loadVariablesNum(url+"_main.html?"+string, 0);
i'm guessing...?
thanks much,
GN
How Do I Pick Up A Unique User ID From HTML And Append It Back To URL
www.quitnet.com/community/gadget/rss/index.html?user_id=1]This is kind of cool[/url] . It brings in an RSS feed of users stats like this: http://dev.www.quitnet.com/community....xml?user_id=1
So there are different RSS feeds on the server and I need to append the user_id to the end of the xml file in the actionscript. So the "1" will change to what ever number the user has.
Any ideas would be greatly appreciated. I think this is where the issue is. Here's the xml file and I need to append the user_id to the end of it.
Code:
my_xml.load("index.xml", user_id, "GET");
Code:
import mx.xpath.XPathAPI;
var myCSS = new TextField.StyleSheet();
var cssURL = "gadget.css";
myCSS.onLoad = function( success ){
trace ( success );
links.styleSheet = myCSS;
};
myCSS.load( cssURL );
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load("index.xml", user_id, "GET");
var statement:String = "";
var sc:Number;
my_xml.onLoad = function(success) {
if (success) {
var titlePath:String = "/rss/channel/item/title";
title_array = mx.xpath.XPathAPI.selectNodeList(this.firstChild, titlePath);
var description:String = "/rss/channel/item/description";
description_array = mx.xpath.XPathAPI.selectNodeList(this.firstChild, description);
links.text = "";
for (var i = 0; i<title_array.length; i++) {
statement += "<a href='" + title_array[i].firstChild.nodeValue + "' target='_blank'>" + title_array[i].firstChild.nodeValue + "</a><br>";
statement += + description_array[i].firstChild.nodeValue +"<br><br>";
}
links.htmlText = statement;
} else {
trace("error loading XML");
}
};
Append Variables On A Query String In HTML Tags
Hi.
Okay, I have a single navigation swf that I want to be able to use over several html pages. I want my swf to be able to react to whichever html page it is on so that dependant on page one button will always be frozen to synchronize with the page title.
The easiest way I could think of (and most browser compatible) was simply to append a variable into the tags on each html page in the way that is defined in this Macromedia technote:
technote: Different approaches to setting variables in a Flash movie
Sounds simple.
But... I followed the directions (thrice) and it no workee! Nothing appears in my cursed test textfield.
I was hoping that someone might be able to pull me into the light, or suggest any other options? Can anyone else get this to work?
Thanks.
pinK
Page 2 - Append "..." To End Of Dynamic Text Field
heya, yer making headway. ok you need to give the movieclips that the textfields are in instance names and then stick that instance name at the front of the lines that read like:
name_of_parent_movieclip.syn_no1_text.text = this.synno1;
Append "..." To End Of Dynamic Text Field
I am using Flash's single-line (due to space in menu) dynamic text feature to create links to news articles. In instances where the title is longer than the text field the words just cut off. I was wondering if it was possible to set up the dynamic text fields in the movie to add a "..." to the end of the titles?
I tried to explain what I am looking for to Google but it didn't understand. If anyone can help me shed some light on this issue I would greatly appreciate it.
|