PDA

View Full Version : Loadmovie with scrollbars


flip
06-15-2003, 06:10 PM
When using loadmovie to load external movies onto a target movie clip, is there a way to make the target into a window with a scroll bar, so that you can limit what's visible and scroll all content that's been loaded from the external movie? (like in HTML frames)

Caimin
06-16-2003, 05:15 AM
Have a look at the scroll pane component - sounds like what you want.

farafiro
06-16-2003, 06:37 AM
welcome flip

u can also make your own scroll window

flip
06-16-2003, 07:06 AM
But the scroll pane component loads in a movie clip (either from an instance on stage, or the library)

What i want to do is load in an EXTERNAL movie using loadmovie.
Is there a way to load that in the scroll pane?

How can i make a window where i can load extrenal movies and have a scroll bar to view it all?


Thanks for the warm welcome everyone - much appreciated! :D

CyanBlue
06-16-2003, 07:30 AM
Howdy...

If you are asking if ScrollPane component can load external SWF file, then the answer is YES... You can use loadScrollContent() function to do that...FScrollPane.loadScrollContent

Availability

Flash Player 6.

Usage

myScrollPane.loadScrollContent(URL [, funcName, location])

Parameters

URL A string specifying the URL of a SWF or JPEG file to load into the scroll pane.

flip
06-16-2003, 08:48 AM
Thanks CyanBlue, it sort of-works! :confused:
This function allows me to add a scrollbar to the external flash movie, although with a slight problem.

The text in my external movie isn't masked within the bounds of the scrollpane.
Also, when i put the scrollpane into a mask (so to mask the text) the text disappears!

I've attached a prototype i built to give you a look.
(please export the 'scrollpane' movies, as the file was too big when including these exported movies)


Thanks!

CyanBlue
06-16-2003, 08:51 AM
First of all... If you have problem with the text field not showing the text, it is the font issue 90% of the times...

If you are loading an SWF file into the scrollPane component, you should have the same font embedded within that external SWF file in the Flash movie that has the scrollPane component...

If you have problem with the scrollPane not being able to mask things right, it usually is the problem of the Flash Player version...

Open up a new Flash movie and type this in the first frame of your movie...trace(getVersion());and do the test movie to see the current Flash Player version... The most new one is the 6.0.79.0...

See if that solves any of the problem... ;)

farafiro
06-16-2003, 08:52 AM
also here is a besic tut for using the component, so u can combine it with Cyan's suggestion

http://cbtcafe.com/flash/scrollpane/index.html

flip
06-16-2003, 08:53 AM
Thanks CyanBlue, it sort of-works! :confused:
This function allows me to add a scrollbar to the external flash movie, although with a slight problem.

The text in my external movie isn't masked within the bounds of the scrollpane.
Also, when i put the scrollpane into a mask (so to mask the text) the text disappears!

I've attached a prototype i built to give you a look.
(please export the 'scrollpane' movies, as the file was too big when including these exported movies)


Thanks!

flip
06-16-2003, 09:04 AM
Sorry people, use the second attachment :(


How do i embed fonts? That may be the issue...

Also, my player version is:
WIN 6,0,21,0

Can you all see my prototype?
Do i need to put my scrollpane in a mask? I would have thought ALL content would be contained within the scrollpane!

CyanBlue
06-16-2003, 09:15 AM
I am 90% sure that what I have said will solve the problem... ;)

I'll have to go get some sleep soon, but follow these links...

To upgrade your Flash Player...
http://www.macromedia.com/support/flash/ts/documents/flashplayer_r40.htm
Make sure that you are downloading a file that is about 10mb for this...

To embed the font...
http://www.macromedia.com/support/flash_remoting/ts/documents/scrollpane_textfields.htm

Good luck and hope you get it right... :)

flip
06-16-2003, 09:18 AM
Thanks, i'm already updating my player (about to restart computer!)


I'll read up on the embedding when i come back - thanks a heap!

Have a good night!

CyanBlue
06-16-2003, 09:39 AM
Yeah... You should be able to get that thing working with breeze... :) Good day!!!

flip
06-16-2003, 09:41 AM
To all people in this thread... you are legends!

LoL! It works!
Updating the Flash player had no effect (although it is nice to have the latest version! :D )
However embedding the font solved the problem and constrained ALL external movie contnet within the scrollpane.


One last thing i need to ask - how do i make the while scrollpane background invisible and change the arrow buttons and stuff?

CyanBlue
06-16-2003, 09:44 AM
Glad to hear that you got things solved... ;)

To customize the component...

You gotta read ths part... This is pretty heavy stuff, but if you understand this one right, you won't be having trouble what you want to do...

Using Flash > Using Components > Customizing component skins
Using Flash > Using Components > Customizing component colors and text

Alrighty??? ;)

flip
06-16-2003, 10:00 AM
i've figured out the rest!

Basicially i can directly edit the 'FScrollBar' skins to change the arrows and related stuff.

In 'Global Skins' i simply delete the borderline and (as i can't delete the white box - bad things happen... trust me... :eek: ) i set the alpha to 0%, effectively removing the background!

I'll continue to work on it and post the completed one!

flip
06-16-2003, 10:03 AM
I'll read up on the component stuff to see if there's a better way!

Embedding font GREATLY increases the file size, is there a way to embed a font into the flash file once, rather than every text box? Or is Flash already doing this when you export??

CyanBlue
06-16-2003, 06:02 PM
Cheers... Great job!!! ;)

That's exactly the way I do things... :)

As for the file size with the embedded font, 1 font usualy increase between 10-20k... I don't think you can call it 'greatly'... I, myself, am on 56k and as long as the content is solid and tight, and there is a preloader I don't have a problem with the bigger file size... Maybe that solely depends on the personal preference... Besides, by embedding the font, you are ensuring the graphical quality, meaning you are ensuring that the font is showing to the end user as you are desired to be... Just my 2 cents... :)

flip
06-16-2003, 06:25 PM
Yeah, cool. :D

I'm on a 56k modem myself, so i know how annoying it can be to wait for stuff, thus i try to aim for small file sizes!

But i agree, if it preserves the integrity of your content and design, then embedding the font is the way to go.
Oh and I am putting in a preloader, just haven't got around to it yet with all the changes i've made (i now see a downside to prototype development! :( )

Hehehehe! :p

Talk with you later man, it's like 3:30am here in Australia, and i got to sleep before my exam (which is in 10.5 hours!)
Thanks for all your help - with it, it's been quite a productive day!

;)

CyanBlue
06-16-2003, 06:41 PM
You're very welcome... I learn things while I do that... ;)

I think you will need to get a document updater from the Macromedia as well if you haven't any...
http://www.macromedia.com/support/flash/documentation/flmx_documentation_updater/

Good luck on the test and sleep tight... :)