Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Search Forums

Showing results 1 to 50 of 279
Search took 0.11 seconds.
Search: Posts Made By: wu-tang
Forum: ActionScript 3.0 02-20-2012, 10:07 PM
Replies: 8
Views: 778
Posted By wu-tang
Please.... I'd love to see the source. Thanks for...

Please.... I'd love to see the source. Thanks for all the input!
Forum: ActionScript 3.0 02-20-2012, 09:14 PM
Replies: 8
Views: 778
Posted By wu-tang
I'll give it a whack! If have any specific...

I'll give it a whack! If have any specific question will post them.

Thanks for the push.
Forum: ActionScript 3.0 02-20-2012, 09:05 PM
Replies: 8
Views: 778
Posted By wu-tang
Didn't even know about that class. Thx man!

Didn't even know about that class. Thx man!
Forum: ActionScript 3.0 02-20-2012, 07:58 PM
Replies: 8
Views: 778
Posted By wu-tang
Cool TextWidth of the last line of a TextField?

I'm trying to create a background for a textfield like this:

http://justintense.com/clients/FIRST/example.png

When I access the textWidth property it always seems to be the total width. Which...
Forum: ActionScript 3.0 02-12-2012, 11:14 PM
Replies: 5
Views: 601
Posted By wu-tang
Sweet man thanks. Exactly what I wanted! It...

Sweet man thanks. Exactly what I wanted!

It works like too:


var objClass:Class = Class(getDefinitionByName(id));
var instance = new objClass;
Forum: ActionScript 3.0 02-12-2012, 10:46 PM
Replies: 5
Views: 601
Posted By wu-tang
Thanks. I didn't think so : ( It works fine...

Thanks. I didn't think so : (

It works fine with the if statement for now... It would be handy to eval classes like that. Oh well.
Forum: ActionScript 3.0 02-12-2012, 10:31 PM
Replies: 5
Views: 601
Posted By wu-tang
How do you areate new instance() when instance is a variable?

I have a base class I've used on 6 different MC's.

Then when I use these MC's my function runs an if statement to check which one to add.

if(id=design) var obj = new design();
if(id=team) var...
Forum: ActionScript 3.0 06-23-2010, 11:35 PM
Replies: 0
Views: 2,035
Posted By wu-tang
Scale a netStream video?

I'm a little puzzled with this one... Maybe someone can help.

It's a simple video player that opens a netStream which setups a client callback object onMetaData.

The size is off when video is...
Forum: ActionScript 3.0 02-03-2009, 07:31 PM
Replies: 5
Views: 1,098
Posted By wu-tang
http://www.permadi.com/tutorial/flashVars/indexAs3...

http://www.permadi.com/tutorial/flashVars/indexAs3.html
Forum: ActionScript 3.0 02-03-2009, 06:43 PM
Replies: 5
Views: 1,098
Posted By wu-tang
I was about to search for this exact thing. ...

I was about to search for this exact thing.

Here is working example - http://www.permadi.com/tutorial/flashQueryString/indexAs3.html

Hope it helps.
Forum: ActionScript 3.0 12-19-2008, 10:34 PM
Replies: 0
Views: 556
Posted By wu-tang
Cool Target SWF file loaded into loader?

Ok so I do this to load a SWF file:

var l:Loader = new Loader();
addChild(l);
l.name = "img_1";

var url:URLRequest = new URLRequest(child.@src); ...
Forum: ActionScript 3.0 12-18-2008, 02:08 AM
Replies: 1
Views: 562
Posted By wu-tang
Here are 2 things to try: if Main is your...

Here are 2 things to try:

if Main is your document root -> Main(root).nameOfFunction();

or make your Main class extend a MC (public class Main extends MovieClip) ->...
Forum: ActionScript 3.0 12-18-2008, 02:01 AM
Replies: 2
Views: 604
Posted By wu-tang
With AS 3 you need to use classes. if you create...

With AS 3 you need to use classes. if you create a document class this may solve your problem.

Bottom line do not use scenes!

