| how to use mx components? |
|
 |
Index ‹ flash-actionscript
|
- Previous
- 3
- trouble setting component propertyI'm trying to build a custom component using Flash MX 2004. basically it's an
enhanced version of the label component. Everything seems to work fine except
when trying to set default text or assigning a text value in the "properties"
window (the field displays in the properties window, but any value typed into
it does not appear during movie playback). Currently, the text can be seen only
in authoring mode, not when the movie plays. The only way for the text to
displayed during playback is to set it up through code. Does anybody know what
I'm doing wrong? .as file content follows.
class CustomComponents.FormFields.lblFieldLabel extends MovieClip {
private var objFieldLabel:MovieClip;
private var strText:String = "";
function lblFieldLabel() {
init();
}
public function init():Void {
}
public function get displaytext():String {
return strText;
}
public function set displaytext(val:String):Void {
strText = val;
objFieldLabel.text = strText + ":";
}
}:(
- 5
- Actionscript question.Is there an ActionScript 2 variable that will, on release, play the remaining
frames of a scene, and the go to the corresponding scene associatd with the
button?
Example:
"Scene A" plays to frame 15 of a 30 frame scene and stops. At frame 15 the
user has an option of 3 buttons, Each with a corresponding Scene. OnRelease of
"Button B" the scene is to play to frame 30 of "Scene A" and then proceed to
frame 1 of "Scene B".
- 7
- button to go between scenes isn't workingHi there, I've created a flash file that contains 9 different scenes. In each
scene, I've got the buttons that should enable the viewer to flip between each
of them, but my code isn't working. This is what I'm using... can anyone help?
on (rollOver) {
gotoAndPlay("Scene1", "btn1");
}
on (release) {
gotoAndPlay("Feature1", "btn1");
}
- 8
- buildings, trees and fencesHi, this works:
onClipEvent (enterFrame) {
with (_root.yourGuyPersonThingy) {
if (this.hitTest(getBounds(_root).xMax, _y, true)) {
_x -= 3;
}
if (this.hitTest(getBounds(_root).xMin, _y, true)) {
_x += 3;
}
if (this.hitTest(_x, getBounds(_root).yMax, true)) {
_y -= 3;
}
if (this.hitTest(_x, getBounds(_root).yMin, true)) {
_y += 3;
}
}
}
To be honest I don't know how or why it works, it just does. (I nicked it of
the maze sample)
Dan :)
- 8
- Image caching in textarea componentHi
I hope someone can help as all avenues have been tried.
I have a text area component that loads html files into it self, some
htm files reference images and others just plain text...this is the
problem, when I load a image into the component and then load a normal
text file....the image stays in the text area....almost like it is
cached, the text just wraps around the image.....it is almost like I
have to reload the component, ive tried everything from destroy object
to trying to clear the variable...does anyone have any idea how I
could resolve this
- 8
- Dynamically load image in a MCs centreI guess I would want to place this on the movie clip called "MC" that the image
is loading into:
onClipEvent(enterFrame){
mcX = mc.height / 2
mcY = mc.width / 2
imgX = mc.height / 2
img = mc.width / 2
newImgX = mcX - imgX
newImgY = mcY - imgY
this._x = newImgX
this._y = newImgY
}
will this centre the image in the movie clip named "MC".. It doesn't work but
I hope this will make it clearer.
- 8
- costom mouse pointerI cant figure out how to create a custom mouse pointer using action script 2.0. A simple answer would be greatly appreciated. Thanks.
- 8
- Loading external XML by selecting from the list componentDoes anyone know how load a text string from an external XML file into
a text area component? What would trigger the event is selecting a item
from the list component and load the data from the external XML into
the text field depending on what the selected index is.
To begin, I've tried something like this and it didn't work:
var external_xml:XML = new XML();
external_xml.load("somexmlfile.xml");
external_xml.onLoad = function(success:Boolean) {
if (success) {
trace("xml loaded successfully.");
trace(external_xml);
trace("number of children:"+ this.firstChild.childNodes.length);
} else {
trace("xml failed to load.");
}
};
- 8
- Creating a trigger event from a Combo BoxI know i should know this, i thought i did, but i cannot get it to work.
I have created a combo box, and i want the user to select an item from the box entries and click on it. Upon click, an action is to be performed. To carry out this action the trigger requires the Data value of the selected item in order to work....
I cannot successfully retrieve that value...
the code for it is:
on (release){
trace("Frame to go to = " + PageCombo.getSelectedItem().data);
//gotoAndStop(PageCombo(pageIndex).data);
}
Please help.
- 8
- create delete button for input text boxHere's what I'm trying to do. There is no keyboard for the user to use. This is
all done through the screen. I have two input fields and when the user clicks
on a button the input box will display that letter. This I have done. What I
need is a backspace to delete the letter if it was typed wrong. How do I do
something like this?
outputText is the name of the MC that has the input field. And txt is the
variable.
on (release) {
_root["outputText" + _root.activeOutput].txt+= [length-1];
}
What can I put there?
- 13
- looking for previous post and/or documentationhello - i have seen some posts in this forum on reusing code. however, i've
searched and can't locate it. for instance, i have 14 buttons. 7 are
onRollOver, and 7 are onRollOut. i know there is a way to take code for each
button and merge them into one nice neat code. can someone provide links to
the posts or documentation? mark
- 13
- onRollOver _visible = true ProblemHello, I have an animation that shows a tool tip when you mouse over it. My
problem is that it disapears as quick as it apears. Every thing is in the main
time line & the code is in its own actions layer. Will I need to set an
interval or something & how do I do it <a target=_blank
class=ftalternatingbarlinklarge href="http://www.cudas.co.nz/test.html">You can
view the animation here.</a>
My code is below Thanks for any help
registerTT_mc._visible = false;
circle_mc.onRollOver = function() {
registerTT_mc._visible = true;
}
circle_mc.onRollOut = function() {
registerTT_mc._visible = false;
}
- 14
- 16
- 16
- Please help to understand actionscript scopeIn my Flash movie, I have two keyframes named kf1 and kf2. In the kf1 frame
there is a movie clip named myWorld. When you get to the kf1 frame, a
function is called that dynamically generates movie clips inside of myWorld
(note that the movie clips are only created the first time the myWorld movie
clip is loaded becuase I was hoping that you wouldn't have to do this every
time and I use a variable to remember that it had been loaded). When you click
on one of the dynamically generated movie clips, it goes to the frame called
kf2. When in kf2, you can go back to the kf1 frame. My problem is that when
you go back to the kf1 frame, the movie clips that were dynamically generated
the first time are no longer there. I tried an experiment where I placed the
movie clips during design time directly from the library into myWorld that
had previously been created dynamically via actionscript. Then when you go to
kf2 and then back to kf1 the movie clips are not 'gone'. I don't think I
understand how the timelime affects items that are placed using actionscript.
Why do the dynamically placed movieclips disappear when returning from kf2?
How can I dynamically place the movieclips (one time) and then be able to
return to kf1 from kf2 without them disappearing? I would appreciate any links
that relate to your answers or keywords I can use to search for the answers to
my questions. Thanks in advance.
|
| Author |
Message |
spookmc

