Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Problems Retriving Value From Asp



Hi,

I want to retrive a value from an asp file. The value should be used in displaying the correct path to different folders containing images.

In Flash I've tried this and it works:
thePics = "images/west/";
this.pathToPics = (thePics); //this is the path to my image folder west the picture is displayed automaticaly

My problems starts when i want to retrive the path (images/west/) from my asp file. Even if I am able to retrive the correct value flash don't display the image. I want to send the value from thePics into my flash file.

My asp file:
<% Response.Write "thePics=/images/dragar/" %>
Which gives the output: thePics=/images/dragar/

My flash file:
this.loadVariables("test.asp");
this.pathToPics = (thePics); //Here is where I want my asp value, the path to the images, but it doesn't work. No images are being displayed.

Could there be something wrong with the way I'm sending the asp value to flash?



Ultrashock Forums > Flash > ActionScript
Posted on: 2004-06-16


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Retriving Data
i know how to pass data from flash, through PHP to MySQL.

but what about the reverse, how to do it?

Retriving ULR Vairalbes
i pass variables via URL , the code is below, ... In the URL loaded movie clip, i try to use the variable tempcounter by referncing it like this...

_root.totalImages = _global.tempcounter;

that is not workigng even though i pass tempcounter with my loadvars method, can you tell me what i am doing wrong?

var targetWindow = "_blank";
frmPost2 = new LoadVars();
frmPost2.tempcounter = '1';
frmPost2.image = curr_item_image1;
frmPost2.url = "http://localhost:8500/trunkshow/SpinnerMX/objectViewerHolder.swf";
//LoadVars() send method -- targetWindow needs to be defined in your movie somewhere
frmPost2.send(frmPost.url, targetWindow, "POST");

Retriving Variables From Function
I'm having trouble retriving variables from a setInterval function that lies in my main timeline. This function updates my clock every tenth of a second. I want to retrieve the variable in a movieclip when the movieclip is pressed. My trace on the variable keeps comming up as "undefined". What is the proper way to retrive variables from a _parent function?

Problems Retriving Value From Asp File
Hi,

I want to retrive a value from an asp file. The value should be used in displaying the correct path to different folders containing images.

In Flash I've tried this and it works:
thePics = "images/west/";
this.pathToPics = (thePics); //this is the path to my image folder west the picture is displayed automaticaly

My problems starts when i want to retrive the path (images/west/) from my asp file. Even if I am able to retrive the correct value flash don't display the image. I want to send the value from thePics into my flash file.

My asp file:
<% Response.Write "thePics=/images/dragar/" %>
Which gives the output: thePics=/images/dragar/

My flash file:
this.loadVariables("test.asp");
this.pathToPics = (thePics); //Here is where I want my asp value, the path to the images, but it doesn't work. No images are being displayed.

Could there be something wrong with the way I'm sending the asp value to flash?

Retriving Number From A Html Link
hello,

I have a link like this.

<a href="flashmovie.swf">Flash Version</a>


I want to send a number to the flash movie when the user press the link.


maybe something like flashmovie.swf?number=12345


Is this the right way??

Regards

Godowsky

Save Information And Retriving Using Shared Object
i need to save some information in a shared object.
Example : User's id , address and telephone.
I also need to do a login , using the user id as verification, in order to retrieve the datas stored in a shared object.
Can anyone tell me how is it possible to do that ? maybe guide me with
some logics?
cos currently i am having problem as i have a few users, and my shared object stores only 1 user's datas.
pls help~ thanks a lot~

Retriving A Clips Instance Name On Mouse Rollover
Hey all,

I'm working on board game which involved dragging different coloured squares onto an 8x8 square grid. I can't seem to figure out how to get the squares to drop onto whichever square the mouse releases it on.

Is there a way to retrieve the instance name of any objects on the stage that the mouse rolls over?

Thanks!

Save Information And Retriving Using Shared Object
i need to save some information in a shared object.
Example : User's id , address and telephone.
I also need to do a login , using the user id as verification, in order to retrieve the datas stored in a shared object.
Can anyone tell me how is it possible to do that ? maybe guide me with
some logics?
cos currently i am having problem as i have a few users, and my shared object stores only 1 user's datas.
pls help~ thanks a lot~

Saving And Retriving The Movieclips Developed In Flash MX 2004
In coloring package, saving colored movieclips and retriving the same.
Kindly suggest me appropriate logic to achive this task.

Saving And Retriving The Movieclips Developed In Flash MX 2004
In coloring package, saving colored movieclips and retriving the same.
Kindly suggest me appropriate logic to achive this task.

Retriving The "real" Time ?
Ok another quick and simple one here , im not sure if i need a server side script for this but i have a simple digital flash clock its set from whatever the user has his time/date set as .

Im looking for a way to compare the users time to the GMT and discover the users timezone so i can plot it

http://i17.tinypic.com/5zfn2i0.jpg

any ideas ?

Prb Abt Retriving From An Asp File Into Flash File
Hi,

can anybody tell me wat has changed in MX2004, with refrence to reciving variable values from asp to flash

Previous when i was using MX this asp code was working:

<%
dim cont
cont= cont + 2
Response.Write "cant="&cont
%>

Please help wat should i Change in this code or should i changeany code inside the fla file, the fla code is has follows
myAsp = new LoadVars();
myAsp.load("test1.asp", myAsp);
myAsp.onLoad = function(success) {
if (success) {
trace("conected"+myAsp.cant);
val_txt.text = myAsp.cant;

} else {
trace("not connected");
}
};

Copyright © 2005-08 www.BigResource.com, All rights reserved