ActionScript 2.0 :: Combination - Copy/Drag&Drop/Delete And MC Count?

Jun 21, 2003

I have a movie clip = circle

When the user clicks the circle I want the user to be able to drag and drop a new instance ie circle1.This whole process needs to be repeatable.......ie next time user clicks the original circle ie circle the code must know the last instance number ie circle1 exists and when the user clicks circle that circle2 is created dragged and dropped.....so on and so on.

This is easy you may say - duplicatemovie and startdrag etc........the problem is that when the user clicks on the original circle the mouse focus is on the original circle and not the new instance just created ie circle1 which then needs to be dragged and dropped.Just to complicate things the user needs to be able to delete a circle at any time by using the keyboard 'del' key.

View 14 Replies


Similar Posts:


Use DragDrop In AIR Application?

Sep 5, 2011

I am building an AIR application which opens some specific documents. I want to enable dragdrop on this application. So that when application is running and user drag a file and drop that file on the application window, the application must respond to that event and must be able to perform some action.

View 2 Replies

Flex :: DragDrop Event Not Firing For TextArea Control?

Feb 2, 2010

I'm working on a simple view in my app that allows a user to drag an item from a list control and drop it onto a textarea.

Seems the dragEnter event fires just fine, but the dragDrop event does not.

View 1 Replies

Actionscript 3 :: Prevent Overlapping DragDrop Images In Flex

Apr 16, 2010

I am trying to create basically a puzzle in Flex Builder 3. I display images from an array onto a canvas that can be dragged and dropped around the canvas. My problem is that I don't want the images to be able to overlap each other. how to prevent this?? They can overlap as you drag but not when dropped, they need to "snap" to the nearest point that is not already occupied by another image.

View 1 Replies

Flex :: CurrentState Of Itemrenderer Refreshes On DragDrop Event?

Apr 2, 2011

I have a simple drag and drop, and wanted to change the state of the drop target on a match. It works as expected, but then there the state changes back to normal (or the itemrenderer is refreshing). I am guessing there is either an override that i need to do, or in need to flag it to not refresh, but having no luck.

MXML

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

ActionScript 3.0 :: Flash Var Count = 1 | Count++ && Count?

Jan 19, 2011

I'm trying to make a volume button for my site and it looks something like this:

- ||||| +

i want the volume bar to start filled and when the user hits the minus button it lowers the volume and when it hit plus it takes the volume up well when I go down and up the volume bars start to get crazy...it just works when I go down the whole way and after it goes up the whole way, when I change direction on the midle of the path it jumps some bars...

Code:
volDown.addEventListener(MouseEvent.CLICK, menosVol);
volUp.addEventListener(MouseEvent.CLICK, maisVol);
var cliques:uint = 0
if (cliques == 7){

[code]....

View 1 Replies

Php :: Flash HTTP Requests URL Containing RTMPE URL - Get A Local Copy Or A Copy With Content?

Oct 7, 2011

A web channel streaming service streams to a certain IP range, it only checks the IP in example.com/cmd.php?id=xxx (channel number) and outputs an rtmpe stream URL, nothing else.How do I trick it to get my local URL instead of the one on their server? I have considered squid proxy, but is there some way to do it with a firefox plugin or greasemonkey script?

Edit:I will try to specify:It's a streaming service from an ISP and cable provider. They stream for free to people on their IP's. On their webtv page, which is called webtv.example.com, there is a flash player. If you are not on an IP from their ISP, you can't stream anything but the test channel.When you try to change channel via. javescript:videoplayer_changechannel(xxx) it makes this HTTP request:

[URL]

If you are on one of their IP's you will get an RTMP URL, like this:

[URL]

This is what the flash player requests, and if it get's this response it load the channel requested. There is no HTML on the php page, just the URL. Note that the rtmp URL is static.If you are not on one of their IP's it will return a random sentence (something stupid, the programmers having fun).I wan't to trick the flash player into getting the right value, even though it's not on one of the ISP's IP's.

View 1 Replies

ActionScript 2.0 :: Switch Simple Count Up To Count Down?

Mar 10, 2007

I've found a simple count up script over on Actionscript.org

var count:Number = 0;
var maxNum:Number = 1250;
var num:Number = 1;
this.createTextField("txt", this.getNextHighestDepth(), 0, 0, 100, 50);

[code]....

This works great for my use, but now I am trying to figure out how to make it count down. I've tried changing everything to opposites like count=1250 and maxNum=0 (I think this would be the minNum instead), count+=num to count-=num, and count>=maxNum to count<=maxNum.

View 3 Replies

ActionScript 3.0 :: Copy Files With FLfile.copy Method?

Oct 27, 2010

How can I copy files with FLfile.copy method in CS4? I need any samples with all classes.

View 0 Replies

Actionscript 3 :: Making A Delete Button To Delete Text In The Inputtext Field

Nov 12, 2010

I got these four errors when I tried to create a button on the stage that would delete the text I inputted in the inputtext(ti). Based on the scripts I have and the errors, what should I write to create the delete button?

[Code]....

View 2 Replies

Flex :: Combobox Backspace Or Delete Key Does Not Delete Highlighted Text

Mar 26, 2010

I am implementing a flex auto-suggest combobox - as the user types in each character: Consider the string 'Stackoverflow' and user input = 'st'

1) the data provider is filtered to show all items starting with 'st'
2) text is set to auto-suggest string such that the un-typed part is highlighted.

