Php - Data - Flash
Hi all,
this is my first post I'm a newbee teaching myself, so i hope
I'm Clear
I have No problems inserting data from flash to PHP into
MySQL,
it's sendind them back properlly.
All I'd like to see happen is for one row of data to be
inserted into a dynamic text field.
here's what i've got
if i access this php file, it prints out a vertical list from
a single MySQL row,
I was happy.
$query = "select row from table";
$result = mysql_query($query, $db);
while($row = mysql_fetch_row($result))
print "$row[0]<BR>\n";
From flash :
I created a dynamic text field w/ an instance, my_to.
var lv:LoadVars = new LoadVars();
lv.load ("data.php");
lv.onLoad = function(){
my_to.text = lv;
and Instead of the vertical list (which i would love to see)
i get an unparsed data array.
I can't imagine i'm to far off,
what am I missing?
I hope not alot
Alex
You should use amfphp. It's flash remoting with php. It's
much cleaner integration.
http://www.amfphp.org
Otherwise, to use loadvars, you have to export your data from
php like this: "name1=$row[0]&name2=$row[1]..."
then in flash use: lv.name1 will equal $row[0]
Similar Messages
-
Tutorial: Flash Builder 4 beta 2 and PHP Data/Services for beginners
Hi fellas,
I've written this tutorial for total beginners to get quickly to FB4 and PHP. Comments welcome
Flash Builder 4 and PHP Data/Services for beginners
http://www.flashrealtime.com/flash-builder-4-and-php-data-services/Hi,
The first issue will be the pathing differences between wamp/mamp/xampp, some use www as root others htdoc you need to setup the php services on your local machine rather than importing a project.
The created services will have a connection array declared at the top of the code that points to the mysql server, in the project default debug folder you will have the config file that has the zend and webserver path
top of service file
============
var $username = "root";
var $password = "";
var $server = "localhost";
var $port = "3306";
var $databasename = "zend";
var $tablename = "clients";
var $connection;
amfconfig.ini
=========
[zend]
;set the absolute location path of webroot directory, example:
;Windows: C:\apache\www
;MAC/UNIX: /user/apache/www
webroot =C:/wamp/www
;set the absolute location path of zend installation directory, example:
;Windows: C:\apache\PHPFrameworks\ZendFramework\library
;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
;zend_path =
[zendamf]
amf.production = false
amf.directories[]=Zender-debug/services
In your main project folder you have a .model folder the file there is an *.fml file that contains your channel endpoints etc.
David. -
Flash Builder 4.5 Auto-Gen Code For PHP Data Service Produces Errors
Hello
I'm currently running a fresh install of MAMP on my Mac and when I start a new flex project, add a php data service that pulls from a mysql database I have. Everything works fine until I try to compile. The error I'm getting is 'uid' being the primary key which is a bigint(20). The file _Super_Users.as (auto-gen based on the user table below) reports 2 errors: [Managed] requires uid to be of type 'String'. (same error on 2 lines of code) Now the MySQL table wants it to be a int, the auto gen code seems to want it to be an int as well but for some reason its putting in these requires for String on the getter and setters for 'uid'. The is before I even add any of my own code, just auto-gen then compile.
* data/source property getters
[Bindable(event="propertyChange")]
public function get uid() : int /*error line*/
return _internal_uid;
* data/source property setters
public function set uid(value:int) : void /*error line*/
var oldValue:int = _internal_uid;
if (oldValue !== value)
_internal_uid = value;
This is what my database looks when I export it:
CREATE TABLE `users` (
`uid` bigint(20) unsigned NOT NULL,
`name` varchar(150) NOT NULL,
`first_name` varchar(50) NOT NULL,
`middle_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL,
`gender` tinyint(1) NOT NULL,
`locale` varchar(5) NOT NULL,
`link` varchar(255) NOT NULL,
`username` varchar(50) NOT NULL,
`email` varchar(255) NOT NULL,
`picture` varchar(255) NOT NULL,
`friends` text NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
It's empty right now...
Apache 2.0.64
MySQL 5.5.9
PHP 5.2.17 & 5.3.5
APC 3.1.7
eAccelerator 0.9.6.1
XCache 1.2.2 & 1.3.1
phpMyAdmin 3.3.9.2
Zend Optimizer 3.3.9
SQLiteManager 1.2.4
Freetype 2.4.4
t1lib 5.1.2
curl 7.21.3
jpeg 8c
libpng-1.5.0
gd 2.0.34
libxml 2.7.6
libxslt 1.1.26
gettext 0.18.1.1
libidn 1.17
iconv 1.13
mcrypt 2.5.8
YAZ 4.0.1 & PHP/YAZ 1.0.14
I tried to give as much info as possible, if you need more let me know...I discovered my problem was uid seems to be a built in global or something and was filling in that data field with a bunch of letters and number, like the device id. Because of the letters flex was throwing a fit. So if you're using Facebook API in flex be sure to not go with uid for the user id, which is was facebook api calls it.
-
Problems on Windows 7 Professional 64 with PHP data service
I've created a data service using PHP in a PHP Eclipse project and I'm trying to connect to it from my new Flash project. When I try to create a custom data type via the Configure Return Type dialog, "Auto detect the return type from sample data" radio button, I get the following error:
There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
Reason:
Warning: mysqli::mysqli() [mysqli.mysqli]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10061) in C:\Users\davidk\workspace\php-global-includes\mysqlAccess.inc.php on line 11
/0/onStatusÿÿÿÿ �SIflex.messaging.messages.ErrorMessage extendedData faultCode faultDetail faultString rootCause correlationId clientId destination messageId timestamp timeToLive headers body „m …a#0 C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(550): Zend_Amf_Server->_dispatch('getProductVersi...', Array, 'GetPlayData')#1 C:\Zend\ZendServer\share\ZendFramework\library\Zend\Amf\Server.php(626): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))#2 C:\Zend\Apache2\htdocs\play-debug\gateway.php(69): Zend_Amf_Server->handle()#3 {main} ‚UError instantiating class GetPlayData to invoke method getProductVersions: Error connecting to database server as user via password configured in config_cdna_testdb.php IE83D9958-920E-E203-54BC-E5365BD85289 I5496259E-8C36-AC89-E234-00000D37FD49 I7E8A1BD7-9D60-9329-DBFB-00001B5BE8C7 126823334100
Note that I've tested the GetPlayData class and the getProductVersions() method with some simple "unit testing" code and it works fine when I execute it directly. It just won't run when called from this dialog.
I tried to debug the gateway.php process that is used to do this connecting without much success so far.
Is Windows 7 supported for PHP data service development in this beta release? I'm using Version 4.0 build 253292One more clue: the message from the exception shows that the global variables I'm using to configure the MySQL connection parameters are not set somehow. Maybe I need to upgrade my Zend Framework?
Nope. I upgraded to the latest Zend Framework and it still did not work. The global variables are not working. When I hard coded the connection parameters into the constructor of the GetPlayData class, then it worked fine. I just switched to using define() to create constants instead of using the globals and that worked, too.
It is as if globals set in one include file are not available in another include file. I agree that using them might be a bad programming practice of sorts, but it seems wrong to disallow / not support something that is part of the core language!
So, I don't know if this is a Windows 7 thing or just a general behavior. Globals within the same file seem to work fine still, but not from another include file.
So the answer for me is to not use these cross-include file globals in code that is going to be used from Flash Builder. -
Using PHP Data Services to create an object and accessing that objects data in an unbound way in AS
Hello,
I've been able to use the php data services and bind the results of a function to a component. However I am having a hard time figuring out the syntax to use the data services to create an object out of the results, and then use that object as an array of filenames to provide the current index of the filename to a new sound object.
My problem is obviously in not being able to figure out the specific syntax, I have declared the service and and object of the services returned type and in the creationComplete() function I have assigned object.token = service.getData();
I've tried various ways of then pulling that data out of the object, with no success.
Can someone point me in the right direction?
This code probably looks horrible because it doesn't work yet.
- Joel
import flash.media.Sound;
import flash.media.SoundChannel;
import mx.controls.Alert;
var playing:Sound = new Sound();
var channel:SoundChannel = new SoundChannel();
var sndIndex:int=0;
var skpTr:String;
public function init():void{
mp3Array.token = mp3service.getData();
currentTrack(mp3Array.lastResult.filename);
trace(mp3Array.lastResult.filename[sndIndex]);
public function currentTrack(t:String):void{
playing = new Sound();
playing.load(new URLRequest("mp3/" +t));
public function skip():void{
stop();
if (sndIndex != mp3Array.lastResult.length-1){
sndIndex++;
var skipTr:String=mp3Array.lastResult.filename[sndIndex].data;
currentTrack(skipTr);
play();
} else {
sndIndex=0;
skipTr=mp3Array.lastResult.filename[sndIndex].data;
currentTrack(skipTr);
play();
public function stop():void{
channel.stop();
public function play():void{
channel = playing.play();
<fx:Declarations>
<s:CallResponder id="mp3Array"/>
<mp3services:Mp3Service id="mp3service" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>Hello Joel;
In retrieving your data - what is your php returning to FB, an object, object array, an array? Either way, I have a brief example below that an object(s) is being returned. Pull the data from the lastResult in a ResultEvent. The object instantiated in the resultEvent will contain your data and you can do what you want from there.
Also, I always use Network Monitor to see what data (if any) is being returned from the server, you can also see how it is being sent back.
John
private function init():void
mp3Array.token = mp3service.getData();
mp3Array.addEventListener(FaultEvent.FAULT, faultHandler);
mp3Array.addEventListener(ResultEvent.RESULT, mp3Array_resultHandler);
protected function faultHandler(event:FaultEvent):void
Alert.show("There was a fault error!" + event.message, "Fault Error", Alert.OK);
protected function mp3Array_resultHandler(event:ResultEvent):void
// Not sure if your service is sending back an object or an array or ?
var info:Object = mp3Array.lastResult;
doSomeFunction(info)
protected function doSomeFunction(data:Object):void
trace(info.filename); -
When opening in filled PDF form, the data flashes and then blanks. Adobe Reader XI
When opening in filled PDF form, the data flashes and then blanks. Adobe Reader XI
I filled in this form with important data. And saved it. I have since opened it and printed it again. Now when I open it the fields become blank I can see them for a split second as it clears them.
I believe I have updated to Reader XI since I filled it in.Hi Pat,
Are you using Adobe Reader XI? And not Acrobat. It does not ask me to save the form if there are unsaved changes.
I have used previous versions of reader for saving this form data and it did allow me to save it with ctrl+s. And those versions did prompt me to save the changes before closing.
I guess I should not have updated the reader. -
Users fill out my form that is embedded in a php page in which they are logged in.
Is there a way to automatically insert a "php data" (e.g. email) in the 'email' field of the form?
Otherwise, the "php data" can be in some way included in the reponse, in order to avoid the user to fill again the email field?
Thanks, DavideThis is functionality that is not supported.
-
Chart Flash Chart error: ORA-20001: Print Chart Data: Flash Chart error: OR
Hi,
if the query where my resource gantt chart is based on returns more the 107 rows, i will get the following error:
chart Flash Chart error: ORA-20001: Print Chart Data: Flash Chart error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If i reduce the number of results, the chart is working fine.
Max rows attribute of the series is adjusted to 4000
Any idea?
Thank youThank you,
I have tried it, but it I am not able to make it work, here you find a snip of my pagesource:
<anygantt> <resource_chart>
<resources>
<resource id="341" name="Drexler, Franz" />
<resource id="5" name="Gross, Johannes-Ludwig" />
<resource id="8" name="Pecherski, Andrzej" />
<resource id="131" name="Steinmetz, Raphael" />
<resource id="191" name="Jenks, Raymond" />
<resource id="33" name="Alhambra, Roda Marie" />
<resource id="31" name="Daminescu, Adrian" />
</resources>
<periods>
<period resource_id= "31" start="24-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="27-DEC-12 12.00.00.000000000 AM" end="28-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-JAN-13 12.00.00.000000000 AM" end="04-JAN-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="26-JAN-13 12.00.00.000000000 AM" end="04-FEB-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="01-JAN-13 12.00.00.000000000 AM" end="06-JAN-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="22-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="21-DEC-12 12.00.00.000000000 AM" end="31-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "31" start="07-JAN-13 12.00.00.000000000 AM" end="11-JAN-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="21-DEC-12 12.00.00.000000000 AM" end="21-DEC-12 12.00.00.000000000 AM" style="blue" />
<period resource_id= "33" start="26-DEC-12 12.00.00.000000000 AM" end="28-DEC-12 12.00.00.000000000 AM" style="green" />
<period resource_id= "33" start="25-FEB-13 12.00.00.000000000 AM" end="25-FEB-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="28-MAR-13 12.00.00.000000000 AM" end="29-MAR-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="09-APR-13 12.00.00.000000000 AM" end="09-APR-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="01-MAY-13 12.00.00.000000000 AM" end="01-MAY-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="12-JUN-13 12.00.00.000000000 AM" end="12-JUN-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="26-AUG-13 12.00.00.000000000 AM" end="26-AUG-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="01-NOV-13 12.00.00.000000000 AM" end="01-NOV-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="30-DEC-13 12.00.00.000000000 AM" end="30-DEC-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="31-DEC-13 12.00.00.000000000 AM" end="31-DEC-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="21-AUG-13 12.00.00.000000000 AM" end="21-AUG-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "33" start="15-OCT-13 12.00.00.000000000 AM" end="15-OCT-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "8" start="23-DEC-13 12.00.00.000000000 AM" end="23-DEC-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="27-DEC-13 12.00.00.000000000 AM" end="27-DEC-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="30-DEC-13 12.00.00.000000000 AM" end="30-DEC-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-JAN-14 12.00.00.000000000 AM" end="03-JAN-14 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="31-MAY-13 12.00.00.000000000 AM" end="31-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="21-MAY-13 12.00.00.000000000 AM" end="24-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="27-MAY-13 12.00.00.000000000 AM" end="29-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="31-MAY-13 12.00.00.000000000 AM" end="31-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-APR-13 12.00.00.000000000 AM" end="05-APR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="11-FEB-13 12.00.00.000000000 AM" end="11-FEB-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="29-JUN-13 12.00.00.000000000 AM" end="14-JUL-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "131" start="16-AUG-13 12.00.00.000000000 AM" end="16-AUG-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "8" start="26-AUG-13 12.00.00.000000000 AM" end="30-AUG-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="02-SEP-13 12.00.00.000000000 AM" end="06-SEP-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="15-FEB-13 12.00.00.000000000 AM" end="15-FEB-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "5" start="13-MAR-13 12.00.00.000000000 AM" end="13-MAR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "8" start="22-MAR-13 12.00.00.000000000 AM" end="22-MAR-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "33" start="20-MAR-13 12.00.00.000000000 AM" end="20-MAR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "5" start="08-APR-13 12.00.00.000000000 AM" end="08-APR-13 12.00.00.000000000 AM" style="blue" />
<period resource_id= "31" start="05-APR-13 12.00.00.000000000 AM" end="05-APR-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "31" start="02-MAY-13 12.00.00.000000000 AM" end="03-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "341" start="01-JUL-13 12.00.00.000000000 AM" end="22-JUL-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "341" start="09-MAY-13 12.00.00.000000000 AM" end="12-MAY-13 12.00.00.000000000 AM" style="green" />
<period resource_id= "191" start="04-JUL-13 12.00.00.000000000 AM" end="06-JUL-13 12.00.00.000000000 AM" style="red" />
<period resource_id= "31" start="15-JUN-13 12.00.00.000000000 AM" end="30-JUN-13 12.00.00.000000000 AM" style="green" />
</periods>
</resource_chart></anygantt>
</textarea>
<div id="chartDiv"></div>
<script type="text/javascript" language="javascript">
/* Set default swf path */
AnyChart.swfFile = 'i/flashchart/anychart_6/swf/OracleAnyChart.swf';
/* Create new gantt chart */
var chart = new AnyChart();
chart.width="2500";
chart.height="2500";
/* Get string data from text area */
var data = document.getElementById('rowData').value.toString();
/* Set data */
chart.setData(data);
/* Write chart to "chart" div */
chart.write("chartDiv");
</script>
do you have a idea whats wrong? thank you -
I keep getting the message-blocked plug-in when trying to use Adobe Flash Player. A message also states that I don't have a up to date flash player but I know that I have the right version of Flash player.
Hello,
Safari, blocked plug-ins…
http://support.apple.com/kb/HT5271 -
After hitting next on this animation you can see there appears to be blank areas on the animation. If you mouse over them you will see buttons appear which is their "over state." When I publish the animation and preview it in Adobe Flash CS5.5 all the buttons are visible and work correctly. It is only in the brower (chrome, firefox, safari) with up to date Flash Player that is is not working. This is happening in a number of animations I created originally in CS4 last year, and am updating them as CS5.5 using AS3.
My application is up to date.Are you loading those images externally?
Can you share an example of you loading an external file if so? It should look similar to this:
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.IOErrorEvent;
var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onErrorHandler);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
function onErrorHandler(e:IOErrorEvent):void
// put some visual code here to tell yourself you have a load error
// otherwise you'll never know
trace(e);
function onCompleteHandler(e:Event):void
// add to display list if you wish (a Loader is a displayobject), or add it to a sprite and name it, etc
addChild(e.target);
If you're not checking for errors then you won't know it's not loading things properly. That is of course if you're loading external assets. -
Ebook of tutorial - PHP 5 & Flash cs4
im looking for a descent book or tutorial wich will teach me how to put php in flash cs4
i got a book here at school, but its for AS 2.0 ...
no point in reading that one ..
thx in advance
grtzzzzzzHere are some basic tuts for the same :-
http://www.flashconf.com/actionscript/how-to-mail-flash-form-with-actionscript/
http://video-tutorial.eu/free-video-tutorial/web-design/flashvars-and-php-tutorial-send-dy namic-variable-into-flash.html -
I am having trouble downloading an extension for flash, despite having the most up to date flash version for Adobe Manager Extension CC. What would cause this to happen? It says I need to have flash 7 or higher. I have the most update flash available according to my browsers.
If you are using Flash Pro CC 2014, please update Extension Manager CC to 7.2.1. Then please confirm whether Flash is shown in the product panel of Extension Manager CC. If not, please refer to Re: Why can't I see InDesign CC in my Extension Manager CC.
-
How kan i pass php data to applets
i m developing a graphical application and i m accessing all data through php from mysql database..
now my graphical application totally depends on that data.. how kan i pass php data over to java applets..I believe you use <param> tags.
-
Why does Safari (or any other browser with up to date Flash player) not play Facebook videos?
You're welcome. Glad I could help.
If you haven't done so, using Disk Utility in your Applications/Utilities folder.
Thanks for the and Aloha from Big Island. -
Php data correct on html ouput but output to flash is incorrect
Not sure whats going on. Information sent back from database
is correct so it must be my for statement.
var nextY = 0;
var nextY2 = 18;
for (var count = 0; count < result_lv.typeCount; count++)
var nextY2 = 18;
holder.attachMovie("header", "type" + count, count);
holder["type" + count]._y = nextY;
holder["type" + count].txTitle.text = result_lv["type" +
count];
for (var counter = 0; counter < result_lv["type" + count
+ "clientCount"]; counter++) {
holder["type" + count].attachMovie("client", "cl" + counter,
counter);
holder["type" + count]["cl" + counter]._y = nextY2;
holder["type" + count]["cl" + counter]._x = 200;
holder["type" + count]["cl" + counter].txTitle.text =
result_lv["cl" + counter + "projName"];
nextY2 += Math.ceil(holder["type" + count]["cl" +
counter]._height + 2);
trace("project title=" + result_lv["cl" + counter +
"projName"]);
nextY += Math.ceil(holder["type" + count]._height + 2);
there are 3 sub categorys:
cd/dvd
www/html
www/flash
These load fine.
the problem starts in the second for(). For some strange
reason every category has the first 2 same projects.
The count for each category project count is correct.
But it would seem that each category want to load every
project regardless of the category that it should be in.
I have since discovered that flash is not outputting the
correct information being sent by the php file. This is a strange
one :S
Here's what php outputs and sends back to flash
quote:
&spotID=19&typeCount=3&type0=CD/DVD&type0clientCount=2&cl0projName=CD
Presentation&cl1projName=Alison
Gollings&type1=www/Flash&type1clientCount=15&cl0projName=Scotlet
redesign&cl1projName=glasgow as i see
it&cl2projName=mxgb.info&cl3projName=Sensua. The
collection&cl4projName=Clifford white
racing&cl5projName=Replenish line
count&cl6projName=scotlet.co.uk&cl7projName=Riki
Christo&cl8projName=IT
Band&cl9projName=JamieDobb.com&cl10projName=Kunt Flash
intro&cl11projName=R A Sneddon -- Flash
logo&cl12projName=Activefm&cl13projName=Flash test
area&cl14projName=Excel-Management&type2=www/html&type2clientCount=2&cl0projName=vinyl
revival&cl1projName=Photo Gallery&retval=1&
This information is correct and should be what flash is
recieving.
Below is what flash outputs via trace of flash input from php
script.
quote:
retval=1&type2clientCount=2&type2=www/html&cl14projName=Excel-Management&cl13projName=Flas h
test area&cl12projName=Activefm&cl11projName=R A Sneddon --
Flash logo&cl10projName=Kunt Flash
intro&cl9projName=JamieDobb.com&cl8projName=IT
Band&cl7projName=Riki
Christo&cl6projName=scotlet.co.uk&cl5projName=Replenish
line count&cl4projName=Clifford white
racing&cl3projName=Sensua. The
collection&cl2projName=mxgb.info&type1clientCount=15&type1=www/Flash&cl1projName=Photo
Gallery&cl0projName=vinyl
revival&type0clientCount=2&type0=CD/DVD&typeCount=3&spotID=19
The type count is correct but the information for the project
is wrong.
Can anyone see a typo??? it must be a typo.
THanks for any helpOne possible issue is a browser caching problem.
Also consider trace statements for
trace ("results_lv.typeCount :" +results_lv.typeCount);
trace ("count:" +count);
trace ("result_lv[\"type\" + count + \"clientCount\"]:" +
result_lv["type" +
count + "clientCount"]);
Your statements "here is what PHP sends back to Flash" and
"what Flash
receives" is puzzling. Could you be saying here is what PHP
returns to a web
browser page and here is what Flash sees? If that is the
case, then it looks
like two different responses from the PHP program.
I generally have a test web page that sends the same data to
the PHP script
as Flash would and have have a debug option in the PHP to
return the return
values in a <pre> format so I can see them neatly in a
web page. This
allows testing the PHP program separately and verify what it
returns outside
of Flash. Once that is clear, then you should see the exact
same
information.
Example
echo $returnVals; // Contains all the url encoded variables.
in debug mode for web page
echo "<html><body><pre>" . $returnVals .
</pre></body></html>";
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"[djdomain]" <[email protected]> wrote in
message
news:[email protected]...
> Not sure whats going on. Information sent back from
database is correct
> so it
> must be my for statement.
>
> var nextY = 0;
> var nextY2 = 18;
> for (var count = 0; count < result_lv.typeCount;
count++) {
> var nextY2 = 18;
> holder.attachMovie("header", "type" + count, count);
> holder["type" + count]._y = nextY;
> holder["type" + count].txTitle.text = result_lv["type" +
count];
> for (var counter = 0; counter < result_lv["type" +
count +
> "clientCount"];
> counter++) {
> holder["type" + count].attachMovie("client", "cl" +
counter, counter);
> holder["type" + count]["cl" + counter]._y = nextY2;
> holder["type" + count]["cl" + counter]._x = 200;
> holder["type" + count]["cl" + counter].txTitle.text =
result_lv["cl" +
> counter + "projName"];
> nextY2 += Math.ceil(holder["type" + count]["cl" +
counter]._height + 2);
> trace("project title=" + result_lv["cl" + counter +
"projName"]);
> }
> nextY += Math.ceil(holder["type" + count]._height + 2);
> }
>
> there are 3 sub categorys:
> cd/dvd
> www/html
> www/flash
> These load fine.
> the problem starts in the second for(). For some strange
reason every
> category has the first 2 same projects.
> The count for each category project count is correct.
> But it would seem that each category want to load every
project regardless
> of
> the category that it should be in.
> I have since discovered that flash is not outputting the
correct
> information
> being sent by the php file. This is a strange one :S
> Here's what php outputs and sends back to flash
>
quote:
>
&spotID=19&typeCount=3&type0=CD/DVD&type0clientCount=2&cl0projName=CD
> Presentation&cl1projName=Alison
>
Gollings&type1=www/Flash&type1clientCount=15&cl0projName=Scotlet
> redesign&cl1projName=glasgow as i see
> it&cl2projName=mxgb.info&cl3projName=Sensua. The
> collection&cl4projName=Clifford white
racing&cl5projName=Replenish line
> count&cl6projName=scotlet.co.uk&cl7projName=Riki
Christo&cl8projName=IT
> Band&cl9projName=JamieDobb.com&cl10projName=Kunt
Flash
> intro&cl11projName=R A
> Sneddon -- Flash
logo&cl12projName=Activefm&cl13projName=Flash test
>
area&cl14projName=Excel-Management&type2=www/html&type2clientCount=2&cl0projName
> =vinyl revival&cl1projName=Photo
Gallery&retval=1&
>
> This information is correct and should be what flash is
recieving.
> Below is what flash outputs via trace of flash input
from php script.
>
quote:
>
>
retval=1&type2clientCount=2&type2=www/html&cl14projName=Excel-Management&cl13pro
> jName=Flash test
area&cl12projName=Activefm&cl11projName=R A Sneddon --
> Flash
> logo&cl10projName=Kunt Flash
> intro&cl9projName=JamieDobb.com&cl8projName=IT
> Band&cl7projName=Riki
>
Christo&cl6projName=scotlet.co.uk&cl5projName=Replenish
> line count&cl4projName=Clifford white
racing&cl3projName=Sensua. The
>
collection&cl2projName=mxgb.info&type1clientCount=15&type1=www/Flash&cl1projName
> =Photo Gallery&cl0projName=vinyl
>
revival&type0clientCount=2&type0=CD/DVD&typeCount=3&spotID=19
>
> The type count is correct but the information for the
project is wrong.
>
> Can anyone see a typo??? it must be a typo.
>
> THanks for any help
>
Maybe you are looking for
-
I can no longer sync my iPhone 5 with 8.2 by wi-fi after installing Yosemite 10.10.2 and iTunes12.1.0.50. I can only sync by cable. Any solutions?
-
Hi, I'm trying to set an InputVerifier for an editable JComboBox using the setInputVerifier() method, to check the input before the JComboBox looses the focus. I've tried several things, as for exmaple extending the 'BasicComboBoxEditor' and set the
-
IndVal of wage type 1BA0: No entry in table T7INA9 for key 40TL101BA0A on 2
Hi, I have configure allowance grouping,wage type model,Pay scale type,Pay scale Level, employee group,Employee subgroup,Level.After that I hire one employee useing "T-CODE PA40".But same time system has giving following error message :- "IndVal of
-
Where is the data held in Max 3.0
Hi, Not sure if this right place to post this but as MAX 3.0 was installed with labVIEW 7.0.....here goes.. With Max 2.0, the data assoicated for GPIB, VISA and IVI was held in two places, IVI.INI and VISACONF.INI. Now Max 3.0 arrives, so where has t
-
ERROR : BBP_PDH_WFL_APPROVAL_SIMULATE after saving SC
Hello, We upgraded to SRM7.0 from SRM5.0 SRM_SERVER 700 0008 SAPKIBKV08 SRM_SERVER we activated workflow in application mode. After saving Shopping cart when display or edit the SC We get the error message: BBP_PDH_WFL_APPROVAL_SIMULATE, PDO Layer. W