I'm trying to make a movie clip play once upon hover, currently it repeats endlessly.
My actionscript is as follows:
mc.stop();
mc.addEventListener(MouseEvent.MOUSE_OVER,mover);
function mover(e:MouseEvent):void
{
mc.play();
}
How do I make it stop once it has finished playing?
Thanks
...
I'm trying to get a movie clip to play in reverse when I mouse_out from it (it plays on mouse_over).
My actionscript is as follows:
mc.stop();
mc.addEventListener(MouseEvent.MOUSE_OVER,mover);
mc.addEventListener(MouseEvent.MOUSE_OUT,mout);
function mover(e:MouseEvent):void
{
mc.play();
}
function mout(e:MouseEvent):void
{
//P...
I am working on a short animated story, which has a scrubbable timeline and chapter headings. I used TimelineMax for sequencing it. For the most part, it is working fine. I am seeing some strange behavior that pop up, though: sprites disappear, functions stop responding to user input, seams of the sprites become transparent -- all small ...
I have the following function but despite using the break statement, it doesn't seem to be stopping after it finds a match in the array:
private function CheckMatch() {
// _playersList is the Array that is being looped through to find a match
var i:int;
var j:int;
for (i= 0; i < _playersList.length...
Hi Stackers! My question today is dealing with a dynamically generated button with a textField.
I have the button copy in XML and I need to add a buffer of 10 pixels to either side of the textField. I tried to CENTER my textFormat, but then I could not see my text because the button is for some strange reason 545.45 instead of 88 like i...
Has anyone got any alternatives to what Colin Moock has coded to GET VISIBLE WIDTH/HEIGHT OF A DISPLAY OBJECT in ActionScript 3? That esp. in perspective of DisplayObjects that have 3D transforms applied and visible dimensions of which you need to consider for a calculation.
Any leads would be appreciated.
...
All I want to do is modify the text value of the XML corresponding to the CURRENTLY SELECTED node in the tree. Everything is a piece of cake except actually changing 'abc' to 'xyz'.
[Bindable]
public var xml:XML=
<rootnode>
Content A
<parentnode Name="value" Attr2="4">
parent content1
<childnode Name="child"...
I am loading some XML with HTTPService in Flex. It is taking longer than I would like to load. So I want to do some trouble shooting, but in order to tell what is making a difference I need to be able to time the requests and how long they are taking.
What is the best way to time an http service to see how long it took from HTTPService....
I'm having a hell of a time trying to get a custom mask to work on a project I'm creating.
The mask I'm trying to use is applied as a pixel mask on a layer in the photoshop doc I'm working off, but I can't seem to figure out the proper way to get that layer mask imported into flash, to then compile into my .swc and be called from action...
I have a parent SWF (Parent) that handles user navigation between multiple children SWFs (Child_1, Child_2, Child_3).
How do I add event listeners to the navigation buttons on the children SWFs so that the user can move laterally between Child_1, Child_2 and Child_3?
I can think of two options but can't get either one to work:
1) The...
Is it possible to make an item in a List control not selectable? If so, how would this be accomplished?
I've tried one thing so far. What I did was use a custom item renderer that checks for a value in the data property upon a FlexEvent.DATA_CHANGE event. If that value is not set, I tried setting the item renderer's selectable property ...
[Embed(source="data/fire.swf")] static public var movieFire:Class;
I have some multiframe swf file and I want to have control of them. For example, I can use gotoandplay and gotoandstop functionality.
I tried something like:
var m:MovieClip = new movieFire() as MovieClip; but it turns out when I tried to get totalFrames, m.totalFrames,...
I want to make an https call using HttpService. My code is working perfect when the url is http, but when i can the url to https is gives me the following error :
[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
How should I make a Https call??
Regards
Zee...
I need to serialize and unserialize (is that even a word?) an array in AS3, so it can be sent as a string.
The only problem is that it doesnt just contain text, it contains objects.
Is it possible to serialize and unserialize arrays in AS3 like you can in PHP? How can I do so?
Once this bug is fixed, all will be well with my program.
...
I have a Flash movie that is embedded in an HTML page that has a DIV in a layer over the top of the movie. The Flash movie scrolls based on the mouse position over the movie. The client wants the scrolling to stop when the mouse is over the DIV. I've tried using the mouseLeave event, but that is not triggered by the DIV.
Is there a wa...
Hello
I am having trouble attaching eventListeners to the elements within my array, any help/suggestions would be great.. thanks for reading
var urls:Array=["../showcaseThumbnails/1.jpg",
"../showcaseThumbnails/2.jpg",
"../showcaseThumbnails/3.jpg",
"../showcaseThumbnails/4.jpg",
"../showcaseThumbnails/5.jpg",
"../showcaseThumbnails...
I'm trying to make full flash site dynamically resize in any browser size.
If the browser gets smaller than the site MC should constrain to fit in the browser. (EX: 1440x900) What I have right now works like 98% of the time, but when I switch to a bigger screen size, it screws up and makes the site tiny from left to right (menu, logo, ...
I'm quite new with as3 via cs4 so please bear with me.
I'm trying to make a phone book type list that displays the users name, cellnumber and possible a delete button.
---
Bob
09XXXXXXXXX delete
---
Sussie
09XXXXXXXXX delete
---
Johnny
09XXXXXXXXX delete
---
I've tried making a list and added to it a XML dataprovider
<prof...
Hi there,
I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash.
FileReference.load();
This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve...
If I have an array
private var temp:Array = [item1, item2, item3, item4, item5, item6, item7...etc];
and two variables for items in the array:
private var firstPosition;
private var secondPosition;
Is there a way to remove BOTH items at once?
Say, if firstPosition = item4, and secondPosition = item7...then firstPosition = temp[3...