[Flashcoders] AS2.0 Class Question

2007-06-19 Thread azsl1326-email
Hello All ---



I have what is probably a simple question, but possibly difficult to spell out 
in email. 



I have a SFW(A) which is loading Class A I have another SWF(B) which is
loading Class B. Both FLAs exist in seperate directories and utilize
their own classes. At some point SWF(A) gets loaded into SWF(B) and
Class A makes a call to Class B. Everything runs according to plan. 



However the problem I run into is that when I publish SWF(A) with Class
A attempting to call Class B, I get an error in the output panel that
states more or less that Class B doesn't exist. Again, if I just ignore
the error, everything runs fine. I don't really want to drop Class A
into the folder where Class B is as there are about 15 other class
files and SWF(A)/Class A doesn't really need them to run. Is there a
way to avoid this issue?



Hope that somewhat makes sense. Thanks for any and all replies.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Transitions.as Error - The member is private and cannot be accessed.

2007-01-26 Thread azsl1326-email
I have a very strange error occurring when attempting to compile an FLA that 
utilizes the Transitions class (Transitions.as). 
I receive an error that states:

'**Error** C:\Documents and Settings\DefaultUser\Local Settings\Application 
Data\Macromedia\Flash 8\en\Configuration\
Classes\mx\transitions\Transition.as:
Line 160: The member is private and cannot be accessed.
this._innerBounds = this.manager._innerBounds;'

The only
way that I have been able to resolve the issue is to change the class
to a dynamic intrinsic class. That change eliminates the error, 
however,
any objects that attempt to use the transition effects fail, that is no
effects are run. In this instance, it isn't big deal as I am not using
any transitions, but the Transitions Class MUST be
 included/imported in the FLA as it is part of a larger package.

What
makes this even stranger is that two co-workers can compile the FLA
without any errors and they didn't have to change the type of class.

Any ideas or suggestions on how to resolve this issue?

Thanks for any and all replies.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Disable Row in ListBox Component

2006-09-20 Thread azsl1326-email
Hello All ---

Is it possible to disable a row or number of (specific) rows in a ListBox 
without disabling the entire ListBox?

Thanks for any and all replies.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE:[Flashcoders] Disable Row in ListBox Component

2006-09-20 Thread azsl1326-email
Perfect ... thanks!

Wed Sep 20 12:22:58 EDT 2006
Michael Stuhr wrote:
i think you have to do this manually.
you either create a cellrenderer for your list and handle it this way (look in 
the help for 
cellRenderer API) or you could :

var list:mx.controls.List;

list.addItem({label:Flash, data:{value:1, enabled:true}} );
/**/
list.addItem({label:Dreamweaver, data:{value:2, enabled:false}} );

list.addItem({label:ColdFusion, data:{value:3, enabled:true}} );
 
function onListClick (evt:Object)
{
   var list = evt.target;
   //
   if (!list.selectedItem.data.enabled)
   {
   list.selectedIndex = undefined;
   list.invalidate();
   trace (this item is disabled)
   }
   else
   {
   trace (you selected:  + list.selectedItem.label)
   }
}
function onListRollOver(evt:Object)
{
   var list = evt.target;
var ix = evt.index;
var item = list.getItemAt(ix);
var curCol = list.getStyle(backgroundColor); // be aware of 
alternatingRowColors, you'd 
have to check here if ix is odd or even, also you should check that there's no 
cutom 
cellrenderer here
   //
   if (!item.data.enabled)
   {
   list.setPropertiesAt(ix, {backgroundDisabledColor:curCol});
   list.invalidate();
   }
   else
   {
   trace (you hovered:  + list.selectedItem.label);
   }
}
list.addEventListener ('change', onListClick)
list.addEventListener ('itemRollOver', onListRollOver)


cheers

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Dynamically Loading JPGs ~ Strange Behavior

2006-09-01 Thread azsl1326-email
I have about 20 jpegs that are dynamically being loaded into a swf. These 
images are loaded one at a time, fade in as the previous one fades out, and 
then eventually the loop starts over again, loading the initial image. I am 
using the MovieClipLoader Class to load them. I am, however, running into an 
odd problem. 

On the site's live server (Linux Box), the images don't always get loaded in to 
the swf and there is just 'white' space.  I have this exact site on another 
hosting company's server (windows) and the issue never occurs. To resolve the 
issue, I have even tried to use a cacheBuster for the images (ex: 
image1.jpg?12345). This however still doesn't work.  I have also tried using a 
Windows server on the live site, but it yielded the same result. In my mind. 
clearly this is an issue with the hosting company?. Does anyone have any 
thioughts about why this may be occuring?

Thanks for any and all replies.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Scroll Pane Component - Issue with Scrolling when using mouse wheel

2006-07-22 Thread azsl1326-email
Hello All 
 
 I am using the scroll pane component loading content via an external swf. I 
have noticed that the only way the content will scroll with the mouse wheel is 
if the mouse(cursor) is over the scroll bar. If the cursor is over the content 
and I attempt to scroll using the mouse wheel, it doesn't work. Is this the 
correct functionality of the scroll pane?
 
 Thanks for any and all replies.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Custom Component --- Maintaining Proper Scale

2006-07-05 Thread azsl1326-email
Hello Alll  

I am making a custom listbox component and have run into a slight problem. When 
I attempt to resize the listbox on the stage, it does not scale properly 
becoming distorted (as opposed to the standard MM V2 ListBox which maintains 
its scale when resized). I know I saw how to resolve this problem, but can't 
remember where. Can anyone help me out.

Thanks for any and all replies.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] onEnterFrame / SetInterval in a Class (with Delegate)

2006-06-23 Thread azsl1326-email
Hello All ---

I am trying to run an onEnterFrame or setInterval in a Class (which extends 
mx.core.UIComponent) and not having much luck. 
If I use onEnterFrame it runs once and then dies. I have even tried using 
Delegate with the onEnterFrame and still no luck. 
Likewise, I have tried using setInterval with Delegate and while it gets called 
it only seems to keep the scope passed from the 
Delegate the first time thru. The remaining calls, the scope is undefined.

Any ideas as to what I am doing wrong.

Thanks for any and all replies.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FileReference and Getting File Path

2006-06-15 Thread azsl1326-email
I am using the FileReference Class to upload images. Is there a way to get the 
path to the selected file? Ideally, I would like to preview the image before 
being uploaded and need the path.
 
 Thanks for any and all replies.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] FileReference and Getting File Path

2006-06-15 Thread azsl1326-email
Thanks for the reply.

I can get the name, however it doesn't provide the path (i.e. 
c:\images\image001.jpg)

Mike Boutin  mikeb at juicystudios.com
 Thu Jun 15 13:03:32 EDT 2006   Is it possible for you to just 
grab the name after it is selected from 
the FileReference object?


var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FileReference and ASP

2006-05-31 Thread azsl1326-email
I am looking for an ASP script to work in tandem with the FileReference class. 
I have searched the web but can only find mostly 
PHP scripts. My server has ASPUpload and SA FileUp available but am not having 
much luck getting the file to upload to the 
server. Can anyone assist in getting me on the right path?
 
 Thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Tweening Multiple Objects at the same time

2006-05-22 Thread azsl1326-email
Hello All ---

I am using a custom tween class (SuperEase) I found online to tween objects. 
However, I have run into a situation where I need to have two objects start 
tweening at the same time. The SuperEase class does not allow for this 
functionality. I can tween both objectives sequentially (one starts after the 
other has started) however this produces a noticeable lag between the 2 
objects. I have tried to resolve it by changing the # of frames / seconds, but 
this is somewhat tedious to match up between the 2 objects. Can anyone offer a 
suggestion on how to resolve this issue so that the 2 objects start tweening 
simultaneously? Any suggestions on an alternate class?

Thanks for any and all replies.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Extending Array Question

2006-04-18 Thread azsl1326-email
I have created a Class that extends Array, called ArrayExtension. The only way 
that I have found to add 
values to this is array is in the following manner:

---
// CODE
import com.ArrayExtension

var myArray:ArrayExtension = new ArrayExtension(Hello,GoodBye,World)


//CLASS
class com.ArrayExtension extends Array
{

public function ArrayExtension()
{
super()
for(var i=0; i arguments.length; i++)
push(arguments[i])

}

}
---

The problem I am running into is if I want to add values to the array after 
initializing it, I get an error message. 
Here is an example:

---

var myArray:ArrayExtension = new ArrayExtension;

myArray = [Hello,GoodBye,World]

---

How can I add values to the array without generating an error?

Thanks for any and all replies.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] RE:Flashcoders] Extending Array Question

2006-04-18 Thread azsl1326-email
Thanks, that will work. So there is no definitive way to add the values all at 
once, i.e. [1,4,5,76,3] when extending an Array?

Thanks again.

Ian Thomasn wrote:
Hi there (whoever you are!)

Your problem is that the [1,2,3] initialiser syntax is actually a
short cut for creating a new Array() object, not an ArrayExtension().
So you're replacing the object you just created with new().

What you need to do is to _modify_ your ArrayExtension() object, not replace 
it.

If you try:

var myArray:ArrayExtension = new ArrayExtension();

myArray.push(Hello);
myArray.push(Goodbye);
myArray.push(World);

That should sort your problem.

HTH,
  Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flashcoders Extending Array Question

2006-04-18 Thread azsl1326-email
That will work...thanks.

Robert Leisle wrote;

You could also do:

var myArray:ArrayExtension = new ArrayExtension();

myArray.push(Hello, Goodbye, World);

same result as doing them separately.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE:[Flashcoders] dispatching events at creation time?

2006-02-17 Thread azsl1326-email
A little late in the (reply) game, but you could try:

MovieClip.prototype.onConstruct = function()
{
trace(created)
}

This will be called anytime a new clip is created. You could, however, weed out 
the unwanted dispatching of events, by dispatching based upon the name of the 
clip created, i.e.:


 MovieClip.prototype.onConstruct = function()
 {
 if(this._name == myMC){
trace(created)
}
 }

Hope that helps.

---Original Message-
From: flashcoders-bounces at chattyfig.figleaf.com
[mailto:flashcoders-bounces at chattyfig.figleaf.com] On Behalf Of Luca
Candela
Sent: donderdag 16 februari 2006 16:01
To: flashcoders at chattyfig.figleaf.com
Subject: [Flashcoders] dispatching events at creation time?

--
class tryOut {

public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

function tryOut() {
mx.events.EventDispatcher.initialize(this);
trace(I am Here 1);
dispatchEvent({type:created, target:this});

}

public function callMe():Void {
dispatchEvent({type:created, target:this});
}
}
--
when I instantiate this class everything works except the dispatchEvent
in the constructor of the class. Why and how can I do to force an object
to call me back when he is created?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE:[Flashcoders] Component and Live Preview problems

2006-01-31 Thread azsl1326-email
Thanks for the reply. I am using UIComponent. The code that is in the live 
preview fla is:

[code]

function onUpdate() {

pushBtn.buttonText_txt.text = xch.btnLabel;


}


[/code]


The strange thing is that in the component's FLA I can drag as many instances 
from the library on the stage and it works fine. Once I convert it to SWC, the 
problems start. I did trace out the the xch properties, but I couldn't seem to 
find the component's name.

I did read the other replies to my post and looks like it is somewhat of a 
flawed design and it has to be hacked to get it to work properly.


Thanks for the assistance.



GregoryN greg at gousable.com wrote:
Do you subclass UIComponent or just MovieClip?
What code do you use for onUpdate?

Try to trace components names etc while in live preview.
 
-- 
Best regards,
GregoryN

http://GOusable.com
Flash components development.
Usability services
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE:[Flashcoders] Tell me more about _global

2006-01-31 Thread azsl1326-email
I am using _global variables throught my FLAs, probably because I haven't really
been exposed to the negatives of using them, thus not really knowing any 
better. 
I am interested in conforming to better 'design' standards and am familiar with
the Singleton Design Pattern. Any chance you could provide an example of how 
_global
variables might be stored in a class for retrieval and a later time.

Thanks.


Nathan Derksen nderksen at sfu.ca wrote:
I generally keep at least one singleton class which is responsible  
for storing global properties. I make those properties accessible  
with getters and setters so that I can allow changes in those  
properties to trigger events. You can't really do that if you use  
_global to store your data. Also, there is always a risk in name  
space collision if you load in other elements that also use global,  
where one or more variables use the same name and are thus  
inadvertently shared for different uses. You definitely do not want  
to use _global within any classes that you create, as that can cause  
entanglement, gives you no private protection, and does not properly  
contain your code into a well-defined unit with a well-defined API.

Nathan
http://www.nathanderksen.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Component and Live Preview ~ problems

2006-01-30 Thread azsl1326-email
Hello All ---

I posted this on FlashNewbie and didn't have much luck getting it resolved. I 
also found a number of posts on Actionscript.org referencing this same problem, 
but I couldn't find any solutions, so I thought I would try here. I created a 
custom button component with live preview enabled for the label. The live 
preview works great with only one button component on stage. However, if I put 
another instance of my btn component on stage, both btn components are updated 
to the most recent component's label. Both buttons have different instance 
names.

Any ideas on how to resolve this issue?

Thanks for any and all replies.




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Component and Live Preview ~ problems

2006-01-30 Thread azsl1326-email
Sorry, using Flash 8. 

Thanks for any insight.



Derek Vadneau flashcoderlist at ThunderUnderground.com wrote:
I remember this happening with my components at one point, but I think the 
issue was with MX04 - pre 7.2.  I'm not 100% on that but I do remember the 
problem occurring.

Are you using MX04?  If so, are you using the 7.2 update?

If not, I'll see if I can dig up some info about what I did ... 
record-keeping is not my strong-suit ...


Derek Vadneau

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] List Component --- Multiline

2005-12-09 Thread azsl1326-email
 Hello All ---
 
 Can someone tell me how I might be able to have the List Component use more 
than one line (i.e. multiline / wordwrap) for a single entry. I have a limited 
amount of horizontal space and thus can not have it scroll horizontally 
indefinitely.
 
 Thanks for the assistance.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders