ActionScript 2.0 :: Access The Skewing Of Objects?
Jul 7, 2008anyone knows a way to access the skewing of objects with as?
the best i found was manipulating xscale and yscale with rotation aplyed..
anyone knows a way to access the skewing of objects with as?
the best i found was manipulating xscale and yscale with rotation aplyed..
I want to import an image and then skew it slightly using actionscript. I know how to import images and such but what I need to know is how to skew it with AS without distorting the image too much.
View 1 RepliesI have the following and have managed to be able to use onResize to resize just my mc 'mcl',it currently fits horizontally but not vertically, so it's stretching, I want to stretch 100% on the left and right hand side but in proportion
Code:
var myClip = this.createEmptyMovieClip("mcl", this.getNextHighestDepth());
var myLoader = new MovieClipLoader();
[code].....
I've successfully access a web service in as3 and pulled the xml from it into a large array of objects
ie
Code:
array
object
array
[Code].....
This has to be accessed at a later point by the UI in order to build itself. I can't figure out how to create a loop or method or whatever to access this array.
I need several ways of accessing it, so maybe I'm thinking of a method called accessSpecificItem(propertyName:String); <- to set up each UI item traceOutAllItems(arrayName:Array); <- for testing countNumberOfItems(arrayName:Array); <- for the UI to figure out how many items it needs to build
I'm practically new to flash and action script and i'm currently trying to code something. I have a *.fla file with a dynamic text..I created a separate *.as file for the action script. My question is how can i reference the dynamic text properties? for example if i put the following code on my *.as file dynamic_txt.text = "place your text here" this will produce 1120: Access of undefined property dynamic_txt..How can i reference the dynamic text on my *.fla from my *.as?
View 21 RepliesI'm having an issue accessing items on the stage from some imported code. I found this topic that discusses the same issue... [URL]
I'm not sure I totally understand how to go about this. I don't understand how to make the object global so I can access it from any class. (I have the same problem with an array I'm working with).
I have a MovieClip MainGame that is associated with my external AS File where all the code lies. Everything works really well but.. I place an object inside the MainGame movieclip and give it an instance name . Now when I try to access it from the .as it says "Access of undefined property xy.."
I tried it with textboxes and movieclips, all the same.. I know it worked 20 times exactly like this and I have even compared an older Game where I accessed it just like this.... I really don't know what Flash is playing on me..
Access Objects from a external .swf i loaded a flash mx movie into a flash 8 movie, and now i need to detect if a button of the loaded movie is pressed but i simply dont know how.
i used:
Code:
var news_mcl:MovieClipLoader = new MovieClipLoader();
news_mcl.loadClip("source.swf", newscontainer_mc);
to load the movie, and i have a movieclip inside it with the instance name "read", and i need the code to put in the parent movie (the flash 8 one) to detect a onRelease on that "read" movieclip.
+ I have a code in frame#1; + I have an object in frame #2 (but this object doesn't exist in frame #1);
Comment: In AS2 I could use something like:
Code:
gotoAndStop(2);
// code for object
gotoAndStop(1);
It doesn't work any more in AS3.
How I can access object in frame #2 from frame#1? Any other way except using custom classes?
I'm trying to access a MovieClip created within the authoring tool from an ActionScript class. Here is my code:
PHP Code:
package {
import flash.display.*;
public class MoreVideos extends Sprite {
[Code].....
I also tried changing that to [stage.moreVideosBox.visible = false;], but I then got "1119: Access of possibly undefined property moreVideosBox through a reference with static type flash.display:Stage."
Is it possible to directly alter items in the authoring tool from a class? If I move 'moreVideosBox.visible = false;' outside of the class, in the main .as file, it works fine.
i have textfield myTxt on stage, and i have Room.as class file.
Actionscript Code:
package { public class Room { public function Room() { // constructor code myTxt.text = "yo!"; }
I need to access objects on stage from within class.
I'm passing a stage reference to my class, but when I try to access a movieclip on the stage I get an error.[url]...
View 9 RepliesI have a chart and am trying to display the "volume" in a line chart as the primary series & the "temp" as a column chart as the secondary series...(the "compound" will be shown in the datatip):
[{date=Tue Feb 08 19:00:00 EST 2011, volume=1200, 1={temp=-50, compound=helium}, 0={temp=-45, compound=oxygen}}]
I can get the "volume" series to display fine, but cannot get the "temp" series to display...how do I access them? Right now I have:
<mx:ColumnSeries id="secondSeries" xField="date" yField="temp">
I need to have an access to Photoshop Smart Objects?
Scripting,
CS SDK,
etc?
I'm using Flex 3.6 and ZEND AMF version 1.11
I have an array that shows in my trace using trace(ObjectUtil.toString(event.result))[code]...
Can we use or access shared object stored in another system? I'm storing some data in shared object in one system can I access that shared object data from another system? I think Shared objects are stored in local machine. Can we give the path to (specified system i.e., server) where the shared objects will store, and can we access that object through same path?
View 2 RepliesHow do I access actionscript programs, such as functions, from remote as files without using the #include command?
View 0 RepliesI'd like to be able to dynamically access objects from with in a function. In javascript I might say something like window[objectName] and assign it to a temp var or call a method from it. How can I do this in AS3?
Use case:I have a currentReport var that holds the name of the currently active report. When a new report is called I want to unload the current report then load the new one and finally set the currentReport var to the new value.
I need to be able to make a large amount of concentric circles, using only the action script. I need to be able to alter each of these concentric circles independently from each other. Currently My code is as follows:
ActionScript Code:
var circ1:MovieClip = new MovieClip();
addChild(circ1);
[code].....
I created an array in my Main class and populated it with instances of a seperate class. Is there a way I can access the original array from within the instances of the separate class.
View 1 RepliesI have a serie of boxes (Destination) and a box I can drag (Origin). I want that when I reach each of the boxes in the array(Destination) with the Origin box, the Origin box is "attracted" by the Destination box (each one) and that the Destination box change its status from 1 to 2.I tried it and it has worked to me with a single Destination box, but when I have created the array of boxes I can't access each of them. Below is the code I've written so far to clarify better where I am.
Code:
package
{
import flash.events.*;
import flash.display.*;[code].......
Way to make a dynamically created object and remove it when it hits another dynamically created object, like a bullet?
View 9 RepliesI've never actually fooled around with 2d arrays that much. What I need is to access an array and get all the objects inside of it. I actually mocked up a little something to mirror what I want.
ActionScript Code:
var arr:Array = [[{name:"Hat", price:"34", url:"http://www.google.com"},
{name:"Scarf", price:"38", url:"http://www.yahoo.com"},
[code]....
I don't have any trouble getting the data, but as you can see that it's pushing each object separately in an array. So it would look like this: I just need to get all of the objects first like {obj}, {obj}, {obj} and then push them into an array.
Im trying to get used to packages and classes in AS3. Im used to put all code on the first frame of the timeline, but now i have 442 lines of code on the first frame. Yeah 442. And this is for a game engine so i thought i should put it inside some classes to make it easier to read an reusable. But i have noticed that if i create a class called Code and make a instance of that class like this:[AS]var codeObject:Code = new Code();[/AS]i get a bunch of errors because the class cant Acess the stage and the display list.i found a workaround by linking the class to a movieClip and and do this:[AS]MovieClip(parent);[/AS?
View 1 RepliesI have a fairly complex symbol with a few moving parts, and I want to be able to access a label on the symbol to add text. When i just load the clip
PHP Code:
var x = new fm_Input(); // instanc in libraryaddChild(x);
it shows the default text.
[code].....
I have my main:
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:comp="components.*">
[Code].....
How do I access objects in main application, I tried application, or main, they don't work.
i have a simple navigation system with three buttons, each button have a text field in it. On mouse over they change color to blue. I can achieve all these without a single line of code. I simply make a button of my text field in flash, and change the color of the text in the timeline.
My problem occurs when i want to make the color to stay blue when i click on the button. Apparently you can't access the child within a button, in my case a dynamic text field. I've googled this problem and they all say that you should use a MC instead of a button. Thats exactly what i have done so far. But i'm getting tired of writing a bunch of eventlisteners and put an extra layer with an invisible button in my button mc so i can get the hand cursor (because the .buttonMode = true and useHandCursor doesn't work when there is text field inside the mc). Any way, shouldn't there be a more elegant way to solve this problem?
I've been trying to build a new base class for my button that extends SimpleButton, and from there access the embedded child object, but the problem remains.
In this example i'm trying to simply change the text of the text field inside of my new MyButton instance. But i get the same old Error #1009: Cannot access a property or method of a null object reference.
package
{
import...
public class Mybutton extends SimpleButton
[Code].....
function funFun():void{
someMC:MC = new MC;
someMC.property = value;
stage.addChild(someMC);
}
How do I access the properties someMC after it is added?
I have created a class, that is simply a group of text fields. In the main app, I create instances of this class, and add them to the main app. How can i access the textFields that are in the class, to say, change the text, etc... When I try, I get this: 1119: Access of possibly undefined property txtHeadLine through a reference with static type Article.
View 3 RepliesI am pretty new to flex, specially to mxml part. There are some confusing things for me.[code]...
So question is how do I access that button's properties. I want when something happens in Xyz file, button's (someId) visibility to become false. If Abc.mxml was AS class file then it would be easy, just make object etc., but how to get if it's mxml file.