Page 1 of 1

Migrating Flash Code to Rev

Posted: Thu Feb 04, 2010 2:21 pm
by gpearson
I come from a Flash and Adoto be Air background as I am trying to move me applications over to Rev to get prepaired when RevMobile is released. I have also search the internet and have not found the correct answer on how to perform the following tasks that have troubled me and I can not wait until November for the Conference even though it would be nice to be hosted on east coast in the future.

Troubling Task 1: In my Adobe Air application I grab the screen resolution and put the application in the bottom right of the screen In my script I have the following code but I am not sure how to display the local variables in a text box to make sure they are correct or how to move the stack to the bottom right corner of the screen. The stack is 100H and 250W

put screenRects() into gScreenResolution
local tScreenResolutionH
local tScreenResolutionV
put the fourth item of gScreenResolution - 100 into tScreenResolutionV
put the third item of gScreenResolution - 250 into tScreenResolutionH

Troubling Task 2: As mentioned in Task 1, I am having issues with dynamically replacing text in a label field with new text at various times in my script. Ideally I am wanting to pull down an XML File from my Coldfusion Server to display the results in this stack to be displayed on a card.

Re: Migrating Flash Code to Rev

Posted: Thu Feb 04, 2010 2:35 pm
by Klaus
Hi gpearson,

1. This is extremely easy with Rev and a one liner :D
...
set the bottomright of stack "Your stackname here..." to item 3 of the screenrect,item 4 of the screenrect
## This just works, no need to check the coordinates in a textbox!
...

2. Sorry, need a bit more info.


Best

Klaus

Re: Migrating Flash Code to Rev

Posted: Thu Feb 04, 2010 2:51 pm
by gpearson
In Number 2 I am trying to do the same thing that I do for my flash applications and trace values to see what they hold to make sure that my logic is correct. In flash I use an alert message box to display debugging information. So using that knowledge, I have dragged a label field onto my card and would like to replace the default Label in the contents with the value from tScreenResolutionH so that when I execute the application this value is displayed on the card.

This will allow me to debug variables and code as I learn this new language I am so excited about and can't wait until the conference.

Re: Migrating Flash Code to Rev

Posted: Thu Feb 04, 2010 3:34 pm
by Klaus
Ah, I see.

...
set the label of btn "Your button here" to (item 3 of the screenrect & "," & item 4 of the screenrect
...
Would display 1600,1200 in this button on my monitor.
You get the picture :)


Best

Klaus

Re: Migrating Flash Code to Rev

Posted: Thu Feb 04, 2010 4:50 pm
by FourthWorld
Howdy Graham -

Klaus covered the technical issue, but if you don't mind I have a question for you and one for the group here:

My question for you is what drew you to Rev over AIR for this project? I ask because I've been looking into AIR for a few things but haven't had the time to delve too deeply. Any insights you can share about pros and cons relative to Rev would be appreciated.

This raises my question for the other members here:
> I can not wait until November for the Conference even though it would be nice to be hosted
> on east coast in the future.

Are there enough folks here to make a local user group in the Chicago area?

We have a Rev User Group here in LA, and it's been a great opportunity for folks to get together to help solve scripting issues, share tools and tips, and have a good time.

If there are folks in your area interested in setting up a group, I'd be happy to share some of the things we've learned setting up our SoCal RUG.

Re: Migrating Flash Code to Rev

Posted: Thu Feb 11, 2010 7:36 pm
by gpearson
the short answer to this question is the RevMobile. The long answer will follow.

In my application at www.weareclosedtoday.com has strictly been created in Coldfusion, Flex and Adobe Air. The Adobe Air piece of this application sits on a computer in the Radio Station and runs when they start it. This application then polls my server ever 5 minutes and in the event of a school delay or closing will turn red so the radio board operator can click a button to see all schools who have changed their operating status in our system. The adobe Air application has worked out very well as I learned how to have the application update itself so when I publish a new version, all of the radio stations will be on the same version.

What has me looking at Runtime Revolution is the Mobile Piece of my We Are Closed Today puzzle as Apple is making a huge push into the Education market here in Indiana after a 7 year absence. Apple got smart I think this time around and started to get into the brains of the Administration who then buys into this idea to bring it into the classroom.

I am wanting to create an iPhone Management Application for my We Are Closed Today System so an administrator can update status while they are on the roads determining if they should attend school today or not. At the present time they are traveling back to home or office to login to the website to post their updated status. I have spent 6 months trying to get an Mac Mini donated to our school so I can start developing this application without any luck. My bother who is learning runtime revolution mentioned to me about this new Runtime Mobile application so I started looking into this in hopes that I can learn enough so that when this Mobile Application is released, I can convert by exisitng applications to it fairly easy.

Since I work in education and having to pay for things out of my low salary, I am hoping I can afford to goto the Conference on the other side of the country in November. I want to acquire as much information as I can so that the conference can empower me so that it would not be a waiste of time since their is no money in our budget to send me to learn even through the application is strictly educational. I am hoping I can get my IRS Return back in time to purchase my conference ticket then I would just have to worry about finding a way to California and back which might still be a hurdle.

Being in K-12 Education for the past 14 years, I have some neat ideas for applications which I have created web based versions already and the thought of creating a standalone application to do the same thing as a web page that will still talk to my Coldfusion Servers is a great enhancement that no one else has done in this market before. One of the popular Adobe Air Applications, I am converting to Runtime Revolution as a standalone and with the possiblity of having this same application work on an iPhone would just put icing on the top of the cake.

Re: Migrating Flash Code to Rev

Posted: Fri Feb 12, 2010 3:34 pm
by FourthWorld
That sounds like a way cool system, Graham. Thanks for taking the time to provide that background.

Just curious: How large is the AIR engine? I'm assuming it gets bound to your Flash file to make a standalone, yes?

And is it self-contained, or does it require an installer that puts DLLs or other components in the system like Tookbook does?

If you make to RevLive '10 I look forward to meeting you there.

Re: Migrating Flash Code to Rev

Posted: Mon Feb 15, 2010 2:34 am
by gpearson
FourthWorld wrote:That sounds like a way cool system, Graham. Thanks for taking the time to provide that background.

Just curious: How large is the AIR engine? I'm assuming it gets bound to your Flash file to make a standalone, yes?

And is it self-contained, or does it require an installer that puts DLLs or other components in the system like Tookbook does?

If you make to RevLive '10 I look forward to meeting you there.
The Adobe Air is a Flash Based Application that runs which turns Flash/Flex Files into its own desktop application. I am not sure on how the Adobe Air application works, all I know is I use Flex Builder to create the flash file and then I build the project as an AIR File.

I know I am real excited about learning RR as I can not wait until the Mobile product gets released as I really did not want to purchase a MAC to develop the iPhone Application.