Problem with httpservice.length
Hi,
I have written a httpservice which will return a dataset to
me, now i am trying to loop that http service i have written the
below code
<mx:httpservice id="something" url="........default.aspx"
/>
var i:int = 0
for (i = 0;
i<something.lastresult.newdataset.table.length; i++)
if there is only one record in the httpservice then it is
giving me the result as null and if there are 2 records if is
displaying only 1 row
can anybody find me a solution for this problem
regards
Rajeev
You can find string length first. Subtract length by 4, Then use like new = str+4(len), use condense if required.
Similar Messages
-
Hi,
i have a problem with offset length please see below code and suggest :
data: content_new LIKE soli-line. "It has a length of 255 charecter
content_new = 'MTE:SD0\nwssd01_SD0_00\CPU\CPU_Utilization'.
content_new = content_new+4(251).
it is giving result:
content_new = SD0\nwssd01_SD0_00\CPU\CPU_Utiliza "it is removing last 4 charecter of UTILIZATION also
while i need :
content_new = 'SD0\nwssd01_SD0_00\CPU\CPU_Utilization'.
can anyone plz help me?
regards.
Moderator Message: Duplicate Post.
Edited by: kishan P on Oct 28, 2010 9:44 AMYou can find string length first. Subtract length by 4, Then use like new = str+4(len), use condense if required.
-
Problem with path length when using oracle drive
Hello!
Does anybody else experience this problem with Oracle Drive?
When I create a deep or nested hierarchy in which the path length is longer than 250 (the limit might be 255) characters, I cannot access the deeper subpages.
Example:"X:\INET\START1\pfadlaengentest\das istein langer ordnername mit etwa 50 zeichen\and this is another veryveryvery long\and this is another veryveryvery lon2\and this is another veryveryvery lon3\and this is another veryveryvery lon4\and this is another veryveryvery lon5".
I can access the page "and this is another veryveryvery lon4" but not "and this is another veryveryvery lon5"
Is this problem due to WebDAV?
What can I do - I think it is a critical error / bug?
Regards Joerg.I opened a service request and oracle support could help me.
The problem is the windows file system: the path length cannot be longer than 256 chars.
There's a workaround with MS-Webfolders.
More information is available via metalink: watch out for SR-Number 5659267.992.
PS: Thanks to Bert
bye :-j (joerg) -
Problem with field-length in sql-loader
Hello,
(sorry I see it's the wrong forum -> SQL-Developer, I searched for SQL-Loader, is there a possibility to change the forum ?)
I can't find an answer for my question at google, so I hope there is someone in this forum who can help me.
I have a dat-File that contains 12 500 000 records and want to laod it via sql-loader. The first field contains the ID and there were numbers from 1 to 12 500 000 stored.
When I run the sql-loader, the ID run up to 9 999 999 and then, for the last 2 500 001 records, ist starts at 1 again.
I noticed a few things :
1. Numbers < 10 000 000 don't make Problems
2. Numbers >= 10 000 000 make Problems, the first digit ( in this example "1") is cut, so the number "10 000 001" ist stored as "1". It comes to double entries (IDs 1 to 2 500 000).
3. The same field-definition, I have for the third field of the record -> there is no Problem. THERE I can store any number.
4. I tried to store a number > 100 000 000 -> the first digit was cut too, but ONLY the first digit.
5. I'm able to store any number manually in the Database.
So, I have a problem with the first field. If the number is greater then 10 000 000, the first Number is cut. It doesn't make any differance, if the number is 10 000 000 or 999 999 999, just the first digit, in the first field, is cut.
Any idea ??????????
Here some infos :
Database :
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
SQL-PLUS :
SQL*Plus: Release 10.2.0.4.0 - Production
Script sqlldr :
sqlplus ${schema}/$2 <<EOF >>LOAD.LOG
set timing on
set echo on
set heading off
set heading on
!sqlldr userid=${schema}/$2 control=surface_geometry.ctl log=surface_geometry.log
exit
EOF
ctl-File :
LOAD DATA
INFILE imp_surface_geometry_test2
TRUNCATE
CONTINUEIF NEXT(1:1) = '#'
INTO TABLE SURFACE_GEOMETRY
FIELDS TERMINATED BY '|'
TRAILING NULLCOLS (
ID INTEGER EXTERNAL ,
GMLID,
GMLID_CODESPACE,
PARENT_ID NULLIF PARENT_ID = BLANKS,
ROOT_ID NULLIF ROOT_ID = BLANKS,
IS_SOLID,
IS_COMPOSITE,
IS_TRIANGULATED,
IS_XLINK,
IS_REVERSE,
GEB_ID,
GEOMETRY COLUMN OBJECT
SDO_GTYPE INTEGER EXTERNAL,
SDO_SRID CONSTANT 31468,
SDO_ELEM_INFO VARRAY TERMINATED BY '|/'
(X FLOAT EXTERNAL),
SDO_ORDINATES VARRAY TERMINATED BY '|/'
(X FLOAT EXTERNAL)
Table-Definition (sql-File) :
CREATE TABLE SURFACE_GEOMETRY (
ID NUMBER,
GMLID VARCHAR2(256),
GMLID_CODESPACE VARCHAR2(1000),
PARENT_ID NUMBER,
ROOT_ID NUMBER,
IS_SOLID NUMBER(1,0),
IS_COMPOSITE NUMBER(1,0),
IS_TRIANGULATED NUMBER(1,0),
IS_XLINK NUMBER(1,0),
IS_REVERSE NUMBER(1,0),
GEB_ID CHAR(7),
GEOMETRY MDSYS.SDO_GEOMETRY,
CONSTRAINT c_unique_id UNIQUE (ID))
storage (initial 1M next 1M maxextents 1024) ;
Some Entries in the dat-File :
12556067| |XXX|12556066|12556066|0|0|0|0|0| |
#3003|1|1003|1|/
#4479400.000000|5333360.000000| 526.870000|4479380.000000|5333360.000000| 526.720000|4479400.000000|5333340.000000| 526.980000|4479400.000000|5333360.000000| 526.870000|/
12556068| |XXX| |12556068|0|0|1|0|0| |
#||/
#|/
12556069| |XXX|12556068|12556068|0|0|0|0|0| |
#3003|1|1003|1|/
#4479380.000000|5333380.000000| 526.600000|4479380.000000|5333360.000000| 526.720000|4479400.000000|5333360.000000| 526.870000|4479380.000000|5333380.000000| 526.600000|/
log-File : (100 records for the test)
SQL*Loader: Release 10.2.0.4.0 - Production on Fr Mai 28 15:16:43 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Kontrolldatei: surface_geometry.ctl
Datendatei: imp_surface_geometry_test.dat
Fehlerdatei: imp_surface_geometry_test.bad
Datei für zurückgewiesene Sätze: nichts spezifiziert
(alle Discards zulassen)
Zu ladende Anzahl: ALL
Zu überspringende Anzahl: 0
Zulässige Fehler: 50
Bind-Array: 64 Zeilen, maximal 256000 Bytes
Fortsetzung: 1:1 = 0X23(Zeichen '#'), im nächsten physischen Satz
Benutzer Pfad: Konventionell
Tabelle SURFACE_GEOMETRY, geladen von jedem logischen Satz.
Insert-Option in Kraft für diese Tabelle: TRUNCATE
Option TRAILING NULLCOLS ist wirksam
Spaltenname Position Läng Term Eing Datentyp
ID FIRST * | CHARACTER
GMLID NEXT * | CHARACTER
GMLID_CODESPACE NEXT * | CHARACTER
PARENT_ID NEXT * | CHARACTER
NULL wenn PARENT_ID = BLANKS
ROOT_ID NEXT * | CHARACTER
NULL wenn ROOT_ID = BLANKS
IS_SOLID NEXT * | CHARACTER
IS_COMPOSITE NEXT * | CHARACTER
IS_TRIANGULATED NEXT * | CHARACTER
IS_XLINK NEXT * | CHARACTER
IS_REVERSE NEXT * | CHARACTER
GEB_ID NEXT * | CHARACTER
GEOMETRY DERIVED * COLUMN OBJECT
*** Felder in GEOMETRY
SDO_GTYPE NEXT * | CHARACTER
SDO_SRID CONSTANT
Wert ist '31468'
SDO_ELEM_INFO DERIVED * VARRAY
Abschlusszeichenfolge : '|/'
*** Felder in GEOMETRY.SDO_ELEM_INFO
X FIRST * | CHARACTER
*** Feldende in GEOMETRY.SDO_ELEM_INFO
SDO_ORDINATES DERIVED * VARRAY
Abschlusszeichenfolge : '|/'
*** Felder in GEOMETRY.SDO_ORDINATES
X FIRST * | CHARACTER
*** Feldende in GEOMETRY.SDO_ORDINATES
*** Feldende in GEOMETRY
Tabelle SURFACE_GEOMETRY:
100 Zeilen erfolgreich geladen.
0 Zeilen aufgrund von Datenfehlern nicht geladen.
0 Zeilen nicht geladen, da alle WHEN-Klauseln fehlerhaft waren.
0 Zeilen nicht geladen, da alle Felder NULL waren.
Zugewiesener Bereich für Bind-Array: 232576 Bytes (64 Zeilen)
Byte in Lese-Puffer: 1048576
Gesamtzahl der übersprungenen logischen Datensätze: 0
Gesamtzahl der gelesenen logischen Datensätze: 100
Gesamtzahl der abgelehnten logischen Datensätze: 0
Gesamtzahl der zurückgewiesenen logischen Datensätze: 0
Lauf begonnen am Fr Mai 28 15:16:43 2010
Lauf beendet am Fr Mai 28 15:16:43 2010
Abgelaufene Zeit: 00:00:00.19
CPU-Zeit: 00:00:00.01
Edited by: user9338988 on 28.05.2010 06:21sorry, wrong forum. I opened the thread in forum "Export/Import/SQL-Loader & External Tables"
-
Problem with columns length under Firefox
I have a problem with Firefox. Possibly, someone could help?
If you look at the following page www.tregor.fr using IE or
Netscape, there is no problem.
If you use Firefox, you will see that the display of the
bottom page is not correct. The middle column is longer than the
left and the right columns.
So the bottom block is not correctly sticked to the middle
block (the body background color appears at the bottom of the first
and third columns).
As I analyses, I saw that, under FireFox, the text in the
middle column seems to start a little lower than under IE or
Netscape. This may explain why the middle column is longer.
But I have no mean to avoid this.
Does anyone has experienced such a problem?
Regards.you could try this:
http://www.projectseven.com/tutorials/css/pvii_columns/index.htm -
Problem with byte[].length
dear sir
I am working with javacard 2.2.2, windows, jdk 1.5 and JCWDE
I would like to know the byte length of an array ("aCrypter" in this fallowing code)
1 public byte[] cryter(byte[] Crypter){
2
3 ecipher.init(key, Cipher.MODE_ENCRYPT);
4 ecipher.doFinal(Crypter, (short)0, (short)aCrypter.length, donneeCrypter , (short)0);
5
6 return donneeCrypter;
7 }
JCVM return an error on line 4 (it works with "(short)1"
there is a solution to know the array length?
regards
Alexis
Edited by: Alexis &quot;le francais&quot; on 21 mars 2011 07:33thanks for your help.
In fact I would like to crypt and after decrypt with this fallowing code:
private byte[] Crypto = {(byte)0xA0, (byte)0x00,
(byte)0x00, (byte)0x00, (byte)0x62, (byte)0x03, (byte)0x01, (byte)0x0C,
(byte)0x0f, (byte)0x01, (byte)0x01};
public void process(APDU apdu) throws ISOException {
// TODO Auto-generated method stub
byte[] buffer = apdu.getBuffer();
if (this.selectingApplet()) return;
if (buffer[ISO7816.OFFSET_CLA] != CLA_MONAPPLET) {
ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
switch (buffer[ISO7816.OFFSET_INS]) {
case INS_INTERROGER_COMPTEUR:
tab = new byte[1000];
tab[0]= compteur;
tableau = cryter(tab);
tableau2= decrypter(tableau);
apdu.setOutgoing();
apdu.setOutgoingLength((short) 7);
apdu.sendBytesLong(tableau2,(short) 0, tableau2.lenght);
break;
public void initialisation(){
key = (DESKey)KeyBuilder.buildKey(KeyBuilder.TYPE_DES_TRANSIENT_DESELECT,KeyBuilder.LENGTH_DES, false);
key.setKey(Crypto, (short)0);
ecipher = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M2,false);
public byte[] decrypter(byte[] aDecrypter){
ecipher.init(key, Cipher.MODE_DECRYPT);
donneeDecrypte = new byte[10000];
ecipher.doFinal(aDecrypter, (short)0, (short)aDecrypter.length, donneeDecrypte, (short)0);
return donneeDecrypte;
public byte[] cryter(byte[] Crypter){
ecipher.init(key, Cipher.MODE_ENCRYPT);
donneeCrypter = new byte[10000];
ecipher.doFinal(Crypter, (short)0, (short)Crypter.length, donneeCrypter, (short)0);
return donneeCrypter;
}Now "crypter" method is executed, but when the debugger is at this fallowing line there is a problem :
tableau2= decrypter(tableau);maybe the size of the array?
>
return ecipher.doFinal(aCrypter);
>
I work with Javacard 2.2.2, this method does not exist in the API only :
abstract short doFinal270(byte[] inBuff, short inOffset, short inLength,byte[] outBuff, short outOffset)Edited by: le francais on 22 mars 2011 03:07 -
Problem with file length in jsp it is working in IE, not working Firefox
Hi,
I'm upload a file from the browser. i'm calculating the length i'm not getting the length of the file.
The below shown code is working perfectly in IE and not working in Firefox.
FileUpload.html
<DOCTYPE>
<HTML>
<HEAD>
<TITLE>Retailmint Jobs - Registration Form</TITLE>
</HEAD>
<BODY>
<form>
<table>
<tr><td>Upload Resume :</td>
<td> <input>
</td>
</tr>
</table>
<input>
</p>
<p> </p>
</form>
</BODY>
</HTML>
FileUploadSubmit.jsp
<page>
<page>
<page>
<html>
<head><title>Retailmint- Submission</title></head>
<body>
<FileInputStream>
</body>
</html>
I find an error in firefox browser is not taking the fully qualified path
i.e: C:\Documents and Settings\Administrator\Desktop\if.doc
In firefox it is taking if.doc only.
please tell me the solution.
Regards
venkatI agree with your words
sorry for the code pasting.
Here is the code:
FileUpload.html
<HTML>
<HEAD>
<TITLE>Retailmint Jobs - Registration Form</TITLE>
</HEAD>
<BODY>
<form name='subregiform' method="get" action ="FileuploadSubmit.jsp" >
<table width="566" border="0" cellspacing="0" cellpadding="0">
<tr><td width="197"align="right">Upload Resume</td>
<td width="369"> <input type="file" name="file" value ="" >
</td>
</tr>
</table>
<input type="submit" name="submit" value="Submit">
</form>
</BODY>
</HTML>
FileUploadSubmit.jsp
<%@ page import="java.text.*"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<html>
<head><title>Retailmint- Submission</title>
</head>
<body bgcolor="#e0e0e0">
<%
FileInputStream fis = new FileInputStream(request.getParameter("file"));
len = (int)file.length();
System.out.println("length"+len);
%>
</body>
</html>
And how to find the absolute path of a file in jsp or java
Edited by: venkat.k on Sep 17, 2007 10:12 PM -
Hi there, I have developed an application that has a Buy Now
Button to the PayPal website. I used the HTTPService to verify the
purchased at PayPal:
<mx:HTTPService id="paymentRequest" url="
http://www.paypal.com/cgi-bin/webscr"
useProxy="false"
method="POST" resultFormat="text"
result="getResultOk(1,event)" fault="getResultOk(0,event)"
showBusyCursor="true">
<mx:request xmlns="">
<cmd>_notify-synch</cmd>
<tx>{tx.toString()}</tx>
<at>{at.toString()}</at>
</mx:request>
</mx:HTTPService>
When this application web site is redirected back from the
PayPal shopping cart, a tx number is read and the application calls
paymentRequest.send() to do the verification process but then i got
this error:
Error sending data!!
[FaultEvent fault=[RPC Fault faultString="Security error
accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]
messageId="E46E9181-EA3E-8B41-5869-62767B67BD60"
type="fault" bubbles=false cancelable=true eventPhase=2]
However, if i hard coded the tx number and execute the
application locally, it works fine it is sending to PayPal and i do
get either the "SUCCESS" or "FAIL" message back... So i wonder if
anyone can please help me here? Why when this application is put on
web server and being accessed from the server's url the HTTPService
call is not sending??
Many thanks.
RichieHi Richie,
your application can only access data from servers, which
allow access per crossdomain.xml or from your server. That´s a
security thing which comes with the flash player. ( if paypal
didn´t allow access to their content your can´t access )
The flexbuilder/debug enviroment runs in a trusted sandbox,
which allows access. This is a big different between the debug and
the release enviroment, which should at least be made configurable
by Adobe (for the flex builder).
best regards,
kcell -
Intermittent problem with HTTPService
I'm reposting what I posted in the Linux forum, because
although that's my platform, this doesn't seem like a Linux
issue...
Hello all -
I've been having a fairly strange problem using the
mx:HTTPService. I use a custom app to serve XML documents to my
Flex application, and everything works just fine ... until it
doesn't. Even though I can confirm that entire, complete XML
documents are being transmitted by my server app, occasionally the
HTTPService generates a fault, complaining that the document is not
well-formed. Examining the event in the debugger reveals that sure
enough, the XML has been truncated at some random point.
This failure happens fairly often, but not in any predictable
way. Retrying a request sometimes pulls in the exact same document
successfully, sometimes it fails again. This really doesn't seem
like a user error, since the documents do load successfully
sometimes but not others.
Has anyone else seen this or have any ideas?
Thanks,
ThᛰrThᛰr ,
Can you file a bug at
http://bugs.adobe.com/flex/
and include your system information, server information and any
relevant source files.
Thanks,
Peter -
Problem with file length in jsp it is working in IE, not workig Firefox
Hi,
I'm upload a file from the browser. i'm calculating the length i'm not getting the length of the file.
The below shown code is working perfectly in IE and not working in Firefox.
FileUpload.html
<DOCTYPE>
<HTML>
<HEAD>
<TITLE>Retailmint Jobs - Registration Form</TITLE>
</HEAD>
<BODY>
<form>
<table>
<tr><td>Upload Resume :</td>
<td> <input>
</td>
</tr>
</table>
<input>
</p>
<p> </p>
</form>
</BODY>
</HTML>
FileUploadSubmit.jsp
<page>
<page>
<page>
<html>
<head><title>Retailmint- Submission</title></head>
<body>
<FileInputStream>
</body>
</html>
I find an error in firefox browser is not taking the fully qualified path
i.e: C:\Documents and Settings\Administrator\Desktop\if.doc
In firefox it is taking if.doc only.
please tell me the solution.
Regards
venkatSorry for that
here is the code:
FileUpload.html
<HTML>
<HEAD>
<TITLE>Retailmint Jobs - Registration Form</TITLE>
<script language="Javascript" src="FileRead.js">
</script>
</HEAD>
<BODY>
<form name='subregiform' method="get" action ="FileuploadSubmit.jsp" >
<table width="566" border="0" cellspacing="0" cellpadding="0">
<tr><td width="197"align="right">Upload Resume :</td>
<td width="369"> <input type="file" name="file" value ="" onchange ="javascript:fopen('file');"><br>
</td>
</tr>
</table><br>
<input type="submit" name="submit" value="Submit">
</strong></p>
<p> </p>
</form>
</BODY>
</HTML>
FileUploadSubmit.jsp
<%@ page import="java.text.*"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<jsp:useBean id="DBase" class="dbconnection.DBconnection" scope="session" />
<html>
<head><title>Retailmint- Submission</title>
</head>
<body bgcolor="#e0e0e0">
<%
FileInputStream fis = new FileInputStream(request.getParameter("file"));
len = (int)file.length();
System.out.println("length"+len);
%>
</body>
</html>
And tell me How to find the absolute path of a file in JSP or JAVA? -
Problem with file length in jsp IE it is working Firefox it is not workig
Hi,
I'm upload a file from the browser. i'm calculating the length i'm not getting the length of the file.
The below shown code is working perfectly in IE and not working in Firefox.
FileUpload.html
<DOCTYPE>
<HTML>
<HEAD>
<TITLE>Retailmint Jobs - Registration Form</TITLE>
</HEAD>
<BODY>
<form>
<table>
<tr><td>Upload Resume :</td>
<td> <input>
</td>
</tr>
</table>
<input>
</p>
<p> </p>
</form>
</BODY>
</HTML>
FileUploadSubmit.jsp
<page>
<page>
<page>
<html>
<head><title>Retailmint- Submission</title></head>
<body>
<FileInputStream>
</body>
</html>
I find an error in firefox browser is not taking the fully qualified path
i.e: C:\Documents and Settings\Administrator\Desktop\if.doc
In firefox it is taking if.doc only.
please tell me the solution.
Regards
venkatSorry for that
here is the code:
FileUpload.html
<HTML>
<HEAD>
<TITLE>Retailmint Jobs - Registration Form</TITLE>
<script language="Javascript" src="FileRead.js">
</script>
</HEAD>
<BODY>
<form name='subregiform' method="get" action ="FileuploadSubmit.jsp" >
<table width="566" border="0" cellspacing="0" cellpadding="0">
<tr><td width="197"align="right">Upload Resume :</td>
<td width="369"> <input type="file" name="file" value ="" onchange ="javascript:fopen('file');"><br>
</td>
</tr>
</table><br>
<input type="submit" name="submit" value="Submit">
</strong></p>
<p> </p>
</form>
</BODY>
</HTML>
FileUploadSubmit.jsp
<%@ page import="java.text.*"%>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<jsp:useBean id="DBase" class="dbconnection.DBconnection" scope="session" />
<html>
<head><title>Retailmint- Submission</title>
</head>
<body bgcolor="#e0e0e0">
<%
FileInputStream fis = new FileInputStream(request.getParameter("file"));
len = (int)file.length();
System.out.println("length"+len);
%>
</body>
</html>
And tell me How to find the absolute path of a file in JSP or JAVA? -
Hi all,
I'm using multiple select option list, and now I'm getting this error when check in a file:
Content Server Request Failed
Content item 'mohe_000934' was not successfully checked in. The value entered for 'Dokumen' exceeds 30 characters, the maximum length allowed for this field.
This field is DCL, and the column that I created in the table is assign as varchar(250).
Anybody could possibly getting this right?Thanks in advance.
~ds~Hi
I've found the solution. Eventually, I need to select Memo as its field type, before this I select Text as the field type. I miss that one. So when I select Memo as its field type, the prob solve.
ds -
Data Acquisition problem with multiple length of commands and data received.
Hello,
I need to write a program to communicate with a Data Acquisition board. There are about 10 commads and each has a different number of bytes associated with it. For example command-1 has 4 bytes which need to be send to the DAQ, command 2 has 6 bytes, Command 3 has 4 bytes etc...
When the board responds back to the commands I send, it responds back with different number of bytes for each command. For example, When Command 1 is send to the board, it responds back with 3 bytes of data, whereas when command-2 is send it responds back with 5 bytes of data.
Each data byte received by my labView program from the board, needs to be displayed after some processing has been done. This processing may or may not happen on all the bytes of data got back.
I want the program to be scalable, so that if more commands are added later on, the display and the processing changes in accordance with that.
What will be the best approach for such a system ? I want the system to be dynamic, and dont want to repeat or re-write the code for each case statement ( case statements will be decided by the commands).
Any input is welcome.
Thanks,
birapxiHello Dennis,
That is certainly one way of doing it, but it is the brute force method. Is there any way to use clusters and add the data bytes coming in and going out to clusters. Also when the user sends a specific command out, can I use the unbundle by name function to send the bytes corresponding to that command.
For displaying the data received, can I follow a similar approach and use unbundle by name function to just display the specific data bytes for the command i have received.
Thanks for your input,
birapxi -
Problem using HTTPService with SSL
I have seen a lot of messages talking about problems with
HTTPService and SSL (https) regarding Flex 1.5.
What I would like to know is if there are any similar issues
in Flex 2? I am using HTTPService to access an https address
through a reverse proxy and am getting an IO error (streaming
error) for reasons beyond me. The first thing I want to know is
whether there are any obvious bugs or required work-arounds when
using HTTPService with SSL.
thanksI had problems with IE6+HTTPS+Flex 2.
I had to set the HTTP header on server side.
Cache-Control
no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Java code:
response.setHeader("Cache-Control", "no-store, no-cache,
must-revalidate, post-check=0, pre-check=0");
Lacito -
Problem with the FOR statement.....again!
Hi everyone,
Well I'm still trying to do a car slideshow using external
files and can't seem to see the end. The current movie is here:
http://www.virtuallglab.com/projects.html
I also attach the code. My problem is I had originally set up
an animation with 2 pictures sliding in with some text, and then
wait 4 seconds before sliding out, and then next pictures and text
would slide in and so on, using a setInterval.
The problem is the FOR loop seems to skip the setInterval and
the function "wait", so it just loops quickly and jumps to last
picture, so on the example above, it just slides the last picture
(i=9) and that's it!
Can you not include another function within a FOR statement.
Or is there a way to tell the FOR loop to wait until all motion is
finished?
Any help greatly appreciated
import mx.transitions.*;
import mx.transitions.easing.*;
for (i=0; i<10 ; i++) {
var picLeft = "pics/"+i+".jpg";
var picRight = "pics/"+i+"b.jpg";
var txtToLoad = "text/"+i+".txt";
this.createEmptyMovieClip("leftHolder",1);
leftHolder.loadMovie(picLeft,i,leftHolder.getNextHighestDepth());
leftHolder._x = -200;
leftHolder._y = 15;
var leftTween:Tween = new Tween(leftHolder, "_x",
Strong.easeOut, leftHolder._x, 10, 2, true);
this.createEmptyMovieClip("centerHolder",2);
centerHolder.loadMovie(picRight,i+"b",centerHolder.getNextHighestDepth());
centerHolder._x = 180;
centerHolder._y = 250;
var centerTween:Tween = new Tween(centerHolder, "_y",
Strong.easeOut, centerHolder._y, 15, 2, true);
text._x = 600;
myData = new LoadVars();
myData.onLoad = function(){
text.carText.text = this.content;
myData.load(txtToLoad);
var textTween:Tween = new Tween(text, "_x", Strong.easeOut,
text._x, 420, 2, true);
myInterval = setInterval(wait, 4000);
function wait() {
var leftTweenFinished:Tween = new Tween(leftHolder, "_x",
Strong.easeOut, leftHolder._x, -200, 1, true);
var centerTween:Tween = new Tween(centerHolder, "_y",
Strong.easeOut, centerHolder._y, 250, 1, true);
var textTween2:Tween = new Tween(text, "_x", Strong.easeOut,
text._x, 600, 1, true);
clearInterval(myInterval);
***************************************************************************************** ***There is no way to tell a for loop to wait. That is not what
they do.
The entire for loop will execute (if possible, and it doesn't
enter some kind of continuous infinite loop) completely before each
time the frame is rendered.
If you want to spread things out over time you need to use
the setInterval -- but not inside a for loop! If you do that you
immediately set however many intervals as your loop has. In this
case you will also assign the ids for those intervals to the same
variable, effectively overwriting the value so you will never be
able to clear most of those intervals.
So you need to rethink you whole structure. Set up some kind
of counter and limit like this:
var slidesToShow:Number=10;
var curSlide:Number=0;
Then have your setInterval increment the curSlide each time
it is called and check to see if it has shown all of them. That is
where your "loop" comes in.
As for the other part of your question -- yes you actually
have two different issues going on -- again you cannot make a for
loop wait for anything. So no there is no way to pause it while you
wait for your tween to end. But you can be notified when a tween
ends.
Check out the documentation about the tween class in the help
files. There you will find the onMotionFinished event. So you can
set up one of those to start whatever needs to be started when the
tween has finished.
You should also use the MovieClipLoader class to load your
images, because you have no idea how long it will take to load
them. Using that class you get a nice event (onLoadInit) that tells
you when the asset is ready to be used.
Finally I'm thinking you might want to use setTimeout instead
of setInterval. It only goes once, while setInterval repeats
forever. So I would think your algorithm would be something like
this.
1. load external asset
2. when ready animate in and set onMotionFinished handler
3. when motion is finished start loading next asset and
setTimeout for 4 seconds.
4. when 4 seconds is up or the clip is loaded (which ever
takes longer) go to 2 and repeat.
If this is going to be run locally on a hard drive or CD you
won't have any problem with the length of time it takes to load the
external assets, but if it is over the web it will take time.
Maybe you are looking for
-
How to exclude records from one table that is contained in a second table
I am trying to create a Crystal report that excludes records from one Table that is contained in a second table using the != link option and it is not working. I've tried all of the different enforce options, and it is still not excluding those recor
-
Selecting Hierarchy at runtime
Hi, I have 2 hierarchies (HIER1, HIER2) created on InfoObject (IO1). In the query we had used this InfoObject in the free characteristics. Our requirement is when the user drill down on this InfoObject, User should able to see the data without the hi
-
Localhost doesnu00B4t work any more. No more web pages !!
Hello, I´ve been working with WebDynpro for ABAP and BSP pages normally, but since yestarday and with no reason, any web page cannot be displayed from Mini SAP. After the execution, I get the classical white page in Internet Explorer indicating "Web
-
HI All, I am trying to enable DP on the remote machine cross firewall. I get the below error seems should be blocked by firewall. I have opened 445/80/135 between DP and primary site server. Is there anything I have to do for the below error. Please
-
I fixed it by starting up Quicktime, which then started to update itself. After that ITunes worked again. Also Apple Software Update suddently worked again