|
Posted: 2007-2-11 23:19:35 |
Top |
flash-actionscript, how to use mx components?
I am very confused, trying to use the mx.components (e.g.
mx.managers.PopUpManager).
I cannto see in my Flash 8.0 Professional edition where to find the mx
controls.
Nor do I understand how to acces the controls for my applications.
Undoubtly, this is a very trivial question, but I cannot find the answer :-(
Can anyone help me with a little hint ?
|
| |
|
| |
 |
SwedKim

|
Posted: 2007-2-12 0:20:00 |
Top |
flash-actionscript >> how to use mx components?
- Drag a component to the Layer
- Select this component
- Now go to the menu and choose Window > Properties > Parameter
- Now you can see "parameter" for the component
Example
Drag ComboBox under User Interface to a Layer
Select the ComboBox
go to Window > Properties > Parameter
You will find 4 options data, editable, labels, rowCount
double-click on labels, add some labels and ..... good luck
|
| |
|
| |
 |
spookmc

|
Posted: 2007-2-12 4:39:00 |
Top |
flash-actionscript >> how to use mx components?
thanks for the answer.
I tried to find the combobox elelemnt and I found it under the components
panel.
Now I want to add the mx.managers.PopUpManager.
To be exact, I want to use the method: popupmanager.createPopUp
I have Flash 8 professional, but I cannot figure out how to use this component
/ class?
What is it?? is it a component?? It is not in the components panel.
Where can I find it?? Everybody talks about it in forums like it is a very
normal thing ot use, but I cannot find it ...
|
| |
|
| |
 |
LuigiL

|
Posted: 2007-2-12 4:49:00 |
Top |
flash-actionscript >> how to use mx components?
Attached code comes from the help-files.
/**
Requires:
- Window component in library
*/
import mx.managers.PopUpManager;
import mx.containers.Window;
System.security.allowDomain("http://www.flash-mx.com");
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
{closeButton:true, contentPath:"http://www.flash-mx.com/images/image1.jpg"});
var winListener:Object = new Object();
winListener.click = function() {
my_win.deletePopUp();
};
my_win.addEventListener("click", winListener);
|
| |
|
| |
 |
spookmc

|
Posted: 2007-2-12 5:05:00 |
Top |
flash-actionscript >> how to use mx components?
Thanks for your interest in my problem.
I am beginning to get a grasp of what I need to do.
(I have understood by now, that mx.managers.PopupManager is a Class, and I
even located it on my harddisk as an .aso file)
I created some working example from this code (shows two windows though)
The code I want to replace by the CreatPopUP is:
[I]this.dialogClip = createEmptyMovieClip("dialogClip",
this.getNextHighestDepth());{/I]
Now I cannot have a window in the library because this code is in an as file
(defining a Class in AS1.0)
How should I change this line to be replaced by PopUpManager??
|
| |
|
| |
 |
LuigiL

|
Posted: 2007-2-12 6:04:00 |
Top |
flash-actionscript >> how to use mx components?
>>defining a Class in AS1.0
I think you mean AS2?
The PopUpManager controls popups of Window Components. Whether you write a
class or code on the timeline doesn't make any difference for the items you
have in the library. In your class you can reference the items in the library.
import mx.managers.PopUpManager;
import mx.containers.Window;
class myPopUp {
public function myPopUp(target:MovieClip){
var my_win:MovieClip = PopUpManager.createPopUp(target, Window, true,
{closeButton:true, contentPath:"http://www.flash-mx.com/images/image1.jpg"});
var winListener:Object = new Object();
winListener.click = function() {
my_win.deletePopUp();
};
my_win.addEventListener("click", winListener);
}
}
//in the fla (with a Window Component in the library
System.security.allowDomain("http://www.flash-mx.com");
var popup:myPopUp=new myPopUp(this);
|
| |
|
| |
 |
spookmc

|
Posted: 2007-2-12 6:48:00 |
Top |
flash-actionscript >> how to use mx components?
Thanks a lot for explaining the logic. that's what I was looking for.
Right now I use :
[I]this.dialogClip = createEmptyMovieClip("dialogClip",
this.getNextHighestDepth());[/I]
to create a container for ( code copied from the help-files):
[I]drawRoundedRectangle(dialogClip, this.dialogClip.width,
this.dialogClip.height, 20, 0xAA1199, 20);
function drawRoundedRectangle(target_mc:MovieClip, boxWidth:Number,
boxHeight:Number, cornerRadius:Number, fillColor:Number, fillAlpha:Number):Void
{
with (target_mc) {
beginFill(fillColor, fillAlpha);
moveTo(cornerRadius, 0);
lineTo(boxWidth - cornerRadius, 0);
curveTo(boxWidth, 0, boxWidth, cornerRadius);
lineTo(boxWidth, cornerRadius);
lineTo(boxWidth, boxHeight - cornerRadius);
curveTo(boxWidth, boxHeight, boxWidth - cornerRadius, boxHeight);
lineTo(boxWidth - cornerRadius, boxHeight);
lineTo(cornerRadius, boxHeight);
curveTo(0, boxHeight, 0, boxHeight - cornerRadius);
lineTo(0, boxHeight - cornerRadius);
lineTo(0, cornerRadius);
curveTo(0, 0, cornerRadius, 0);
lineTo(cornerRadius, 0);
endFill();
}
}
};[/I]
If I understand it right, this won't be possible using the PopUpManager, since
it is not a Windows Component?
So I cannot dynamically create the MovieClip to be shown.
Am I right?
Can I really only use Window Components clips with the popup, or is there a
workaround to fill in other MovieClips to be shown as popups?
Again, thanks a lot for teaching me the logic behind the trics :-)
|
| |
|
| |
 |
LuigiL

|
Posted: 2007-2-12 17:53:00 |
Top |
flash-actionscript >> how to use mx components?
Yes, the PopUpManager works with Window Components to show and hide popups. For
the content of the popup you can provide a movieclip in the library which has a
linkage identifier.
When you don't want to use the Window Component you can write your own
popupmanager class that creates modal and non-modal popups.
|
| |
|
| |
 |
spookmc

|
Posted: 2007-2-12 22:23:00 |
Top |
flash-actionscript >> how to use mx components?
OK, now I understand the use of the popup manager; and now I am back where I
started ...
To make my own popup functionality, I have to make all other classes stop to
react to mouseclicks when the popup is open.
How can such a thing be done? I have to make adjsutments to all the other
objects in my movie that react to mouseclicks...
What is the workaround to be used? Or in other words: how can i make the one
movieclip be the only one to react to mouseclicks. (how can I make all the
others stop 'listening'?)
|
| |
|
| |
 |
LuigiL

|
Posted: 2007-2-12 22:34:00 |
Top |
flash-actionscript >> how to use mx components?
Nope. The trick is to draw a background right under the popup (which of course
is at the highest depth) and then use assign an onRelease event for the
background that does nothing. Then you have the equivalent of a modal popup.
|
| |
|
| |
 |
spookmc

|
Posted: 2007-2-12 22:48:00 |
Top |
flash-actionscript >> how to use mx components?
OK, thanks a lot for teaching me :-D
If I understand you correctly: I should find a function to copy the whole
stage into an image (jpg?) and have this copy placed in a new MC, to be shown
directly below the popup.
This MC covers the rest of the objects on teh stage and so it prevents tehm
from being clicked.
Can I easily perform this "print stage" to create a screengrab of the current
background?
|
| |
|
| |
 |
LuigiL

|
Posted: 2007-2-12 23:41:00 |
Top |
flash-actionscript >> how to use mx components?
No, you just draw a shape with a black (or any other color) fill at the size of
the stage and set the alpha to zero. An onRelease handler on that shape will
still hide all other events handlers.
You might have seen the effect that when the popup pops up, the stage dimms a
liitle. Well, that's that background shape that fades in over time to an alpha
of about 30.
|
| |
|
| |
 |
spookmc

|
Posted: 2007-2-13 5:15:00 |
Top |
flash-actionscript >> how to use mx components?
Thanks a lot for helping. I solved the problem almost now :-)
I created a MC: backGroundClip with the Stage-sizes, made it transparent and
defined
backGoundclip.onPress = function(){}
Now I can only "click" the MC's in front of this backGroundClip.
Only problem left seems that I cannot use the Keys anyomore.
I used to have a spacebar interaction with the top-MC (the popup) to scroll
through the options...
Can anyone reflect on this unexpected behavior??
|
| |
|
| |
 |
| |
 |
