actionscript

how to give on press and on release simultaneously in actionscript

I have the following code on(press){ gotoAndPlay(193); } on(release) { getURL("http://www.sumangalijewellers.com"); } when I press button it have to play and go to the page ...

How to replace movie clip in flash animation via actionscript code

For example, I've created in Flash CS a movie clip CampfireMC, which contains child movie clip: m_fire:FireMC FireMC is an animation of flame CampfireMC controls playback of m_fire, for example, last frame of CampfireMC uses action code: m_fire.gotoAndStop(m_fire.totalFrames) And the question is how to replace (not delete/add, as m...

SWF hosting security

I have started developing a drawing application in as3. I am thinking that I could integrate a cms and allow swf files to be uploaded in runtime as graphics.What are the potensial security issues involving third party possibly malicious swf files here? I would simply be adding the swf as a custom sprite class to a masked container sprit...

Problem with setting dynamic text in Macromedia Flash Pro 8

Firstly, sorry if I'm missing something obvious, but after looking over the same line of code and settings over and over and not being able to find a solution, I thought it better to just ask on the off chance that it'd be an easily resolvable problem. I've tried googling it, but end up with basic tutorials on how to use dynamic text in ...

Actionscript: how to add a link text to text area

I have a text area displaying something, I want to achieve: some words are rendered as hyperlink in html(blue color with underline), and when mouse hovers there it becomes a hand. When user clicks it, it will invoke a function in AS and pass the words to the callback function. Is it doable? Thanks. ...

Performance problem in Flex using a heatMap

I am using a heatMap in Flex 3.5 but I have a huge performance problem because I'm trying to set between 3.000 and 10.000 markers in the map. At the moment that the map begins the render process the Browser collpase. The implementation that I'm using is a GoogleMpas one, created by "flex epiphanies" I used http://sunild.com/proto/Earthq...

Convention for a client-side (Flash) deep link path separator?

I see examples in the SWFAddress documentation, but it's not clear what the convention should be for a multi-level path. Do their examples intend to suggest that the path separator should be a hyphen? Why not like this? http://example.com/#/deep/link/path ...

Return value instead of null

Hi, I'm trying to call a function and pass a couple of properties to it however it's complain the object i'm attempting to target is null. Can anyone see where I am going wrong? <mx:ViewStack id="vs" width="100%" height="100%" y="53"> <mx:Canvas id="view1" label="Community" width="100%" height="100%" backgroundColor="#ff9900" showE...

utility to indicate why an object can't be deleted

Is there any utility that indicates in a comprehensible way what is referencing and object and why it can't be garbage collected. ...

actionscript: can I get the http request URL?

a.swf is loaded in a.html which is hosted at http://www.a.com/a.html. I want to know, if user browses http://www.a.com/a.html, in actionscript, can I get the http request URL? In this example I want http://www.a.com/a.html. ...

how to change the flash builder generate HTML to call function in actionscript?

I have an actionscript project, and I have provided the function that I want it to be called from HTML(the flash builder generated html file). ExternalInterface.addCallback("getURL", getURL); This is the code in actionscript, how can I modify the flash builder generated html file so that it can call getURL()? ...

ColorPicker in AS3

import fl.controls.ColorPicker; import fl.events.ColorPickerEvent; var myColorPicker:ColorPicker = new ColorPicker(); myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler); myColorPicker.move(10, 10); addChild(myColorPicker); function changeHandler(event:ColorPickerEvent) { trace("color changed:", event.color, "(#"...

list of restricted words

I believe we can share our compilation blacklisted keywords for use in forum or comment system to filter out unwanted spam and words like s*x, f**k. I hope you can share all your list here. ...

Load a FLV video on Flash without method GET

Hi, I want load a video on flash, without a GET call to get the video... now the code is something like this: var Player:FLVPlayback = attachMovie("FLVPlayback", "Player", _root.getDepth()-1); Player.autoPlay=false; Player.bufferingBar=buff; Player.contentPath="myVIDEO.flv"; the problem is when myVIDEO.flv are loaded, this URL appers o...

Maintain native size on loaded swf into as3 movie

Hey Guys Anyone know how to maintain the original stage size of a externally loaded swf in as3 FP10?? I can't find any documentation on it and don't want to mask it. Thanks Sam ...

How to globally catch changes to the text of a TextField in AS2?

First the details Using AS2 (Scaleform) The solution needs to be global at least within a swf All of our UI is already made and this is purely for visual indication in-house of an issue with text size. I need to be able to globally catch when the text for a TextFeild changes and then perform my check. I have tried a few things wi...

How to create a method that can accept arraylist/collection of object - custom class type in actionscript

Like java, I want to create a method that accepts an array list of particular object type. In java: public void addStudents(List<Student> students) { ... } In actionscript public function addStudents(students:ArrayCollection):void { ..... } Here I want to have public function addStudents(students:ArrayCollection). Thanks ...

Actionscript: how can I add a custom property to an instance of Image?

var image:Image = new Image(); image.property_1 = "abcdefg"; it can't compile as the Flash builder says: Description Resource Path Location Type 1119: Access of possibly undefined property jdkfjds through a reference with static type mx.controls:Image. adm.mxml /adm/src Line 209 Flex Problem H...

Where can I find a list of Actionscript Error numbers and their descriptions?

I'm searching Adobe's documentation and cannot find it. Specifically, I'm looking for SecurityError #'s and descriptions for the SecurityError class documented here. http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/SecurityError.html#SecurityError%28%29 ...

Does Flash have support for the soft/discretionary hyphen?

Out of the box, Flash CS4/AS3 doesn’t seem to support the soft hyphen / discretionary hyphen (&shy; / U+00AD). Is there some trick to getting it to work, or is it simply not there? ...