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




Converting Date From Flash To SQL Using Remoting



Does any one know how to keep the Date in the correct format when bringing it from SQL to FLash through remoting. In the SQL table the field is of type date. Then when i send it to flash mx through remoting and try to put it into the Date object it tells me invalid date. I can send it directly to a dynamic text box for display of the record. The problem comes when you edit the record and send it back to SQL through Flash Remoting. The Date field is not in the correct data type for SQL??? Anyone know a way around this?? I am using CF for the remoting.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-16-2002, 03:04 PM


View Complete Forum Thread with Replies

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

Converting Flash Remoting AS2 To AS3
Hello

I was wondering if someone could direct me to some tutorials on Flash Remoting for AS3.

I would like to convert my old AS2 code over but I can't find any information on that.

Does this functionality still exist for AS3?

Adam

Converting A Date Serial Number To A Real Date
I'm reading dates from Excel and I get this type of serial number : 37477. It's actually the number of days since 1-1-1900. Is there a function to convert that directly into a date in Flash ?
Thanks,

Flash Remoting With ColdFusion 8 Date Issue
This is a strange one.

I have a website that displays event data pulled from MSSQL 2005 via ColdFusion 8 and then is rendered in an AS3 flash application via a remoting call. I use a CFC to create an Array to pass data to the flash application.

Here's the weird part. It doesn't seem to matter which browser or version of the flash player you are using but one user will be provided a list of events with the correct start and end date, and then another person on a different PC will get the same event information but with different dates, one day less exactly???? Keep in mind these machines have identical configurations.

I do not understand how this could be happening.

The MSSSQL 2005 field is a datetime field. But this still does not explain that the dates drop one day.

Any assistance here would be great.

Converting A String To A Date
Hi,

I am attempting to create a countdown to a certain date and time, using the servertime as a base so that the time is the same for every person looking at the movie. I am using PHP, i have echoed the server time to the flash movie using



Code:
$currenttime = date("F d, Y H:i:s", time());


this if then taken into flash and displays the time in the format "February 15, 2006 19:30:44". all this is fine, however i then want to increment this time every second and display it, so i believe a setInterval would be required. However the problem is that this servertime taken from php is a string so i dont know where to begin to start updating it every second. Is there some sort of function to convert this variable back into a date object? Any help would be very much appreciated.
Thanks
Aaron

Converting String Into Date
Does anyone have any idea how to take a string that has a date in it and convert it into time with ActionScript. Here is an example of the string for today: "January 23, 2006 5:11:00 AM PST". This will change everyday and is being passed into my flash movie as a parameter but I don’t know how to get Flash to recognize it.

Thanks in advance if anyone can help.

Converting String To Date
I am getting a date as a text string from a feed (Fri, 29 Dec 2006 1:52 pm CST)

I would like to load that in as a real date but I don't think it is formatted correctly.

Can anyone suggest a simple way to convert the string to a date?

Thanks
Mathias

Converting Date To String
Hi:

I don't have an access to Flash at this moment, but I quickly need to show how to convert date value from this format:
  Wednesday 27 July 2005 - 10.10:50
 
to this format:
  20050727

Thanks.
Sammybobo

Converting A Date To A Numerical Formart For Comparison
Hello Guys,

Having problems converting a date (i.e. 12/12/2004) to a numerical format (i.e. 10030430003). Using flash MX 2K4. Flash keeps on returning NaN? Code posted below:


ActionScript:
var my_str = eval(currentColumnVal2);
var my_array:Array = my_str.split("/");
var new_array:Array = new Array();
new_array[0] = my_array[2];
new_array[1] = my_array[1];
new_array[2] = my_array[0];
var tmp_currentColumnDate = new_array.join(",");
var my_date:Date = new Date(tmp_currentColumnDate);
var mynum:Number = my_date.getTime();
trace(mynum); //Will return 'NaN'
trace(tmp_currentColumnDate); //Will return '2004,10,12'
trace(eval(currentColumnVal2));//Will return '12/10/2004'

Any ideas would be greatly appretiated,

Oli

Retriveing Date Variables From Text File/ Converting Strings To Dates
Hi,

I'm trying to read date variables from an external text file. I'm using the LoadVars method and it is working fine for regular string variables. I'm running into trouble trying to convert some of those strings into date variables so I can compare the current date to the targetDateX variable from the text file. I'm working on a countdown timer for a list of different times/dates. It will display the time left until the first event, then after that event the time left until the second event. I'm running the code in a for loop and everything is working except being able to convert the string with format (yyyy,mm,dd,hh,mm) into a date variable- I've attached a sample of where I'm having trouble.

Thanks in advance for any help! :)







Attach Code

var targetDateX:String = "targetDate" + i;
//sets a variable targetDateX equal to the variable targetDate(i) so that you can read it from the text file
var targetDateA:Date = new Date (this[targetDateX]);
//attempting to set it into a date format
trace (this[targetDateX]);
//returns the variable stored with the name targetDate(i) in the text file
trace (targetDateA);
// returns 'Invalid Date'

























Edited: 11/09/2008 at 12:45:04 PM by wyattr1

Suggest A Good Tutorial For CFMX And Flash Remoting Using Remoting Component Classes?
Does anyone know of a good tutorial that will take me through the v2.0 way of utilizing remoting through the Flash Pro remoting component classes (or the RemotingConnector component - either/or)? It seems like the docs are inconsistent in their variable naming from one section to another so its hard to tell what each object placeholders and properties correlate through out the process in their descriptions and examples.

Im thinking a tutorial is more geared to learning this new style than the docs are at this point . . . .

Flash Remoting Weird Issue / I'm New To Remoting
Hello All, I'm new to remoting and I'm having some issues. I started with the Macromedia Tutorial and called HelloWorld.cfc and everything was great. So I started a project and I've got logging in and creating a new user working great but now i'm trying to save some data and i can't get it to work. Basically, if you log in, you are not able to use the 'addscore' function. No errors get returned, but no results get returned either. If you skip the log in, you can add your score just fine. So my question is, do i have to 'reset' something or why won't one function work after a different one has been called?

I know this may be confusing, so as may questions as you need. I really appreciate any help.

Convert RSS2 Date Format To Flash Date() Object
How can I take an RFC 822 (RSS 2) formatted string, and read it into a Flash MX Date() object. Flash does'nt like the format.

I have a function that will break the string apart the long way but is there an easier way to accomplish this - I can't believe flash would'nt have it built in like .NET or ColdFusion.

Thanks!

Aaron

Converting A PDF To A Flash FLA File Without Converting To An Image First?
Basically, I'm building a digital catalogue that runs off a CD and uses a Flash 'page turning component' to display the pages. Certain pages will have links that use Flash's Fscommand call to open Word and Excel documents.

Has anyone got any bright ideas of how to Convert a PDF to a Flash FLA file without converting to an image first?

I know I can open a PDF in Photoshop, save as a PNG or JPG and then import this into Flash, however the quality isn't brilliant. If you use a hi-res image, then you get a hi-res file size...

Currently, the best way I have found, is to open the PDF in Illustrator, then export it as a SWF. Illustrator converts all text to shapes and you end up with a small SWF, yet great quality when displayed in larger sizes. As I'm currently using a page turning flash component that loads SWF files, I need the quality to be good for the 'Zoom' function.

I've found an Illustrator script that will do the hard work via a 'batch' process, so I can take a 100 page PDF and convert the whole lot to 100 SWF files while I drink tea and 'look busy' and read a magazine, but the problem I have is that I need to add a layer of buttons to several of the SWF files to add a little functionality....

I do have a SWF to FLA decompiler which does a good job, however because Illustrator turns everything into shapes, the decompiler does the same and you end up with thousands of files in the library.... Plus there are a lot of error messages when the file is first loaded...

Many layers are masked, (for some reason without a fill), so if you publish the decompiled file straight away, you just get a blank file. Once you go through and fill the masks needed, it shows when you publish, but this really is a lot of work and I've had a few pages that show when you open the SWF file, but don't show when the SWF is called into the page turning file.... Hmmm....

So in short, I'd like to take a PDF and convert it to a FLA file, add a layer of buttons and publish as a SWF file....

Anyone got any 'Pearls of Wisdom'?

Clere
Clere Print

Flash MX: Date To String And Back To Date
Greetings,

