• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Scrolling content

New Here ,
Jun 20, 2008 Jun 20, 2008

Copy link to clipboard

Copied

Firstly, I'm brand-spankin' new to Flash, so forgive me if I sound ignorant.

I've browsed topics in here and while portions of my question have been answered, I still don't quite understand how to go about achieving what I'm going for. I'm trying to make a scrolling box containing both text and images. I know how to make a scrollable text area, but I'm not sure how to include images. I thoroughly read the help file located here that said that this is possible using html formated text and entering the image with the <img> tags, but I'm not clear on how this works. I have clicked the 'render text as html' option in the properties inspector and have the image located in my library. I have tried writing the HTML directly in to the box and also within a separate actions layer within the actionscript box.
I've seen that in order to have text show you enter the following "textbox.htmlText =". Is there something other than the basic <img> tag that must be entered to make a picture show up?? This is all very confusing to me! If this were possible without ActionScript it'd be a heckuva lot more convenient.

Also, is there a way to have a single scroll bar effect all content within a certain area? For example, the scroll bar within an internet browser scrolls all content within the viewing area. I'm wondering if I can have differently formatted and located blocks of text, images and design all designated to scroll by a single scroll bar.

Kinda got thrown in to designing the company website in flash and I've got to get this live by tomorrow. I hope I'm making sense, and thank you!
TOPICS
ActionScript

Views

526

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 20, 2008 Jun 20, 2008

Copy link to clipboard

Copied

I'm guessing that you are using a dynamic textfield. If that's the case then just put the images in the same location as the text file that you are importing. Then use the same path to the images, in the <img> tag that you used in the URLRequest() when you import your text.

You are pretty much limited to using normal .jpg image files.

You can only set one scrollTarget for any given scrollBar. If all of these blocks of text, etc are meant to move as one object, then place everything in one display object or movieClip and then scroll the that one object.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2008 Jun 21, 2008

Copy link to clipboard

Copied

I'm not importing an external text file, I'm trying to type directly within the program. I have, however, tried using an instance name and an actions layer and using the <img> tag (nothing else, just the image tag) and nothing shows.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2008 Jun 21, 2008

Copy link to clipboard

Copied

The picture is located within my library in flash. I don't know anything about doing the code. I have an actions layer within the time line for the movie clip I'm working in and I'm entering the code from there. Neither the text text nor the image is showing up.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2008 Jun 21, 2008

Copy link to clipboard

Copied

where's the image you want to display?

and copy and paste the code you're using to assign content to your textfield (using the attach code option in this forum).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2008 Jun 21, 2008

Copy link to clipboard

Copied

1. you need a multiline html-enabled textfield with intance name textbox on stage

2. you need to convert your bitmap to a movieclip

3. you need to assign your movieclip a class

4. you need to use the class as the src value

5. there should be no line breaks used when assigning the htmlText property to your textfield.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 21, 2008 Jun 21, 2008

Copy link to clipboard

Copied

I didn't understand any of that...(laughs) I converted the image to a movie clip. I have a dynamic text field with an instance name on stage enabled for HTML. I took out the line break. I don't know what you mean by assigning it a 'class'. I'm new to website design to begin with (been working with Dream Weaver for about a month now) and now I've been charged with making a Flash site that has to be up in a matter of hours. So I'm very much confused at this point.

Edit: I've found the class information within the properties for the movie clip. I have it set as 'Identifier: QTpic, Class QTPic' and now I get an error saying 'the class or interface 'QTpic' could not be loaded.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 21, 2008 Jun 21, 2008

Copy link to clipboard

Copied

what identifier? are you using as2 or as3?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 24, 2008 Jun 24, 2008

Copy link to clipboard

Copied

I'm using AS2. The template I'm working with won't work with AS3

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 24, 2008 Jun 24, 2008

Copy link to clipboard

Copied

LATEST
then you should be posting in the as1/as2 forum.

the src value in your image tag should match your MOVIECLIP's linkage id. you can't use a bitmap so convert it to a movieclip.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines