Importing images & text into flash

  • fantasizzlin
  • Born
  • Born
  • No Avatar
  • Joined: Feb 05, 2004
  • Posts: 4
  • Status: Offline

Post February 5th, 2004, 9:19 pm

Hi,

Firstly thanks for reading and trying to help.

I have this database that is full of text and absolute URLs for images. It is easy to present this in HTML. How about in Flash? I heard that it is easy to import text into a text field in Flash, but not both text and images.

Please please please help me, as i want to display text & images in a flash page based on what is contained in a database


Thank you.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 5th, 2004, 9:19 pm

  • torbjorn
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 21, 2003
  • Posts: 23
  • Status: Offline

Post February 5th, 2004, 10:32 pm

It's real easy to import images into Flash by using the actionscript "loadMovie"

ex
loadMovieNum("http://www.website.com/image.jpg", 0);
or
loadMovie("http://www.website.com/image.jpg", target);

Try that.

t
  • fantasizzlin
  • Born
  • Born
  • No Avatar
  • Joined: Feb 05, 2004
  • Posts: 4
  • Status: Offline

Post February 5th, 2004, 10:53 pm

Thanks. BUt what about both images and text... YOu can imagine in an article, it has long text coupled with a few images. HOw do i import that piece in? In html, it's just a long text coupled with <img> tags.


Thanks again.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post February 6th, 2004, 12:32 pm

If you are using Flash MX 2004, an HTML enabled textfield in Flash MX 2004 supports the <IMG> tag. And that would be your easiest method.

If you are not using Flash MX 2004, then I am sure it can be done with a little craftiness of loading the images to clips and using a textbox for the text, but I am also sure this is quite complicated to set up just right. And I know I don't have the time to work something out for you. Sorry :(
  • fantasizzlin
  • Born
  • Born
  • No Avatar
  • Joined: Feb 05, 2004
  • Posts: 4
  • Status: Offline

Post February 8th, 2004, 5:48 pm

Thank you moderator!!

OK, we are government compliant, that means we only use Flash 6. My co-developer suggests having 2 movie clips glued together. One has the text with gaps, and the other just contains images. He hopes they can scroll together.


Is that advisable?
  • solaris
  • Student
  • Student
  • User avatar
  • Joined: Oct 18, 2003
  • Posts: 83
  • Loc: NC
  • Status: Offline

Post February 8th, 2004, 6:23 pm

yeah you can easily import text into individual text fields via text files, but im not sure if this is what you are trying to do ;)
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post February 8th, 2004, 11:28 pm

In Flash MX (which is Flash 6) you can use the ScrollPane component to scroll a movieclip symbol.

So inside a movieclip symbol have your textboxes, your clips to load the images to (via loadMovie()... only non-progressive .jpg images can be dynamically loaded), and your actions for loading stuff in, and then have the scrollpane component load this container clip.

Notes:

You may want to use LoadVars() to load the text in. For one it is more efficient and for two it allows you to have the onLoad event handler, which will then allow you to use the refreshPane() function after the text gets loaded in and displayed, so that the scrollpane will have a more accurate scroll.

If you don't know how to use any of these, I recommend checking out the actionscript reference that comes with Flash (Window/Reference) for information on these functions, etc.
  • fantasizzlin
  • Born
  • Born
  • No Avatar
  • Joined: Feb 05, 2004
  • Posts: 4
  • Status: Offline

Post February 9th, 2004, 5:53 pm

Thank you host!!! Let's play a warcraft game to relax after this tedious discussion!

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 25 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
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.