Im struggling to (a date which is converted to a string to format date as mm/dd/yyyy hh:mm:ss") transform the string textDate into a Date?

Im looking at mxateFormatter but I dont understand how it works
Any advice and guidance would be appreciated.

Cheers
Rob W



Code:
displaydate = new Date();
var day = displaydate.getDate()>9 ? displaydate.getDate() : "0"+displaydate.getDate();
var month = displaydate.getMonth()+1;
var years = displaydate.getFullYear();

if (month <9)
{
var month = "0"+month;
}

displaydate = (month + "/" + day + "/" + years);

timedisplay = new Date();
var hours = timedisplay.getHours()>9 ? timedisplay.getHours() : "0"+timedisplay.getHours();
var minutes = timedisplay.getMinutes()>9 ? timedisplay.getMinutes() : "0"+timedisplay.getMinutes();
var seconds = timedisplay.getSeconds()>9 ? timedisplay.getSeconds() : "0"+timedisplay.getSeconds();
timedisplay = (hours + ":" + minutes + ":" + seconds);

_root.textDate = (displaydate + " " + timedisplay)

Flash Date And Oracle Date
Is it possible to convert a date being retrieved from an oracle database to the flash Date format in flash so that the different Actionscript date functions can be applied to the retrieved date.

Unable To Load Remoting Classes After Installing AS2 Remoting Components
hi, I have a problem, after i've installed the AS2 Remoting components, I ran a syntax check on the code below and got these messages =>
**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 16: The class 'mx.remoting.Service' could not be loaded.
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 19: The class 'mx.rpc.ResultEvent' could not be loaded.
function onLoginResult(res:ResultEvent){

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 22: The class 'mx.rpc.FaultEvent' could not be loaded.
function onLoginFault(fault:FaultEvent){

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 25: The class 'mx.remoting.Service' could not be loaded.
}

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 16: There is no method with the name 'Service'.
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 25: The class 'mx.rpc.RelayResponder' could not be loaded.
}

**Error** C:Inetpubwwwrootgraciousimageservicescms.as: Line 16: There is no method with the name 'RelayResponder'.
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));
code:
import mx.remoting.Service;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.rpc.FaultEvent;

class cms extends GForm{
private var service;
function cms(){
//start debugger
mx.remoting.debug.NetDebug.initialize();
}
function initUI():Void{
childForms.loginForm.addEventListener("login", this);
}
function login(evtObj:Object){
service = new Service("http://localhost/gi/gateway.php", null, "user", null, new RelayResponder(this, "onLoginResult", "onLoginFault"));
service.verifyUser(evtObj.credentials.UID, evtObj.credentials.Password);
}
function onLoginResult(res:ResultEvent){
trace(res.Name+" "+res.accessLevel);
}
function onLoginFault(fault:FaultEvent){
trace(fault.fault.faultString);
}
}
Basically, I cannot import any of the remoting classes, i looked into the First Run/Classes folder and was unable to locate any of the remoting classes except for the Debug package

The remoting functions work fine with Remoting Version1 but I need to use the forms functionality and I have no idea how to include the version1 remoting scripts into the classes

I've uninstalled the Remoting Components as well as Flash and reinstalled them but the problem persists!!

[F8 & Remoting] Simple Question Dealing With Remoting
Ok I'll post my code and explain, this is using flash remoting and amfphp

main.fla / main.swf

Code:
// ==============================
// SETUP
// ==============================
var rootId:Number = 0;
var itemArrayCall:itemsClass = new itemsClass();
trace (itemArrayCall.getItemsList(rootId));
stop();
itemsClass.as

Code:
// ==============================
// IMPORTS
// ==============================
import mx.remoting.*;
import mx.rpc.*;
import mx.utils.Delegate;
import mx.remoting.debug.NetDebug;
// ==============================
// CLASS CONSTRUCTOR
// ==============================
class itemsClass {
// Gateway
private var gatewayUrl:String = "http://xfuzion.local/%7Exfuzion/finalproject/flashservices/amfphp/gateway.php";
// Service
private var service:Service;
// == SETUP FUNCTION
function itemsClass() {
NetDebug.initialize();
this.service = new Service(this.gatewayUrl, null, "itemsClass");
}
// == getItemsList FUNCTION
function getItemsList(rootId) {
var pc:PendingCall = service.getItemsList(rootId);
pc.responder = new RelayResponder(this, "handleGetItemsList", "handleRemotingError");
return "It will return these values but will not initialize the net debugger AT all or anything";
}
// == RESULT HANDLER FUNCTION
function handleGetItemsList(re:ResultEvent) {
return "it worked";
}
// == ERROR HANDLER FUNCTION
function handleRemotingError(fault:FaultEvent):Void {
NetDebug.trace({level:"None", message:"Error: "+fault.fault.faultstring});
}
}
My problem is the fact the class works, everything works inside of it EXCEPT the remoting. It wont even initialize or run the NetDebug and it's bugging me because I have no way to debug this because of it.

