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




Can't Import SWF



I have Flash MX '04.

I'm thinking about using Blender (3D animation software), Flash, and this awesome python script to make a 3D/2D hybrid Flash animation.

One problem: I can't seem to correctly import the SWF files generated by the script into Flash using file->import.


Any suggestions?



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 04-26-2007, 06:31 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Bulk Import Statments Vs. Specific Import Statements...any Performance Difference?
Lets say I have 20 classes located at nl/amsterdam/simulation/model/. Now I'm writing another class that is going to use some of those 20 classes. Is there any performance difference in the compiled swf if I import them all using a wildcard:

Code:
package nl.amsterdam.simulation.view
{
import nl.amsterdam.simulation.*
...
versus importing each specific one that I need?:


Code:
package nl.amsterdam.simulation.view
{
import nl.amsterdam.simulation.model.Tulip;
import nl.amsterdam.simulation.model.Canal;
import nl.amsterdam.simulation.model.Prostitute;
import nl.amsterdam.simulation.model.StonedTourist;
import nl.amsterdam.simulation.model.BuisnessMan;
import nl.amsterdam.simulation.model.Windmill;
import nl.amsterdam.simulation.model.CoffeeShop;
import nl.amsterdam.simulation.model.SkinnyBuilding;
...
Or is there only a difference in the time it takes to compile, not the time it takes to execute?

When Is Necessary To Use Import Statements To Import Classes?
Hi,

I'm sure that it must be necessary to use import statements in some situations, I'm finding that my code often works fine without them. For example, some instructions will say it is necessary to use import.flash.events.MouseEvent; before MouseEvent.CLICK will work, or that I must import the loader class before loading an SWF, but I'm finding that I can skip timporting and it works fine. Could anyone please explain why this it, and give me some idea of how to knew when to import and when I don't have to?

Thank you in advance!

Can't Import Import Fl.controls.ComboBox
Hi all!

I am starting learning AS 3.0 (used to use AS 2, that was sweet times ) and actually can't understand simple thing - why I can't include that package from action script?

I actually start new Action Script 3 file, and put single line in first frame


Code:
import fl.controls.ComboBox
and got errors

Code:
1172: Definition fl.controls:ComboBox could not be found.
1172: Definition fl.controls:ComboBox could not be found.
Actually thats part from the code listed at the manual and I don't have any idea, why it doesn't work.

Also when I open components window and drag combobox to scene error is not showed any more.

Any ideas how can I solve this problem without adding combobox to the library?

[Flash 8] Import, Import, Import
Last edited by Nutrox : 2005-09-18 at 06:24.
























 
Ahh!! I'm already getting a bit tired of having to continuously import classes into Flash for things like BitmapData, Rectangle, and Point etc. Is there a way I can set things up so that these classes don't need to be manually imported all of the time?

I've tried a few things including : (a) Creating extension classes, but Flash moans about class paths when I try to import something like flash.display.BitmapData into my own class. (b) Setting a class path so that it points at the class directory .. $(LocalData)/Classes/FP8/flash/display/ .. but that doesn't work either (I know why, but it was worth a shot). (c) Importing the entire class package .. import FP8.* .. but that causes errors with a tonne of other classes. import FP8.geom.* etc works though, but that doesn't really help.

Am I just missing something obvious here, or is there no way around this?


Si ++

Import Via "import To Stage"
I opened a new AS2 document in Flash CS3

I designed a clip which I saved as an fla and exported to an swf file.

Now I imported the swf onto the stage but all that has happened is that the seperate swf componens are on the stage and not the complete clip?

Import Jpg,bmp Into Swf
Hi
is ther a wey to import jpg's or bmp's into a swf movie?

thanks

CHE

Import ?
I'm trying to make some icon type grafics.
that are like "squarey".
and I tried to make a .bmp file with paint
and then import it in flash, but once imported the pictures becomes blurry.
does anyone know what is the best way to do this?

Import MP3 ?
Hi,

does someone know if it is somehow or other possible to import an external MP3-file into a flash movie, without turning this MP3 first to an swf-file ? (As I'm building an MP-3 player...)

thanx
j

How Do U Import A Jpg?
hey i just got flash mx and i was just wanting to know how u can import and jpg image with out it going blurey?

Dxf-import
Hy,
I have a problem with the import of dxf-files from Autocad. It doesnt work with dxf 12,13,14. Flash abort with unknown error. I moved my drawing to 0,0,0,- no result.
Any solutions??

Leins

Import Swf...
seems like a simple problem, but i cant get it. i loaded an external swf into my main movie. the main movie can change the variables in the external swf or call any functions from it. im sure protect from import is unchecked and my paths are right. any other ideas?

Best Way To Import A Bmp?
I need to make an animation at a really small file size, which contains a c ouple of b&w pictures in it . the pictures won't be moving. they'll just appear on screen for a few seconds.
Do u guys know what the best way is to bring a pic into flash???

regards,
mnky

Import Jpg
Is there any way to import jpg files into an application on the remote server and get them vectorized for use and manipulation within the flash player?

thanks,

Help With AVI Import
how do i import AVIs into flash? I encoded them with winmorph. and can I tween them and pause and resume them?

Import From Web
Need to know how to download a flash file from the web.



Thankyou,

Tracy James tracyjame@aol.com

MP3 Import
Anyone know why Flash has problems reading (and importing) some MP3s and not others? I can import some that I found on Kazaa to the library, but a whole bunch that I ripped myself can't be imported. They're all at 44.1kHz, but the bitrates vary among the ones I try to import. Does Flash prefer a certain bitrate?

.swf Import?
how do I play a .swf in my new flash site

like: I got a logo and converted it to .swf
now, I want to play that same logo in my new .fla
can I just make a frame like in HTML ? sure hope so
thx for advise

www.TheNymf.tk

Import AVI
I've an AVI file from 2 seconds, and would like to convert that to a flash file to offer it on my webpage.
How can that be done in Swish?

Thanks,
Gunivortus
Goos@boudicca.de

3D Import
Hi, How can i import 3d models into flash and manipulat them, like rotate Thanks for you help

Txt Import Etc.....
anyone?
Im trying to get a blog type thing going and am considering using php to write to a txtr file but, was wondering if
1. dynamic text can be rendered as html; and if so does ccs work and does javascript for popups specifically
also with fonts - are embedded fonts usable in those feilds?

but is there a better way to blog
php is one thing i know as well as bringing in txt dynamically
thanks to musicmans help

Import Avi Or Mpg
Is it possible to import avi or mpg into SWISH?

Import Wma
Is there any simple way to import a wma into flash mx? Is there a plug in or an upgrade that someone has developed? If anyone could point me to a good free audio converter I would be grateful. Thanks.

Import Img
is there a way to import an image into flash mx and have it "erasable"? like u can take the eraser tool and erase half of it.

Import Swf
Question.....

Does anybody know how to control a larger swf in a small swf?

For instance. picture.swf (1000 pixels wide) and I wanna import that in a
mainmovie.swf (200 pixels wide) and I wanna scroll that horizontal.

Is it even possible????

if there is a fla in the "movies" section please gimem the link.... and i'll find it out my self...

thanks

Tianshi

Import An Swf
Question.....

Does anybody know how to control a larger swf in a small swf?

For instance. picture.swf (1000 pixels wide) and I wanna import that in a
mainmovie.swf (200 pixels wide) and I wanna scroll that horizontal.

Is it even possible????

if there is a fla in the "movies" section please gimem the link.... and i'll find it out my self...

thanks

Tianshi

Cannot Import Wmv
I can't figure this out.. At home I have Flash MX Pro 2004 and I work I have Flash MX Pro 2004. I can import WMV files I have created with Windows Movie Maker at home. But when I try to Import them at work. It doesn't recognize. I have the same version of MX Pro. What could it be..
Thanks

How Do I Import Swf?
ive created this complex swf -
im finding it extremely difficult to put this info into another swf.
id like to know if i can import this souly as a movie clip.

when i try to import [file import/import to library] it comes in
in frames. and they suck.

help?

How To Import SWF
I managed to get the .swf from them.

The movie is nice and with text movies.
But when i open with flash MX and using import or import as library.
The background is there and only afew moments and no text moment.
( i mean not 100% what i saw in flash player)
How to convert every detail i seen on flash player?

(my english not good)

Can't Seem To Import MP3's
Hello all,

I'm enjoying all the sounds in the "Sound loop" section of this site but it seems everytime I want a .wav file, the file is not available.
I have no problem downloading the .mp3 file.. however whenever I try to import an .mp3 into my FlashMX, I get the following error:
"one or more files were not imported because there were problems reading them".

Any insight would be greatly appreciated.
Thanks

@lex

Import SWF
I am making a compliation CD of my college classes websites that they made in flash. My end aim is to have a projector that contains lots of content about various college stuff.

My question is - how can I import thier SWF websites so they are fully funtional, but appear within the template/interface that I have made.

The CD has to be done asap, so any suggestions welcome.

Thanks

Ok - Im aware that I can just load movie onto level 1, but I need them in a certain position, but cannot modify the swf's at all.. so no chance of putting anything like this on the first page...

this._x = whatever;
this._y = whatever;

Import And AS 2.0
I am authoring an application using Flash MX Pro, 7.0.1.

I am using the import statement from AS 2.o inside of different classes in different packages.

But when I do a syntax check (Ctrl + t) I get all kinds of errors saying that the imported classes do not match the references in the code, or that the class could not be loaded.

Now, I have checked the folder structure a hundred times, as well as the names of the classes and their AS files and they are all correct.

So why am I getting these errors when I check the code in the ActionScript editor?

thanks,

sprout

Import Avi Or Mov?
Hi all.

I'm trying to make a FLASH 5 presentation that includes a few video clips. Is that possible?

I imported a .mov file and it did nothing but when I imported a .avi file the first frame is shown (as if it's a picture) but doesn't play when I try "test movie" or "test scene"..

any thoughts?

Jpg Import
Everytime I import an image to my flash documents, i have to realize, that the quality is very bad.
How can I make my jpg-s look like good? Like when I open them with photoshop for example...

Import Swf's
Does anyone know a way of importing your flattened swf into a fla to play as a movie?

I am making an interactive portfolio in flash and wish to show some of my other flash work within this cv. To keep the file size down i would like to import the .swf into the .fla.

I would rather not import a swf exported as a .mov as i also wish to play about with the perspective and scaling.

Or can loadmovie actionscript be used to import a .swf into an area of your fla rather than taking over the whole screen?

Thanks

Import.mov
hi there,


in F5,
How come a .mov file will show in .fla but will not show in .swf?

ps. i want to create Flash FX on top of a video file

thanks

Import A .swf
I want to export another small swf which has some drawings and other things I made, and I was going to do a on release _blank link which works fne but I need it in the same movie for shopping cart purpose. I have the frame ready for import.I did imprt in and tested and when you hit the button or any other button it just blinks and you see a glimps of it and that is it.

Import SWF
Hi all

I'm trying to import an SWF i created using Swish to flash. I created a movie clip symbol and imported the SWF file to stage in the movie clip symbol. Then I went to the main scene and dragged the movie clip, which now has the imported SWF as a series of images, on to the stage. What I want to do is, I want this movie clip to play when I play the main movie. But its not happening. All the effects I created in Swish are present in the clip symbol but as a series of images. When I drag the marker across the timeline(inside the clip symbol) , I can see the animation. So how do I make it visible in the main scene?

I'm using Flash MX Pro. 2004.

Thanks in advance

Can Mx Pro Import Into Mx?
i was wondering if mx pro fla's can be edited in mx

When I Import A Gif Onto Another Pic
When i import a gif onto another picture its weird.. because when i play it, it shows the first picture with the picture taht has a gif on it and then it shows each and every other part of the gif in a slideshow based form (meaning the gif is cut up into subsections and shown as a slideshow) can someone please tell me how to make this into one smooth animation?

Import Jpg
using the 2004pro load a jpg file script.

what is the best way to optimise the file size of the imported image?

in the old versions i always imported the jpg into the movie direct and altered the quality within the flash program the results allowed me to find the best size image i could easily!

rat

Import ?
I wanted to know when using Swift 3d what do I export the file as to import it into Flash? I am doing text image no animation now.

And also an animation 3d file.


Is it swf or svg?

Thanks

How To Import An Swf Into Another Swf?
I have made an swf with buttons and animation, and I want to insert this into part of another swf by exporting the movie and then importing it. However when I play the clip in the new swf none of the actions are there it just cycles through the frames. How can i fix this???

Import FLV Into FLA
I'm doing a site as a favour for someone (the first time I've opened Flash in about a year) and they want to have movies playing within the flash site.

I had no trouble importing quicktime movies into the flash file, but of course there were no controls and the file became very big.

They have supplied me with 10 FLV files... problem is I have no clue what to do with them. I've looked at some tutorials on here and Macromedia.com and am still clueless as to where I'm going wrong!

If I import the .flv file into my timeline it tells me however many frames the movie will require, and I get a layer with what looks like content in the keyframes. However I can see nothing on the stage. If I export the movie to swf I still see nothing.

I'm sure I'm missing something small or just being straight up stupid - but can anyone point me in the right direction. I just need this flash site to play/import these movies when a button is pressed. And preferably have controls (play, pause rewind etc) to go with.

Thanks in advance for any help.

EDIT: I'm using Flash MX by the way.

[F8] Jpg Import
Hello

As I'm a newbie in the actionscript domain I have no clue how to solve the problem I have for importing jpg files into a banner.

I made a flash banner to use on top of the different pages of the website i'm building (http://www.aidateam.be/banner_example.htm). I would like to avoid to make different banners (read: separete flashf files) to use throughout the site.

I would like to find a way so I can tell flash by using an parameter in the <object> tag which foto that needs to be imported in the flash movie.
If it is possible to avoid putting the link to the picture in the url this would be great.

I attached the existing fla file...

Thank you for your input!

Andy

[F8] Import
I'm trying to import a streaming video on flash 8 and i can't seem to get it to work. Can any of you help out?
Here's the URL: http://kdka.dayport.com/launcher/101...deo_player.tpl


thanks!
Lizzie

Why Not Import Everything?
I know that if you use something like:


PHP Code:




import flash.display.*;







everything under the display folder will be available, but that it will only import the items that you use. So, why does everyone always import only a specific element (e.g. "import flash.filters.BlurFilter;")? Why would you not have a whole list of items that you just paste at the beginning of every class? Something like this:


PHP Code:




import flash.filters.*;
import flash.events.*;
import flash.display.*;
import flash.utils.*;

etc.....







It won't increase your filesize as it only imports the objects you use, and it seems like it would make it easier because you wouldn't have to think about what you need and then write the import statement for it. Is there some sort of 'best practice' that I just don't know about? If there is a best practice, what's the reason for it?

Import XML
Hi all, I am currently working on a flash project and would really like to get XML hooked up to it, however I am pretty much stuck as to the best root to take, Im just looking for a bit of guidance really as this is my first project using XML.

Basically to start with I would like to just have a dynamic text box at the top of flash doc called title, and have that change depending on what box the user highlights, there will be 12 boxes, with instance names b1, b2, b3.... I want to be able to set the title of b1, b2, b3... etc in the XML doc.

Im sure there must be a simple way of doing this, there will always be 12 boxes, I just want to be able to change the content of these as and when needed, its gonna act as a kind of portfolio.

Eventually I would like to be able to have title, image, desc, more info for each box within the XML, I'm pretty stuck as to how I should load this data within the flash so it changes depending on where the user highlights.

I think once I get some momentum putting this together I should be able to complete this, just really need some guidance to push me in the right direction.

Any help would be much appreciated, cheers for reading,
Hope to hear from someone soon.
Mark.

What Is The Best Way To Import A Vid ?
trying to import video into flash mx professional, could someone tell me the best way to do this, and good format to import it as?

Import
if I remove all my import statements my movie will works fine when using test movie in Flash CS3. Is there a reason why it works, should it?

Copyright © 2005-08 www.BigResource.com, All rights reserved