David Glasgow | 10 Feb 16:23
Picon
Gravatar

Re: moving and scaling an image


On 9 Feb 2012, at 9:16 pm, Ken Corey wrote:

> From:  <ken@...>
> Date: 9 February 2012 8:30:35 pm GMT
> To: use-livecode@...
> Subject: Re: moving and scaling an image
> Reply-To: How to use LiveCode <use-livecode@...>
> 
> 
> Well, I must be missing something.  Take a look at:
> 
> http://its.ec/static/faux3d.livecode.zip
> 
> Is that the kind of thing you're after?  Seems smooth enough for me (and "works" in the iOS simulator, though
the Motif-themed scrollbar looks decidedly odd).
> 
> -Ken

Thats the kind of thing!  Looks like I should forget about the move command, and just shuffle off to the
destination shrinking as we go.  I am surprised at how smooth it is.

Just out of interest, I disabled the unwiggle line of your script, but was a bit disappointed not to see any
obvious wiggle.  

Cheers,

David Glasgow
_______________________________________________
use-livecode mailing list
(Continue reading)

Alex Tweedly | 10 Feb 16:01
Favicon

Can I not use constants in revserver scripts ?

> constant K = "asdf"
> put K

If I put the above 2 lines in a script in a stack or in the IDE/msgbox, 
I get (as expected) "asdf" output.

But if do the same thing in a revserver script  (in my case, on-rev),  I 
get "K".

That seems wrong to me, and the dictionary for constant includes server 
in its platform list.
Am I missing something ?  Can someone else try it and see if I'm doing 
something odd.

Thanks
-- Alex.

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Richard Gaskin | 10 Feb 15:14
Favicon

System reqs?

There's a question in the forum of where to find the system requirements 
for LiveCode at runrev.com:
<http://forums.runrev.com/viewtopic.php?f=5&t=36>

I thought that would be easy to find, but it eludes me.

Anyone here have the URL?

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Jonathan Lynch | 10 Feb 13:18
Picon
Gravatar

iRev database access security question

Hi everyone,

If I have an iRev page that is going to access a database, I have to use a
database query that includes the user name and password. Is it safe to put
that information directly into the iRev page? That seems risky to me.

If I put the information into another page and I use a script to pull in
the information, wouldn't a hacker be able to look at the script, learn the
location of the other page, and then directly access that page?

I realize that the scripts on an iRev page do not show up when you view the
source of the page through a browser. Does this mean that the script
information on an iRev page is genuinely secure?

I appologize if these are ignorant questions.

Many thanks,

Jonathan

--

-- 
Do all things with love
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Richard MacLemale | 10 Feb 12:19
Gravatar

10.7.2 Record Audio

OK, I tried searching the archives but came up empty.  I tried posting on the forum, but so far no responses.

I'm running Mac OS 10.7.2, and LiveCode 5.0.2.  The following command records bad, crackly audio:

record sound file "/Users/admin/Desktop/my_new_sound_file"

There's nothing wrong with my Mac - I record audio all the time.  What is the best way to record audio?

---
Richard MacLemale
Music = http://www.richardmac.com
Software = www.macandchee.se
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Bob Sneidar | 10 Feb 01:35

Drag and Drop in a locked field

Hi all. I use locked fields with multiple lines and listBehavior set to true as a kind of menu. Now I am trying
to allow the user to rearrange the items in the list. I read in the Dictionary that LC handles drag and drop
between *unlocked* fields automatically. Crud. So I tried unlocking the field on mouseDown and then
sending mouseDown again in 0 seconds, but that was a bust. I tried just unlocking the field on mouseDown and
locking it on mouseUp but that was problematic too. 

Any easy way to implement this? I could use a datagrid I suppose (grumble grumble) but it would be nice if I
could just do this with a simple list field. I want to reorder entire lines by dragging and dropping them. 

Bob
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Andrew Kluthe | 9 Feb 23:17
Favicon

