Need help with scrolling images

  • dreadlock1
  • Born
  • Born
  • dreadlock1
  • Posts: 3

Post 3+ Months Ago

My site, http://www.homexchangenetwork.com, currently has a scrolling text box.
I think this is the scrit here. What like to do is convert this to be able to pull house images from a database and show them here. This would be just our featured listing. I am using open-realty.org as the real estate script.

Any suggestions on how I can pull images for the OR database and show them on the home page of my flash template.

onClipEvent(load){
perem=0;
step=0.5;
}
onClipEvent(enterFrame){

m_scroll=_parent.txtcont.maxscroll;
//trace("m_scroll - " + m_scroll)
if(_root.txt_up=="true" and perem<=m_scroll ) {
perem+=step;
_parent.txtcont.scroll = perem;
}

if(_root.txt_down=="true" and perem>=0 ) {
perem-=step;
_parent.txtcont.scroll = perem;
}

}
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

yea, start using php or asp.
further more read some tutorials on how to interact from flash with these server scripts.
steps:
1) call a php file from flash using loadvars.send,
2) in that php file read the database to get a filepath or to generate a temporary image if the image is actually stored in the database.
3) read the file path from the php file using loadvars.load
4) use mcImage.loadMovie(retrived_path)
  • dreadlock1
  • Born
  • Born
  • dreadlock1
  • Posts: 3

Post 3+ Months Ago

dreadlock1 wrote:
My site, http://www.homexchangenetwork.com, currently has a scrolling text box.
I think this is the scrit here. What like to do is convert this to be able to pull house images from a database and show them here. This would be just our featured listing. I am using open-realty.org as the real estate script.

Any suggestions on how I can pull images for the OR database and show them on the home page of my flash template.


This is the txtcont for the box on my homepage http://www.homexchangenetwork.com
I reviewed the tutorial at actionscript.org but wasn't able to pull things together to convert this to pull images from a php file.

onClipEvent(load){
perem=0;
step=0.5;
}
onClipEvent(enterFrame){

m_scroll=_parent.txtcont.maxscroll;
//trace("m_scroll - " + m_scroll)
if(_root.txt_up=="true" and perem<=m_scroll ) {
perem+=step;
_parent.txtcont.scroll = perem;
}

if(_root.txt_down=="true" and perem>=0 ) {
perem-=step;
_parent.txtcont.scroll = perem;
}

}

This is on layer 7 frame 1 (text that appears in box) wasn't sure if I should put the new script here or edit the above.

txt="<FONT COLOR='#64A33C'>» </FONT> <FONT COLOR='#5D5D5D'><b>28.07.2005</b></font><br><FONT COLOR='#64A33C'><u><a href='http://www.yourcompanynamesite.com'>Lorem ipsum dolor</a></u><FONT COLOR='#64A33C'><br><FONT COLOR='#5D5D5D'>adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.</font>";

txt+="<br><br><FONT COLOR='#64A33C'>» </FONT> <FONT COLOR='#5D5D5D'><b>28.07.2005</b></font><br><FONT COLOR='#64A33C'><u><a href='http://www.homexchangenetwork.com/residential'>Lorem ipsum dolor sit amet</a></u><FONT COLOR='#64A33C'><br><FONT COLOR='#5D5D5D'>adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.</font>";
txt+="<br><br><FONT COLOR='#64A33C'>» </FONT> <FONT COLOR='#5D5D5D'><b>28.07.2005</b></font><br><FONT COLOR='#64A33C'><u><a href='http://www.yourcompanynamesite.com'>Lorem ipsum dolor sit amet</a></u><FONT COLOR='#64A33C'><br><FONT COLOR='#5D5D5D'>adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.</font>";
txt+="<br><br><FONT COLOR='#64A33C'>» </FONT> <FONT COLOR='#5D5D5D'><b>28.07.2005</b></font><br><FONT COLOR='#64A33C'><u><a href='http://www.yourcompanynamesite.com'>Lorem ipsum dolor sit amet</a></u><FONT COLOR='#64A33C'><br><FONT COLOR='#5D5D5D'>adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.</font>";
txt+="<br><br><FONT COLOR='#64A33C'>» </FONT> <FONT COLOR='#5D5D5D'><b>28.07.2005</b></font><br><FONT COLOR='#64A33C'><u><a href='http://www.yourcompanynamesite.com'>Lorem ipsum dolor sit amet</a></u><FONT COLOR='#64A33C'><br><FONT COLOR='#5D5D5D'>adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta.</font>";

any ideas on a potential edit of this script to get images to appear in this box. the images im tryin to place there comes from homexchangenetwork.com/residential

Thanks in advance for any help

George
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

this is what happen when someone has no idea about programming and thinks there's a magic formula which will solve his problem.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.