flash-cs4

facebook sharing on flash application

I have an application based on flash.I want to share this page when a user click on a facebook share button.Problem is that when a new window open afte clicking the button i want to add some text and an image to this and if any one click on this shared link main application should open. anyone?? Thank you. ...

Add child to scene from within a class.

Hi, I'm new to flash in general and have been writing a program with two classes that extend MovieClip (Stems and Star). I need to create a new Stems object as a child of the scene when the user stops dragging a Star object, but do not know how to reference the scene from within the Star class's code. I've tried passing the scene into...

Importing dynamically generated content into Flash

I have a website that uses some JavaScript APIs to create flash-based charts (namely Im using annotated timeline from google's charts api). Now, however, the client wants a flash-based slide show that embeds some of the features of the website. Is there a way to import the flash graphs generated by a JavaScript api into my completely-fl...

Dang Error #1009 !

I'm building a simple flash site for a friend who has a spa. I keep getting this error: Error #1009: Cannot access a property or method of a null object reference. at spa7_fla::MainTimeline/frame1() through the process of commenting out code, i've narrowed down to my link section: vox_link.addEventListener(MouseEvent.CLICK,gotoV...

1136: Incorrect number of arguments. Expected 0.‎ AS3 Flash Cs4

Basically i am working through a book called..Foundation Actionscript 3.0 Animation, making things move. i am now on Chapter 9 - collision detection. On two lines of my code i get the 1135 error, letting me know that i have an incorrect number of arguments. Can anybody help me out on why this may be? package { import flash.display.Spri...

ActionScript : Applying frame to a image / background?

I am editing a custom calendar application in flash. The purpose of this app is to let you select your own images, and create a calendar out of it. You can basically, drag and drop images of your choice and they apply frame/borders, or drag and drop embellishments. Here is the piece of code that draws a border/frame on the embellishment...

[Adobe Flash] Best approach to creating a flipbook

Hello, I am developing an application that is essentially a document presented as a flipbook (very much like zmags: http://www.zmags.com ), but I need to be able to put interactive content in it (popups, animations, etc). What is the best approach? Should I do this from scratch, or should I try to use a plugin? Are there any libraries...

Take advantage of Flash CS4's PNG Compression, but as an external file?

Hi folks! Here's the issue: I'm developing some Flash web sites and really enjoying AS3. The problem: PNG 24-bit images are too big... I have three PNG images with transparency that I'd like to rotate through on the "Home page" every 10 seconds or so. Great. No problem - but instead of embedding all three PNGs in the SWF, which wo...

Flash CS4/AS3 Writing local file from local game without save dialog prompt?

I'm writing a game to be run locally, on the user's computer. NOT over the internet. I want to have a file that will hold the usernames and avatar indices (they're in an array). I want to know if there's a way to write to files through Flash with AS3. I'm using CS4. I'd also like to know if you can delete files through Flash, though t...

Tips on creating my own Captivate widget from a Flash component?

I'm a reasonably-experienced Flash developer, now needing to use Captivate. In order to emulate some software functionality in an exercise, I need to create a combobox control (what Captivate calls a "widget" and Flash calls a "component"). The combobox that ships with Captivate is very different in appearance from the one I need to im...

Flash object location

Hello i need to know there my flash application is running. in object src my domain. but flash running on others domains. and i want to know where. and send it with request on my server. Thanks. sorry for y bad grammar. ...

Why is my movie clip instance null?

I have 2 movie clips in my scene, one is charlie brown running and another is lucy lifting a football. The movie clip instances are aptly named: lucyLifting and charlieRunning. When I get to frame 75, I run the following code: stop(); trace(lucyLifting); trace(charlieRunning); lucyLifing.stop(); charlieRunning.stop(); a...

Bitmapascache not working

Hi, In Flash CS4 I make a new moviclip put a vector in it and make it bitmapascache and put it in another movieclip. Which does not seem to work right now, the same thing seems to wrok in an old actionscript 2.0 project though. I'm not caching through code but by visually in CS4. ...

my fonts look completly different on other machines

i just published a flash site for a friend to check out and they're saying that the font is completely different than what it's supposed to be... should be sans serif and it's a serif font. the text in question are buttons and movie clips. i was under the impression that with flash, fonts should look exactly the same everywhere. what...

how to open swf file in stand alone flash player from getURL() action?

Hi, I would like to open a separate swf file from with in flash, but by default, it opens the swf in a browser. I would like this file to open in a stand alone player not in the browser. How can I achive this? Right now I'm using the getURL() action. Is there a separate function for opening a file at a specified filepath? thanks ...

Creating a function within a loop (pointers?)

Im trying to create a simple loop that creates 50 buttons, adds them to screen and then when a button is pressed, it traces out that number. I can get it to work by doing stuff I consider hacky (such as using the buttons X/Y location to determine its value), but I'd rather just be able to hold a single value in the function. The code it...

Actionscript 2.0 Functions problem and somewhat "global" variable

I have two problems. The first problem is with the following functions; when I call the function in (enterFrame), it doesn't work: onClipEvent (load) { function failwhale(levelNum) { _root.gotoAndStop("fail"); failFrom = levelNum; } function guardSightCollision(guardName, guardSightName) { if (_root.guardName.guardSightName....

How do I get my Flash CS4 buttons to direct the user to another URL?

My apologies if this has been fully addressed before, but I've read through several other threads and still can't seem to get my file to work. My actionscript code is at the bottom of this message. I created it using instructions from the Adobe website: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63...

How do you set a "Document class" from an SWC in Flash CS4?

I have an SWC with a class called Content. I want to set it as the "Document Class" in Flash. However, after setting up the SWC in the .fla, I am receiving an error message saying that "A definition for the document class could not be found in the classpath,..." Setting up the direct class folder works fine, but I need to distribute this...

Help needed Using The UIscrollbar in flash cs4 pro with AS3.0

hi there every one... i'm using the UIscrollbar component in a project i'm doing in flash cs4 pro using as3.0 i finally get it to work with my text area without using any AS codes, but the problem is no matter what the size of my text area is it only scrolls a specific amount. and there's no where where i can find any AS written in the c...