Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Anybody Know How Export To Actionscript Works?


Hi,

I've got a lot of other question threads going but I keep coming up with new problems! This time I just need to know how that damn Export to Actionscript works! I've got it figured out mostly but I can't target objects within objects.
If you have a MovieClip that you choose to export for actionscript (this movieclip is NOT on the stage at runtime... it's added later) And that MovieClip has a lot of other objects inside of it. How do you target those things inside??

I've tried to trace their names by saying
PHP Code:



trace(MovieClip.getChildAt(1).name); 




and they all come back with no title so I don't know which is which..
Anybody have experience with this??

Thanks!

-b




ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 06-16-2008, 09:14 PM


View Complete Forum Thread with Replies

Sponsored Links:

Works When I Preview, Not When I Export...
My movie depends on one variable throughout a few different scenes...then, that varible, which the user determined b clicking a button, takes you to a webpage at the end (a different one for whichever button was clicked).

When I preview the movie, it appears to work, however when I view the published, exported .swf in my browser -- no workie.

I tried using the .swf created by the movie preview, rather than .swf created by exporting. Nope. I checked my export settings too...nope.

I'm really close to throwing my computer out the window -- please help.

View Replies !    View Related
Works In Preview But Not In Export?
im just making an ecard and everything works fine in the preview.but after i export it the text thats supposed to fade into view is all just already there.am i missing something?

View Replies !    View Related
Export Doesn't Works
Hi
First sorry for my bad english, i'm french

I have a problem with swf export in Flash 8 on MacOSX 10.4. When I try in an admin session it's works but not in user session. I choose publish, it began but Flash crash after. There is a .swf file beside the .fla file but it's not valid.

I have trashed the preferences and reinstalled Flash 8, but it's the same thing.
I have set read and write autorisations in the /Applications/Macromedia Flash 8 folder, but it's the same thing.

Have you an idea because it's obstructing...
Thanks

View Replies !    View Related
AttachSound Only Works When I Export On First Frame
Ok this is way odd, I've used this code before but for some reason it does not work.

I have a sound symbol with the linkage name demo. At frame 10 I want to attach and play it. This is the parent movie so it is the root's library that contains the sound as well as the roots timeline that tries to load it.

my code on frame 10
code:
musica = new Sound();
musica.attachSound("demo");
musica.start();


For some reason it will only work when I leave the 'export on first frame' option checked. I don't want to export on the first frame cause it jacks the preloader.

What the heck am I doing wrong?

View Replies !    View Related
AttachMovie Only Works With Export On 1st Frame?
The title says it all...

I can't seem to use attachMovie unless in my linkage I've set it to Export on First Frame...

but I don't want to export it on the first frame...

And it's just a movieClip, not a component. And I know the code works since I can check Export on First Frame and have it show up.

What am I missing?


I'm using MX2004 and in a blank FLA I make a movie clip called thisOne, and set the Identifier to "thisOne" and I check only the export for ActionScript box...

then you'd think this command would work, but it doesn't...

attachMovie("thisOne", "thisOne", 2);



any help?

View Replies !    View Related
Uncheck Export In First Frame -- Works For Sounds Too?
Okay thanks!


Edit: Hmm, something seems to have happened to my original post. It has the same text as my response?

View Replies !    View Related
[F8] Testing.. It Works Export... Why Did It Break? (flash Counter)
So, I got a flash counter to work only when I test it out in flash but when I export it, it's broken.

http://neebit.com/s?ab8501c180.swf
(vote for anyone)

Got the code the counter here:
http://www.kirupa.com/developer/mx/hitcounter.htm

View Replies !    View Related
Export For Actionscript
an extension of an earlier question..

can someone give a good explanation of the linkage options from the library?

for example, "export for actionscript" and the other options, what are they used for?


thanks,
-myk

View Replies !    View Related
How To Export For Actionscript?
hey,

is there any way to export movies for actionscript without having to have the "export in first frame" checkbox checked?? the problem is, i want to have these movies loaded once in the site, but if i put them all to the first frame, my preloader dosent work until all the movies ive exported for actionscript are loaded? does anyone understand my question?? thanks for any help.

-jake

View Replies !    View Related
Export For Actionscript
hi all

in the linkage properties of a symbol if i uncheck the export in first frame check box the symbol isnt exported even after the movie completely loaded
what should i do to export the symbol in the 2nd frame or 3rd frame

thanks

View Replies !    View Related
How To Export .jpg Through Actionscript ?
Can anyone help me on this. I want to export some of the movie clips from a running .swf file to .jpg.

Suppose there is a flash file running in an .asp page. There are three movie clips in that file namely A, B, and C. Now i want to convert A and C movie clip to a .jpg image on a click of a button located in the flash.

Regards,
Satpal Sharma.

View Replies !    View Related
Export EPS With Actionscript
in flash you can export an image as EPS file, is this also possible with actionscript (dynamically)?

H.

View Replies !    View Related
Export For Actionscript?
Many of the mc's in my movie don't have "Export For Actionscript' checked, is this going to present problems? What exaclty does this featre do?

View Replies !    View Related
[F8] Export Actionscript To .AVI
Hey guys,

Does anybody know how to export my .fla as an AVI and not have the length be dependant on the frameboard?

I have 3 frames in my .fla, which loop and use a container movieclip to showcase everything... when I use Export->Movie it only exports a 3 frame movie (1/3 of a second!!).

I need to specify how long the .fla is to remain open such that everything that needs to be done can be done using AS.

Thanks,
phrzn

View Replies !    View Related
Actionscript To Export Swf As Gif Or Jpg?
Does anyone know of a way to have Flash, in Actionscript export a gif or jpg of a movieClip?

Thanks, Dvl

View Replies !    View Related
Export For Actionscript?
Many of the mc's in my movie don't have "Export For Actionscript' checked, is this going to present problems? What exaclty does this featre do?

View Replies !    View Related
Export From Actionscript
Hello,

Is there a way of exporting a variable using actionscript?

Thanks

View Replies !    View Related
Export For Actionscript
Can anyone point me to a tutorial about optimizing movies?

I have a movie that loads movie clips from the library that are exported for actionscript. If I check export on first frame the movie takes forever to load (and takes place on first frame before the loading sequence). If I uncheck it the movie loads quickly but the clips aren't available when called for several minutes.

What is the proper way to do this?

Help would be greatly appreciated.

Thanks

View Replies !    View Related
CS4 Does Not Export Actionscript
When I press Control Enter or export it throught the file menu, everything but the actionscript is exported. Perhaps the AS is exported, but it doesn't work in the .swf. This only occurs with code in classes





























Edited: 11/15/2008 at 08:53:41 PM by Sir KoolAid

View Replies !    View Related
Export For Actionscript
People - a very basic question for you. I'm making a loads of buttons and as I go along I'm curious and thought I'd ask...

What does "export for actionscript" actually mean when you create a button, and is it necessary for me to click it?

Also - is there a point in selecting "export in first frame", and would this slow down the loading of my swf, or slow it down?

Just want to make sure I select the right choices - anyone can help?

A.

View Replies !    View Related
Export For Actionscript
I'm a little confused on when you should and should not select to "export for actionscript" when creating a new movie clip.

Is there a time when you absolutely would not select that option?

Would it hurt to always select that option to cover all your bases?

What is the downside to that?

View Replies !    View Related
Export For Actionscript?
Many of the mc's in my movie don't have "Export For Actionscript' checked, is this going to present problems? What exaclty does this featre do?

View Replies !    View Related
Export For Actionscript?
"AttachMovie from a library... takes a symbol from the library and attaches it to the movie on the Stage specified by MovieClip".


Am I right to think that the use of this library-attachMovie linking is that with it you can automatically load external SWF's into a main SWF (in holder MCs) without that it needs a preloader in the sense that they are already automatically loaded in frame0 (so together with the whole movie)????

And if so, what are the other disadvantages of it (apart from that it loads the library at frame 0, so if you put your preloader at frame1, you first don't see anything for a while till the library is loaded)

View Replies !    View Related
Export For Actionscript?
Many of the mc's in my movie don't have "Export For Actionscript' checked, is this going to present problems? What exaclty does this featre do?

View Replies !    View Related
Export With Actionscript
hi

i need to know if flashmx can export mc by actionscript somehow?!

thanks

View Replies !    View Related
Export With Actionscript
hi

how can i export a mc with actionscript is threr a possibility

thankx

View Replies !    View Related
Export For Actionscript?
Many of the mc's in my movie don't have "Export For Actionscript' checked, is this going to present problems? What exaclty does this featre do?

View Replies !    View Related
Help: This Works In Actionscript 1 But I Need It To Work In Actionscript 2
I have some scrolling navigation that works when published using actionscript 1 but not actionscript 2. I need to use actionscript 2 because it supports the streaming video that I'm trying to navigate. Can someone help me rewrite my button logic to get the scroll bar to work as it did in actionscript 1? Please see my fla if necessary, but here is the area I need help with.

if (Number((getProperty("../scrollhandle", _y)))>Number((Number(../:top)+Number((../:speed/(../:height/../:scrolllength)))))) {
setProperty("../scrollhandle", _y, (getProperty("../scrollhandle", _y)-(../:speed/(../:height/../:scrolllength))));
} else {
setProperty("../scrollhandle", _y, ../:top);
}
tellTarget ("../scrollhandle") {
gotoAndPlay(3);
}

the error that I get is:

**Error** Symbol=buttonlogic, layer=Layer 1, frame=2:Line 1: Operator '>' must be followed by an operand
if (Number((getProperty("../scrollhandle", _y)))>Number((Number(../:top)+Number((../:speed/(../:height/../:scrolllength)))))) {

**Error** Symbol=buttonlogic, layer=Layer 1, frame=2:Line 2: Operator '-' must be followed by an operand
setProperty("../scrollhandle", _y, (getProperty("../scrollhandle", _y)-(../:speed/(../:height/../:scrolllength))));

**Error** Symbol=buttonlogic, layer=Layer 1, frame=2:Line 4: Unexpected '.' encountered
setProperty("../scrollhandle", _y, ../:top);

Please help if you can.

View Replies !    View Related
Export For ActionScript Question
I am exporting a small movie in my library so I can use it in the main movie. When I attach this movie, I also tell it to go to a certain frame depending on another variable that tells its size. Well everything works fine, the movies are attached and show, the problem is, depending on which frame it was to gotoAndStop, should be a different color. When I degub it shows the the mc has loaded to the proper frame, and should be a certain color, problem is they all show white which is the first frame? Is there a refresh or something I could run, what I dont understand is that it shows the proper frame but doesn't show the proper color.
Any suggestions would help.

View Replies !    View Related
Export Movie With Actionscript
Hello all,

I've put together a flash file which I want to now export to a movie file so I can add a few effects and general editing in After Effects.

However, I've used actionscript quite extensivly and when I export it to a movie it simply cuts out all the actionscript (it used it for tweening in some places - there is no interaction...).

Does anyone know how I can export it to a movie file so I can edit it?

Thanks
Allan

View Replies !    View Related
Export Actionscript For First Frame
I want to create a site that had external .swf files loading into a main .fla, however I want to have shape tweens in between each load when a button is pressed on the main.fla. To do this I figured out that I can place these tweens on the first 15 frames of each external swf. As long as I do not uncheck the export in first frame for actionscript, and change the export classes to say frame 16, there is not problem right? Will this transfer all this “power” that the first frame seems to hold onto the 16th frame, or will I run into problems?

View Replies !    View Related
Export For Actionscript (in MC Properties)
How can i do this programmatically?

I created a dynamic MC and need to place it in the scrollPane. But it wont take it because its not Exported for Actionscript? Any ideas on how to do it without actually creating a Library obj for it?

THANKS IN ADVANCE
MCM

View Replies !    View Related
Flash CS3 Export As Actionscript 2.0?
I want to export my flash to flash 6 or 7 format, and hence trying to export with action script 2.0 support, not 3.0. The option is there but it wont let me export with it.

It lets me select it, but clicking export pops up with some error (I can post this later if need be).


Any idea how to fix this?

View Replies !    View Related
[MX] Export PNG For ActionScript Disabled
I'm trying to make a paper doll sort of program. I've got a bunch of PNGs of clothes cut out and I'd like to dynamically load them in with attachMovie. So I imported the PNGs into my project, but when I try to export them for ActionScript, the checkbox to do so is greyed out.

Does anybody know what the specific requirements are to be able to Export a symbol to ActionScript?

View Replies !    View Related
Picture Export Via Actionscript
Hello, well, im currently making a paint like program in flash. I know flash can print and all, but ive been wondering whether flash can export pictures IE: a .png, .bmp, .jpeg, etc. Is there a way? or some way using php to take a picture of it? i was thinking of something like what i have currently here
like take a certain section of the flash document and export it as a picture on the server or client. ive heard it cant be done, but im not sure. What do you guys have to say?

View Replies !    View Related
[MX] Export PNG For ActionScript Disabled
I'm trying to make a paper doll sort of program. I've got a bunch of PNGs of clothes cut out and I'd like to dynamically load them in with attachMovie. So I imported the PNGs into my project, but when I try to export them for ActionScript, the checkbox to do so is greyed out.

Does anybody know what the specific requirements are to be able to Export a symbol to ActionScript?

View Replies !    View Related
Picture Export Via Actionscript
Hello, well, im currently making a paint like program in flash. I know flash can print and all, but ive been wondering whether flash can export pictures IE: a .png, .bmp, .jpeg, etc. Is there a way? or some way using php to take a picture of it? i was thinking of something like what i have currently here
like take a certain section of the flash document and export it as a picture on the server or client. ive heard it cant be done, but im not sure. What do you guys have to say?

View Replies !    View Related
Export Actionscript 2.0 - No Sound
Hello,

I have create a Flash Video Player. In order for it to play though you need to export actionscript 2.0. If you do that though the sound dissapears and the preloader wont work. Do you know what should I do at this point?? The only sound that it plays is the sound of the buttons. Dont undestand why not all the others....

Thank youuuuuuuuuu

Maria

View Replies !    View Related
Save Or Export With Actionscript?
does anyone know of a way to export or save files through actionscript?

for example, ask the user for an input and save that variable as a .txt file while the program is executing...

View Replies !    View Related
Sound - Linkage - Export For Actionscript
Hey,
question-
-if i have a sound in my library that i want to export to be able to call with actionscript, is there a way for it to work WITHOUT having to export to the first frame?
I'm wanting to call the sound on a button press.

If it has to be done this way, i can make a preloader mivie separate to avoid the lag on preload, but just wanna make sure i'm learning as i go.

BTW-
- i do know that i can add sound in the authoring tool when i make my buttons, but i'm experimenting a little. I have one button that is the white key of a piano and one that is the black key. I used several instances of the one symbol to make a keyboard and have recorded a full octave range of a piano. I wanna try to attach the sound thru script on each of the instances to call the appropriate sound. On release, the sound will stop. Same would be true for rollOver and rollOut


thanks,
-myk
[Edited by mykrob on 09-05-2002 at 01:43 PM]

View Replies !    View Related
Linkage/'export As Actionscript' Problem
hey all. ive got an swf called 'slideshow.swf' that contains a slideshow of images, all of which have been set to export as actionscript. when i test the movie, it works perfectly. however, 'slideshow.swf' ultimatelly needs to be loaded into a blankMC (named 'slideshowMC') of another swf. when 'slideshow.swf' is loaded into the main movie, none of the images show up. below is a simplified snippet of my code:

---
loadButton.onpress=function(){
slideshowMC.loadmovie("slideshow.swf");
}
---

ive tried loading the swf into a level instead of an MC (which works), but doing so hinders my ability to control the properties of the loaded swf, and if there is any way that i can load the movie into an MC, i would be much better off! im sure that my problem probably has something to do with path names, etc, however i just dont know what exactly it is. but there must be a way to do this!!! any suggestions greatly appreciated! also, if anyone is interested in checking my .fla's, just let me know and ill post em up.

cheers
j

View Replies !    View Related
Export For ActionScript Question: EASY
i have 4 images that I am making as Graphic Files labeled GRA_001 GRA_002 ...

their identifiers are image01, image02 ...

i unchecked export in first frame so that I can have a preloader in the scene before it... then scene two will have all the graphics... but the preloader will skip over scene two when the movie has downloaded....

how do i call up one the GRA files....

i have a MC that I have this code for:

onClipEvent (load) {
mcJpg="image03";
}

inside this MC is a MC label mcJpg for the image3 to load in...

but nothing happens... HOW DO I CALL UP ONE OF THE EXPORT FOR ACTIONSCRIPT GRAs?

thank a MILLION in advance,
manny

View Replies !    View Related
Can You Export Movie While Retaining Actionscript
Hi everyone,
Is it possible to export a flash file into a movie to be burned onto a DVD and still retain the use of movie clips. I have a client that needs a file initially created in flash and then converted to a DVD. I just want to make sure that I don't use any actionscript or movie clips if there is no technical way of translating it over into the DVD. Thanks for all your help.

View Replies !    View Related
Garbage Collection On Export For ActionScript
Does anyone know if items marked "Export for ActionScript" in a loaded SWF will ever be garbage collected?

I know that they won't be GC'ed in the main SWF, but when that main shell loads an external SWF module that also has library items set to export, and then later unloads that SWF --- will the module "Export for ActionScript" items ever be picked up by the GC, or will they continue to exist in the shell forever? (And add duplicates if I load that module SWF module multiple times)


Thanks!

View Replies !    View Related
Hi-res Export Of Images Involving ActionScript
Dear Flash Forum members--

I am using Flash 8 to generate figures for a scientific publication. I've written code in ActionScript that processes my data and creates a plot upon running the .swf file. I'd like to save this image at high-resolution. Thus far, I have used screen capturing or printing to a pdf, but neither of these has sufficiently high quality (i.e., 1200 dpi). I can't just use the image export commands within Flash b/c the ActionScript doesn't execute.

Do you have any suggestions for what I can do? Does CS3 somehow enable the export of high-res images where ActionScript has executed?

Thanks very much in advance for considering my question.

View Replies !    View Related
Flash Crashing On Export For Actionscript
Help!!

I am having a problem and I wondered whether somebody might be able to help me. I am creating a movieclip which I have set the 'export for actionscript'. In the class input I am putting my class location, which is: uk.co.domain.baseButton.

When I click the tick to check the path, Flash Quits on me.

Any ideas?


Cheers

View Replies !    View Related
Flash Crashing On Export For Actionscript
Help!!

I am having a problem and I wondered whether somebody might be able to help me. I am creating a movieclip which I have set the 'export for actionscript'. In the class input I am putting my class location, which is: uk.co.domain.baseButton.

When I click the tick to check the path, Flash Quits on me.

Any ideas?


Cheers

View Replies !    View Related
Actionscript Export On Frame 2 Pain
Hi -
Familiar story...preload progress graphic doesn't start until 89%. Report tells me it's the Actionscript 2.0 Classes...so I changed the Export frame to 2 instead of 1 in the Settings of the Publish Settings panel. This makes frame one about 8KB instead of 51KB.

Yikes! Every time I tested it something was funky - usually the TextField and TextField.StyleSheet. I'm guessing that the Actionscript classes didn't load completely before my scripting on frame 5 was calling for it. Does that sound right?

So what's the "cake and eat it question" solution? Is there a way to Export AS 2.0 Classes on frame 2 and make sure everything else loads AFTER that?

How has everyone else solved this problem of having a frame 1 bloated with AS 2.0 Classes - ?

TIA some expert input.

JL

View Replies !    View Related
Actionscript Not Active In Export Movie?
so is it just a fact that export your flash file, for example as a .mov file, it won't recognize any actionscript you use for motion, only tween effect you place on the timeline? or am i doing something wrong with my settings?

thanks,
bry

p.s. i'm trying to prepare flash movie so i can import into final cut pro. its seems like you're supposed to be able to import .swf files directly into final cut pro, but i get error, unrecognized file, so that's why i'm trying to export .mov in flash now. but i use actionscript for color and motion effects. and the .mov i create are static.

View Replies !    View Related
Writing In Lingo Or Actionscript For .DXF Export ?
Does anyone know if it is possible to have flash or Director Function online in such a way as to make the end product be the export of an AutoCAD (DXF) file...?

View Replies !    View Related
Actionscript Works In 6 But Not 7
Whack-a-mole type game works great when published for Flash 6 or earlier but why not Flash 7?

Source file here:
http://www.vexing.org/whack/

Written in Actionscript 1.0. Taken from Gary Rosenzweig's book "Flash 5 Actionscript for Fun and Games".

Thanks,
-P

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved