Simple SWF File problems
Hello all, im trying to create a very simple swf file, but have come across some problems.
The file i want to create is very much like this - http://davidtest.webcastglobal.com/swf2/flash.swf
This swf allows me to import it into Flex, and control which frame is being viewed.
I achieve this using a app that can be found here -
http://davidtest.webcastglobal.com/swf2/Main.html
When you press Next or Previous, it jumps forward or backward a frame.
Now i want to create a swf file like the ball file, although it will just contain a series of images, 5 for example.
I tried creating such a file in Flash, using both AS2 and AS3.
I created a project with 5 frames, and put an image on each frame, i then put the "stop();" tag on each frame.
When i imported it into my flex app, flex cudnt communicate with it.
So the ball flash file has been made in a different way ?
Can anyone shed some light on the situation please?
Can no one help me on this ?
Similar Messages
-
Need your Help with Swapping SWF File Problem
Hello,
I have two separate Flash SWF files which I would like upload
into the same HTML file. But I would like to load only one of them
at the time and would like to have a Button on each SWF Flash file
which causes the other SWF to be loaded.
hmmm.. I am not sure if I managed to make sense. :o) Let me
try it one more time. :o) I would like to swap one SWF file for
another SWF file by clicking on the buttons which are placed on the
SWF files! :o)
I was wondering if that is possible or I should think of
another way to get around this problem of mine.
Thank you very much for your help and have a great day.
Cheers,
BabakKhoramdin wrote:
> Hello,
>
> I have two separate Flash SWF files which I would like
upload into the same
> HTML file. But I would like to load only one of them at
the time and would
> like to have a Button on each SWF Flash file which
causes the other SWF to be
> loaded.
>
> hmmm.. I am not sure if I managed to make sense. :o) Let
me try it one more
> time. :o) I would like to swap one SWF file for another
SWF file by clicking
> on the buttons which are placed on the SWF files! :o)
make one swf as a holder. call it main.fla main.swf file.
Embed that file in your html document. In that file place
button with the
following action :
on (release) {
loadMovieNum("second.swf", 1);
in that file have a button with action to load the 3rd file :
on (release) {
loadMovieNum("3rd.swf", 1);
by loading them in same level (1) they will replace each
other.
Pretty simple..uh ?
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Hello, I have a problem with opening swf files (games, utilities...). It's not the problem duo the settings, I'm sure. A while a go (3 weeks) it was all ok. I have instaled many (many many) various application, and of course I had to delete some of them later ....
I must've deleted something I shouldn't have. Anyway, I did try to solve it by reinstaling the firmware, and reseting the phone to the factory settings. No success
So, the phones behaviour is like this:when I klick/tap on same icon for swf file (application), the screen goes blank for about 1/3 of a sec, and nothing happens. That's it.
It seems like I deleted some libraries or something....
Does anyone have a suggestion on this matter?
Thank you in advance.
Markoi have the same problem way back when Nokia C6-00 was new. As you review my posts history, you'll see that this problem of yours also bugs me before.
The only solution to the problem is simple: just put more pressure on the dedicated camera key after you hear the beeping sound.
the dedicated camera key has two-step button. the first step activates the auto-focus, then the second captures it.
"Always at the edge" -
HTMLLoader loading local content (SWF files) problem
Hello guys,
I'm just finishing my application but I facing a problem.
I'm currently developing a desktop application using AIR.
I'm using HTMLLoader to load local SWF files when te user tries to access specific content on the application.
I successfully accomplished this, but the loaded SWF also loads other files (assets and xml files with translations) and that is not working.
When a SWF is loaded he just stops on his own loading screen (when loading the XML files).
All this stuff is happening on my CustomNativeWindow:
(my CustomNativeWindow "overlays" the main application)
public function CustomNativeWindow()
var nativeWindowInitOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
nativeWindowInitOptions.systemChrome = NativeWindowSystemChrome.NONE;
nativeWindowInitOptions.renderMode = NativeWindowRenderMode.DIRECT;
nativeWindowInitOptions.resizable = false;
nativeWindowInitOptions.maximizable = false;
nativeWindowInitOptions.minimizable = false;
super(nativeWindowInitOptions);
alwaysInFront = true;
this.activate();
public function setProperties(contentName:String, contentURL:String, posX:Number, posY:Number, stageWidth:Number, stageHeight:Number):void
this.stageHeight = stageHeight;
this.stageWidth = stageWidth;
this.contentURL = contentURL;
this.contentName = contentName;
this.x = posX;
this.y = posY;
this.width = stageWidth;
this.height = stageHeight;
this.title = contentName;
this.addEventListener(Event.RESIZE, onWindowResize);
SWFHTMLLoader();
private function SWFHTMLLoader():void
//REQUEST LOAD URL
var request:URLRequest = new URLRequest(contentURL);
//HTML LOADER SWF
htmlLoader = new HTMLLoader();
htmlLoader.width = stageWidth;
htmlLoader.height = stageHeight;
htmlLoader.addEventListener(Event.COMPLETE, onHtmlLoaderComplete);
htmlLoader.load(request);
stage.addChild(htmlLoader);
private function onHtmlLoaderComplete(e:Event):void
trace("NATIVE WINDOW HTMLLoader complete");
onWindowResize();
private function onWindowResize(e:Event = null):void
if (htmlLoader)
htmlLoader.width = stage.stageWidth;
htmlLoader.height = stage.stageHeight;
Probably something related to security?
How can I fix this?
Is kinda urgente... deadline is coming...
Thank you!Thank you kglad for your fast response...
The reference to the content comes from a XML loaded on the main application.
var xml:XML = <Content en="game" >
<ImageSource>assets/images/gallery/resources/gameone.png</ImageSource>
<ContentSource>content/gameone/gameone.swf</ContentSource>
</Content>;
contentURL = xml.ContentSource;
So contentURL is: content/gameone/gameone.swf
Am I in trouble? -
Can't export simple swf file.
Hi, I just started working with after effects so im rly new at this and looking for some help with it.
I made simple animation text and 2 png files as background. When I try to export it, after 2 frames program stops and I get saved file but i cant open it ( so i guess its broken )
Please help me with that.Ok, i fixed it. Changed to interlaced RGB 8bit files and thats ok.
BUT
Now exporting stops at 43frame... Here is my exported banner
http://gubex.pl/grafika/tanita_bannerr.htm
Now im getting
Name - Unsupported Feature
0:00:00:00
1: Shape Layer 1 - Shape Layer
Every 1 seccond...
Any idea what's wrong ?
edit:
Well, i deleted Shape 1, and now we're back to the start, again export crashes at 2nd frame...
If u could help me with next question, that would be very helpful.
How can i link swf file as webbanner?
Thank's in advence. -
Dreamweaver CS6 - SWF file problem.
I use Dreamweaver CS6, I've inserted a SWF file to my index.php which is on localhost (XAMPP). When I try to preview my page (from chrome or IE or Dreamweaver Live), It asks for Flash Player 16. I have installed it but still asking for it. Any solutions?
I think you're spinning your wheels with Flash. Nobody I know has used it in production web sites for several years. Best advice, switch to modern equivalents like HTML5 video or jQuery, CSS3 and HTML5 animations. You'll have fewer problems and reach a much wider target audience.
Nancy O. -
Linking to an external swf file problem
I have one flash presentation which contains a movie clip
button with all three events (onRelease, onRollOut and onRollOver)
which links to a video which is contained in another swf. The
button appears to be temperamental with the onRelease event. It
will work sometimes and only when the browser is opened before
hand. If its not the browser just opens with a blank screen. Both
swfs are in the same directory and the onRelease event.
I have tried IE and firefox.
Any ideas are appreciated.
p.s The AS uses a getURL syntaxHi,
I'm the author of the article you pointed out. I'm sincerely
sorry that you found the solution code difficult to understand.
As kglad suggests, the problem is based on how Firefox
handles the url that Flash Player gives to it. (Although you're
using a relative url, behind the scenes Flash Player turns it into
an absolute url, one that starts with "file:///c|/..." or something
like that. (Firefox chokes on the pipe "|" character, even though
it shouldn't.) The workaround code in my article just constructs an
absolute url for you (using a colon ":" in place of the pipe
character, as in "file:///c:/..."). When you pass the absolute url
to the getURL() function, Flash Player passes it along to the
browser unmodified, so Firefox gets it with a colon and doesn't
choke.
I hope that helps make things clearer.
-Paul
H. Paul Robertson
ActionScript Developer/Writer
Platform Developer Documentation
Adobe Systems, Inc.
http://probertson.com/ -
Swf files wrongly linked in Mac info 'Open With'
Together with others I have had a serious problem opening swf files with Flash Player. I hope this will help some of you and challenge Adobe to get their act together since this ought not so to be.
1. Background: As you may know, Flash Player 10 is not a stand along but only for web use (a plug in). One must keep or download the latest Flash Player 9 in order to play stand along swf docs. Had Adobe explained this clearly at the get-go it would have saved much frustration.
2. Together with others, some very strange things have happened to what was an automatic double-click=open option. In my Mac Info (on file) dialogue box many of my older swf files appear as programs with which I can open any swf doc. In fact, *all* of my hundreds of stand alone swf files are now set to open with some other swf doc (!) meaning that that doc appears and not the doc I am opening. It looks like the swf file has been recognized as a program rather than a simple swf file.
3. After much frustration, I tried to set Flash Player 9 in the Mac 'Info' dialogue box and then choose 'Change All,' but this is not allowed. It keeps wanting to open my swf with some other swf doc listed in the Info. I then changed each doc separately via the Mac Info dialogue box. This finally stuck ... but when I tried to Change All again with a doc set to open with Flash Player 9, everything returned set to open with some random swf file listed in the 'Open with' dialogue box (and these swf files should not be listed there as programs).
4. This entire confusion makes me think that the Adobe/Apple conflict is somehow coming into play here. Who is to blame I do not know, but I wish Adobe would address this since we how have used Flash to create very complex and beautiful swf docs for the classroom now have to open each doc by dragging it to the Flash Player in the dock, and this means that we must explain this to any user.
5. Summary: For whatever reason 'Open With' is confused, I should be able to correct the problem with choosing Flash Player 9 and then click 'Change All.' Can anyone tell me what is going on and how to solve this?
PS: This is happening to others whose Macs are totally separate from mine.Hi seaslug and welcome to our community
I would think you could test the connectivity by playing them
locally to ensure they work. If the files all work fine on your
local PC, try copying them to a web server that isn't using SSL. If
they work fine there, then try the SSL. Basically, you want to pare
away the layers in order to see where things fall apart.
You may also wish to double check to ensure that all the
necessary files exist in the output folder. For example, maybe
someone forgot to include the associated HTM files. Things like
that.
Hopefully something here was helpful... Rick -
SWF file contains ref. to local dir structure
Newbie here; sorry.
Flash CS4 Professional, ver. 10
Am creating a simple flash video to get my feet wet. In the
process, I am drowning.
I created the video with Flash (ActionScript 3.0) by
inserting a player object, and specifying a f4v source that I had
created using the CS4 Media Encoder to convert a wmv file; nothing
to it.
Publish Preview worked fine. Publish Settings/Publish created
the necessary files, just as decribed in a Flash 411 tutorial:
http://tv.adobe.com/?trackingid=EBYHH&pss=fl_10.0.0_win_en_full__PF_20040226#vi+f1527v1000 .
Video works fine on my local PC (XP, SP2). But when I load it
to my server, it does not work. In IE 7, the page loads; source
code is there, but the window is blank:
http://www.bbhq.us/pva1.html
Adding mime type to .htaccess file did not solve the problem.
Changing permissions to the files did not, either.
It apparently is not a server problem. A simple swf file
created by Mr. Gates and simple HTM coding works:
http://www.bbhq.us/flash3.htm
What does Mr. Gates know that I do not?
Well, where do I begin???
However, when I loaded my file --
http://www.bbhq.us/pva1.html
-- in FireFox 2.0, I got a blank window, but also this revealing
error message:
SecurityError: Error #2148: SWF file
http://www.bbhq.us/pva1.swf
cannot access
local resource F:\pva1\pva0117a.f4v. Only
local-with-filesystem and
trusted local SWF files may access local resources.
at flash.net::NetStream/play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_load()
at fl.video::VideoPlayer/load()
at fl.video::FLVPlayback/doContentPathConnect()
That tells me that the swf file has my original directory
location and file name(s) -- F:\pva1\... -- embedded in it. No
wonder!
However, I cannot see where in Flash I specify a directory
structure for my video, other than, of course, when I originally
specified the video to add to the player component. But somehow,
the swf file picks up the directory structure as part of the file
names. That boat does not float.
Adobe help did not throw me a life preserver; it tossed me a
lead weight, instead.
Must be a settings issue somewhere, or I am missing something
obvious that I just cannot see.
Goin' down here for the 3d time. A little help here, please.
Thanks.Thanks for your quick response. But it left me still treading
water.
Yep; got to the content inspector; The parameters that I see
are as follows:
align
autoplay
cuepoints
islove
preview
scalemode
skin
skinautohide
skinbackgroundalpha
skinbackgrundcolor
source
volume
There is no contentpath parameter/property.
This help page references the contentpath that you
referenced:
http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WS0ED77F00-2006-49aa-8399-92B6D5D8CE00.h tml#WS9A834D6F-8206-4e07-B840-456EF90C03CB
It describes the contentpath as you suggested:
"contentPath (AS2 files) String that specifies the URL to an
FLV"
The reference to AS2 in parens suggests that this parameter
applies only to AS2 files. Or, perhaps this parameter is not
applicable in CS4, version 10. I donno, but I sure do not see it in
my version of Flash.
However, you and the the help page did throw me a lifeline.
WIth the f4v file already loaded on my server, I modified my
project, specifying, as the source parameter, the name of my fv4
file as it is loaded on the server -- http:www.myserver...fv4 --
not the file on my local PC. So when Flash published the project,
it uses that name, with no reference to my local directory..
Of course, the f4v file must exist on the server for it to
publish properly.
That did it.
It makes sense, but it is certainly not obvious and it is not
explained in any documentation I have found.
Am I the only one to whom this was not obvious?
Thanks; you led me to a solution.
jjt -
Remove blank frame in swf file?
Hi. I made a simple swf file in flash lite 1.1 with clock. But when i open it after publishing, it has that ''blank frame'', which is refreshing constantly and flikrers between my image and white background. Does anyone know how to remove it, and/or how to insert my image into the stage without being that blank frame visible? I use macromedia flash 8... In case someone wants to look at it, heres the code i used to create the clock, and my swf:
Ok, i'll try to explain. When you open Macromedia Flash, it automatically creates white stage/document. But i dont need it, so i import my own image to the stage, then i make that clock and publish swf file. Then when i open swf it blinks between white frame and my image. So im pretty sure this white frame is that white stage, created at the beginning. I just dont know how to get rid of that whit stage before i open my image, or maybe i just import my image in the wrong way, i dont know. And, no, it doesnt affect the clock, its working fine, except that it never shows the right font (if i create clock with lets say Verdana, when i open swf its always Arial). About code, i found tutorial by google, that tutorial gives me that code. I have no idea how its made and whats wrong with it, im just a beginner and trying to learn all that stuff. I attached swf in my first post. Thank You.
-
Passing parameters to a swf file
I'm trying to do something that sounds simple but for some
reason it is not working.
I have a simple SWF file that I want to start at a different
frame depending on the parameter passed to the SWF file.
(.e.g. if parameter a, start at frame 20, etc)
I know the SWF is receiving the parameter properly as I was
able to display it through a dynamic text field.
I'm placing the script on the first frame so I thought maybe
I was missing an event handler or something like onEnterFrame.
The script looks like this:
var page:String = _root.id;
onEnterFrame = function() {
if (page == "a") {
gotoAndPlay("a");
} else if (page == "b") {
gotoAndPlay("b");
} else if (page == "c") {
gotoAndPlay("c");
} else {
gotoAndPlay("d");
stop();
Even a simple gotoAndPlay(frame); doesn't work on the first
frame.
Hi, I've been trying to figure out why this is not working
for a while but I can't really find the reason.
Am I missing an event handler? Or something that needs to
load the movie first?
I am beginner at this so it would be great if somebody can
suggest a solution.On the very first frame of the movie on a actions layer.
Inside an if else.
Thanks! -
Hello,
I have a problem with Adobe Flash Professional CC and CS6 to save animated .gif file. Here is very simple work with logo. But I can't save a perfect file swf or gif and it's so bad news for me. Logo .swf file save with bugs. Bugs just see then file insert in freeshop page. Here is just example test page, it let you see logo bugs - http://tagraseshop.graphicsrim.eu . Here is real page, but it's not my, it's freeshop with old logo and I have corect it - http://www.tagras.lt
Animated .gif file absoluted not saved in Flash CC. Just gif picture. And why? My os Windows 8.1 . Indeed I try to save on Adobe Flash Professional CS6. It's not save too...
Gif "animated" - https://mega.co.nz/#!D8pEVaRR!Gjg-nI4T-0vROV9xCa1XfXz4br1X9lpQfUR0nQNT LK4
Swf with bugs - https://mega.co.nz/#!jo5lSRyS!1x6GjWqYsf7n4KknUs6eF8EqZXEv9e8RsSpGd8h5 jGQ
Fla - flash document - https://mega.co.nz/#!C94nCDSS!7yKF9FIBvYtVC9r8kYiJ0l0xzUm_R2HwgoXks6iM zUA
Perfect animation speed is here - http://e-shoptagras.graphicsrim.eu
Who can help to me?
Any ideas?
Thanks for your help in advance!Thanks, but I use publish/export settings with GPU hardware acceleration and flash version 11.2 (and 11.8) but nothing happening.
And why gif file is not all transparenty then I insert on lightblue background? It can't export good quality? Also I use Photoshop, After Effects, Adobe Edge Animate. And nothing happening. Egde animate file .oam is not good for old website navigation. It can't be inserted in freeshop site from navigation... I use logo file .oam just for example here - http://e-shoptagras.graphicsrim.eu
In reality I want swf file, but we don't find why logo flickering? here http://tagraseshop.graphicsrim.eu
All file's are transparenty - https://mega.co.nz/#!f8B2CD5R!J8uCJt9Sdq4Suz4HLhTHz8bzJcSWXMBIKcKZgkD3z8c
I need help! Please! -
Problem: text fade in/out in swf-file not working correctly
Hello to all,
this is my first post.
I work in a printing company and we want to administrate now our website by our own and
we have bought now Dreamweaver CS4 and Flash CS4 for Mac. My Flash skill-level is "Beginner",
but I am OK with simple tweenings, using symbols and that.
I have done an advertisment banner for the home, 550x290 px, background-pictures
and headlines fading in and out, later until the end there are three subheadlines for pricing details.
The published swf-file works absolutely fine on my Mac, and also
embedded in the site in Safari and Opera.
Before uploading I wanted to check in IE and Opera on a Windows-PC
and now there is the problem:
the first headline does not fade in, it suddenly just appears.
The second headline fades in the place of the first, when the first one is
fading out. So now, for a second the text is appearing above each other and
both neither fade in nor fade out.
The three subheadlines later start one by one, and they work fine and fade in
and out correctly. All pictures fade in and out correctly, too.
What could that be?
I`ve just installed the newest flash-player on the Windows-PC and
the problem is still there when I open the swf-file or when I embed it in the website.
I would be deeply grateful for any hint.
Thanks!Hi!
The difference was, the headline property was accidentally "dynamic text", the subheadlines were static.
I missed that.
Before changing that now in the fla-file I checked the old one on differrent company macs,
the problem is only one a few macs, say one of ten had the problem I watched.
I think now, that must be just bad luck or it is a player problem.
Allow me the question please:
should I use dynamic text or static (then I cannot embed the font, the option dispappears then
in the Properties-panel).
Thanks again! -
Problem loading SWF file in FlashIsland
Hey,
I am trying to use FlashIsland for ABAP WebDynpro.
Unfortunately the SWF File is not loading. When I type the URL to the SWF File directly to the browser, the SWF file loads correctly.
In the header I have posted the statement: initialize="initApp()". My initApp I have implemented, too (see below).
import sap.FlashIsland;
public function initApp():void
FlashIsland.register(this);
What can be the problem there?
First I thougt it might be a problem of my Internet Explorer configuration or the customizing of the SAP System. But when I execute the WDR_TEST_FLASH_ISLAND application everything works fine there.
Thanks in advance for your help.
Kind Regards,
Thomas WeberSo,
I installed Flex Builder 3 with the Standard SDK 3.2.
Now i implemented a very simple Flex Project again:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="initApp()">
<mx:Script>
<![CDATA[
import sap.FlashIsland;
public function initApp():void
FlashIsland.register(this);
]]>
</mx:Script>
<mx:Label x="166" y="115" text="TEEEEESSSSSSSSSTTTTTT" width="399" height="161" id="LBL_TEST" enabled="true"/>
</mx:Application>
I get the same behavior like explained before. The Flash is not loading at all!
And again I cant do any right click on the page. I get an empty page loaded...
Please help me! What can be the problem?
Nice regards,
Thomas -
Problem with swf file on website
I created a swf file with flash CS4. I can do the publish
preview and the video plays just fine. I can even view the
generated html file on my local machine and it works. I upload to
my website and it does not work. Here is the link
http://www.streamlineprofits.net/movies/Potential.html
The player skin is acting like it cant find the swf file but
it is in the same directory. Also, when i go to the publish
settings for the html I select the "Paused at start" but the video
plays when I load the local html file in my browser. Any ideas or
suggestions would be greatly appreciated.
BrianI don't think it's a permission problem, but somehow the
Flash Player thinks (I think) the stream is coming from another
domain. With me a error pops up that goes like this:
SecurityError: Error #2148: SWF-Datei
http://www.streamlineprofits.net/movies/Potential.swf
kann nicht auf lokale Ressource C:\Documents and Settings\Acer
Valued Customer\My Documents\web
projects\streamlineprofits.net\movies\Jan09_Open.m4v zugreifen. Nur
SWF-Dateien in der Sandbox 'local-with-filesystem' sowie
vertrauenswürdige lokale Dateien dürfen auf lokale
Ressourcen zugreifen.
at flash.net::NetStream/play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_play()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
at fl.video::VideoPlayer/
http://www.adobe.com/2007/flash/flvplayback/internal::_load()
at fl.video::VideoPlayer/load()
at fl.video::FLVPlayback/doContentPathConnect()
Have you tried a super-simple <object>-style embed of
your video?
I really do think it's the Adobe-AC-JS-stuff that's messing
things up?
You could instead consider using swfobject
http://code.google.com/p/swfobject
But first I think you should try an <object>-embed to
see if it's the JS or the Flash that's messing things up.
Maybe you are looking for
-
Reinstalling does not help. Computer locked up for unkown reason and this has happened ever since when i try to start firefox. Is there a file I can delete or kill that will terminate this process?
-
Hi,<br /><br />i'm transfering a plugin from CS2 to CS3, in CS2 i created a TextFrame with SDKLayoutHelper.CreateTextFrame and used this code to add some text to it:<br /><br />>InterfacePtr<IGraphicFrameData> graphicFrameData(newTextFrame, UseDefaul
-
WSIF - BaseFacade.class not found
Hi, I need your help: I create a web service using WSIF to access java class method. 1. when I compile the service with obant utility, everything is working fine 2. When I compile the service in BPEL Designer, I have the following message: [javac] Co
-
Donating a printer 6300 series (6310xi): does the printer retain data? Are there any security risks?
-
How to accessing portal services
Hi All I am saravanan. i have doubts. Can u plz solve my doubts?. 1). How to Accessing Portal Services from a Webdynpro application?. 2). Portal Eventing with Webdynpro and other Applications?. 3). single signon from Webdynpro applications?.