Any help on why it isn't transfering or whatever would be very useful.

I get NO output errors at all, so all the MX components are on the stage correctly and amfphp is set up perfectly fine ( this whole thing works fine if I use it inline rather than class ).

Thanks!

No Remoting Template After Installing Remoting
I installed Remoting for Flash yesterday and am a Certified Dummy in this area. I have only had ColdFusion installed for a few days now and in study using Ben Forta & Raymond Camden's Macromedia book "ColdFusion MX7 - Web Application Construction Kit, chapter 26 addresses Flash Remoting using Flash MX 2004. I have Flash 8 (and all of Studio 8). I downloaded and installed Flash Remoting and it showed up on my "Add-Remove Software" as a separate program, successfully installed. The book tells me to start Flash and choose File>New from Template and select Remoting. It is not there and I don't know how to generate it. I am sure this is a simple step for many of you.
Would you please help me? I have made it to chapter 26 in this book and made most of the coldfusion pages work so far, but I can't get past this without Flash Remoting.
Thanks ahead of time,
Mike

Display Future Date (seven Days From Today's Current Date)
I understand how to display today's current date, but how would I display the date seven days from now? For example, if today's date is 4/29/2003, I want to display 5/5/2003.

Anyone done this before?

Thanks in advance.

Scott

Date Specific Content/dynamic Text/Get Date
Hello,
I am trying to build a page where there is Date specific content, i.e. after a certain date the information becomes obsolete and will need to be replaced with new information.
Does anyone have any idea how I can go about doing this?
Thanks,
Kris

Comapreing A Datefield Selected Date To Current Date
i have a made a small swf which checks the seleted date on the datefield component is passed current date or not...

i have a function get the day associated with it...

stop();
function getDayName(num) {
switch (num) {
case 0 :
return "Sunday";
break;
case 1 :
return "Monday";
break;
case 2 :
return "Tuesday";
break;
case 3 :
return "Wednesday";
break;
case 4 :
return "Thursday";
break;
case 5 :
return "Friday";
break;
case 6 :
return "Saturday";
break;
}
}
today = new Date();
today = getDayName(today.getDay())+" "+today.getMonth()+" "+today.getDate()+" 00:00:00 GMT+06000 "+today.getFullYear();

on relese event of the button...

dateField is named - arr_date

on (release) {

_global.selday = _root.arr_date.selectedDate;


_global.selday2 = getDayName(_global.selday.getDay())+" "+_global.selday.getMonth()+" "+_global.selday.getDate()+" 00:00:00 GMT+06000 "+_global.selday.getFullYear();

res = (selday2<today);
_root.dis = res;
}

the thing is sometimes res says "TRUE" for future dates also.

download fla here
can anyone help on this.

Thanks

Display Date And Day With Computing Three Days From The Date With Certain Restriction
Hi

i have a code that display date and day from your local machine.
Here it is:
================================================== ===========
function howlong(arg) {
if (length(arg) == 1) {
arg = "0"+arg;
return arg;
} else {
arg = arg;
return arg;
}
}
myDate = new Date();
//hr = howlong(String(myDate.getHours()));
//mnt = howlong(String(myDate.getMinutes()));
daytext = myDate.getDay();
//daytext = daytext+3;
dd = myDate.getDate();
//dd = dd+3;
mm = myDate.getMonth();
//yyyy = myDate.getFullYear();
switch (daytext) {
case 0 :
daytext = "Sunday";
break;
case 1 :
daytext = "Monday";
break;
case 2 :
daytext = "Tuesday";
break;
case 3 :
daytext = "Wednesday";
break;
case 4 :
daytext = "Thursday";
break;
case 5 :
daytext = "Friday";
break;
case 6 :
daytext = "Saturday";
break;
}

switch (mm) {
case 0 :
mm = "Jan";
break;
case 1 :
mm = "Feb";
break;
case 2 :
mm = "Mar";
break;
case 3 :
mm = "Apr";
break;
case 4 :
mm = "May";
break;
case 5 :
mm = "Jun";
break;
case 6 :
mm = "Jul";
break;
case 7 :
mm = "Aug";
break;
case 8 :
mm = "Sep";
break;
case 9 :
mm = "Oct";
break;
case 10 :
mm = "Nov";
break;
case 11 :
mm = "Dec";
break;
}

textdate = (daytext+", "+mm+". "+dd+".");
================================================== ===========

Now problem is it should compute three days from that date with certain restrictions like (dont count Saturday and Sunday, Dec 25th, Nov, 22nd, Jan 1st)...

I have to display the date based on the above rules..

plz help

Thanks
maxarindam

DATE() Reads Date From Server Or User?
2 questions about DATE() function:

1º The value is taken from the date setted on the server or the user machine?

2º How do i break apart the value to check each value? I mean, day, month, etc.

Im working on a quiz that has to display a different question every 15 days. Im loading them from a TXT. I´m missing that part of the code.

Thanks for any help.

Bad Data From Date.getDay() And Date.getMonth()
I am trying to utilize the Date class to retrieve the current date, and populate fields for each date part. However, the day and month returned from either the day/month properties or the getDay()/getMonth() methods are incorrect: today is 4/11/2008, yet I get back a month of 3 and a day of 5!

Here is the relevant code:

var curDate:Date=new Date();
NewProjectStartMonthField.text=String(curDate.getMonth());
NewProjectStartDayField.text=String(curDate.getDay());
NewProjectStartYearField.text=String(curDate.fullYear);

Figuring Out A Previous Date With Date Class
I have a need to allow people to choose a date range in my application. I can't figure out how to format a dat that is say 30 days prior to today.


For instance:

var Today_Date = new Date();
var Proior_Date = Toay_Date - newDate(30);

Comparing Current Date With Date String
Im loading in a date from a database and storing it in a string called dateToCheck. The dates I am loading in from my datebase could be anything so I want to check if its past, present or future but as its a string and not a date when I compare to the current date it doesn't seem to work.

Im storing the current date in actions script like this


var today_dateate = new Date();
var date_str:String = (today_date.getDate()+"/"+(today_date.getMonth()+1)+"/"+today_date.getFullYear());


Do I need to convert the value date value Im loading from my database into a proper date before I can check it agains the current date? If so is there any easy way of doing it.

Thanks

Flash Remoting
G'Day all,

Everytihing I read tells me that I need Cold Fusion MX to be able to use web services however I'm not convinced. Does anyone have a real life example of Flash Remoting to a web service that does not use Cold Fusion? and if so can they give me a few pointers?

Flash Remoting & Ado.net
Hi, As Im wanted to learn more about using serverside scripting with flash, and found out about the "flash remoting" and dreamweaver mx, I installed dreamweaver mx. So I opend the tute called "Introduction to Flash Remoting for .NET Tutorial > Creating the ADO.NET data binding", and it all looks very simple and practic. But what I dont understand is the database connection thing. As it appears ,I dont see any database files that the "asp.net" saves the data to. My previos and first attempt in serverside scripting was writing and reading to and from an Acces database trou asp and flash. This is the first time I hear about this "asp.net" thing, so I wonder if anyone can make it clear for me about how it works, and what files are included. Does it make flash store and read data to a singel asp file?

Flash Remoting
Must I upgrade my Coldfusion server to MX before I can use flash remoting? I just bought ColdFusion 5 for one or two months only. Can I integrate with coldfusion 5 instead and how do i do it?

Flash Remoting For .net
I have used flash remoting for coldfusion and it is a really cool tool, but I cannot believe they are charging almost a thousand dollers for the .net version??? and you have to install a dll on the server which sucks!,

I wrote an app that will query a database in flash using asp, and it's not that much slower than using flash remoting for .net. in fact I would much rather take a small speed decrease, than have to install a $1000 DLL????

what is everyone elses thoughts on this?

What Is Flash Remoting MX?
Hello Flash Gurus.

I am evaluating Flash Remoting Technology and I am thoroughly confused about what exactly Macromedia is selling in the package "Flash Remoting MX" which costs nearly $1000.

I download the 'free trial' and I get a 6 meg WAR file (after install) with docs, examples, and Flash Player. Can this really be what comes in that giant box for $1000? No Flash MX included? No JRun? How come I can download 'Flash Remoting Components' totally free? How does that differ from 'Flash Remoting MX'???

I am very confused and would appreciate someone clearing the confusion. Thanks!
-E

Flash Remoting ---HELP
Hi,

Where can i download flashgateway.jar? I know macromedia have package this file on their JRUN 4 product but i only need this file to run my j2ee apps deployed in apache server...anyone have this jar file kindly send it to me.

thanks,
mutant

About Flash Remoting
whats the difference between the flash remoting evaluation and flash remoting full version ?

thanks!

Flash Remoting
Hello, im having a few problems when i try to connect to a database by using flash remoting . This is what my NetConnection Debugger says.
Any ideas are gonna be a help.


MethodName: "/1/onStatus"
ResponseURI: (undefined)
Parameters (object #2)
.....code: "SERVER.PROCESSING"
.....description: "Could not find installable ISAM."
.....details: " at FlashGateway.Delegates.LibraryServiceAdapter.Invok eService(ActionContext action)
at FlashGateway.Delegates.ServiceCommander.InvokeAdap ter(ActionContext flashContext)
at FlashGateway.Delegates.ServiceFilter.preInvoke(Act ionContext flashContext)"
.....level: "error"
.....type: "System.Data.OleDb.OleDbException"

Flash Remoting MX
Where can I download The trial version of Flash Remoting MX other than at Macromedia? I'm trying to sign in at the macromedia site,
without succes. (They use Flash remoting for that ironically)

thxs

Help With Flash Remoting.
Hello,
I'm having trouble with flash remoting. Specifically with integrating flash, php and my SQL. Ok so flash uses php to get data from mysql and it returns the data to flash. Now I can get this to work just fine when all three are called from the same server. But what I want to do is serve the swf document off of my schools website and have it access mysql from my laptop. For the life of me I can't get it to work. I've been trying multible ways and even used different remoting addons. I am able to Run a php page from my school account that access' my laptop but when I add a flash front end to it, no data appears.

Please help

Flash Remoting And .Net
Hi

can anyone tell me about using Flash Remoting with .Net? My boss and I have both been researching Flash Remoting with mind to purchasing a copy, but she seems to think that it is used mainly with .Net (which we haven't upgraded to yet). My impressions from what I've read is that it can be used to integrate flash with a number of web technologies including j2ee, asp and xml based soap services, is the emphasis in integrating it with .Net, or is this a myth?

Also, is it possible to use it to directly intergrate a flash movie with a SQL database using remoting? I read somewhere that this is only possible using the firefly components, is this right?

Thanks

Flash Remoting
I have a website at www.theselfpromoter.com. This website uses coldfusion and flash remoting components. If you go to the contact form and then go to the search database feature (randomizer) data will not be retreived from the database. However if you close the website out then go to the search database feature all the data gets retrieved, but if you send me an e-mail through the contact page I won't recieve it. Any suggestions? By the way, both pages use the #include NetServices.as and #include NetDebugger.as.

Flash Remoting(help)
Hi,

I'm new to Remoting... I've just finished the site where I'm using Flash Remoting for accesing a database. Strange thing that it works on my computer when I run it on my local ColdFusion server and does not work when I publish the site. Here is the code that I think is creating a problem:

#include "NetServices.as"
if (inited == null) {
inited = true;
NetServices.setDefaultGatewayURL("http://www.urbanlc.com/flashservices/gateway");
gateway_conn = NetServices.createGatewayConnection();
myService = gateway_conn.getService("http://www.urbanlc.com/html", this);
}

On my machine it runs just fine and does what it should. However, on my machine the domain name is changed to "UrbanProductions"(the site folder that sits in wwwroot of my server), so the same code looks like this:

#include "NetServices.as"
if (inited == null) {
inited = true;
NetServices.setDefaultGatewayURL("http://localhost:8500/flashservices/gateway");
gateway_conn = NetServices.createGatewayConnection();
myService = gateway_conn.getService("UrbanProductions/html", this);
}

If anyone had the same problem before or knows what I'm doing wrong, please help b/c I'm running out of ideas.

Thanks for your time,
Peter

HELP - Flash Remoting
Ok I am starting the whole java flash remoting thing. I have the remoting components, jrun4, and flashmx04.

So I got flash talking to java but i dont know how to send variables to java? I thought:

flashconnection.javaFunction(var_to_send);

would work, but it doesnt. I am trying to change a variable that is declared in the java class, why wont this work?

Flash Remoting
Hello everyone,

well, i am burned out, tired, and well frustrated to the max.

i have been reading so much on actionscript 2.0 and flash remoting. so far what i have found out is that there are several ways to communicate to a mysql database using flash.

1. flash remoting w/actionscript 1.0
2. flash remoting w/actionscript 2.0
3. flash remoting w/flash components
4. amfphp
5. plenty more

i am so confused, that i no longer know which way is up or down. i have successfully installed XAMPP and tested amfphp's gateway. the Flash debugger says everything is cool.

but, i am still at a lost. what i would like to find is someone who can help me do the following with the very least amount of code and explanation (i am not sure if my brain can handle much more input ).

i have:
1. several flash buttons
2. datagrid component w/dataprovider

i would like to have:
1. my flash button prompt me for a number
2. go to mysql database & retrive a record (one row of information)
3. assign information to my dataprovider
4. display the information in my datagrid

wow, this seems simple, but boy oh boy is there alot of info out there.

thx in advance
Hector

Flash Remoting
Hello all! I am very new to actionscript so I need some desperate help. What i trying to do is this. I want to pull records from a database for which I am doing successfully using flash remting. My problem is this. I want to loop over those records in flash and display one record at a time every 30 seconds. I want the data to fade in, display for 30 seconds and then fade out then so on and so on. Then when all records have been shown...start over again. ANyone who can help with this code would save my butt. Thanks in advance!

Flash Remoting
HEllo,
How can we get data from database using web service and show it in Flash.
I wanted to check conditions and show data accordingly.

Flash Remoting
Hi,

I have recently changed a portion our existing application from sendAndload to flash remoting. Now when the CF server is getting started only a portion of the data to be loaded( data from some of the tables are getting omitted), will get loaded to the flash screen. If I cancel the screen and load again I will get the full data. Can any one help?
Imran Hashmi
www.visionstudio.co.uk
www.seo-professional.co.uk 0044-7969012441

How Do I Get Flash Remoting
hey does any one know any way how i can get flash remoting on my server
i'm intrested in using it

thanks

Flash Remoting With ASP.NET
Greetings all.

I am attempting to evaluate Flash Remoting with MX2004 and I am having a problem.

My application works fine as long as the URL for my connection gateway uses LocalHost.

When I put in the computer name I get a NetConnection.Call.Badversion error in the NetConnection Debugger.

Can anyone help me?

Flash MX 2004 Professional
Flash MX 2004 Remoting Components (unlicensed)

Flash Remoting
erhm.. since you guys don't have a Flash Remoting section I couldn't find any better place to fit this Q..

I've been doing some experiments with Flash Remoting today and got into a dead-end..

to shorten the problem as much is possible - I have a php-class with a method "retrieveJPEGInfo" which receives a variable $file from Flash... and that method is supposed to return an array with data such as Author, Title and Comments (the same stuff you can set/read by right-clicking a jpeg). I'm using exif_read_data to retrieve all data found in the jpeg file.. after that I sort the needed data out into variables:

PHP Code:



$exif_data = exif_read_data($file, 0, true); 
$title = $exif_data["IFD0"]["Title"]; 
$author = $exif_data["IDF0"]["Author"]; 
$comment = $exif_data["IFD0"]["Comments"]; 




this *is* working just fine coz when I create another php file in the same directory and echo these variables they show the exact same values as I have in my jpeg.

the problem is coming when I return these variables back to Flash.. I'm only getting the first letter in the variable.. so if my comment in the jpeg is "My dog" I'm only getting "M" as a return-value.. (but it is showing "My dog" when I test it with my debug-php-file)

any ideas what I'm doing wrong?

ty,
Alex

Flash Remoting .Net
anyone have resource of tutorials regarding Flash Remoting.Net ?

What Is Flash Remoting?
I've been reading the docs at Adobe and I can't figure out what Flash Remoting would do to better my Flash applications. In fact, I can't tell what it is really.

I usually store everything in MySQL and use PHP scripts with LoadVars() objects to get data in and out of Flash. This works fine for my RIAs.

How can Flash Remoting change this for the better and what am I not seeing about this technology? Please help, thanks.

Oh and don't be afraid to go into detail, I really want to understand this. Give examples, give benchmarks, give anything. Thanks again.

Selfminded

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