So much good info!  I struggled with just trying to load from a text
file, but this gives me a few gotchas to check out.  I might actually
get it to work this time.

-----Original Message-----
From: Jason Miller [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 6:35 PM
To: CF-Talk
Subject: Re: Flash and CF Integration

you use a 
loadVariables( "http://www.syourdomain.com/page.cfm";
<http://www.syourdomain.com/page.cfm> , _root);

command. Things to note.
Do a search on LoadVarsNum and LoadVars - you'll wind up using needing
to know when to use which and why.

Also - notice my "_root." - well in some instances that may work as
"_level0." depending on setup of your movie. But if all the boxes are
simply on root timeline - then you reference a loaded var from cf string
&name=Dennis
as _root.name in the text properties box.

It is better practice to load the vars up into a MC - In that case
change that statement way up top to the instance name. Create an MC with
all your form fields in it. Place it on the stage. Remember to name it
in instance properites and load them into that MC. Say the MC was -
MyStuff.
then you reference it simply as _root.MyStuff.name
Follow?

Also - important 
you CAN NOT use data on the same frame you loaded it.

This will save you alot of time. Parse a variable to look for at the end
of the cfm string. like &EOF=True
Then in flash - the frame after your loadVars - do something like this
if (EOF == 1) {
    EOF = 0;
    gotoAndPlay(3);
} else {
    gotoAndPlay(1);
}

So it only proceeds IF the end of the string is received. Flash takes
care of everything else.

That should get you started.
actionscript.org & 
flashcfm.com are great resources with out too much noise.
Jason Miller



dennis baldwin wrote:


Also, please feel free to check out  www.devmx.com
<http://www.devmx.com>  for more info on

Flash/CF integration.



Regards,

Dennis



-----Original Message-----

From: Samuel R. Neff [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ] 

Sent: Tuesday, November 26, 2002 9:48 AM

To: CF-Talk

Subject: Re: Flash and CF Integration





Yes, this can be done in Flash.  We're working on a very similar 

application where it maps items to a grid and then draws connectors

between 

related items.



Regarding layers, the first thing to remember is that they are only used



for z-order and organization.  AFAIK, they don't actually exist in the 

final SWF (only in the FLA).  That said, it is crucial to app 

maintainability that all items be on a separate later, or at the very

least 

all unrelated items (so a box and it's outline can be on a layer, but

other 

boxes should be on a different layer).



However, for dynamic layout like this, it's far easier to add items to

the 

timeline programmatically with attachMovie--when dealing with this many 

boxes, you should find it improves maintainability.



BTW, since these questions are not really related to CF, this thread

would 

probably be best served on a Flash 

forum.   http://webforums.macromedia.com/flash
<http://webforums.macromedia.com/flash>  or

http://chattyfig.figleaf.com/ <http://chattyfig.figleaf.com/> 



HTH,



Sam





At 06:16 AM 11/26/2002, you wrote:

  

I'm doing my first Flash and CF integration app and have a list of

questions.  I have to dynamically display data in 14 text boxes as well

    

as 

  

have up to 36 dynamic lines connecting the boxes based on query 

results.  I"m not sure if this is possible with flash. I have my

    

template 

  

done in flash but everything is on 1 layer. Do I need to put things on 

different layers? Can anyone tell me if this is possible? There will be

    

at 

  

least 15 queries that have to be run to populate this template with the

    



  

correct data.  Any suggestions? Help? If you would like to see the fla 

file, please email me.



TIA

    







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to