So for instance, the combobox text may contain st'ackoverflow', where 'ackoverflow' is highlighted using setSelectedIndex()When I hit back-space or delete, and check the 'this.text' value, I expect that the last un-highlighted character ('t' in the above case) gets deleted and the data provider is filtered to show all items starting with 's'. However the text property contains 'st', as before

View 2 Replies

ActionScript 2.0 :: Count Down Timer Changes In Count Up?

May 18, 2004

Is it possible to make a count up timer (from a specific date, birthday for exemple) from the count down timer ?

I've tried to change a few things (I'm very bad in programming) but I can't get the date properly.

If not, do somebody know a count up timer (.fla) that I can use ?

View 3 Replies

ActionScript 3.0 :: Use ALT Key Combination (ex: ALT + A ...) ?

Jul 24, 2009

I have used a trick which has worked fine so far in our company's project.here how it works:
 
NOTE:
 
If you want to use AS1, ignore my soloution and just use isDown("18") with combination of othjer keys.

if you want to use AS2, you can not use isDown("18") in AS2.

if you want to use AS3 read the following:
 
1) Trap Alt keys using .isDown("18") in a SWF published as ActionScript 1.0;

3) In a SWF (AS 1.0) defined your keys like (All the letters you need, ex: A,B,...) with combination with Alt

4) Create a SWF published as Action Script 3.0.

5) Create an instance of the  Local Connection Class available in SWF(AS 3.0)

6) Create an instance of the  Local Connection Class available in SWF (AS1.0)

7) Talk between AS1 and AS3 using the local connection 
 
 NOTE: In order for your key combination to happen only once but not continusly, you need to do a trick like the following: THIS IS Action Script 1.0 SWF

stop();
 
var lastKey            = 0; var keyListener      = new Object(); var sending_lc       = new LocalConnection(); var resetFromAS3  = new LocalConnection();[code].........

View 3 Replies

Video And Slideshow Combination?

Oct 5, 2009

I need to create a flash file with video but at specific frames/times in the video I need an image to appear next to the video. This is the result of a research conference where the speakers were filmed as they talked through their presentation. The flash file needs to show this video alongside the slides from the speakers powerpoint presentation.

I already have the video converted using the media encoder and the slides from powerpoint converted to jpegs.I just need to know how I select a time/frame in the video and presumable generate some actionscript code to load an image at that playback time in the flash file.
 
A rather clunky version of what I am trying to di can be found at: http:[url]....

View 2 Replies

ActionScript 2.0 :: Player XML Combination?

Dec 15, 2011

Attached is a fla and it requires one xml file to load but the same has been missing. The name o the xml is playlist.xml. how the xml file to be write so that the player easily load the data from xml and will display

View 5 Replies

Professional :: Random Name Combination Generator?

Feb 19, 2010

I am currently putting together a simple game where people have to pass my tests to join a club. At the end I would like them to be given a unique name. I imagine this could be done if I make 3 lists of 50 words, and right a piece of code that randomly selects one word from each list to create a unique combination almost every time. I am using actionscript 2 because I am fairly novice and this is about as complicated as my code is going to be, but is this to bigger job for action script 2?

View 4 Replies

Flash :: Professional - Rhinoceros 4.0 In Combination

Oct 18, 2011

I would like to build a website in flash and use 3D models that I have made in Rhinoceros 4.0. Is it possible somehow to import Rhino 3D models into flash?

View 2 Replies

ActionScript 2.0 :: Key Combination Using Class From MichaelxxOA - ALT Key

Mar 22, 2007

I was using the class from Michael there nice class btw I was wondering is it possible to use the ALT key in flash for trigger events? I tried using the class from Michael but didnt work for me or maybe I was doing something wrong. When I tried when this class it open the menu on top of the flash player or html page.

View 2 Replies

ActionScript 3.0 :: Why Doesn't The Keyboard Combination Work

Feb 4, 2009

Im in the very start of trying to make a little game. he problem is when you hold down the up arrow(speed) + left arrow(left turn) + space bar(brake). But the same combination, just changing the left turn with a right turn(right arrow), that works. he code is boat badly written and partly in Norwegian, sorry, but here it is:

Code:
package {
import flash.display.*;

[code].....

View 5 Replies

ActionScript 3.0 :: Action Be Initiated Through Pressing A Key Combination?

Sep 11, 2008

Can an action be initiated through pressing a key combination? Here's a snippet instructing a MovieClip to move right when SHIFT+Z are pressed...

Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, testFn);
function testFn(event:KeyboardEvent){
if(event.keyCode == 16 && 90){
dot.x += 5;
}
}

Only the first key is recognized, i.e. the dot moves when SHIFT only or SHIFT+Z together are pressed; the swf's ignoring the second key.

View 4 Replies

ActionScript 3.0 :: Boolean Tests Combination Of Values

Nov 12, 2011

The objective is when user clicks on any combination of 2 buttons you would then gotoAndPlay a new page based onthe two specific buttons you have selected? Ideally user would be able to intermix the button combinations. Code below only works for two specific buttons, but doesn't allow to intermix button clicks.

[Code]...

View 5 Replies

ActionScript 2.0 :: Detect When Keys Are Pressed In Combination?

Aug 15, 2006

I've followed the thread there: [URL]

I understand that this class allow the script to detect when keys are pressed in combination.

But what is exactly the implementation when a key is used both in single and combination states. Let's say that you've the "q" key used alone and "shift-q"...how would one proceed to achieve this detection?

View 2 Replies

ActionScript 3.0 :: Boolean That Tests Combination Of Values?

Nov 11, 2011

The objective is when user clicks on any combination of 2 buttons you would then gotoAndPlay a new page based onthe two specific buttons you have selected? Ideally user would be able to intermix the button combinations.

I've attached a simple diagram that visually explains objective of actionscript.

Code below only works for two specific buttons, but doesn't allow to intermix button clicks.

[Code]...

View 4 Replies

Flex 3 - Key Press Combination To Trigger An Event/function?

Jun 1, 2011

Within a specific canvas, I would like a user to be able to press a combination of keys which will trigger an event.(a bit like a cheat in an old megadrive game). Not sure where to start though. Anyone know if it is possible and if so could you give me a clue with how to start?

View 2 Replies

ActionScript 3.0 :: Capturing Keyboard Input For Specific Key Combination's?

Jun 15, 2010

capturing any of the keyboard combinations below in the Flash Player. I am building this as a stand alone .swf file, so there won't be any conflicts with a internet browser, though my concern is reserved operating system shortcut keys.

F3
Press
Alt + X
Alt + X + .

[code]....

View 1 Replies

ActionScript 2.0 :: Determining If Data Is A Number Or Word Combination?

Aug 4, 2002

I am running an if statement to determing whether the data entered by a user is a number or a combination of letters and/or numbers. How could I determine whether the data is just numbers? Like:

PHP Code:

if (textbox == notanumber) {
do something


I have tried using NaN and "undefined" without much success.

View 7 Replies

ActionScript 2.0 :: Call A Functionname That Is A Combination Of A Variable And Set Text?

Aug 13, 2007

I have a variable in the _root called section.Now I want to call hemmaAnimation(); within a the global function (see below).So I set the section variable to hemma & tried these:

_global.sectionAnimation = function(){
this[section+"Animation"]();
};

[code]...

but no luck.

View 1 Replies

ActionScript 3.0 :: Flash BitmapData In Combination With AddChild Animation

Mar 29, 2011

I've created a fly in of 40 boxes which will form a block of 800x500 with a picture in it. On my site [URL] I've actually done the background image with 40 actual 100x100 pictures cut out of the original image. Then (on these forums) I learned how to cut up an image using bitmapData. To have dynamic backgrounds I would like to figure out how to combine these two.

Code:
//Import of greensock TweenLite
import com.greensock.*;
import com.greensock.easing.*;

[Code]....

View 7 Replies

ActionScript 2.0 :: Copy A "dynamic Text" Using Copy Button?

Sep 11, 2011

i need to copy a "dynamic text" using copy button. how can i do it ?

View 5 Replies

Flex :: Fill A List With A Combination Of Database Entries And Meta-values?

Aug 31, 2009

I am acquiring the contents of a table to fill a dropdown box in a Flex 3 application:

<mx:ComboBox dataSource="{myList}" />

The list is populated by the contents of a database table of persons:

Public, John Q
Doe, Jane
...

The combo box, however, also needs to have some other meta-entries in it that do not come from the database:

ALL
ALL MEN
ALL WOMEN
Public, John Q
Doe, Jane
...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved