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 Fletch
The 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!
Similar Messages
-
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 -
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 -
Can I combine two methods of code to load various SWF files into the same location
I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
[CODE]
function _xmlCompleteHandler(event:LoaderEvent):void {
_slides = [];
var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
//loop through each <image /> node and create a Slide object for each.
for each (var image:XML in imageList) {
_slides.push( new Slide(image.@name,
image.@description,
new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
name:image.@name + "Thumb",
width:_THUMB_WIDTH,
height:_THUMB_HEIGHT,
//centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
//x:260, y:320,//doesn't work here but works in line 69
scaleMode:"proportionalInside",
bgColor:0x000000,
estimatedBytes:13000,
onFail:_imageFailHandler}),
new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
name:image.@name + "Image",
width:_IMAGE_WIDTH,
height:_IMAGE_HEIGHT,
//centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
x:0, y:144,
scaleMode:"proportionalInside",
bgColor:0x000000,
estimatedBytes:820000,
onFail:_imageFailHandler})
[/CODE]
Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
Previously this is what I did to achieve it. I would specify a String:
[CODE]
var sourceVar_ProductsPopUps:String;
[/CODE]
and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
[CODE]
function onClickSumix1PopUp(event:MouseEvent):void {
sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
gotoAndPlay("prdctsPopUps");
[/CODE]
Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
[CODE]
loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
[/CODE]
But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
[CODE]
new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
[/CODE]
and
[CODE]
new SWFLoader(sourceVar_ProductsPopUps,
[/CODE]Thanks for looking into my issue.
Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
So, my main flash file is broken into labeled sections on the main time line.
One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
"ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
Everything works fine (with your previous help)
Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
function _xmlCompleteHandler(event:LoaderEvent):void { _slides = []; var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded. var imageList:XMLList = xml.image; //In the XML, we have nodes with all the info we need. //loop through each node and create a Slide object for each. for each (var image:XML in imageList) { _slides.push( new Slide(image.@name, image.@description, new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg", { name:image.@name + "Thumb", width:_THUMB_WIDTH, height:_THUMB_HEIGHT, //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates //x:260, y:320,//doesn't work here but works in line 69 scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:13000, onFail:_imageFailHandler}), new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf", { name:image.@name + "Image", width:_IMAGE_WIDTH, height:_IMAGE_HEIGHT, //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates x:0, y:144, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:820000, onFail:_imageFailHandler})
Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away. -
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. -
Unable to load next swf file in the browser.
Hi,
Im facing problem while loading the next swf file in the
browser.
I have divided my files and named it as 1.swf, 2.swf, and so
on and i wrote the script 4 calling next swf.
It is working when i called thru HTML in local system. When i
upload into my server and called thru php, next file is not
loading.
Code in the button : :
on (release)
{ loadMovie("2.swf", 0);
Any ideas or suggestion?
Help would be appreciated.
thnq.I'd suggest looking that these notes
1045941 - HTTP Client: Incorrect request URI II
Note 1144511 - Blank screen when starting CRM WebClient or IC WebClient
1244321 - Simplifying error analysis in CRM WebClient UI
1242835 - IDES CRM 2007
1168941 - Simplifying system setup
612670 - SSO for local BSP calls using SAP GUI HTML Control -
How to get the correct size of the loaded swf file?
final public class main extends Sprite
public function main()
loaderInfo.addEventListener(Event.COMPLETE, _onLoadCompleted);
private function _onLoadCompleted(event: Event): void
var tw: int = stage.width;
var th: int = stage.height;
var tsw: int = stage.stageWidth;
var tsh: int = stage.stageHeight;
Above is my simple as3 project in flex builder 3.
My screen resolution is 1920*1080, when debugging, the swf is stretched to the full client area of the IE, but the stage.stageWidth is 500 and the stage.stageHeight is 375, both the stage.widht and stage.height are 0, who can tell me why and how to get the right size of the swf file, named the client area size of the IE in this situation?
Thanks very much!The HTML wrapper might resize the SWF later, so wait a frame and check stageWidth/stageHeight again.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
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. -
Opening SWF Files in the Application window
Hello Everyone,
We have a problem in opening .swf files in our application.
We had quick time movies(.mov) which we used to open and
play inside the application window, using QuickTime Framework APIs
in the code.
Presently we had converted these quicktime movies(.mov) into
.swf files and we are unable to open the same using Quick Time
Framework in MacOSX.
Can you please suggest me as how should I proceed, i.e which
framework should I use in the code to open and play .swf files in
the application window?
It will be better, if you can send me a small sample code to
use in my application for MacOSX.
Awaiting for your kind reply,
Thanking you,
With Best regards,
Anil.Hi Vaibhav,
I need to display the serarch results in the same window.
I have followed the steps mentioned by you in the thread
<i> Search Results in the Same Window..as we have in SDN</i>
Even after making changes to 2 PAR files mentioned in the above thread, on click
of Search button nothing happens.
It will be great if you can send me your modified PAR files, to identify where i am
going wrong. My mail id is [email protected]
Thanking you,
Vikas -
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 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.
-
Invoking a function in a loaded swf file
Hi,
I have a SWF file which loads an additional SWF file, in the following method:
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
var request:URLRequest = new URLRequest(swf);
loader.load(request);
I want the parent (containing) SWF to call a "boot" function on the child SWF, so it will tell it what is the name of the LocalConnection that the parent is "connected" to. (The reason that the name of the LocalConnection is not fixed, is because I need to support multiple instances).
Any ideas?
TIA,
Vincefunction onCompleteHandler(event:Event):void
callLater(callBoot);
Function callBoot():void
Object(loader.content).boot();
Note that you'll need to keep a reference to the loader in an instance variable and not a local variable
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
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. -
Loading swf files for anonymous user login
Hi,
We are having swf file retrieving from oracle database in home page. I can able to view swf file for normal users, but anonymous user login, not able to see swf file in the page. Other image format like jpg/gif files anonymous user login images are loading properly. Pls. kindly advise, where issue occurs.
kumar. GHi Ram
Thanks for your response. Let me know, how to connect to oracle database for anonymous user login. Based on that i will work around that approach for fixing this issue.
By
kumar. g
Maybe you are looking for
-
Need Help to query Lync Database for User Information
Need Help to Query the lync database to retrieve below user information. 1. SIP Address of the registered user 2. Phone Number configured to the particular account. 3. IP Address 4. Last Logged in time. I am trying to pull the
-
Hi Folks , I tried the IDoc XML to IDoc Flat File conversion , using the new feature available in PI 7.11. Below mentioned is a BLOG that I used as a reference. How to Use User-Module for Conversion of IDoc Messages Between Flat and XML Formats Howe
-
Help with calling Oracle Procedure
First, let me state that I'm new to Oracle and using it with ColdFusion, but I've used CF on and off for the past 6 years. So this might be a simple "newbie" problem with Oracle and CF. My boss wrote the following simple Oracle procedure to concatena
-
Populating InputText with Backing Bean
Hi All, I'm hoping this is a simple question. I have a backing bean called from a af:serverListener. I get the right value I want as i see the System.out.println. I have attached the binding to my InputText and set the partial trigger. When I click t
-
IPhone 4 delivered to somewhere else!
hello guys, I purchased an iPhone4 a while ago and I was expecting my order to be delivered yesterday by UPS according to the notification email I got from the UK store. I checked the delivery status yesterday and somehow, the shipping address was di