You should structure your content into separate MovieClips or...
Forum: ActionScript 3.0 12-18-2008, 01:55 AM
Replies: 2
Views: 605
Posted By wu-tang
Here is an AS 3 example: In this example it...

Here is an AS 3 example:

In this example it is using the Tweener class to fade - http://code.google.com/p/tweener/downloads/list

So gone are the days of using attachMovie. Now you need to...
Forum: ActionScript 3.0 12-18-2008, 01:45 AM
Replies: 2
Views: 646
Posted By wu-tang
here is an example of how I do it: ...

here is an example of how I do it:


private static const CORE_URL:String = "xml/videos.xml";

private var loader:URLLoader = new URLLoader(); // new loader

public var responseXML:XMLList...
Forum: ActionScript 3.0 12-17-2008, 11:33 PM
Replies: 0
Views: 998
Posted By wu-tang
Adding a dashed line with AS...

I know you cannot do this directly but I did find a class:

http://www.cartogrammar.com/blog/drawing-dashed-lines-with-actionscript-3/

I'm trying to add this to an already complex setup and am...
Forum: ActionScript 3.0 12-10-2008, 12:12 AM
Replies: 7
Views: 844
Posted By wu-tang
No to streaming anything but a FLV. ...

No to streaming anything but a FLV.

Conversion can be done on the server side, but it total depends on your system as to how.

Try searching for "server side FLV conversion".
Forum: ActionScript 3.0 12-09-2008, 11:41 PM
Replies: 2
Views: 597
Posted By wu-tang
Thanks. It was starting to frustrate me. ...

Thanks. It was starting to frustrate me.

Makes sense... now I know.
Forum: ActionScript 3.0 12-09-2008, 11:22 PM
Replies: 2
Views: 597
Posted By wu-tang
XML filtering not getting any results?

I'm sure this is right, but it doesn't seem to work. I just want to filter an XMLList.

Here is my code:

trace("XML filter: " + responseXML.recruiters.recruiter.(@name ==...
Forum: Components 12-05-2008, 04:57 PM
Replies: 2
Views: 4,738
Posted By wu-tang
Thanks man. I found that one too. In my case...

Thanks man. I found that one too.

In my case I want it to be false as I don't want it to take over.

:D
Forum: Components 12-05-2008, 01:04 AM
Replies: 2
Views: 4,738
Posted By wu-tang
[AS3] Fullscreen projector screws with FLVPlayback scaling.

Ok this issue is starting to be problematic. I want to export a fullscreen projector, but when it's a projector the fullscreen value seems to override the FLVs scaling.

When the FLV get added to...
Forum: ActionScript 3.0 11-11-2008, 05:59 PM
Replies: 5
Views: 746
Posted By wu-tang
That is probably because the classes were moved...

That is probably because the classes were moved into a package.

Go into the linkage of the Player MC and ensure it is set to - gameclass.Player

This tells it the Player class is in gameclass.
...
Forum: ActionScript 3.0 11-11-2008, 12:07 AM
Replies: 5
Views: 746
Posted By wu-tang
So your main issue is the class structure. ...

So your main issue is the class structure.

1. You need to import your classes in the package not the class.
2. As main is document class you can use it to add the title & game screens
3. Title &...
Forum: ActionScript 3.0 11-04-2008, 12:58 AM
Replies: 2
Views: 1,826
Posted By wu-tang
I found the answer.... use a matrix. ...

I found the answer.... use a matrix.


public function getNodesBitmap():Bitmap
{
var bmpData:BitmapData = new BitmapData((grid.width + (node_width*2)), (grid.height + (node_height*2)),...
Forum: ActionScript 3.0 11-04-2008, 12:31 AM
Replies: 2
Views: 1,826
Posted By wu-tang
Does BitmapData draw what's outside the stage area?

Quick question. I have a MC with some over sized content in it (2000,2000). The content is at x=-1000, y=-1000;

This MC sits on the stage and can be moved around. Sometimes it is at a negative X,Y...
Forum: ActionScript 3.0 09-25-2008, 12:41 AM
Replies: 6
Views: 1,197
Posted By wu-tang
Sweet, thanks for the bright idea! To...

Sweet, thanks for the bright idea!

To further your concept. If the drag object contains other clips you need to set the mouseEnabled property on them not the container clip.

In my case, I have...
Forum: ActionScript 3.0 09-24-2008, 10:26 PM
Replies: 2
Views: 2,286
Posted By wu-tang
Just a stab in the dark here... and i'm sure a...

Just a stab in the dark here... and i'm sure a less efficient method.

What about a for in loop to sync up the properties of generic -> custom?
Forum: ActionScript 3.0 09-24-2008, 10:22 PM
Replies: 6
Views: 1,197
Posted By wu-tang
So based on what I've tested I cannot get this to...

So based on what I've tested I cannot get this to work.

I've tried it with start stop drag and a custom drag event like this:...
Forum: ActionScript 3.0 09-24-2008, 09:06 PM
Replies: 6
Views: 1,197
Posted By wu-tang
Thanks for that, but it still doesn't trigger...

Thanks for that, but it still doesn't trigger there event when I ma dragging. Perhaps I have the scope wrong:

Tree class:

private var grid:MovieClip = new MovieClip(); // create the grid...
Forum: ActionScript 3.0 09-24-2008, 08:34 PM
Replies: 6
Views: 1,197
Posted By wu-tang
Dectect if mouse is over a clip - even if dragging another MC?

So i have a big grid made up of MC's:

grid
row1 -> sqr1, sqr2, sqr3...
row2 -> sqr1, sqr2, sqr3...
...

I wanted to know if you can add an event to the grid sqr that will detect if the mouse...
Forum: ActionScript 3.0 09-23-2008, 01:23 AM
Replies: 7
Views: 847
Posted By wu-tang
Ok this works, in case anyone else wants to know:...

Ok this works, in case anyone else wants to know:


function checkTarget(e:Event):void
{
if(e.target.dropTarget is Sprite || e.target.dropTarget is MovieClip)
{...
Forum: ActionScript 3.0 09-23-2008, 01:18 AM
Replies: 7
Views: 847
Posted By wu-tang
What about this: function...

What about this:


function checkTarget(e:Event):void
{
if(e.target.type("Sprite") || e.target.type("MovieClip"))
{
if(e.target['dropTarget'] == false) return;
...
Forum: ActionScript 3.0 09-23-2008, 01:11 AM
Replies: 7
Views: 847
Posted By wu-tang
That one produced: Warning: 1096: Illogical...

That one produced:

Warning: 1096: Illogical comparison with null. Variables of type Boolean cannot be null.

I think it works with false.

Thanks for the help. I'll keep playing.
Forum: ActionScript 3.0 09-23-2008, 01:10 AM
Replies: 7
Views: 847
Posted By wu-tang
See below

See below
Forum: ActionScript 3.0 09-23-2008, 12:59 AM
Replies: 7
Views: 847
Posted By wu-tang
Nice try. ...

Nice try.

e.target.hasOwnProperty("dropTarget") seem to always evaluate to true.

This leads me to believe the property is there... but then this causes errors.

if(e.target.dropTarget !=...
Forum: ActionScript 3.0 09-23-2008, 12:22 AM
Replies: 7
Views: 847
Posted By wu-tang
Error suppression?

public function drag(e:MouseEvent):void
{
this.startDrag(false);

addEventListener(Event.ENTER_FRAME,checkTarget);
};

function checkTarget(e:Event):void
{...
Forum: ActionScript 3.0 09-19-2008, 07:18 PM
Replies: 7
Views: 2,138
Posted By wu-tang
Dudes that awesome! Thanks! I did not really...

Dudes that awesome! Thanks!

I did not really understand the whole tree structure so that is what I am was getting at. There is some very useful info here and it helps me out huge.

I do have a...
Forum: ActionScript 3.0 09-19-2008, 04:51 AM
Replies: 7
Views: 2,138
Posted By wu-tang
Reference parent class?

I'm pretty sure this is not possible but wanted to ask as I cannot find any reference to it.

1. class_a extends a movieClip
2. the clip is added to the stage addChild(class_a);
3. class_a...
Forum: ActionScript 3.0 09-16-2008, 11:27 PM
Replies: 1
Views: 3,395
Posted By wu-tang
Ok... for anyone else with this issue..... Color...

Ok... for anyone else with this issue..... Color is gone.

Just use type:uint to type all color objects.
Forum: ActionScript 3.0 09-16-2008, 11:15 PM
Replies: 1
Views: 3,395
Posted By wu-tang
AS 3.0 Color class?

var line_color:Color = lineColor(type);

public function lineColor(type:String):Color
{
var col:Color = new Color();

switch(type)
{
case "spouse":
col = 0xcccccc;
Forum: ActionScript 3.0 09-12-2008, 08:07 PM
Replies: 1
Views: 647
Posted By wu-tang
Anyone got an ideas on this one?

Anyone got an ideas on this one?
Forum: ActionScript 3.0 09-12-2008, 12:10 AM
Replies: 2
Views: 1,319
Posted By wu-tang
I have divided my content into blocks and loaded...

I have divided my content into blocks and loaded then separately to get widths greater than size limits.

Not sure if that still works in AS 3

Example - http://www.communityartgrid.com/
Forum: ActionScript 3.0 09-11-2008, 11:37 PM
Replies: 1
Views: 647
Posted By wu-tang
Dragging over MC's that contain different DisplayObjects?

I have a bunch of clips that can be dragged around. In some cases they pass over MC's that contain shapes, textfields, etc.

When this happens I get an error because I am checking for a dropTarget;...
Forum: ActionScript 3.0 09-11-2008, 10:28 PM
Replies: 4
Views: 731
Posted By wu-tang
Here is what I'd do: var myLoader:Loader;...

Here is what I'd do:


var myLoader:Loader;
var myClip:DisplayObject;
var x_pos:int;
var y_pos:int;

function loadSuccess(file:String,x:int,y:int):void
{
Forum: ActionScript 3.0 09-11-2008, 09:41 PM
Replies: 3
Views: 4,509
Posted By wu-tang
Is the HTML list loaded in a textfield in a flash...

Is the HTML list loaded in a textfield in a flash movie or is it in the HTML page and you want a flash scrollbar to control it?

If the flash movie and the HTML list are not in the same movie then...
Forum: ActionScript 3.0 09-11-2008, 09:33 PM
Replies: 4
Views: 731
Posted By wu-tang
Here in an example of how to load a external swf:...

Here in an example of how to load a external swf:


var myLoader:Loader = new Loader();
var myTree:DisplayObject = addChild(myLoader);
var url:URLRequest = new URLRequest("Tree.swf");
...
Forum: ActionScript 3.0 09-11-2008, 09:29 PM
Replies: 0
Views: 863
Posted By wu-tang
Save object to string -> load string and convert back to object?

Wondering if anyone knows if this is possible. First a little explanation:

1. I have container grid where you can add and position MC's
2. The MC's x,y and other data is stored in a 3d object
3....
Forum: ActionScript 3.0 09-10-2008, 08:57 PM
Replies: 1
Views: 2,360
Posted By wu-tang
This seems to work: ...

This seems to work:

MovieClip(this.parent).positionNode(lev,pos);
Forum: ActionScript 3.0 09-10-2008, 08:31 PM
Replies: 1
Views: 2,360
Posted By wu-tang
Calling a function in parent class?

Simple question:

I have class that controls a container MC (Tree). Inside this class I add new profiles.

var profile:Profile = new Profile();

The profile can be dragged around and...
Forum: ActionScript 2.0 09-05-2008, 09:24 PM
Replies: 3
Views: 584
Posted By wu-tang
Yeah, that class looks good. What you have...

Yeah, that class looks good.

What you have above is correct. Personally I'd make a variable that holds the name of the MC for each sectio nand a new function to call the class.

var...
Showing results 1 to 50 of 279

 
Forum Jump

All times are GMT. The time now is 12:36 PM.

///
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.