Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 17:28
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  How to make the ScrollPane's source from external swf
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: How to make the ScrollPane's source from external swf  (Read 1143 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 04/13/10, 01:26 »

Hello, somebody know how to make the ScrollPane's source with external swf?..

I have 1 movieClip in mu external SWF, then i will show that in my main ScrollPane

I have play around with Loader, but when i try to convert that Loader to MovieClip its say

Loader can't convert to the MovieClip, can u help me about this case?.. Smiley

Thanks a lot~ Cheesy
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 04/13/10, 01:46 »

you dont convert the loader - you make the loader load the clip.
The loader is the container for the clip and stays beeing the loader (container).
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #2 on: 04/13/10, 03:19 »

Ohhhh Understand Cheesy

but still have no luck T.T

Look at my code below

Code:
hinoPageRequest = new URLRequest("oke.swf");
hinoPageLoader = new Loader();
hinoPageLoader.load(hinoPageRequest);
var hinoPageMc:content_mc = new content_mc();
hinoPageMc.addChild(hinoPageLoader);
hinoScrollpane.source = hinoPageMc;

content_mc is a MovieClip that i have made library, when i do addChild(hinoPageMc) thats worked
but when i try to link the ScrollPane to the MovieClip its say (no default properties)

Thank you so much Cheesy
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #3 on: 04/13/10, 03:25 »

you should add it to the displayList - shouldnt you?  Undecided
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #4 on: 04/13/10, 05:02 »

Umm, what do you mean hehe?..  Tongue

can u show me the correct code?..  Shocked

several days ago its worked with me,

I have scrollpane, then MovieClip but in just library and export setting AS to the first frame
then i make new object about the Movie Clip, then i did myScrollpane.source = my_mc.

Thats worked well, but when i do with external swf whereas i have insert that in my main movieClip, its still didnt worked T.T

Thank you Ronald Smiley
Logged

Huihihi~ Cheesy
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #5 on: 04/13/10, 18:23 »

Ohh my god its done Cheesy

Wrong in really2 basic thing T.T

ScrollPane not Scrollpane  WAHAHAHAHA Sry Tongue

Thank you Ronald Cheesy
Logged

Huihihi~ Cheesy
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything