Making a loaded swf-file loading images into the movie..
Trying to convert my problem from norwegian into english
isn't always that easy... :)
Anyway..
I've created som cool buttons that I want to be loaded into a
movie (let's call i MainMovie.swf) and from there I want the
buttons to be able to load images into a movieclip (ImageContainer)
inside the MainMovie.swf.
Is it possible to make the MainMovie.swf communicate with the
the loaded buttons (each button is a swf-file containing the
actionscript, objects, etc.) so when the buttons are clicked they
load different images into the ImageContainer?
My idea here is to include an as.file into the MainMovie.swf
as well containing the url's to the images that I want to be loaded
into ImageContainer.
I've tried to create a button on a layer above the buttons
that's loaded into the MainMovie.swf but I end up with the loaded
buttons not working properlu because of the button that I've
created and placed above them.
Now, I don't want the url's inside the buttons thats loaded
into the MainMovie.swf as I want the ability to be able to replace
those buttons-files without having to use too much time writing the
url's in each button.
Thanks folks.
are all your swfs using as3 or as2? if as3, you won't be
loading into a movieclip: you'll use a loader instance and you can
reference (or communictae with) the loaded as3 objects using the
content property of your loader once you cast it as a
movieclip.
Similar Messages
-
Can button in loaded SWF file unload or close the file ?
Hi,
I am loading 2 SWF files A and B, I have a button on each.
When I press button on SWF A it loads SWF B. However I cannot get
the button to close / unload the SWF A.
Is this possible ?
To Load I am using:
Thanks,
PaulNo.I am using Loader since I dont need to pass one URL for fetching swf content.I need to get the displayobject from ByteArray which should be free from all the security issues.I heard that we cannot set 'securityDomain' property of loaderContext (using in Loader) in AIR.So please give a solution for getting bytes.
-
External SWF file load problem
I'm loading external SWF file which has motion tween.After
the loading progress bar finished to load than calls SWF file.If I
test the movie locally works fine but when simulate the download it
seems it jumps end of the timeline.Is anyone could tell me why is
this??
Thanksk, never mind..... finally figured it all out.
-
Loaded SWF file CANNOT be made into button DIRECTLY?
I'm experiencing a problem which may have no solution, but I
would like to know why I cannot do what I want to do.
PROBLEM:
I am attempting to load in an external SWF file and once it
is loaded, I wish to directly make the new Sprite/MovieClip into a
button. However, the newly loaded Sprite/MovieClip seems to be
resistant to be made into a button DIRECTLY. I would like to know
why this is.
WORKAROUNDS:
Here are a couple of workarounds, but again I wish to know
why I cannot do what I want to do.
1) I place the new Sprite/MovieClip into an empty Sprite on
stage and make the once empty sprite into a button.
2) Construct the external SWF in such a way so i can refer to
a MovieClip within the SWF file and make that MovieClip into a
button.
CODE EXAMPLE:
I am loading a SWF file thru a Loader and then taking the
loaded SWF file and adding it to an existing sprite on the stage. I
then attempt to make a button out of the newly loaded swf file, but
it fails to be clickable.
The following is some quick code to illustrate my problem. I
already have workarounds in place, so please let me know WHY the
following code is impossible. thanks!
==============================================================================There should be no problem with what you are trying to do. If
you want someone to look at what you've done, you have to be
careful to show that and not possibly errant code because that is
the substance of your post and what you requested be looked at--we
cannot guess what you may have done wrong in setting things up or
for code that you do not show.
I tried your code before posting my response and it worked
fine except for your error with the COMPLETE aspect. I did not
utilize any objects for loading things into, so I suggest you look
there. -
BitmapData prblm for loading swf file
hi
i making the photo gallery, here i am using the bitmap data
for making some effects between each image when it's start to load.
but in between the images we are using swf files but after
applying the effect the swf is not playing..
can any one suggest what i need to make to clear this issue
~~
SKyes the timeline is not working when i start to applied in
the movieclip. how to overcome this issue. bcoz i need check the
current frame and totalframe. to check whether the swf has played
fully or not. after that only it 'll start to laod the images
but here i can't able to get the current frame and the total
frame . it means i lost the timeline( swf consists of more than 40
frames) ..here how to check the 40 frames played or not
~~
Sk -
Loading swf file with dynamic text
For a website I'm creating I'm going to have a main swf file
that loads individual swf files for each page. Each page's swf file
loads in external text files through dynamic text boxes so i can
edit the website easily. To load the swf files into the main swf
file I'm using the loader component. Everything works fine except
thedynamic text boxes of the swf files that are nestled in the main
one do not load properly. Instead, in each text box i get a message
similar to this:
_level0.NewsLoader.contentHolder.News1
NewsLoader is the instance of the loader component, and News1
is a variable called in through a dynamic text field from the html
document entitled News1.html. The individual news swf file loads
the text properly, but when the news swf file is loaded into the
main swf file the text is replaced with the message above.
Any suggestions?the problem might be due to the changed references if you
load the movie into another one.
is NewsLoader a MovieClip instance inside the main movie or
inside the mc that is loaded into the main movie?
If it resides inside the exteranly loaded movie, you will
either need to use the lockroot attribute or use a relative
reference to the News1 variable.
Since the _level0 always points to the _root timeline (the
one of the outer most movieclip) _level0 used in the external mc is
different once the external movieclip is loaded into another movie.
I suggest only using relative references, makes live much
easier. -
How to detect the end of a loaded swf file
Hello Guys
This is my first time on this forum, come here with a great
hope
I have loaded a picture file (jpeg) and a video file (swf)
into the main flash file using xml
on frame 3, I load the picture and on frame 7, I load the
video, there is a stop action on frame 6
Now when the flash is executed the picture is displayed ( it
says "Click here to view the video")
when the user click the picture , the video is loaded and
starts to play ---- so far everything is working fine
now what I want to do is, once the video finishes playing (
not stoped) I want to display the picture again
can you tell me how to detect the end of an external loaded
swf files,
Please help me
Thanking You
Shriram -
Loading swf files from an iPhone Air App
Although the faq says its possible ( http://bit.ly/gyxmCo ) I can't seem to load .swf files from my app.
There's no .AS code in the .swf file I'm trying to load.
PNG files load with no problems, swf's fail.
A working example would be appreciated instead of suggestions, I've spent the entire day trying out suggestions
regards,
MartijnBecause I can't see any library assets in an as2.0 file.
I've discovered that the swf fails to load as soon as you make a symbol 'export for actionscript'
probably because it will then create a class. So you can only load SWF's as simple pictures or animations, you cant use it as an asset library with multiple animations/images/sounds in it..
As for you other questions:
it doesnt matter if the file is local or on the web. same results
I created the swf file from a fla in CS4, and I'm compiling my air project that loads the swf with FlashDevelop. -
when i i design something in a file i have it aligned how i
want it, however when i load the page into another, although the
loader component is aligned, the content inside the loaded swf file
is no longer where it should be. why is that? how can i fix this?
i've just beenAlso, remember that if you load an external SWF into another
movieClip, then the _root changes. The loaded SWF will no longer be
considered _root, unless you specify in frame 1:
this._lockroot = true;
this would be the issue of your miss-alignment, if you are
using ActionScript to align objects dynamically.
If you are not using actionscript for alignment, then
Mocaloca's suggestion should be the answer. -
Is it possible to load SWF files from an SQL database?
Hi all, I am very new to flash (I am primarily a C'# developer!) and I have been asked to investigate the possibility of doing the following;
Create an application that allows swf files to be uploaded and stored inside of a SQL database as binary data (Why a database is a long story!)
Allow this binary data to be extracted via a http request to be dynamically loaded inside of a web page.
Now the first part was easy. I have all of my swf's uploaded and stored inside of the database. I have code that can make a request for the binary and write it to the response, so far so good. Now this is where I am stuck.
I thought I could dynamically load the swf binary data by creating a very basic swf that simply contains a movie clip holder and for now a simple loadMovie statement. My idea being that I can could provide a url for the loadMovie statement that returns the swf binary data. This is where I have ground to a halt.
I can see the call being made from the swf, I can see the data being returned but I cannot get it to render. I remember seeing an article some time agao where someone stated that they had used this method with success but I cannot find now. Has anyone ever done anything like? Is it even possible? Am I missing something simple?
I have tried to return both the raw binary data and also used response.write but to no avail. Can anyone help?You are possibly trying to load AS3 swf into an AS2 Container at least the use of loadMovie() points in that direction. Be sure to use AS3 and target at least Flash 9 in your Loader/Main.swf. Also the AS3 concept of how to load swfs differs a lot from the old concept.
Look into the docu:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml
But the biggest Problem seems to me -what you mentioned- that Loader needs a (defined) URLRepuest and since your swf files have no "real" URL and you surely don`t want to let the user directly write to your server, a workaround would be to write the BinaryStream with AIR-functionality to a local installlation directory and load it then from there. -
ipad i have load swf file but swf is not working proper(flex 4.6) but android is fine to work how
On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed. -
Trouble Playing A loaded 'SWF' file in the pain timeline
Hey there. I have created a presentation that loads
interactive SWF movies into a 'target' movie clip on the main
timeline.
As you progress through the presentation different SWF movies
are loaded into the presentation. And this in turn allows me to
change the presentations content quickly and easily for different
clients.
These SWF's use some of the flash preloaded content objects
like combo box's and the like.
However when these SWF's are called into the main
presentation they cease to work properly.
They work fine when tested independently of the main
presentation.
Does anyone know how I may be able to get these SWF's to work
properly?
Cheers FletchThe first thing to do is check the scoping in your loaded
SWF. Any references to _root, for example, mean something different
once the SWF is loaded into your wrapper movie.
Also, some of the V2 components don't work properly when
their SWF is loaded into another SWF. There's a Tech Note and easy
workaround here:
http://www.adobe.com/go/tn_19278
Good luck! -
How to create an xml to load swf files in sequence?
hello everyone
I'm new in web design... I know how to animate in flash, using timeline, frames, layers, twins and so on... But I want to move forward so I want to create a xml to load swf files in sequence and in loop. Each swf file has 8 seconds.You can see the example here in www.cm-seixal.pt.
I'm not a programmer but I understand how actionscript works... I hope you can help me
Cheers!
Anayou can use the urlloader class to load your xml file. use the loader's complete event and the loader's data property to retrieve the data in your xml file.
-
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 -
How load swf file (flash 8) with adobe captivate 3 without enter the HTML?
How load swf file (flash 8) with adobe captivate 3 without enter the HTML?
Hi SaSQuaCh69247,
Issue 1 :- Select the SWF file in library, right click, and
select update.
Issue 2 :- Actually it could be valid for Issue 1 also. It
seems like SWF file you are trying to import, does some action
like, importing another swf or connecting to server on the first
frame itself. Captivate will try to play the first frame of SWF
when you import them. Try creating a keyframe with the stop action
as the first frame in your SWF, and see if you still have the
issue.
Issue 3 :- The approach I am mentioning over here is
generally the last approach which I will take in such scenerios,
but since you have already experimented a little, so try this.
Go to C:\Documents and Settings\<user name>\Application
Data\Adobe\Adobe Captivate
Rename captivate_v20.dat as captivate_v20_org.dat.
Restart Captivate Application.
thanks
Maybe you are looking for
-
I have iPad 2, iPhone 5s, both with iOS 7.1.2. I use PC with Windows 7 and hard wire internet service and iTunes to update apple products; no wi-fi. I updated iTunes to v11.4 on 09/11/14. I ran Windows update on 09/10/14. I did not try to open iTunes
-
How to add exactly 2 NON XML caracters at the end of a SOAP body
Hello all I am trying to add two (and only two) extra non xml caracters "AA" at the END of a SOAP body using the JAXWS handlers as so: HTTP/1.1 200 OK Content-Type: text/xml;charset=UTF-8 Content-Length: 131 Content-Length: 131 Server: Jetty(7.x.y-SN
-
Dynamic form in Webdynpro for ABAP - Context Cardinality question
Hello - I have an adobe form in a webdynpro for ABAP application which I want to be able to be dynamic. Basically I want to be able to use a Webdynpro context node with a cardinality of 1-N and the form will take each node of the context and create a
-
ExprHow to set default name for Express VI
I have created an express and when I drag drop the express in block diagram, I am getting a name "A1". What should I do to set a default name (for example "B") for my express VI? I tried updating the Window title properties of the source VI. Thanks i
-
I can't download flash cc. It says" Exit Code: 16 Please see specific errors below for troubleshooting. For example, ERROR: DW039 ... -------------------------------------- Summary --------------------------------------