How To Associate Plotted Icon Using Action Script
Hello.. Need help from somebody..please.. How to associate Plotted icon using Action Script... Dont have any idea right now... the idea is like this: 1) A MC icon that used to plot on a map can be load and drag/drop on to the map 2) The icon plotted must move together with the map (if map scrolled)
Thank you. Jacklynn
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 08-10-2006, 08:02 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Action Icon
Help.
I've made a small flash icon and would like to make it activate when a file enters a folder and stop when the file leaves the folder or when there is no file present.
Can this be done?
any help is appreciated.
Thank you
Dynamically Plotted Trapezoid Mask
hi .
i have a decent understanding of flash fundamentals, but am a real dummy when it comes to actionscript. any help would be appreciated. i need to create an odd sort of chart dynamically. basically, i need to be able draw a trapezoid mask, with the four corner points based on certain values. if that's muddy, please see the links below.
THANKS IN ADVANCE!!!
wagner
chart example:
http://www.geocities.com/ronald_duane_junk/
source:
http://www.geocities.com/ronald_duane_junk/help.fla
Motion Guides Or Plotted Points?
I have designed a CD cover and tour promos.(see sample attached)
I am now trying to make a Flash site. I have recreated most of the graphics in Flash and now I am adding movement. The star/musical note dust needs to revolve around her. I have found script for the Disney-like Glitter mouse, that can be adapted. I cannot figure out how to attach it to a motion guide instead of the mouse movements....
Is it true that there is no way to attach a movie clip programmatically to a motion guide layer?
Am I best off figuring out the X, Y, Z positions to script a path such as in the Trigonometry and flash tutorial?
Can someone point me in the right direction? If you are interested in helping me figure this out, I'll post the glitter mouse code.
Thanks!
.swi Files Associate With?
somehow my saved .swi files wont open in my browser or frontpage anymore.
I get an error message.
can anyone tell me how i can set up and assign the program which opens these file types in my browser and frontpage?
thanks
Associate Controller
Hi folks, getting on reasonably well with Flash, devoured the flash flv tutorials and , have my entire site built using Flash. Got a simple request.
I've imported a video instance from the library to hold my movie clips and have successfully written everythin to allow me to call different clips into the same video instance. I would like tio use a readymade controller component for playbac k etc and have imported one to the stage.
This is where I'm stuck. If I use the behaviour drop down menu to 'associated' display, it's looking for a 'display component' and won't see the video instance so i can associate it. If i open actions and drop this into the script
videoplayer.associateDisplay();{
}
the controller simply doesn't seem to have any association withe the 'videoplayer' instance .
So I'm guessing you guys can point me in the right direction, what do i need to write to associate the 'controller' instance with the 'videoplayer' instance.
here's hoping, Wolfie
Associate A Class To A CreateEmptyMovieClip()?
I'm trying to do this
Code:
public static function create(inobj) {
var s = Scaler(_root.container.createEmptyMovieClip("scaleHolder", 5000) );
s.init(inobj);
return s;
}
But the 's' returns a null. I'm guessing because the createEmptyMovieClip is not associated with any class.
It works if I attachMovie an MC in the library with a class association.
thanks.
Associate Class With A MovieClip
hey all -
Firstly my introduction I am application as well as game developer, I have 8 yrs of exp in flash actionscript but still learner.
I have been trying from last week to map class with movieClip without defining the movieClip linkage ID in Library, I want to associate class to a symbol name. This seems to be odd, if any body know how we can achieve this please hit me back with solution thanks .....
Associate Stage MCs With Class
I have a basic drag-drop class that provides simple drag-drop functionality for MCs that are manually laid out on the stage. An MC on the stage has the instance name of "drag1", and the constructor of my class passes the instance name:
var dragClip1:DragBasic = new DragBasic(drag1);
(The DragBasic class is in the code below)
My questions are:
1. What is more advised with AS3 - to associate MCs with a class during runtime (not sure how you do that!), or to associate MCs with a class via their linkage in the library? I'm obviously doing the former here, but am curious about what others do and why.
2. I want to create a 2nd class that accepts an MC name and a qty number, then applies this DragBasic class to all of those MCs, like this:
var myInteraction:DragSetup = new DragSetup("drag", 5);
The above would apply the DragBasic class to 5 MCs on the stage, all of which are named "drag1", "drag2", "darg3", etc. But I don't know how to create this 2nd class (associating the stage MCs with the DragBasic class). I have the shell of a DragStarter class in the code below - does somebody know what to do to complete this?
Any help is greatly appreciated.
Attach Code
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class DragBasic {
private var _clip:MovieClip;
public function DragBasic(clip:MovieClip) {
_clip = clip;
_clip.buttonMode = true;
_clip.addEventListener(MouseEvent.MOUSE_DOWN, drag);
_clip.stage.addEventListener(MouseEvent.MOUSE_UP, drop);
}
protected function drag(e:MouseEvent):void{
_clip.startDrag();
_clip.parent.setChildIndex(_clip, _clip.parent.numChildren - 1);
}
protected function drop(e:MouseEvent):void{
_clip.stopDrag();
}
}
}
package {
public class DragSetup {
public function DragSetup(clipName:String, qty:Number) {
......this is where I am unsure......
}
}
}
Edited: 08/13/2008 at 08:06:17 PM by srlindberg
For Loop To Associate An Array
I created an Array with captions and now I want to make it so when I press one of the buttons it will make the caption appear. For this I have used a For loop.
[i]thumbNailCaption does trace the variables I've assigned, but I can't get [i]thumbNailCaption.textDisp to trace anything like it. No matter how many variations I've made, it always comes out undefined! Does anyone know what I'm doing wrong?
Quote:
stop();
// CREATES AN ARRAY TO HOLD THUMBNAIL COMMENTS
var thumbNailCaption = new Array();
thumbNailCaption[0] = "abc";
thumbNailCaption[1] = "def";
thumbNailCaption[2] = "ghi";
// BUTTON PROPERTIES
for (i = 0; i < 12; i++) {
this["thumbNailCaption"+i].textDisp = thumbNailCaption[i];
mcBody.mainBody["thumbNail"+ i].onRelease = function() { _root.mcBody.mainBody.textCaption.textDisp = this.textDisp;}
}
Dynamic Associate Arrays?
ok, so I know you can build objects with dynamic names etc. by using the array operators [] but how do you build an associative array that has both a dynamic NAME AND VALUE??
It would make sense that it would look SOMETHING like
var myVar="Name";
var myDataVar = "123456";
myArray = new Array({[myVar]:myDataVar});
but, i get an error...
Any ideas?
Associate Variables To Sprite
Hello,
in as2, it's possible to associate a variable to a movieClip.
So when creating dynamic mcs in a loop, it's possible to do something like:
for(i=0; i<10; i++){
ball_mc.id=i
ball_mc.speed=30+i
}
So it's easy after to get the id, the speed, name etc.. every variable associated with the MovieClip
How can I do that in AS3??
With sprites, it's only possible to give a .name method to sprites
Thank you
How To Associate A OnEnterFrame Event To An Object ?
I have a custom object and I want that it react to onEnterFrame event.
example:
Code:
FMyObject = function (mc)
{
this.mc = mc;
}
FMyObject.prototype.onEnterFrame = function ()
{
this.mc._x += 5;
}
of course, this is not working.
Is possible to simulate this without associating the onEnterFrame event to a movieclip ?
Associate Classes With EmptyMovieClip Or An MC Instance
I use Object.registerClass to associate a class with a symbol in the library .. How do i associate a class with only an instance of the symbol.. or how do i associate a class with a movieclip created using createEmptyMovieClip() ??
Pramod
Associate Array - Reusable Button
Hi,
I am trying to program a button that I use 12 different times with the same code. It works when it's on it's own, but when i put it in a function and try to implement an array, it falls apart. Does any have any clues to help me out?
I would really appreciate it. Here is the code:
HTML Code:
[color="RoyalBlue"]
stop();
var navButtons:Object = new Object();
navButtons.project1 = "btn_bmw";
navButtons.project2 = "btn_agf";
navButtons.project3 = "btn_harley";
navButtons.project4 = "btn_bourjois";
navButtons.project5 = "btn_gemon";
navButtons.project6 = "btn_gfg";
navButtons.project7 = "btn_intel";
navButtons.project8 = "btn_corbis";
navButtons.project9 = "btn_grc";
navButtons.project10 = "btn_rci";
navButtons.project11 = "btn_anim";
navButtons.project12 = "btn_logos";
for(var i:Number = 0; i <navButtons.length; i++){
trace(navButtons[i]);
};
navRO = function(){
navButtons[i].onRelease = function():Void{
_root.gotoAndStop("gemon_proj");
trace("released");
}
navButtons[i].onRollOver = function():Void{
this.gotoAndPlay("moving");
trace("rollover");
}
navButtons[i].onRollOut = function():Void{
this.gotoAndPlay("middle");
trace("rollout");
}
};
navRO(navButtons["project1"]);[/color]
Associate Images To Buttons At Run-time
Hi evryone,
I ve got an xml list of thumbnails images, and I want to associate them to an array of buttons programatically.
Suprisingly, the button class doesnt have ' background' property. Is there any way to program that (obviously without going to the stage)?
Thanks a lot
Nas
Dynamically Associate A Movieclip With A Class
To manually associate a movieclip with a class, you would have the Symbol’s Linkage set to the class. I could do this if there is no other option but it would be cumbersome to attach ( attachMovie() ) several empty movieclips to the stage since the instance will be dynamically built.
There is an Object.registerClass() that seems to do the job, however I haven’t tested it yet. Perhaps this is the answer but I am hoping someone can tell me if there are any other options (perhaps OO) for doing this.
How To Re-associate Swf Files With Flash Player?
I know one can right click on an swf and associate it to flash player.
Doesn't work on my Windows Vista. There's no flash player to associate with when I right-click and choose properties, and when I right-click, and click on 'open with', I don't see the Flash Player anywhere in Program Files either. I know I have a flash player because my swf's were associated with it and played well, until the unfortunate moment of downloading SWF Optimizer(trial), it messed my swf associations.
Any suggestions please?
[as2][help]associate A Class To A Movie Clip
I have two libraries, in one I have all my classes (code SWF) and in the other all the symbols (data SWF). This is the only solution I have in terms of organization since I cannot edit client (data) SWFs.
I can load the data SWF and attach its movie clips in tbe code SWF, but I cannot associate these (external) clips to my custom classes. Is this possible? I have a hack with __proto__ but I've read that it's not a good practice to use this attribute since MM can make it readonly at anytime.
Thanks in advance.
How To Associate Same Actions To Series Of Objects In A Loop?
What I mean I dont want to open the actions panel for every object a a long series with the same actions and use cut and paste.
I need to associate the group of actions (on (press), on (rollOver), etc), the same, to a group of objects by referring to a compact source (file?, function?)
Thanks
How To Associate Class With Clip Loaded At Runtime
Hi. Does anyone know how to associate a class (that extends MovieClip) with a movie clip loaded at runtime with a MovieClipLoader. I want to do the same as the AS 2.0 Class property of a MovieClip symbol in the Library but with a dynamically loaded MovieClip, not one that is created with attachMovie. Cheers.
How Do I Add 3rd LineSeries And Associate With The Vertical Axis In Flex LineChart
Hi All,
In one of my requirements, i need to create a multi axis LineChart.
How can i create a third LineSeries and associate it with anyone of the Vertical axis programatically. Please let me know how to implement it using mxml or actionscript based on the below example. In the following example , i am able to attach V1 and V2 to both the vertical axis. How can attach the third one? I should have only 2 vertical axis.
<?xml version="1.0"?>
<!-- Simple example to demonstrate Multiple Axis -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var expensesAC:ArrayCollection = new ArrayCollection( [
{ Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 45 },
{ Month: "Feb", Profit: 1000, Expenses: 200, Amount: 60 },
{ Month: "Mar", Profit: 1500, Expenses: 500, Amount: 30 },
{ Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 90 },
{ Month: "May", Profit: 2400, Expenses: 575, Amount: 50 } ]);
]]>
</mx:Script>
<mx:Panel title="Multiple Axis Example"
height="568" width="1129" layout="horizontal">
<mx:LineChart id="linechart" height="100%" width="100%"
paddingLeft="5" paddingRight="5"
showDataTips="true" dataProvider="{expensesAC}">
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="Month"/>
</mx:horizontalAxis>
<mx:verticalAxisRenderers>
<mx:AxisRenderer axis = "{v1}"/>
<mx:AxisRenderer axis = "{v2}" placement="right"/>
</mx:verticalAxisRenderers>
<mx:series>
<mx:LineSeries yField="Profit" form="curve" radius="8"
displayName="Profit" itemRenderer="mx.charts.renderers.CircleItemRender er">
<mx:verticalAxis>
<mx:LinearAxis id = "v1" />
</mx:verticalAxis>
</mx:LineSeries>
<mx:LineSeries yField="Expenses" form="curve" radius="8" displayName="Expenses" itemRenderer="mx.charts.renderers.CircleItemRender er">
<mx:verticalAxis>
<mx:LinearAxis id = "v2" />
</mx:verticalAxis>
</mx:LineSeries>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider="{linechart}"/>
</mx:Panel>
</mx:Application>
This is kind of urgent requirement. Please suggest...
Thanks in advance.....
Associate Flash CS3 With New Flash Player Debug
Hi,
Quite undocumented supject - How do you associate (or target) Flash CS3 IDE with updated FlashPlayer.exe?
I've downloaded updated players from adobe website. My Flash CS3 was using Flash Player 9.0.28 so I wanted to update it to say 9.0.115 or 9.0.124
To do so, I replaced the original files from Program Files>Adobe>Flash CS3>Player with new ones but when I run debugging from Flash IDE (ctrl+enter+shift) Flash Player prompts that couldn't find the debugger, and wants some IP address of where the debugger is running. "Where is the debugger or host application running" - [*Localhost *Other]
I could only make it work with 9.0.45 version (paste into Flash CS3 Player dir) of Flash Player, but you can't really consider it a huge update from 9.0.28
Is is there any way to make Flash CS3 recognize new, updated Flash Player Debug? I was trying to run .exe files from Windows>SysWOW64>Macromed>Flash but it didn't help either.
Hope there is some solution to this, it really drives me mad, and can't find any info about the subject. You would think that updating ones Flash Players is of a high importance... but maybe not, hence no documentation at all
Cheers!
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Icon.ico
Enhanced Audio CD's
Contain a 1. Flash or director(Projector file)
2.(autorun.inf)
3. .mov (which loads into projector)
4. Icon.ico
How the hell do you get icon.ico working?????
If anyone knows what I am talking about... please help!
Thanks...
Name That Icon
What is this icon... it keeps coming up all over the screen... I cant get rid of it... no matter what tool I'm on, it doesnt disappear.
Icon Help Please..
I downloaded some windows xp icons from the net. When I import them into flash, I want to remove the background of those icons which is usually white with scan lines, so that when I use them on top of my own background it will not appear as a square patch. I want it to appear as regular desktop icons which doesn't have any background patch. I used some image image editor to remove the background. It is not very effective. Can somebody suggest how to do it with either paintshop pro or adobe photodeluxe, please? Can I remove the background layer and copy only the foreground layer where the icon is?
Thankyou.
Url Icon
does anyone know how to create an icon in the url adress? for example flashkit hast the "F" logo in theirs.
.exe Icon
How do I change the icon on the .exe I published to my own icon I created?
Icon
Is there anyway to change the icon on the .exe when publishing the flash project?
Just curious...
I am also wanting to write a few flash splash screens for some DVD`s I am making, are there any tutorials out there somewhere?
Many Thanks
Icon Beside URL
How do some websites (ie. Flashkit) get those little logos/icons on the left side on the URL.
I'm with Media Temple for my web-hosting. Does anyone know?
URL Icon?
Hi,
I'm wondering how I make my website have an icon in front of the url instead of that web browser symbol? Flashkit has an F. I'm not sure what this thing is called so I can never find the answer when I search for help. It definately makes your website seem legit.
Thanks Flash Gurus.
xoxoxo
Sarah-Z
Swf Icon
Is there anyway to change the appearance of my swf icon?
thanks
cheers.
Leo.
Icon
can any body tell me how to add ur site's icon on the address bar. like the msn or yahoo or google they do on there site.
i know its html, but i am tired off doing it but its not working.
somebody tell me wat should i use.
Cd Icon
I have to make a multimedia cd:
how can I provide an icon for a CD ? that is: to put an image, for ex. as an icon?
I think there's a program call @icon sushi that converts an image into an .ICO file...o maybe some other similar. where can I get it?
thanks
Looking For Icon Set...
hy people, i need an icon set to complet what i have(see attached file). These 3 ar part of a set that i lost, and i used them in a site that i have to re-do now and i need to add some icons.
it doesnt have to be the same set, but that looks similar. I would need something really simple like this icons are.
Any help will be apreciated.
tnx!
MX Icon
This is something I should know how to do for sure but I don’t want to risk messing about and having to reinstall.
I have had MX on this machine since it was released but for some reason the SWF’s show up as the Flash 5 icons still.
Can someone tell me how to associate the swf’s with the MX icon please.
Icon
I'm using Flash effects in my PowerPoint college government lessons before converting entirely to Flash.
I need an icon to indicate on any particular slide that there is a related sound file available. Accordingly, I'm looking for a flash effect that suggests sound (speaker, equalizer, even musical note f/x's). I'm also willing to purchase a good one. Can anyone point me in the right direction?
How To Get Icon In URL?
Ultrashock's site and now many others have a custom graphic defined for the URL. How can I do this?
Thanks!
Rick
Icon FLA
Last edited by MediaFlash : 2005-06-24 at 13:20.
.
Icon FLA
I need some help with the ICON fla from the navigation FLA's section... how do I make each icon link to a different site?
::icon Beside Url::
Anyone noes how to put a customized icon beside the url which is displayed on top of the browser? coz some sites have their own icons representing their own site replacing the default ie icon.
Anyone noes how?
Help Me, I See Only 1 Icon ?
hoi ,
See what i did !!!! http://www.tofoe.be/Flash/test.htm
How come i only have 1 icon ???????
All my bitmaps are in the same directory, xml file as well !!!!
Can somebody help me !!!!!!!
Transparency Mac Icon
Hi there, just wondering if anyone has made icons for a Mac.
I have just made a projecter that works cross platform, and want to put the Icon on the CD for a Mac. I want the icon to have a transparent background, this is the bit that I am not sure of. I know about apple I then just paste in the icon area but how do you paste something with a transparency.
Thanks very much
Sinx
Get Flash Icon
Where can I find those Get Flash 5 icons that usually link to the flash download site. It gives help to those that do not have the flash plug in by sending them straight to the flash download site. A URL to one of those would be very helpful. Thanks.
|