Simple syntax
Can anyone tell me why this does not work MS sql server:
select * from (select * from table)
This yields "Incorrect syntax near ')'."
This works fine in oracle...
Many Thanks.
Hi , you havo to specify an alias
select * from (select * from table) table1
hope this will help
Questo post è fornito "così com'è". Non conferisce garanzie o diritti di alcun tipo. Ricorda di usare la funzione "segna come risposta" per i post che ti hanno aiutato a risolvere il problema e "deseleziona come
risposta" quando le risposte segnate non sono effettivamente utili. Questo è particolarmente utile per altri utenti che leggono il thread, alla ricerca di soluzioni a problemi similari. ENG: This posting is provided "AS IS" with
no warranties, and confers no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. Please Vote This As Helpful
if it helps to solve your issue. This can be beneficial to other community members reading the thread.
Similar Messages
-
Hey everyone,
I'm trying to do a match/replace with a pattern that contains special characters, and running into syntax errors in a Flex 3 app. I just want the following regex to compile... (while also replacing html tags with "")
value.replace(/</?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)/?>/g, "");
On a side note, the pattern /<.*?>/g wouldn't work in cases where there are html entities between tags,
like so:
<TEXTFORMAT LEADING="2">
<P ALIGN="LEFT">
<FONT FACE="Arial" SIZE="11" COLOR="#4F4A4A" LETTERSPACING="0" KERNING="0"><one</FONT>
</P>
</TEXTFORMAT><TEXTFORMAT LEADING="2">
<P ALIGN="LEFT">
<FONT FACE="Arial" SIZE="11" COLOR="#4F4A4A" LETTERSPACING="0" KERNING="0">two</FONT>
</P>
</TEXTFORMAT>
The first regex would get both "<one" and "two", but the second would only get "hi"
Thanks!
Stabby LThis one is working for me:
value.replace(/<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\/?>/g, "");
(Same as yours, but escaping the /)
Are < and > the only special characters that can be in between tags? in that case, even if /<.*?>/g wouldn't work, could /<.[^<>]*?>/g be enough? -
What's wrong with my simple syntax?
Hi, Im trying to create a var and then check it with an if
statment but its not working, whats going wrong?
var loggedin:String = new String();
loggedin = ("yes");
if (loggedin == "yes")
searchbox1.text = ("user logged in");Your code worked for me:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
private var ac:ArrayCollection = new ArrayCollection();
public function init():void
var loggedin:String = new String();
loggedin = ("yes");
if (loggedin == "yes")
searchbox1.text = ("user logged in");
]]>
</mx:Script>
<mx:TextArea id="searchbox1"/>
</mx:Application> -
Stuck on what SHOULD be simple syntax...
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
This code is one script of an update script I'm trying to push.
It's failing. I have to write the code so that it can be re-run multiple times and not cause the main job to fail.
I've been staring at this for hours and can NOT see why it's erroring.
Here is the error being thrown.
VALUES ('NRSA_APP_USER',11,'NONE','APPROVED','N','Y','10M','N','SPIREK, FRANK','Y',1)';
ERROR at line 3:
ORA-06550: line 3, column 10:
PLS-00103: Encountered the symbol "NRSA_APP_USER" when expecting one of the
following:
* & = - + ; < / > at in is mod remainder not rem return
returning <an exponent (**)> <> or != or ~= >= <= <> and or
like like2 like4 likec between into using || multiset bulk
member submultisetHere is my pl/sql code. --I simplified the exception clause, to try and narrow down possibilities...But the commented out exception portion is the original.
BEGIN execute immediate
'create user NRSA_APP_USER
identified by XXX
default tablespace USERS
temporary tablespace TEMP
profile DEFAULT
quota 10m on USERS';
EXCEPTION WHEN OTHERS THEN null; --DBMS_OUTPUT.PUT_LINE('User already Exists');
END;
grant connect to NRSA_APP_USER;
grant create session to NRSA_APP_USER;
commit;
-- script to register the application user with UMA
BEGIN execute immediate
'INSERT INTO UMA.UMA_USERS(USER_NAME,AGENCY_CODE,HOME_ORG_ID,STATUS,ADMIN_IND,HIDDEN_IND,QUOTA_USERS,DIRECT_ACCESS,CONTACT,EMAIL_ENABLED,EID_LEVEL)
VALUES ('NRSA_APP_USER',11,'NONE','APPROVED','N','Y','10M','N','SPIREK, FRANK','Y',1)';
EXCEPTION WHEN OTHERS THEN null; --DBMS_OUTPUT.PUT_LINE('User NRSA_APP_USER already inserted');
END;
BEGIN execute immediate
'INSERT INTO UMA.UMA_CLIENT_APP_USERS (APP_NAME,USER_NAME,DISPLAY_ORDER)
VALUES ('NRISINFORMS','NRSA_APP_USER',1)';
EXCEPTION WHEN OTHERS THEN null; --DBMS_OUTPUT.PUT_LINE('User already inserted');
END;
BEGIN execute immediate
'UMA.UMA_BATCH_PROCESSOR.PROCESS_USERS';
EXCEPTION WHEN OTHERS THEN NULL;
END;
/The error indicates that it doesn't like the column NRISINFORMS...or something PRIOR to that in the code. I checked the table, and the column is spelled right, and it's a varchar2. And then I looked over all the code prior to that for punctuation and such. No luck. I even cut/paste the code into my formatter in TOAD. And it didn't find anything wrong.
Can ANYONE see what I am apparently oblivious to?
Thank you.
Edited by: Willy_B on Oct 18, 2012 9:29 AM - fixed code tag, and also put exact cut/paste of error report.Hi,
Willy_B wrote:
... Here is the error being thrown.
VALUES ('NRSA_APP_USER',11,'NONE','APPROVED','N','Y','10M','N','SPIREK, FRANK','Y',1)';
ERROR at line 3:
ORA-06550: line 3, column 10:
PLS-00103: Encountered the symbol "NRSA_APP_USER" when expecting one of the
following:
* & = - + ; < / > at in is mod remainder not rem return ...
Here is my pl/sql code ...
BEGIN execute immediate
'INSERT INTO UMA.UMA_USERS(USER_NAME,AGENCY_CODE,HOME_ORG_ID,STATUS,ADMIN_IND,HIDDEN_IND,QUOTA_USERS,DIRECT_ACCESS,CONTACT,EMAIL_ENABLED,EID_LEVEL)
VALUES ('NRSA_APP_USER',11,'NONE','APPROVED','N','Y','10M','N','SPIREK, FRANK','Y',1)';
EXCEPTION WHEN OTHERS THEN null; --DBMS_OUTPUT.PUT_LINE('User NRSA_APP_USER already inserted');
END;
You have to do somnething special to include a single-quote character in a string literal, such as repeat the single-quotes that are inside the literal:
BEGIN execute immediate
'INSERT INTO UMA.UMA_USERS
( USER_NAME
, AGENCY_CODE
, HOME_ORG_ID
, STATUS
, ADMIN_IND
, HIDDEN_IND
, QUOTA_USERS
, DIRECT_ACCESS
, CONTACT
, EMAIL_ENABLED
, EID_LEVEL
VALUES ( ''NRSA_APP_USER''
, 11
, ''NONE''
, ''APPROVED''
, ''N''
, ''Y''
, ''10M''
, ''N''
, ''SPIREK, FRANK''
, ''Y''
, 1
)';or use Q-notation:
BEGIN execute immediate
Q'{INSERT INTO UMA.UMA_USERS -- Note Q and { here
( USER_NAME
, AGENCY_CODE
, HOME_ORG_ID
, STATUS
, ADMIN_IND
, HIDDEN_IND
, QUOTA_USERS
, DIRECT_ACCESS
, CONTACT
, EMAIL_ENABLED
, EID_LEVEL
VALUES ( 'NRSA_APP_USER'
, 11
, 'NONE'
, 'APPROVED'
, 'N'
, 'Y'
, '10M'
, 'N'
, 'SPIREK, FRANK'
, 'Y'
, 1
)}' -- Note } here
;Why are you using EXECUTE IMMEDIATE for this at all? PL/SQL has INSERT statements.
Also, why do you need to create uses on the fly, especially when all the details are hard-coded? -
Hi People,
I have the following delete statement i'm trying to execute. i get ORA-923 error. Please review and comment.
DELETE FROM INACTIVE_ORDERS IO WHERE IO.REQ_NUM IN (SELECT REQ_NUM SRINI_ARCHIVE_VIEW) OR
IO.REQ_NUM IN (SELECT REQ_NUM FROM SRINI_CHILD_VIEW);Seems like a simple syntax error; should be:
DELETE FROM INACTIVE_ORDERS IO WHERE IO.REQ_NUM IN (SELECT REQ_NUM FROM SRINI_ARCHIVE_VIEW) OR
IO.REQ_NUM IN (SELECT REQ_NUM FROM SRINI_CHILD_VIEW); -
Query Print Layout / Query Manager
Hopefully some one here can help me out ...
I have created a handful of Query Print Layouts. How or is there a way when I make a change to the underlying query, to reassociate it with the report? Now when I change the query, I have to create a new report. I am currently on SAP B1 2007 PL11. When I upgraded from PL06 to PL11, the queries handle prompted dates differently, causing me to have to make a simple syntax change to my query which does not change the data being passed to the report.
Thanks in advance
DanaDana,
This is the short-coming of the Query PLD. Once you change the Query, you will need to redo the template all over again.
Therefore, it is a good practise to always finalize the query and then design the layout.
Re-assigning the revised query to QPLD is not possible
Suda -
Trying to do a pop up from a column link
I have one interactive report (page 1) which I have defined a column link.
The column link is targeted to another interactive (page 2) within the same application.
Everything works except when I click on the column link in page 1 it does not pop up page 2, but instead replaces page 1 in the current window.
I have tried all kinds of java code popup window functions, but to no avail.
This is another simple syntax mistake I am making I am sure.
Any Ideas ?
Thanks in advance for your time.
AnonHello Anon,
Ok, here is how this works:
If Target = "Page in This Application" Then
in the Link Attributes box just above the Target put target="_blank" - this will open a new window and display your target page in that window.
HOWEVER, if your target = URL, you still need to put target="_blank" in the Link Attribute box, but put the URL in the place provided.
When I responded before, I got ahead of myself. This: javascript:popUp2('f?p=&APP_ID.:2:&SESSION.::&DEBUG.::P2_ID:#ID#',500,400)
is used in the HTML source for a Region (for example) to define a link.
Sorry for the confusion,
Don.
You can reward this reply by marking it as either Helpful or Correct :) -
Creating Report using EPM Functions with Dynamic Filters
Hi All,
I am new to BPC, In BPC 7.5 i seen like we can generate EPM report using EVDRE function very quickly and easy too. Is the same feature is existing in BPC 10.0 ? if no how can we create EPM reports using EPM Functions with Dynamic Filters on the Members of the dimension like in BPC 7.5.
And i searched in SDN, there is no suitable blogs or documents which are related to generation of Reports using EPM Functions. All are described just in simple syntax way. It is not going to be understand for the beginners.
Would you please specify in detail step by step.
Thanks in Advance.
Siva NagarajuSiva,
These functions are not used to create reports per se but rather assist in building reports. For ex, you want to make use of certain property to derive any of the dimension members in one of your axes, you will use EPMMemberProperty. Similary, if you want to override members in any axis, you will make use of EPMDimensionOverride.
Also, EvDRE is not replacement of EPM functions. Rather, you simply create reports using report editor (drag and drop) and then make use of EPM functions to build your report. Forget EvDRE for now.
You can protect your report to not allow users to have that Edit Report enabled for them.
As Vadim rightly pointed out, start building some reports and then ask specific questions.
Hope it clears your doubts. -
Dreamweaver 8 'Brace balancing' bug
One of the worst features of php is the reliance on braces
for flow control.
Although I try to carefully indent my code to indicate where
I am, I frequently
get into trouble because I have overlooked some brace
somewhere. Dreamweaver's
'Brace balancing' feature is a great help, but unfortunately
in Dreamweaver 8 it
suffers from a serious bug, in that it will balance on braces
in comments, or
even mistakenly placed in HTML code. It usually seems to
ignore brackets, but
this morning it is being thrown into confusion by a left
bracket inside an
assignment statement: $test_str = 'if(';
Naturally this is in a complicated piece of code in which I
have made some
stupid mistake, and it makes the Brace balancing completely
useless.
Can anyone tell me if the latest version also suffers from
this bug?
Clancy.oO(Clancy)
>Michael Fesser <[email protected]> wrote:
>
>>Have you considered to use SQL instead? You don't
even need a full DBMS,
>>SQLite should be enough in this case.
>
>This question is very relevant to my next question about
saving files.
>
> I have actually got MySQL installed on my system, but
after a quick look I
>realised it would probably take me a month to learn how
to use it, and I decided
>I didn't really need it yet.
It might take some time to get used to it and to grasp the
various
concepts like indexing and normalization for example, but
then SQL is a
really powerful tool with a rather surprisingly simple
syntax.
I was suggesting it because you're doing pretty much the
same, just your
own way. Currently you're building an 'if' statement
on-the-fly to cater
for a variable number and type of conditions to check
against. You can
do the very same thing with SQL and create complex queries
from small
different pieces. The condition part of such a query could
then look
like this:
status > 3 AND status < 6 OR class = 'student'
This is equal to
status >= 4 AND status <= 5 OR class = 'student'
which can also be written with a special operator to keep the
query a
bit more readable:
status BETWEEN 4 AND 5 OR class = 'student'
>Also, rightly or wrongly, I am under the
>impression that databases tend to be rather cumbersome
(an impression reinforced
>by Microsoft outlook professional, which I foolishly
installed, and which takes
>five seconds to load an address from my database of a few
hundred entries).
A real database is optimized to handle such things. If the
tables are
properly indexed, a search for all matching records is very
fast and
efficient, especially if you also want to sort the output or
want to do
something fancy with the data before you further process it
in your
script. Searching for an address in thousands or even
millions(!) of
entries can be done within the blink of an eye.
SQL can also be used to analyze the data or even extract and
create new
informations from the existing records. For example I have a
user
database, which stores firstname, lastname and birthname if
available
(besides a lot of other stuff). In my scripts I often want to
simply
print out the full name with the optional birthname in
parentheses:
Jane Bar (Foo)
John Doe
I could do it in the script, but it's much more efficent to
let the
database do this and have it return an additional field in
the result
set that already contains this full name in the required
format. So SQL
can easily return informations that are not directly stored
in the DB,
but generated on-the-fly. And this was just a very simple
example.
You should definitely give it a try if you find the time.
Micha -
Error with a hyperlink in a string ...Please help
Hello,
I am trying to print out a string variable in jsp but I get this error a ";" is expected in the following line:
wsDisplay = "<a href=\"member_session_detail.jsp?wsID="+ ws.getID()+"&clientID="+client.getID()+"><%=SMUtils.parseDate(contract.getStartDate()) + " @ " + SMUtils.parseTime(contract.getStartDate())%></a>";
I know that the error is due to a simple syntax error in the html code within the string but I can not seem to find it. Any help would be greatly appreciated. Thanks,If you do what BnB wrote, you need to then write the link value out:
<%
wsDisplay = "<a href=\"member_session_detail.jsp?wsID="+ ws.getID()+
"&clientID="+client.getID()+ ">" + SMUtils.parseDate(contract.getStartDate()) +
" @ " + SMUtils.parseTime(contract.getStartDate()) +
"</a>";
%>
<%= wsDisplay %>What you posted, looks like you really wanted to do this:
<%
... some Java code...
%>
<a href="member_session_detail.jsp?wsID=<%= ws.getID() %>&clientID=<%= client.getID() %>">
<%= SMUtils.parseDate(contract.getStartDate()) + " @ " + SMUtils.parseTime(contract.getStartDate()) %></a>the difference is the second one is not being assigned to a variable, it's just being written out (outside of <% %> markers, that is). -
Error while using jsp scriptlet or expression with JSPDynpage default jsp
Hi everyone,
I am getting the following error while trying to use any kind of jsp scriptlet or expression within the default jsp page that is created with JSPDynpage application:
Portal Runtime Error
An exception occurred while processing a request for :
iView : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
Component Name : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
Error occurs during the rendering of jsp component.
Exception id: 08:50_05/10/06_0032_17543050
See the details for the exception ID in the log file
For example if I try to use even simple syntax like:
<% if(true) { %>
display htmlb tableviewcomponent
<% } %>
or
<hbj:tableView
id="myTableView"
model="flightCustomer.model"
design="ALTERNATING"
headerVisible="true"
footerVisible="true"
fillUpEmptyRows="true"
navigationMode="BYLINE"
selectionMode="SINGLESELECT"
headerText="Flight Customer List"
onNavigate="Navigate"
visibleFirstRow="<%=flightCustomer.getVisibleFirstRow()%>"
visibleRowCount="5"
rowCount="16"
width="500 px"
/>
here also the <%=flightCustomer.getVisibleFirstRow()%> line gives the above mentioned error. If I remove such scriptlets or expression then it works fine.
What could be the problem. Are jsp scriptlets or expressions incompatible with portal applications?hi Navroz,
check this
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9
Re: Defining HTMLB tags in jsp file of JspDynPage component
Re: JSPDynPage does not work in EP6.0
bit more
JspDynPage with Client Side Eventing and Database
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d802d264f0
let me know u need any further info
bvr -
10pm on a friday and I want to go home. HELP!!
I'm being driven crazy by what I'm sure is a simple syntax issue. I have a Servlet that writes out an XML Report and have an attribute in this report called SelectByParticipant which has a value either 0 or 1 depending on whether I want the radio button checked when the screen loads.
Here is the XML report header:
<?xml version="1.0" encoding="windows-1251"?>
<?xml-stylesheet type="text/xsl" href="/tr/atmr/queryATMstatus.xsl"?>
<queryATMstatus SelectByParticipant="0">
Can someone tell me what's wrong with this picture?
<input type="radio" name="QueryBy" value="ByParticipant" onclick ="return FillParticipants()"> By Participants:
<xsl:if test=".[/@SelectByParticipant] = 1">
<xsl:attribute name="checked">
<xsl:value-of select="checked"></xsl:value-of>
</xsl:attribute>
</xsl:if>
</input>
I'm 99% positive that the problem lies here:
<xsl:if test=".[/@SelectByParticipant] = 1">
Because, here is the error message I get:
Expected token 'eof' found '='. .[/@SelectByParticipant] -->=<-- 1
It seems by the error message that it doesn't recognize the '=' symbol. What going on? What am I doing wrong. If I comment out the <xsl:if> everything works fine.I must say that //@SelectByParticipant is a pretty useless predicate. If you want to ask if there's any SelectByParticipant attribute anywhere in the XML that has the value 1, then you don't need any predicate at all. Try something more like this:
<xsl:if test="//@SelectByParticipant = 1">
If that's not right, then don't blame us. We are Java types here, there are XML and XSLT forums where you would probably get a better and quicker answer. -
IF NEW VARIABLE IN SQL QUERY, DISPLAYS AS LAST COLUMN + rpad not working
Hello everybody and thank you in advance,
1) if I add a new variable to my sql query to select a column which was already in the table, it shows it in the report table as the Last column to the right. That is, if I add "street" to
something like city, postcode, street, store, manager, etc, instead of placing street between postcode and store, it places it as i said as the last column to the right.
2) When values are entered into the cells of the tables, yes, they do expand it to their needed lenght, But, only if it is one word. If it is two, like when i enter the value "very good"
then it takes two lines so as with a carriage return within the cell, thus, making it too high the row. I tried to padd spaces with rpad but it did not work. something like rpad(stock, 20,' ')
I must say that the table is in the same page where there is a Form, so as the table grows in lenth it is actually squeezing the form located right on its left.
3) rpad did not work with the most simple syntax, but less would with what i need because it turns out i am using DECODE in order to do a conversion between value displayed and
value returned in my select list of values, something like : DECODE (TO_CHAR (stock),'1','Deficient','2','Average','3','Good','4','Very Good',null) AS stock,
so, i have tried to put the rpad there in several places but either it gave parsing error or it left the column empty not picking any values.
thank you very much
AlvaroAlvaro
1) That is standard behaviour of apex builder. You can change the display order with the arrows in the report attributes column report.
2) You will have to play with the style attributes of the column to accomplice this. For instance style="white-space:pre;" in the Element Attributes of the column attributes. White-space:normal would thread several space (' ') as 1. So no matter how many you add with rpad they will be shown as 1.
Or set a width either as attibute or in a style class for that column.
Nicolette -
Great Idea: Property Annotations alternative to getter/setters
Currently, a huge amount of Java objects use property fields with getter/setter accessors:
class MyClass
protected int xyz;
public int getXyz() {
return xyz;
public int setXyz(int xyz) {
this.xyz = xyz;
}.NET uses a slightly simpler syntax which internally generates getter/setter methods:
class MyClass
protected int xyz;
public int Xyz {
get {
return xyz;
set {
xyz = value;
}Most of the time (90%+), the getters and setters just set/return. Of course, there are times where it's necessary to implement additional logic without changing the interface presented to other classes. However, there are lots of cases where there is huge amounts of trivial getter/setter code. Also, it takes effort to maintain the getters/setters, when fields are added, deleted, or renamed.
Wouldn't it be much nicer to have trivial getters/setters implied via annotations? Instead of the above examples, do:
class MyClass
// defaults to providing both getter and setter.
@PublicProperty
protected int xyz;
}You could have variants for protected access, private access, and parameters for getter only or setter only. And, you would continue to use the traditional syntax when you want to do non-trivial getter/setter logic.
The big advantage is that this syntax would be much easier to maintain. Much less code to scroll through. Much easier to rename fields. Easier to delete fields. Easier to add new fields without relying on IDE "generate getter/setter" features.
What does everyone think?MelGohan + dizzy,
Java Beans and every library and framework built on top of Java Beans (such as JSF and EJB 3.0) require getters/setters; they aren't an optional design consideration. I could avoid such libraries entirely, but that is extreme.
aconst_null + YAT,
Interesting point about annotation limitations. However, Java Beans based frameworks such as JSF and EJB 3.0 could have support for such annotations. For example, in JSF, when you use {#bean.property}, the framework could check for getProperty()/setProperty() or check for an annotated instance variable named "property".
Or maybe there should be a language level solution to this rather than an annotation-based patch. Any time there is a large volume of rubber stamp code like this, there is probably a better design. -
Multiple timeout objects (object declaration problem?)
So what I'm trying to do here is create 4 separate timeOut objects that are each applied to 4 different sprites. Each has a variable for the duration that is set to 0 by default so that it does not even check to call the timeout handlers. When the user clicks on a sprite, the variable associated with that sprite's related timer duration is set to 5 seconds. When that timer runs out, the handler that is called stops the timer, resets the duration variable of the timer to 0, and changes that particular sprite's image.
Essentially, I want it so that the user can click each individual sprite and have each sprite change its image 5 seconds after that specific sprite was clicked.
While my code is probably repetitive and clunky, it seems like it should work to me - but I am no expert by far. It compiles fine, but when it runs, I get this message:
Script error : Object expected
timer1 = timeOut().new("timer1", timeoutDuration1, #timeOut1, me)
What exactly did I do wrong? I'm assuming it's some kind of simple syntax error but I can't figure out what. I've tried changing the name of the timer objects, setting them as global properties, etc., all I can think to do, but I can't figure it out. Or am I doing it entirely wrong altogether? Thank you SO much to anyone who can provide help.
My code is below.
property spriteNum, pMySpriteRef
property timeOut1, timeOut2, timeOut3, timeOut4
on beginSprite me
timeoutDuration1 = 0
timeoutDuration2 = 0
timeoutDuration3 = 0
timeoutDuration4 = 0
timer1 = timeOut().new("timer1", timeoutDuration1, #timeOut1, me)
timer2 = timeOut().new("timer2", timeoutDuration2, #timeOut2, me)
timer3 = timeOut().new("timer3", timeoutDuration3, #timeOut3, me)
timer4 = timeOut().new("timer4", timeoutDuration4, #timeOut4, me)
end
on enterFrame me
if (_mouse.clickOn = me.spriteNum) then
pMySpriteRef = sprite(me.spriteNum)
if pMySpriteRef = 1 then
timeoutDuration1 = 5000
else if pMySpriteRef = 2 then
timeoutDuration2 = 5000
else if pMySpriteRef = 3 then
timeoutDuration3 = 5000
else if pMySpriteRef = 4 then
timeoutDuration4 = 5000
end if
end if
end
on timeOut1 me
timeOut("timer1").forget()
timeoutDuration1 = 0
sprite(1).member = "Jellyfish_new_1"
end
on timeOut2 me
timeOut("timer2").forget()
timeoutDuration2 = 0
sprite(2).member = "Jellyfish_new_1"
end
on timeOut3 me
timeOut("timer3").forget()
timeoutDuration3 = 0
sprite(3).member = "Jellyfish_new_1"
end
on timeOut4 me
timeOut("timer4").forget()
timeoutDuration4 = 0
sprite(4).member = "Jellyfish_new_1"
endIs it possible you're updating an older movie that has its scriptExecutionStyle set to 9? What does the following tell you when executed from the message window:
put the scriptExecutionStyle
If it returns 9, change this by executing
the scriptExecutionStyle = 10
again from the message window and save your file. Timeouts should now work as expected (test and confirm).
Maybe you are looking for
-
When I use the "Import from Revel" function if PSE11 it opens up the entire Revel catalog in no particular useable order. Since I have 25000+ photos in numerous albums, that's no help. I found that I can "Save picture as" to specific folders on my h
-
Getting Internal Server Error while using SSPR in IDM 7.1
Hi All, We have implemented SSPR functionality in our IDM 7.1 system and everything was working fine as expected. However since last few days we are getting below error, once users is trying to change his password using SSPR. He is entering his uniqu
-
Alert if no file process :Same file adapter with same communication Channel
Hi XI Guru, I have encountered 1 requirement from my client where, sender will send different data file with different file name. And there want XI to alert the user if no file to process for the schedule date. Please take note that the communication
-
Some of my songs from iTunes are AAC (m4a not protected) and some are AAC (m4p Protected). Why is this??? Any insights would be much appreciated.
-
Hi my airplay connection from my computer to my apple tv it doesn't work anymore why?