Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-30-2007, 02:00 AM   #1
absolutezero3424
Member
 
Join Date: Jan 2007
Posts: 73
Default problem with fl.* packages

Sometimes I have trouble importing the "fl.controls.*" & "fl.containers.*" packages. I'm assuming it's a problem w/ everything in the "fl.*" package???

is this a common problem? Sometimes it happens and sometimes it doesn't???
absolutezero3424 is offline   Reply With Quote
Old 10-30-2007, 02:10 AM   #2
paulreitz
Senior Member
 
Join Date: Mar 2007
Posts: 124
Default

Do you have the classpath set to the fl folder?
paulreitz is offline   Reply With Quote
Old 10-30-2007, 03:42 PM   #3
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

You'll need the component(s) in your library
__________________
(6)
senocular is offline   Reply With Quote
Old 01-10-2008, 10:46 AM   #4
Sekter
hello.world()
 
Sekter's Avatar
 
Join Date: Jan 2008
Location: Ncl, Uk
Posts: 129
Question

Can someone please give a clear indication as to the path that you would be placing the fl folder? You say you need the components in your library? Do you mean have the fl (with all the .as files) in the library folder?
Sekter is offline   Reply With Quote
Old 01-10-2008, 05:34 PM   #5
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

If you need to use a specific component from fl.controls.*, it needs to be dragged from the Components panel to your library. You're not putting folders or *.as files in your library.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 01-10-2008, 07:37 PM   #6
Sekter
hello.world()
 
Sekter's Avatar
 
Join Date: Jan 2008
Location: Ncl, Uk
Posts: 129
Default

Yeah but what if someone wants to create a Slider only via action script (not by dragging from the components) and then wants to add that to the stage. Then hes going to have to:
- import fl.controls.slider in the actionscript
- Create an instance of the slider: var sliderz:Slider = new Slider();
- And then add an instance of it to the stage via: addChild(sliderz);
When I do this for example i get an error saying that it cant find the Slider or anything in the fl. package ?
Sekter is offline   Reply With Quote
Old 01-11-2008, 05:34 PM   #7
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

It must be in your library, even if you want to instantiate it with ActionScript.
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 01-11-2008, 10:21 PM   #8
Sekter
hello.world()
 
Sekter's Avatar
 
Join Date: Jan 2008
Location: Ncl, Uk
Posts: 129
Default

riiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiight... makes sense now . cheers.
Sekter is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
maybe a caching problem? kath421 ActionScript 2.0 4 03-21-2006 05:41 AM
Problem with loading unloading clips and dynamic text sah302 ActionScript 1.0 (and below) 1 01-06-2006 05:19 PM
Flash Number type and c# float and decimal types. Convertion problem within Flash. maglez ActionScript 2.0 2 06-02-2005 05:14 PM
global TextField Problem! Guru wonted mediaholic ActionScript 1.0 (and below) 3 07-20-2003 10:07 AM
yep, another problem with the ListBox component binkyboo Components 6 03-11-2003 11:15 PM


All times are GMT. The time now is 09:09 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.