Index ‹ flash-actionscript |
- Next
- 1
- 2
- Do 8 classes got an ounce of class?>What part don't you get?
ummmm...you don't wanna ask that!...lol...
You want to continue doing this here? The alternatives are email or my forum.
I have in front of me about fifteen different codes explaining
EventDispatcher. I see and understand what everyone thing does in all the
examples. But I cannot start one on my own...
You want to continue this here or you want to go to email or my forum...there
is nothing going on there at present. just put it up and there is not a
reference to it anywhere.
Gotta go do the Holloween thing with the kids...Check back at ya later...
Tim
Ps...upon continuing, I want to post a snippet and go over it line by
line...If you want to afford the time...
- 3
- XML loading in Windows-1251 encodingI would like to load XML fil in Windows - 1251 encoding. But after loading the
data is unreadable. It is impossible to keep the XML in UTF-8 encoding. Please
advsie how to load and read Windows-1251 encoding XML file!
- 4
- PHP for FORM and SUBMITSee my php script below. I have put it on a website that I have designed for a
company. For now, I have put my own email address for the form information to
come to. However, the form information does not come to my email???? Wondering
where the error is in PHP? Would someone kindly help me. Mary Alice And my
email is email***@***.com. I have the files in a jpg showing how they
look in Flash and in the php file. If you want, you may email me. I just have
to solve this php situation. I need the form information coming to my email.
Please tell me what is wrong with the Actionscripting or the PHP scripting.
Regarding the ActionScript 1.0/2.0, this is what I put for the FORM:
onClipEvent (data) {
_root.nextFrame();
}
-------------------------------------------------------------------------------
This is what I put for the SUBMIT button:
onClipEvent (load) {
form.loadVariables("analysisformphp.php", "POST");
}
-------------------------------------------------------------------------------
And regarding the PHP, I made a separate file for the PHP scripting. It is as
follows:
<?php
$SendTo = "email***@***.com"
$subject = "My AnalysisForm Reply";
$headers = "From: " . $_POST["household"];
$headers = "From: " . $_POST["water supply"];
$headers = "From: " . $_POST["softener"];
$headers = "From: " . $_POST["bottled water"];
$headers = "From: " . $_POST["comments"];
$headers = "From: " . $_POST["name/business"];
$headers = "From: " . $_POST["address"];
$headers = "From: " . $_POST["city/state/zip"];
$headers = "From: " . $_POST["phone"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
mail(recipient, subject, message, other headers);
mail($sendTo, $subject, $message, $headers);
?>
Regarding the ActionScript 1.0/2.0, this is what I put for the FORM:
onClipEvent (data) {
_root.nextFrame();
}
-------------------------------------------------------------------------------
This is what I put for the SUBMIT button:
onClipEvent (load) {
form.loadVariables("analysisformphp.php", "POST");
}
-------------------------------------------------------------------------------
And regarding the PHP, I made a separate file for the PHP scripting. It is as
follows:
<?php
$SendTo = "email***@***.com"
$subject = "My AnalysisForm Reply";
$headers = "From: " . $_POST["household"];
$headers = "From: " . $_POST["water supply"];
$headers = "From: " . $_POST["softener"];
$headers = "From: " . $_POST["bottled water"];
$headers = "From: " . $_POST["comments"];
$headers = "From: " . $_POST["name/business"];
$headers = "From: " . $_POST["address"];
$headers = "From: " . $_POST["city/state/zip"];
$headers = "From: " . $_POST["phone"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
mail(recipient, subject, message, other headers);
mail($sendTo, $subject, $message, $headers);
?>
- 5
- Parent Class accessing children movie clipsSo say I have a class named Thing that extends MovieClip.
Then I have a class named Box that extends Thing.
I also have a class name Circle that extends Thing.
I then create 2 movie clips on in my FLA. One uses the Box class and one uses
the Circle class.
Both movie clips have a child movie clip named dot.
How do I access the dot MovieClip from a function in Thing?
The following code throws a error:
1119: Access of possibly undefined property dot through a reference with
static type Thing.
How do I accomplish this correctly?
package{
import flash.display.MovieClip;
public class Thing extends MovieClip{
public function Thing(){}
public function changeSomething():void{
this.dot.y = 30;
}
}
}
package{
public class Box extends Thing{
public function Box(){
changeSomething();
}
public function changeBox(){
}
}
}
- 6
- running a function on a dynamically generated fieldHello,
I'm having trouble with some dynamically generated textareas. They have
external content that needs to be formatted as it goes in. I'm trying to get a
function to run that will do this but no matter where I put it it doesn't want
to work.
Your help would be most appreciated.
Thank you,
Beatie
//Text area format function to suck out extra spaces
var contentLoader:LoadVars = new LoadVars();
contentLoader.onData = function(content:String) {
if (content != undefined) {
_global.introTextArea.text = content.split("\r\n").join("\r");
_global.Instr1TextArea.text = content.split("\r\n").join("\r");
_global.Instr2TextArea.text = content.split("\r\n").join("\r");
_global.Instr3TextArea.text = content.split("\r\n").join("\r");
_global.Instr4TextArea.text = content.split("\r\n").join("\r");
_global.Trig1TextArea.text = content.split("\r\n").join("\r");
_global.Trig2TextArea.text = content.split("\r\n").join("\r");
_global.Trig3TextArea.text = content.split("\r\n").join("\r");
_global.Trig4TextArea.text = content.split("\r\n").join("\r");
_global.Act1TextArea.text = content.split("\r\n").join("\r");
_global.Act2TextArea.text = content.split("\r\n").join("\r");
_global.Act3TextArea.text = content.split("\r\n").join("\r");
_global.Act4TextArea.text = content.split("\r\n").join("\r");
}
};
//run the function
contentLoader.load("content/introduction.xml", "content/instructions01.xml",
"content/instructions02.xml", "content/instructions03.xml",
"content/instructions04.xml", "content/trigger01.xml", "content/trigger02.xml",
"content/trigger03.xml", "content/trigger04.xml", "content/activity01.xml",
"content/activity02.xml", "content/activity03.xml", "content/activity04.xml");
- 7
- Simple question! simple answer... i hope...hey... total n00b here...
i'm trying to make a simple roll over/roll out button that reverses the
animation...
and it works prefectly... aside from the fact that Flash MX told me it MUST
appaear within and "on" handler... so i put in "on roll over"
on (rollOver) {
btn1.onRollover = function() {
dir = 1;
// set flag to 1 to start forward play
};
btn1.onRollOut = function() {
dir = 0;
// set flag to zero to start reverse play
};
_root.onEnterFrame = function() {
if (dir == 1) {
gotoAndStop(_currentframe+1);
} else {
gotoAndStop(_currentframe-1);
}
};
}
so.... in effect, it requires me to roll over TWICE to get it to fade in, and
just roll out to fade back...
any simple suggestions please?
- 8
- Flash Player 8 security feature - its annoyingI just discovered something with the Flash 8 plugin (not the authoring tool) I
have a project published as Flash 7 but my plug-in is 8.
whenever i try to run a network application which uses
getURL("javaScript:myFunction()"); it throws up a messy prompt that says
"Macromedia Flash has stopped a potential unsafe operation." The user then has
to select the SETTINGS button which loads the macromedia web site plugin
control panel. There you can set "always allow", "never allow" or "always ask".
Has anyone else seen this? I use javaScript functions all the time to open
popup windows and images from Flash. I'm going to have to go through all of my
old sites and handle this some other way.
- 9
- AS3 - how do I interact between stage and classes?Hi,
I have asked this question in other places before, and all I got is "Go
back to reading beginner books", so I'm hoping that someone here is
willing to actually answer my question as opposed to brushing me off
because they were unwilling to help...
And yes, I have read books on the topic and gone through tons of the
documentation and not found the answer to this. I have ActionScript 1
and JavaScript experience, so this whole business shouldn't be this hard.
I am using ActionScript 3 in Flash CS3.
My problem is this:
I need to find out how to send commands between stuff on the stage and
stuff that's defined in a class.
I have had this issue for ages and kept trying to find ways around it
since so far I haven't been able to find help for it.
For example:
When using a document class, how can I access the current frame number
of the Stage?
Or using a document class, how can I access any object (like a MovieClip
with instance name) that was put on the stage using the IDE?
Currently, to be more specific, I am trying to do something really simple:
Make a button work on my stage that is not always visible. With AS3
that's not as easy anymore as it used to be.
So what I did now is create the button in the document class, used
addChild and set it to alpha = 0.
Now, when the Stage reaches specific frames (i.e. ones with labels, and
I got this part figured out), it is supposed to make the button visible.
Then I can add event listeners and stuff, and I can figure that part out
myself.
I don't know how to access the stage frame number from the document
class, so I put it into a frame script in frame 1, but now this script
cannot access the button that is defined in the document class.
It's driving me bananas...
PLEASE, someone here, can someone please explain to me how I can make
this work?
I have seen plenty of diagrams of the Display List and the Object
Hierarchy, but none of that explains how to actually USE any of it...
Thanks so much in advance to anyone who is willing to spend some time to
answer!
- 10
- Storing Array name in to component variable and getting it's value laterHi, All Anyone can solve my problem???? My Problem is that I want to store a
array' s name in to a component variable. like this:- working in this case
Scene action on timeline _global.arr = 'This is aray Test' component
parameters VarName : _global.arr Not working in this case Scene action on
timeline _global.arr1 = new Array() _global.arr 1[0]= 'This is aray Test'
component parameters VarName : _global.arr1[0] in component I'm doing this on
timeline action abc.text = eval(VarName) sorry but I can't show you a
practical example as uploading is not permitted in my office. but I need your
help in this regard. plz help me out of this Regards Ankur Arora
- 11
- access an object of different class!hi again, consider two classes : Node and Polygon. I have written something
like this :
var node_1:Node = new Node(2,4,7);
var node_2:Node = new Node(3,1,5);
//
//node_1 and node_2 is actually arrays, that is, node_1 = and node_2 =
//
var polygon_1:Polygon = new Polygon(node_1, node_2);
well, when I call a method of polygon_1, for instance :
polygon_1.transform();
node_1 and node_2 objects itself MUST also be changed, so that, node_1 become
and node become . In other words, I want to access node_1 and node_2 objects of
Node class, WITHIN Polygon class at run time (in Polygon class, there must be
an accessing part to objects of Node class). How can this be possible? What
should I do? Any help?
- 12
- Flash 8 as an actionscript editorHi,
Is there a simple way to navigate between actionscript functions, classes, etc
within Flash 8 or must I use eclipse or something. Please say yes.
This is so basic, I must be missing something.
Thanks
Jim
- 13
- Address instance of class with webserviceconnectorHi,
what am I missing here?
I'd like to create a movieclip which has linkage to a class.
The class should have a function that calls a webservice that returns some
data.
The movieclip itself has an instance - i_checkHolder - which just is a graphic
box,
Now to my, I guess novice, problem:
How do I address the "i_checkholder" of the current instance of this class ?
I can not obviously use _this_ since that is the webserviceconnector itself.
Cut code:
import flash.events.*;
import mx.data.components.WebServiceConnector;
class AwcGroup extends MovieClip {
...
...
function initChecks():Void {
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("result", renderChecks(groupId));
wsConn.WSDLURL = "http://sestivex01d/monitorws/amon.asmx?wsdl";
wsConn.operation = "GetMonitorGroupChecks";
wsConn.params = [groupId, false];
wsConn.suppressInvalidCalls = true;
wsConn.trigger();
}
function renderChecks(evt:Object) {
this["i_checkholder"]._alpha = 40; // I know this is wrong
}
...
...
}
I would be grateful for any reply,
Thanks
- 14
- Flash Writes a File?saving files, my 2 cents-
short answer: no... that would be a major security breach to save files from
the browser.
It is possible to indirectly save files by either saving data to your server
and letting the user download it somehow, or to embed the flash player (activex
control) inside a windows application which has permission to write to the hard
drive. I don't know the equivalent method on a Mac.
- 15
- Detecting the end of audio playHi Brad_T!!!
I?m a beginer but yesterday I so the script Sound.onSoundComplete. I can?t
explain how it works becuse of my lack of knowlidge. But in the description it
looks like (hopefullt), it could bring some help to you.
/Onkel
|
|
|