input and output to a cli

Hey,

I have a program with a command line interface that was written in nodejs
to act as a bot for an irc server. It takes commands and prints responses
and chatter in irc out to a command line.

I launch it by calling this from a command line.

node borg.js

and I get a prompt similar to OHAI> and it waits for commands.

I input commands and read the responses right from the command console. I
want to be able to send commands to this interface from a livecode program
on windows and I want the output to be displayed in a scrolling list field.
How does one go about communicating with this kind of command line
interface with livecode?

Can anyone point me in the right direction?

Kind Regards,

Andrew K
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

(Continue reading)

Klaus on-rev | 9 Feb 21:24

regex help please

Hi friends,

in my current project I need to deal with VERY small XML files 
with maybe up to 20 entries.

So using the XML external seems to be a bit overkill.

Some time ago I found a little reg ex here on the list which I turned
into a function and will return me everything inside of a given XML tag:
...
<tag1>bla bla</tag1>
<tag2>more bla bla</tag2>
...

So with this text above in tText and "tag2" int tTag:

function mk_getXMLdata tText, tTag
   get matchText(tText,"(?s)<" & tTag & ">(.*?)</" & tTag & ">",tValue)
   return tValue
end mk_getXMLdata

will give : more bla bla
So far so good, I even almost understand the reg ex ;-)

Now I am looking for another little snippet to (over) write something in(to) 
a certain TAG, know what I mean?

If someone could supply a nifty "replacetext" snippet that would be great! :-)
Thanks in advance!

(Continue reading)

Malte Brill | 9 Feb 20:00
Picon
Favicon

Re: moving and scaling an image

Hi,

if you want to move and scale at the same time, changing the rectangle property is your friend. You will want
to do this in a send in time structure and calculate where the the corner points of your control need to be at
the given time. You will want to lock screen before you set the rectangle and unlock it afterwards. For the
iPad a frameRate of about 20 to 45 fps can be achieved, depending on how many objects you move and scale at the
same time. It is advisable to not use the "best" resizequality option for the image. If you are choosing not
to use images, there is room for a little more fps. No true 3d with this, as Ken already said. 

<shamelessPlug>animationEngine handles this task quite effeciently I guess with the aeChangeRect
command. You can even let your movement and scaling ease with it. :-) </shamelessPlug>

Cheers,

Malte
_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Pete | 9 Feb 19:27
Favicon

Strange Option Menu behavior on Windows

I am experiencing some very strange behavior of a standard Livecode option
menu on Windows 7 - the same menu works perfectly on OS X.  The only
perhaps slightly unusual situation is that the option menu is in a
customised datagrid column.

The option menu contains various comparison operators, such as +,<,>,
<=,>=, etc and its menuhistory is initially set to 3 which equates to the =
sign.

The = sign is visible in the option menus on every row of the datagrid
except whichever row is currently selected in the datagrid, whether
selected by script or clicked on by the user.  On that row the option menu
appears to be blank.  However, when I click on it to show the options list,
the = sign appears and is highlighted but all the other options in the list
appear blank until I move the mouse over one, then the option appears in
the display.

As mentioned this does not happen on OS X, just on Windows.

I'm afraid this sounds like some sort of weird bug related to Datagrids,
option menus, and Windows but hoping someone might be able to shed some
light on it.

Thanks,

--

-- 
Pete
Molly's Revenge <http://www.mollysrevenge.com>
_______________________________________________
use-livecode mailing list
(Continue reading)

Klaus on-rev | 9 Feb 19:19

savingStandalone

Hi friends,

there is this handy "savingStandalone" message which does not come with any parameter.

Is there a way to get to know for what platform the current standalone is being build?
I would take different actions for Mac resp. Windows standalone, but probably I'm out of luck...

Any hints welcome! :-)

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus@...

_______________________________________________
use-livecode mailing list
use-livecode@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Gmane