Load Variables From Asp Result
I am working on an online administrator using flash and asp. I have the swf sending (text that is input) to a couple of asp's that write to txt files. The text files are read by other swf's on line. All of this works fine. However, I have an asp counter writing to a text file and it is working fine except it can only write a number to the text file (this is so the counter.asp can retrieve the number on each hit). My problem is: I would like to load the count from the text file back into the administrator. I have used a textfield inside a movieclip with an instance name of "count". The textfield variable is "cnt"
I have this on the first frame of the "count" movie clip
loadVariables ("http://www.mydomain.net/myfile/asp_count.txt", "/count");
When I check the variables output i get variable _level10.count.61 (61 being the count on the text file)
I have tried several methods but have been unable to convert this "61" into the textfield "cnt"
I am used to having a (var=text) on the text file to work with. Can any one help? it would be greatly appreciated.
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-27-2002, 04:40 PM
View Complete Forum Thread with Replies
Sponsored Links:
Controlling 4 Variables Result
Hi all,
in an adventure game I'm coding during these days, I have a movieclip containing 4 rotating handles. When the four handles linked with a variable returns a certain value, a door opens.
I've tried to use && operator, in this way:
this.onEnterFrame = function() {
if ((_root.gira1 == 1) && (_root.gira2>0) && (_root.gira3>0) && (_root.gira4>0)) {
gotoAndPlay("action");
delete this["onEnterFrame"];
}
}
this doesn't function because && operator just compare two expressions, and no more than two (that is the function will function if I limit it to control just (_root.gira1>0) && (_root.gira2>0))
How can I replace this simple code with a 4-variables controlling one? A for cycle will be the solution?
thanking you in advance
View Replies !
View Related
DataFormat.VARIABLES - Garbage In Loaded Result
I am using PHP to load content from a database into flash.
The data returned has %EF%BB%BF%EF%BB%BF preceding my variables
Also, one of my name/value pairs has an underscore (record_name)
The underscore is converted to %5F when it arrives in flash.
How can i eliminate the garbage attached to the beginning of my result?
Does the dataFormat set to VARIABLES not allow underscores in the variable names?
View Replies !
View Related
Load Result From Txt File In ARRAY
hi guys
i'm working in election graphs and it's working great, but i want to make it more easy for me.
there is a 10 arrays in my root and everyone contains 2 inputs :
new arrays = myresult1["1","2"]
like this one, when i got a new result i change it in all arrays in the fla file and play it to get the swf which i'll use it in my screen.
is there any way to make it load from txt file i'll put in it the final result and if i do this will it load the final one or i've to add refersh method in the swf file.
i hope anyone got me and can help me
thanx
View Replies !
View Related
Trace Gives Result, But Still Can't Load The Image
Can someone have alook at this code, why I cannot load the image into the largePicture_MC
Code:
System.useCodepage = true;
stop();
// for easing
import mx.transitions.*;
import mx.transitions.easing.*;
// set the stage to publish html at 100%
Stage.align = "TL";
Stage.scaleMode = "noScale";
// arrays and movie clips
var smItems:Array = new Array(); // array of small size news items
var origSmItems:Array = new Array(); // handy to have a copy that doesn't get sorted for button scrolling
var lgItems:Array = new Array(); // array of large size news items
var linkItems:Array = new Array(); // array of links
var thumbItems:Array = new Array(); // array of thumbs
var largePicture:Array = new Array(); // array of thumbs
var smItems_mc:MovieClip = this.createEmptyMovieClip("si", this.getNextHighestDepth()); // holds small news items
smItems_mc.swapDepths(block_mc); // put the small items behind the box that displays the big items
var lgItems_mc:MovieClip = this.createEmptyMovieClip("li", this.getNextHighestDepth()); // holds large news items
var thumbnail_mc:MovieClip = this.createEmptyMovieClip("thumb_mc", this.getNextHighestDepth()); // holds thumb
// set the coordinates and mask the biggies
smItems_mc._x = 220;
smItems_mc._y = 270;
thumbnail_mc._x = 220;
thumbnail_mc._y = 270;
lgItems_mc._x = 225;
lgItems_mc._y = 260;
lgItems_mc.setMask(mask_mc);
// news item currently displayed in box and the last news item to be displayed to be displayed in box
var curNews:MovieClip;
var oldNews:MovieClip;
// some numbers
var numItems:Number = 0; // number of news items (will be reset after xml is loaded)
var curScrolled:Number = 0; // number to aid in easing scroll
var scrollAmt_big:Number = 370;//150; // how much to scroll large news items (movie clips are 100 px high)
var scrollAmt_sm:Number = 360;//80; // how much to scroll small news items (mc's are 60 px high - 260_width - add a 20 px buffer)
var nowScrolling:Number = 0; // will be setInterval to scroll each item one at a time
// standard xml stuff to fill arrays and attach movie clips
var largeImageUrl:Array = new Array();
var newsXml:XML = new XML();
newsXml.ignoreWhite = true;
newsXml.onLoad = function(good) {
if (good) {
var myNews:Array = this.firstChild.childNodes;
var len:Number = myNews.length;
for (var i = 0; i < len; i++) {
// "ni" == "news item" (large and small)
// the news item movie clips are simply movie clips containing dynamic text boxes and an
// invisible hit area (for ease of clicking)
// the large news items are 350x100 pixels
// the small news items are 250x60 pixels
var ni_l:MovieClip = lgItems_mc.attachMovie("newsItem_lg", "ni_l" + i, lgItems_mc.getNextHighestDepth(), {_x:i * scrollAmt_big});
var ni_s:MovieClip = smItems_mc.attachMovie("newsItem_sm", "ni_s" + i, smItems_mc.getNextHighestDepth());
var thumbnail:MovieClip = thumbnail_mc.attachMovie("thumb_mc", "thumb_mc" + i, thumbnail_mc.getNextHighestDepth());
var largePicture:MovieClip = largePicture_mc.attachMovie("largePicture_mc", "largePicture_mc" + i, largePicture_mc.getNextHighestDepth());
ni_s._x = i * scrollAmt_sm;
if (i > 0) {
// add 50 pixels to get small item below display box - tricky math, man
//ni_s._y += 50;
ni_s._x += 100;
}
ni_s.id = i; // unique id number
// populate arrays
lgItems.push(ni_l);
smItems.push(ni_s);
origSmItems.push(ni_s);
thumbItems.push(thumb_mc);
largePictureItems.push(largePicture_mc);
//linkItems.push(myNews[i].childNodes[i].firstChild);
// fill the text fields
ni_s.hl_txt.htmlText = ni_l.hl_txt.htmlText = myNews[i].childNodes[0].firstChild.nodeValue;
ni_s.info_txt.htmlText = ni_l.info_txt.htmlText = myNews[i].childNodes[1].firstChild.nodeValue;
thumb_mc[i] = myNews[i].childNodes[2].firstChild.nodeValue;
largePicture_mc[i] = myNews[i].childNodes[3].firstChild.nodeValue;
trace(myNews[i].childNodes[3].firstChild.nodeValue);
//len[i].img = largePicture_mc[i];
//trace (largePicture_mc[i]);
//create a movieclip loader
var Clip:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
Clip.addListener(mclListener);
mclListener.onLoadStart = function(thumb_mc:MovieClip) {
ni_s.thumbnail_mc._alpha = 0;//set thumb alpha to be zero
};
//handle loading progress - simple counter here
mclListener.onLoadProgress = function(thumb_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
//use this if you want to indicate loading of your thumbnails etc...
loadTxt.captions_txt.text = Math.floor(bytesLoaded/bytesTotal*100)+"%";
};
mclListener.onLoadInit = function(thumb_mc:MovieClip) {
ni_s.thumbnail_mc._alpha =100;
}
Clip.addListener(mclListener);
Clip.loadClip(thumb_mc[i],ni_s.thumbnail_mc);
}
initMenu();
} else {
trace("couldn't load");
}
};
// don't want the buttons clicked during the animation or bad things will happen
function setBtns(whichWay:Boolean):Void {
up_btn.enabled = whichWay;
down_btn.enabled = whichWay;
for (menItem in smItems){
smItems[menItem].enabled = whichWay;
}
}
// set up the on release actions for the recently attached movie clips
function initMenu():Void {
numItems = smItems.length;
curNews = smItems[0];
curNews.enabled = false;
for (var i = 0; i < numItems; i++) {
var menItem_sm:MovieClip = smItems[i];
var menItem_bg:MovieClip = lgItems[i];
menItem_sm.onRelease = function() {
// turn off the up/down scroll buttons so they're not clicked during the animation
setBtns(false);
// calculate distance between current item and selected item
// and sort the arrays to move in correct direction...
var m:Number = this.id - curNews.id;
if (m > 0) {
smItems = smItems.sort();
lgItems = lgItems.sort();
} else {
smItems = smItems.sort(2);
lgItems = lgItems.sort(2);
}
// swap out the curNews mc
curNews.enabled = true;
oldNews = curNews;
curNews = this;
curNews.enabled = false;
curScrolled = 0;
// set an interval to scroll each mc one at a time
nowScrolling = setInterval(moveMenuItems, 100, m);
/*
//largePicture_MC.loadMovie("image/01.jpg");
//mcLoader.loadClip(largeImageUrl[target_mc.pictureValue],largePicture_MC);
//loadlargeImage();
//create a movieclip loader
var Clip:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
Clip.addListener(mclListener);
mclListener.onLoadStart = function(thumb_mc:MovieClip) {
largePicture_MC._alpha = 0;//set thumb alpha to be zero
};
//handle loading progress - simple counter here
mclListener.onLoadProgress = function(thumb_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
//use this if you want to indicate loading of your thumbnails etc...
loadTxt.captions_txt.text = Math.floor(bytesLoaded/bytesTotal*100)+"%";
};
mclListener.onLoadInit = function(thumb_mc:MovieClip) {
largePicture_MC._alpha =100;
}
Clip.addListener(mclListener);
Clip.loadClip(largeImageUrl[i],_root.largePicture_MC);*/
};
}
}
// easing function to move the movieclips..
// b==big s==small (i.e. big movie clip, small end y value, etc)
function easeMenuItem(smc:MovieClip, bmc:MovieClip, sendx:Number, bendx:Number):Void {
var time:Number = 15;
var easeType:Function = Strong.easeOut;
var tweenListener:Object = new Object();
tweenListener.onMotionFinished = function() {
// i.e if the last item to animate is done moving - make the scroll buttons functional again
if (bmc == lgItems[lgItems.length - 1]) {
setBtns(true);
curNews.enabled = false;
}
};
var xTween_lg:Tween = new Tween(bmc, "_x", easeType, bmc._x, bendx, time);
var xTween_sm:Tween = new Tween(smc, "_x", easeType, smc._x, sendx, time);
xTween_lg.addListener(tweenListener);
}
// the setInterval function which calls the easing function
function moveMenuItems(mult:Number):Void {
var btx:Number = lgItems[curScrolled]._x - (mult * scrollAmt_big);
var stx:Number = smItems[curScrolled]._x - (mult * scrollAmt_sm);
// these if statements account for the large box (that is it will add or subtract
// 50 from the target y value depending on the location of the scrolling movie clip
// yes, it's a pain
if (mult > 0) {
if (smItems[curScrolled].id > oldNews.id && smItems[curScrolled].id <= curNews.id) {
stx -= 50;
}
} else if (mult < 0) {
if (smItems[curScrolled].id > curNews.id && smItems[curScrolled].id <= oldNews.id) {
stx += 50;
}
}
easeMenuItem(smItems[curScrolled], lgItems[curScrolled], stx, btx);
if (curScrolled++ >= numItems) {
clearInterval(nowScrolling);
loadlargeImage();
}
}
function loadlargeImage(){
//testing purpose :
//largePicture_mc.loadMovie("image/01.jpg");
//largePicture_mc.loadMovie(myNews[i].childNodes[3].firstChild);
//create a movieclip loader
var Clip:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
Clip.addListener(mclListener);
mclListener.onLoadStart = function(largePicture_mc:MovieClip) {
largePicture_MC._alpha = 0;//set thumb alpha to be zero
};
//handle loading progress - simple counter here
mclListener.onLoadProgress = function(largePicture_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
//use this if you want to indicate loading of your thumbnails etc...
loadTxt.captions_txt.text = Math.floor(bytesLoaded/bytesTotal*100)+"%";
};
mclListener.onLoadInit = function(largePicture_mc:MovieClip) {
largePicture_MC._alpha =100;
}
Clip.addListener(mclListener);
Clip.loadClip(largePicture_mc[i],largePicture_MC);
}
//generic load object here we handle loading in external images etc
var mcLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
listener.onLoadStart = function(target_mc:MovieClip) {
};
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
amountLoaded = Math.floor((bytesLoaded/bytesTotal)*100);//calulate a loading percentage!
loadTxt.captions_txt.text = Math.floor(bytesLoaded/bytesTotal*100)+"%";
};
listener.onLoadInit = function(target:MovieClip):Void {
};
mcLoader.addListener(listener);
// start out by loading the xml file with your news...
newsXml.load("news.xml");
View Replies !
View Related
Load Graphic Based On Variable Result - How?
I have a numeric variable.
If the result == 1, I would like to load GraphicA
If the result == 2, I would like to load GraphicB
.. and so on... at a particular place on the screen.
Do I insert each of the graphics on separate layers
EXAMPLE:
Layer 1 Frame1: GraphicA
Layer 2 Frame1: GraphicB
and assign the "if then else" statements to the graphics?
NEXT QUESTION.
How do I write that "if then else" statement using ActionScript?
This is a case of knowing what you want to do, but not knowing the
exact way to do it.
Thanks OODLES for any help!!!!! It is GREATLY appreciated!
View Replies !
View Related
URGENT Dynamic Image Load - Using Variable Result
Greetings and MANY thanks for taking a look at this!!!
What I am trying to do is simply load an image based on the result of a variable. In "english" this is what I want to do:
if variableA is equal to 1 then load image01
if variableA is equal to 2 then load image02
I am not sure if this was necessary but just incase:
I have placed image01 in a movieclip, so now I have movie01
I have placed image02 in a movieclip, so now I have movie02
On frame 10 layer 1 my variableA is displayed as dynamic text.
On frame 10 layer 2, shouldn't I be able to place movie01, select it, then whip up an actionscript statement?
For example, I've tried:
Code:
onClipEvent (load) {
if (variableA==1) {
setProperty("movie01", _visible, "1");
}
}
The trouble with this is, the movie is displayed whether variableA is equal to 1, 2, 10, or even 0.
Again THANKS SO MUCH for ANY help on this. I think I've thought about this too much and am now just stuck!
View Replies !
View Related
My Variables Load With LoadVars...how Do I Execute A Loop To Assign Variables?
I have 52 (one for each week) duplicated MCs, a loadVars(), and variables "sermonTitle" and "airDate," which I'm trying to assign with the following:
this.airDate=_root.loadContent["airDate" + sermonDate];
this.sermonTitle=_root.loadContent["sermonTitle" + sermonDate];
which is placed in an onClipEvent (enterFrame) handler of the button which is duped . The vars load when I click Video > 2001.
The vars loaded have values named sermonTitle1, sermonTitle2, etc. and the same for airDate. The numbers attached reference the sermonDate which has already been assigned though my duplicateMovieclip loop:
num = 52;
ystart = b._y
n = 1;
while (n <= num) {
duplicateMovieClip("b", "b" + n, n);
setProperty("b" + n, _y, ystart + n*17);
this["b"+n].sermonDate = n ;
trace(this["b"+n].sermonDate);
n = n + 1;
}
I've tried attaching the assign code to the dupMovieClip loop:
num = 52;
ystart = b._y
n = 1;
while (n <= num) {
duplicateMovieClip("b", "b" + n, n);
setProperty("b" + n, _y, ystart + n*17);
this["b"+n].sermonDate = n ;
this["b"+n].airDate = "airDate" + n;
this["b"+n].sermonTitle = "sermonTitle" + n;
trace(this["b"+n].sermonDate);
n = n + 1;
}
setProperty("b", _visible, 0);
and it works - as far as assigning the correct value to the correct button, but it does not associate the loaded vars with them.
The SWF is VERY sluggish, though, which makes me think the onclipEvent is not the best way of assigning vars. I get the trace(this) showing all of the variables loading, so I know that's not the problem.
Does anyone know how to best assign these? I have been advised to use a loop for it. How would I go about executing a loop for this, as I will have navs loading in different text files - Thanks
Link to SWF:
HERE
View Replies !
View Related
Return Variables From Php To Load In Flash Text Variables
Im having an issue using the kirupa flash login. I already have the actual login working with php and mysql but i need to change it up a little bit and i don't know enough about php to write it myself. But here's the situation.
Flash login is a basic script, I've already modified this part and it works great
What I need to know is how to modify it so when a user logs in, php captures the $_POST and returns the alternate variable fields that consist of ("co","fname","lname","cph","email") within the ID for user and pass
also i have already made a common loadMovie to load random variables i just need the php to point to the movie
View Replies !
View Related
Scrollpane - Load Swf - Load Movie Symbol Controled By Buttons And Variables?
Ok i have searched the board, and racked my brain and read hundreads of bit and pieces. So far 'not happy jan'. Anyhow I thought well I shall start a thread where first I ask a question of 'can it be done' then go away try and do it and if fail 'ask how to do it' or if suceed then say 'how i did it'. Of course all questions are going to relate back to this original post so no new threads need to be started. Anyhow onto my question!!
I have a website I want to make. so I started... called it 'site.swf'. now site.swf has a scrollpane in it called 'content'.
Now I have also created 'home.swf' which has 2 movie symbols in it. one called 'homein' the other 'homeout'.
'Homein' is located in frame1 of home.swf and 'homeout' is located in frame2.
When site.swf loads I want to load home.swf into 'content' and home.swf plays 'homein'.
When the user clicks on the first button (in site.swf) 'content' plays 'homeout' before loading 'button1.swf' into 'content' and playing 'button1in'
see the pattern forming. Now I am sure this has been asked thousands of times, but I haven't found it once. At least in a form that is easy to understand.
Now can this method be done, or do i need to go away and rethink it. (my main reason for loading external.swf's is because i wish to preload where needed).
If all this can be done tell me now... I am sure I need to use 2 variables.... 'loadedmovie' and 'tobeloaded' to communiticate with 'content' and to follow the users clicks of buttons.
Thanks for any help.
Trent
View Replies !
View Related
Load Variables, Remembering Variables
I am trying to load variables from a text file, and have them available from then onwards in the movie, globally so to speak.
While I can read the variable values in a loader function which executes when the text file is loaded, I don't seem to be able to keep those variables available afterwards.
How do I that? Isn't AS3 wonderful? :(
John
Attach Code
var urlRequest:URLRequest=new URLRequest("index.as3.txt");
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);
urlLoader.load(urlRequest);
var sspColourBG;
function urlLoader_complete(evt:Event) {
trace("During: " + urlLoader.data.extColourBG); // returns correct value
}
trace("After: " + sspColourBG); // returns undefined
View Replies !
View Related
Load Movie And Load Variables
on my current project
www.enhancedinnovations.com/brp/news.html
I have 2 text boxes and I have 2 problems. So far, the bio page and the news pages are completed and there are two text boxes on each page. When you go the the news page (www.enhancedinnovations.com/brp/news.html), it all loads dandily and the text loads too.. but when you click on bio, the information doesn't come up.. but if you go to the bio page (www.enhancedinnovations.com/brp/bio.html), then it all works nice and dandy..also, if you are on the news page, click the bio button, when the bio page is loaded, click the news page, and quickly glance below the buttons, you can see the "biography." which is the current text there.. can someone help me so that the text always loads no matter what? or am I just retarded and should uninstall flash?
View Replies !
View Related
Load Variables & .txt
G'day everyone! I'm looking at tutorials of loadVariables and just can't seem to figure out what i'm missing to make 2 txt files appear in a textfield.
I have two button on scene 11, a MC called RFP which contains a textfield called txtRFP.
On top of both txt documents i wrote txtRFP = TechnicalResponse and the other is txtRFP = CompanyDescription
In the buttons i put the following script to get the txt files that are in the same folder as my SWF and target the MC RFP to receive the text in txtRFP.
on (release) {
loadVariables ("CompanyDescription.txt", "RFP");
}
Am I missing something?
thanks in advance
Al
View Replies !
View Related
Load Variables?
I have created a movie clip which displays the number of visitors in the site at the current time. This should keep updating to represent the new value of visitors. Ive used a loadVariables command to load this value into flash from my PHP script which holds the value but how do i get it to keep checking and keep displaying the amount of curent visitors. I ve tried putting gotoAndPlay(1) in frame 2 but the value doesnt change unless you refresh the whole page. PLEASE HELP? It will be very much appriechiated. thx for any help in advance.
View Replies !
View Related
Load Variables
Each time I do load some text, the loaded text has additional unwanted lines ("
").
If I try to erase all the "
" useing te string rewrite and a good split-join function it takes too much on a long text.
I was wondering if there's another way of doing this without all this...
Thank you !
View Replies !
View Related
Load Variables From LAN
Hi
Does anyone know how to load variables from txt file which
is on different machine.
I want to make a CD presentation which will be working on
local area network(LAN).
So one machine will be having all the variables and other machine will access that.
Thanking you in advance
View Replies !
View Related
Load Variables +URL
I am trying to set a text file and store in it
my URL. now when I tried to use it to go to my url it
will not work !! what am I doing wrong ??
that is how I am doing it.
in data.txt which is int fla directory
&urll=file:///C:/dev/fla
then in my movie frame1
load variables ("file:///C:/dev/data.txt",0)
in frame2
GET URL("urll/index.html")
any idea ????
thanks a million
View Replies !
View Related
Load Variables
thanks for viewing this thread.
i was wondering how to get variables loaded from a previous scene to a current scene. i am trying to gather data from my preloader, such as a name, and use it in my second scene. thanks for the help.
cheers. gray.
View Replies !
View Related
Load Variables From Asp Or Php
i am developing a site which has a username and password.
i have observed that when i load an external text file the file gets cashed into the temporary internet files. A expert who knows flash can go into the temporary internet files and view text file which contains the username and password.
Is there any way that i can load the variables from a ASP or a PHP page.
Typically the ASP or PHP page will read the text file on the server and store the username and password into variables, form which i need to pick up the variables into flash. This way I will be able to avoid cashing of the text file.
View Replies !
View Related
Load Variables In Mc
Ok, please allow me to simplify my previous post.
How about if I just want to load a single text file using the loadVariables actionscript? I've downloaded numerous examples and all I see is said loadVariables script somewhere directly on the stage. I've tried this myself, from inside a mc, but no dice.
I also would like to know if referencing the text file from somewhere other than the directory where the flash file is located can be accomplished via standard directory notation (/directory_name/directory_name/text_file.txt)?
Any help would be appreciated.
-Paul
View Replies !
View Related
LOAD VARIABLES HELP
Hi there!
I have a problem
Im trying to ejecute an ASP page with an id that is a number, like
id = 1
and with this id i´m trying to ejecute a movie with
movie.swf?id=1
When the movie view the id the movie load variables from the file "id.txt" in this case "1.txt"
the problem is that the movie is not loading "1.txt", it is loading ".txt" without see the id value.
Can you help me?
Thank you.
Les
View Replies !
View Related
Load Variables
load variables.....nothing comes back
my button action, the buttons path: _root.sub_menu.main
__________________________________________________ _____
on (press, release) {
_root.textbox.text = "loader...";
loadVariablesNum ("engine.asp?page_type=profil", 0, "POST");
}
__________________________________________________ _____
my engine.asp ... i know that this works fine...)
__________________________________________________ _____
<%
page_type = request.form("page_type")
set conn = server.createobject("adodb.connection")
conn.open "provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("db/data_container.mdb")
sql = "select * from [content] where [type_] = '"& page_type &"'"
set rs = conn.execute(sql)
if not rs.eof then
rs.movefirst
if err.number = 0 then
response.write "text=" & server.urlencode(replace(rs("body_"),vbcrlf,"<br>" & vbcrlf)) & "<br><br><br>" & server.urlencode(rs("head_"))
else
response.write "text=error"
end if
end if
conn.close
set conn = nothing
%>
__________________________________________________ ______
i want to load "text" in to a movieclip placed like this... _root.textbox
can any of you see why my movie doesent grab what it gets from my asp script...
View Replies !
View Related
Load Variables
i have a flash movie in which i want to load vars from a text file on the server.i used the following code
onClipEvent(enterFrame)
{
loadvariablesnum("count.txt",0)
}
the code works fine and i do see counter changing on the flash movie as soon as a new user registers on the site
but in EVERY machine the flash movie slws down to halt in 5 minutes - like there is a lot of pressure on the system
the movie is on the front page of this site
http://www.mahamaza.com
pleasseeeee help!
View Replies !
View Related
Load Variables
I've made a "MasterMovie" where I set a variable. From that movie I'm using
loadMovieNum ("Question 1.swf", 0);
Now I want the variable in the mastermovie to be loaded into the "Question 1.swf".
Is there a command that you could use in the "Question 1" file that will track the variable in the mastermovie and be able to increase it?
I know there is something about sending variables when you use LoadMovieNum, but I don't know how to use it.
I have posted this question before, but I really need help fast!
View Replies !
View Related
Load Ext. Txt Variables In MC
Is it possible to load external txt files as variables in a MC wich is placed on the mainmovie?
If yes, could somebody tell me how to do this?
It's like this:
When pressing a button in the mainmovie, i want a movieclip to startplaying, halfway the timeline of this MC external variables should be loaded in to the MC.
View Replies !
View Related
Variables Load From Url
hi,
it is very simple what i am trying. i want to load 3 vars from the url:
http://anton.iee.tu-clausthal.de/Ver...e=R&p6wert=100
the url output is something like this:
Auftragsnummer=18&Wartezeit=5&Status=erledigt
but the vars remain unchanged.
i copied the output to a txt file to load the vars locally and it works. i only changed the url to the local file no level or target changes and it works .......why ? what did i miss?
thnx for ur help
View Replies !
View Related
Load Variables - Help
Help!
I am trying to integrate Flash with my database with ASP. I have inserted the following actionscript on my button to pass the variable values to my ASP script.
on (release) {
loadVariablesNum ("checkuser.asp", 0, "POST");
}
When I am running it on my browser, sometimes it works and sometime it doesn't. What could be wrong. Also what is the difference if I use loadVariables instead.
Please help.
View Replies !
View Related
Load Variables
I have been looking around for this.
I am useing laodvaribles to upload my variables to a cgi that then writes them to a txt. My problem is I have so many variables that I need to have several cgi scripts to write to because I start getting errors from sending so many variables to one cgi. So what I need to know is there a way of say haveing a button that sends variables x,y,and z then another button that sends a,b, and c variables.
View Replies !
View Related
Load Variables
Ok i need help using variables from txt files.
How can i load variables from txt files in flash. How can i seperate them in the flash movie as there are many values for one variable. How can i write in a txt file from a movie(mind u it means adding on and not making a new variable)
Any thing about loading txt files into flash??
View Replies !
View Related
Can't Load Variables
trying to load variables into an instance of a MC, But I keep getting error saying cannot find variable. Here's my code.
Code:
loadVariables("http://www.wrathmedia.com/uncon/text/updates/updates.txt", _root.submenu);
the text is this
"&updatebox=:: Updatess ::
3.03.2003
Ok, The site is up. Enjoy, and I was told, if I build it, they will Rock....
&updateloaded=ok"
In the submenu there is a dynamic text box called "updatebox"
which should be receiving/displaying the text, but it won't go.
PLEASE HELP!
View Replies !
View Related
Load Variables
Hello everybody.
I need to recieve a list of variables from an asp page and use them in flash.
To be more percise:
in the Database I've got 2 fields: x-cord and y-cord.
I want flash to recieve the data from the asp page
and create for each new record a MovieClip that will be located
on a specipic _X and _Y on the scene.
the X and Y position of the MovieClip are the numbers from the database.
for any kind of help I'll be graetfull
View Replies !
View Related
Load Variables
In a .txt document the & is use for another variable.
In the following exemple:
myVar= this & that value
I want the & to be interpreted by flash like any other caracters... How do i do that?
Thank's for your help!
View Replies !
View Related
Load Variables From Other Url
Hello
I have mc that is loading variables from some file on other url The problem is if I start the mc in flash player the variables are not loaded. If I run html with this flash it loads variables from outside but if I put this online it doesnt load again.
Does anybody know what could be the problem
Thanks
View Replies !
View Related
Load Variables Help
I’m loading variables from a remote “html” in to swf, but when I try to use the value of one variable that I load in to a condition statement it doesn’t work, the action that I’m using is:
loadVariablesNum("file.htm", 0);
and I’m trying to make a condition in where “_root.fecha” (that is an a variable that I’m loading from the “html”) it’s compared with a numeric value, to execute an “tellTarger” action, but it doesn’t work
if (_root.fecha == 1) {
tellTarget ("_root.calendario.fecha01") {
gotoAndStop("off");
}
}
Please help me
View Replies !
View Related
Load Variables Help
ok my issue is im currently trying load text dynamically from a server through flash and i tried everything and from the geturl()
command to loadvariables() command and neither work does anyone know how to properly load dynamic text from a remote server if anyone knows how to do this please help thnx.
View Replies !
View Related
Load Variables
How can to load Variables from other web server.
I have tryed with this AS but doesn't work:
Code:
on (release) {
loadVariablesNum("http://www.myweb.com/mail.php", "0", "POST");
}
Thanks.
View Replies !
View Related
Load Variables
I have made a movie which is supposed to load the values of variables from a URL.
Flash is loading the value of only the 1st variable. How do I make Flash read all the other variables and display their values? Moreover I would like each value to be displayed on a separate line? What changes would it require in the text file and in the code of the movie.
I am attaching the file.
Thanks!
View Replies !
View Related
Load Variables
I've got some problems with loading external (in .txt) variables in variables in actionscript. I tried to initialized a variable x on the timeline and set the target (loadVariables("info.txt", _root.x) on it, but it just shows undefined... The textfiles shows properly "x=here is my text", and it also works in normal textfields.
I'm a pretty noob in actionscript, so what other stuff can I load external during runtime into flash? I know that you can load pictures, variables, sound, but what else?
View Replies !
View Related
[F8] Help Please Load Variables
Hi there,
Could someone please tell me how i send a movieclips position to my server.
I know this is relatively easy using sendVars and loadVars. What code do use to get it to the server?
Any response would make my day.
Jimmy
View Replies !
View Related
Load Variables From MC
Hello, I have three buttons on main scene. When you release the buttons, they set a variable.
Something like this:
on (release) {
gotoAndPlay("info");
active = 1;
}
Then I have an mc in the main scene with buttons and want to set variables from these buttons too.
I have tried with this but it doesn't work:
on (release) {
gotoAndPlay("info2");
_root.active = 2;
}
If someone could help it would be great, thanks in advance.
View Replies !
View Related
Load Variables
hi,
i'm trying to load variables from an external "txt" file.
eg. the file is called "mydata.txt"
loadVariables("mydata.txt", 0);
trace (num);
mydata.txt contains "num=1"
but this method doesn't work. what should i do?
thank you very much
View Replies !
View Related
Load Variables
Hi,
I’m desperatly searching for an answer to my problem, can somebody please help me with this?
I use a flashmovie to display a variable stored into my cgi-bin as a .txt file. From the flashmovie i load it with:
loadVariablesNum ("http://www.mydomain.nl/cgi-bin/pgcount.txt", 0);
This .txt file contains a nr f.e. 100 but when i run the swf online it displays 0 in stead of 100, if i run the movie from my pc using Test movie it displays an error:
Error opening URL "http://www.mydomain.nl/cgi-bin/pgcount.txt"
If i run the same movie but not reading from my cgi-bin but any other folder it works perfect online as well as from my pc using the flash editor > Test movie.
f.e.
loadVariablesNum ("http://www.mydomain.nl/flash/pgcount.txt", 0);
View Replies !
View Related
Load Variables
I will be having an SWF that will be placed right next to two images in a folder. These two images are dropped off by a user and the Flash file won't know the names of these files, but the photos will be tagged as image1 and image2. Do I use a LOAD VARIABLE for this? Eventually I want to give away the location of the Flash file and let the user view the pictures in a particular animated fashion. Please advise... THANKS!
View Replies !
View Related
Using Load Variables Once.
I followed the PHP MYSQL Flash Tutorial and I got it to work with ASP, I wanted to know is there a way in Flash to loadVariables for the entire movie.
Example:
Instead of this On Every Movie Clip:
onClipEvent (load) {
loadVariables("http://localhost/flashdb/send.asp", this, "GET");
}
Is there some way to call the ASP file one Time?
View Replies !
View Related
|