Adding a SWF file into a Coacoa application in Xcode.
Hello all,
I'm not the most experienced Mac developer, and I have a question. I want to input a SWF file into my application. Whenever I just add it in by dragging and dropping, it looks fine while building it however it doesn't show up in testing. It just shows a white screen.
My second question is about auto loading a web page while making a browser in Xcode. If I have made a browser in Xcode, how do I make it to where when you open the application it automatically loads the specified web page you want. Would this be done by AppleScript? If so, how?
Thanks, I hope I explained the questions clearly.
Alex4000 wrote:
I'm not the most experienced Mac developer, and I have a question. I want to input a SWF file into my application. Whenever I just add it in by dragging and dropping, it looks fine while building it however it doesn't show up in testing. It just shows a white screen.
It sounds like you need to make sure it gets copied to your application's resources folder (and make sure it gets loaded from there, too). Look into a copy files build phase, where your SWF file would get copied to your app's resources directory.
My second question is about auto loading a web page while making a browser in Xcode. If I have made a browser in Xcode, how do I make it to where when you open the application it automatically loads the specified web page you want. Would this be done by AppleScript? If so, how?
You can do that directly in your app with a WebKit call. Look at "loadRequest:" in the documentation for the details.
charlie
Similar Messages
-
Adding another swf file to the air application
I have developed adobe air application. Before the application is launched, I want to play a .swf file with sound
as introductory and then launch my air application.
How to integrate the .swf file with my application?
If some one can share how to do this in Adobe Air it will be of great help to me.
Thanks in advanceI am not aware if you can run various swf's from Air in any particular sequence, but it is pretty irrelevant as you can have a shell.swf that loads the sound from an external or attach it if embedded in the library, play it and onSoudComplete step to the next function. I can't see you need to load 2 swf's as it sounds like you just need an intro page, listen to the sound and move into the application, perhaps with an option for the user to skip the intro. If you are using AS3 I can't comment further - in AS2 it's simple and little coding.
var sf1a:Sound = new Sound(this);
sf1a.attachSound("snf1");
stop();
stopAllSounds();
sf1b.onSoundComplete = function(success:Boolean) {
if (sfp ==0 and sf >= 3) {
gotoAndPlay("frame23");
} else {
sfp=0;
gotoAndStop("frame3");
sf1b.start(); -
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. -
Getting .CP or .Swf files into .FLV
Hello:
I used Captivate to create 3 e-learning modules. My hope is
to deliver them via web. When enclosing the SWF files into a web
page, the application takes **FOREVER** to load (3 minutes). So,
after looking into retaining a streaming web host, I discovered
that I need an .FLV file to stream adequately.
Exporting my .CP files to Flash 8 results in drastically
degraded quality and un-synched audio and animation. Exporting the
.FLA file to .AVI is even worse. I can't seem to de-compile my .CP
file to any other Flash application in a way that maintains the
qualtiy. The SWF files are beautiful, but they can't be used to
stream.
Does anybody have any answers?Hi, TriSys G!
If I'm understanding "lightning speed" playback of embedded
.swfs, it sounds like a frames per second (fps) mismatch. By
default Adobe Captivate records and plays back at 30 fps. However,
if the .swf you are inserting as animation was created at a
different fps rate, you can end up with the scenario you outline.
The best solution would be to go back to the original
developer of the .swf and have them re-compile at 30 fps. Of course
the developer may not be available.
The alternative is to go the other way. If you know the fps
of the swf you are embedding, you can adjust your movie's frame
rate to match the .swf. Here's the command path for that:
Project>>Preferences>>Preferences>>Frames Per
Second.
BTW, since this thread was created to answer a different
question, next time I'd suggest create a new topic so we can see
more quickly
john -
Is it possible to Load External SWF files into Flex Mobile projects?
Hi Guys,
I'm trying to load an external asset in this cse (a SWF file) into my flex project (Apple IOS IPAD), don't get any luck. Can any one suggest a solution ?In Apple's words, "No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple's Documented APIs and built-in interpreter(s)".
Hence external swfs cannot be loaded in iOS. -
Can't import swf file into QuarkXpress 8.12
Hello everyone,
I'm using QuarkXpress v 8.12 | Apple iMac Intel Core 2 Duo, 64 bit | Flash Player 10.1.85.3.(?)
When I tried to import a swf file into a picture box in Quark it freezes the program and then I have to force quit the application and restart. I've been onto Quark's forum already with this issue and the advice is to uninstall Flash 10.1 and go back to v10 that came with the Quark DVD.This is the advice given:
This FLash player consists out of two files, flashplayer.xpt and Flash Player.plugin. However it is much cleaner to uninstall by using the Flash Uninstaller Adobe provides on their web page.
However, it's not made clear where these xpt and plugin files reside. Are they inside the Library>Internet Plug-ins? Quark's forum then goes on to say that there is ANOTHER standalone Flash Player programe that previews Flash files out of QuarkXpress and I did manage to open up the swf flie without trouble and saw the interactiveness within it. (I didn't create the swf file and don't know its provenance, it came with a tutorial).
Inside of Quark's Extensions, there's a folder called ForIneractive that contains a Flash Player, when I clicked on it to get info it says it's v10.0 r22. Is this the standalone programe that previews flash files out of QuarkXpress and has nothing to do with the problem of my swf files not importing? To add confusion, when I visited Adobe Flash's troubleshoot site, it detects the Flash Player I have on my system as 10.1.85.3. So I'm totally puzzled as to what's what (version wise)! I've tried spotlight and it leads back only to the QuarkXpress ForInterActive folder and the Library for the plugin.
The main question is, if I uninstall with the Adobe Flash Uninstaller, how do I know that I'm uninstalling the right components? Any other advice to fix this?
Thanks a million
JadeytaiPhotoshop elements has never had File>Import>Video Frames to Layers.
At one time, until a few versions back, there was File>Import>Frame from Video, but that was just able to do one frame at a time and the function has since been removed from photoshop elements.
Photoshop and photoshop elements are two different applications, photoshop elements being an application based on photoshop, but with less advanced features. -
Embedding SWF file into an Indesign document and later export as PDF
Hi to everybody,
I am searching now since 3 days for good solution of my problem. First I wanna tell you that the problem is not just to convert a swf-file into a pdf. I did this many times with all animations, page flip and stuff.My situation is the following:
I have varios catalogues with more or less 12 pages each in an indesign format. Now I created an animated scroll down menu, which appears on an "index-page". On the menu I created buttons. One button for each catalogue. So the idea of the whole thing is to open a document and an index page appears where you have the animated menu and you choose the catalogue you wanna see. Until here it is quite easy. I created a swf file of each catalogue with my animations (as the special page turnover e.g.). So that I just need von Object in with I can load the different swf-files of these catalogues. I already did the process. I linked the buttons to the different swf files and so. So the problem is now when it comes to convert the whole thing into a PDF. Of course I convert it first to swf and then to PDF. After converting it to swf it works 100% fine, but in PDF not, suddenly the swf-files of the catalogues disappear.
So the summary is, that I don't know how to embed swf files into an indesign document, creat buttons and interactions next to swf file, then save it to another swf, and then to a pdf without losing the first swf files within the pdf.
Hope I made my self clear would be too nice if someone could help me or if someone may have a better idea of realizing the whole project.Jeffrey,
Thank you for the answer. As you have written:
I will also add that the ID's play mode contol [plays once] [repeat play] does not always control the file once in Acrobat.
I presume you mean version of ID older than CS4 or version of Acrobat Reader older than 9.1
It that is the case I will strongly recommend my visitors to upgrade to this version.
I hope that would work.
Thanks again.
Peter -
Inserting swf file into dw vs. creating full site in flash
I'm updating a website, and am pretty familiar w/html and DreamWeaver, but would like to add some elements of Flash into the site. I am using Flash CS4.
What is the advantage and/disadvantage of inserting various swf files into my DW site versus just creating the entire site in Flash; what's the difference in either approach?
If I do the latter, do I eventually bring it into DW anyways so that it is an html file?
Thanks for your help!There can be potential issues with Flash content in a web site since the evolution of iStuff led to disallowing Flash content to be displayed. If you are looking to attract a mobile user base, then going with Flash can be a gamble, especially as you go further on into the future where there will no longer be Flash Player development to parallel the mobile market.
I have heard that Flash content does not support handicapable design elements that html/css provide for.
You can always have the web page code check for the availability of the Flash Player, and if not found have alternative content presented instead.
An issue with having a full Flash site is that it can be less SEO friendly than going with straight html-based designed, although since the Flash content would still reside in an html page there are some measures that can be taken to support SEO concerns.
For a full Flash site design you would probably not need DW since Flash can generate an html page of its own.
I recommend you post your questions in the Dreamweaver forum as well. The reaction there to using Flash content is likely to be harsh, so don't take it personally, but some helpful information might still be gleamed from trying. -
Please advice on adding 3D-animation files into a PDF with Acrobat Pro DC.
Hello,
Where is the button animation in Acrobat Pro DC?
Can you give me advice on adding 3D-animation files into a PDF with Acrobat Pro DC.
I have Acrobat PRO DC .
Thank you.Hi George,
I just tried adding the files as attachments; however I didn't like doing that because it increased the file size of my PDF document quite a bit.
I'm not sure if you're familiar with the "Insert Object" command in MS Word, but I want to do the same thing in my PDF document...but the key is, anyone must to be able to open the embedded file from any location.
I created an MS Word document with several embedded objects. I was later asked to PDF the Word document, but since embedded MS Word objects do not migrate to the PDF, I am now trying to embed the same files I embedded into my Word document into my PDF document over top of the icon image. The file types I'm trying to embed include MS Word, Excel, PowerPoint, and Adobe PDF. Does this make more sense? I want to create a hyperlink over top the icon image that was PDF'd from the MS Word document which allows any user to click on the link and open the separate file. -
Insert Photoshop Web Gallery swf file into Dreamweaver
So i tried to take a shortcut, and created a flash photoshop
web gallery and placed the "gallery.swf" file into my html file in
Dreamweaver. However, it is showing a blank white screen (i'm
guessing it can't find the images?) but when I view it on my hard
drive, it is working fine, just not in dreamweaver or any browser,
even after I upload to my server. Any help would be GREATLY
appreciated!! I've also tried pasting the body html code from
"index.htm" that photoshop creates, as well as move my image files
to the root folder where the swf is, but that doesn't work either.
I have my scripts in the same directory, and not in
subfolders.Kizat727 posted in macromedia.dreamweaver:
> and the link is
>
> www.micromediapubs2.com/dyers/portfolio.html
That page is very different from the code you posted and I
know nothing
about Geoff Stearns' FlashObject code.
For the above link, I see nothing in the source code that
attempts to
load a .swf file. However, it is linking to
AC_RunActiveCon.js file in
the wrong place:
GET /dyers/assets/flash/pages/AC_RunActiveContent.js HTTP/1.1
Referer:
http://www.micromediapubs2.com/dyers/portfolio.html
HTTP/1.x 404 Not Found
The file is actually here:
/dyers/Scripts/AC_RunActiveContent.js
So if you actually do have a page in the dyers/ folder that
links to a
.swf file, just make sure the link to the .js file is
correct.
Most likely, change this:
<script src="assets/flash/pages/AC_RunActiveContent.js"
type="text/javascript"></script>
to this:
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
Mark A. Boyd
Keep-On-Learnin' :) -
Importing another swf file into the flash-homepage (swf is a gallery)
hi there!
have a problem that i cant resolve myself ..
i downloaded a free of use gallery from juliuswebdesign.com (this gallery) and i'm trying to load it in my flash site ..
now, the gallery works if i open it directly (i open the swf file)
BUT
when i try to load the external swf file into my site
loadMovie("image_gallery.swf", box);
then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.
if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..
something must be wrong ..
i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery ..
i'ts like something in my site "blocks" the gallery beeing loaded..
any suggestions?to the gallery's fla add the following and retest:
this._lockroot = true; -
How can I import or convert a .swf file into iMovie 8
I've been searching with no luck for a way to convert a flash animation (.swf) file into a format that I can import into iMovie 8. Ideally, this would involve freeware or very inexpensive software. It is important that I maintain the quality (and audio) of the original swf file.
Can anyone suggest a route?
Many thanks.The easiest method is to use screen capture software to "record" the .swf file as it plays.
Since .swf files use vector graphics you can scale it up in dimension (to fit your iMovie Project needs) without any loss in quality.
I'm a happy user of SnapzProX http://www.ambrosiasw.com/utilities/snapzprox/ as it records in QuickTime formats. -
Joining several swf files into one swf file
hello everybody
i've been dealing this issue for too long and decided to ask for help - how can I unite 15 swf files which placed in one folder to a one swf file???
i tried all kindes of merging softwares like "Join (Merge, Combine) Multiple SWF Files Into One Software" and "WinMerge" without success and tried to convert swf to flv (cause i found other merging software for flv files) but again...
I have CS5 so if i'll have to open Flash for this i will, though i'm trying to avoid that and even then i'm gonna need full instructions.
All i need is this simple thing so i'll appreciate very much any help
Thanks & Good Day
KerenHi Ned
Again - thank you very much.
I've got the source files and i'm on the run now.. kind of..
I did as you recomצended and used a code from one of the AS3 UILoader tutorials , and it seems to work:
import flash.net.URLRequest;
import flash.events.ProgressEvent;
import fl.containers.UILoader;
var myLoad1 = "fastflipPage.swf";
var request:URLRequest = new URLRequest(myLoad1);
loader.scaleContent = false;
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
loader.load(request);
loader.load(request);
function progressHandler (event:ProgressEvent):void
status_txt.text = "Percentage Loaded" +
Math.round(event.target.percentLoaded);
function completeHandler (event:Event):void
status_txt.text = "Loaded Done";
So... i'm tring to find some answers to my next step : in the code above im loading only one file and i need to load 30 files so they could play one after another. i noticed that i can create many uiloader instances and load several external SWFs in the same scene without writing a script to each one of them... is that right? and if so, how can i do that???
I'm full of hope to figure this task, meantime will look for more answers
Thanks in advance
Keren -
Bringing Flash .swf files into Captivate
Greetings,
I use Captivate 2.0. I have been trying to bring a Flash .swf
file into Captivate with very little success. The flash file is
clickable (so that users can review case study information as they
complete Try It simulations). When I bring the Flash .swf file into
Captivate, it works. However, correction (or failure messages)
display every time the user clicks the Flash .swf file. Is there
anything that I can do within Captivate to stop this issue?
Ideally, I would like the Flash .swf to run on top of the Captivate
file so that users can view the case study details without having
to see the failure messages.
Please let me know if you have any questions about this. I
hope it makes sense to you.Hi Zabcde (or PMW or P?)
Can I just understand (sorry for being thick) your situation.
You're trying to get a flash movie into a captivate session that
the user can work on, see, interact with whilst they're also going
through a Captivate simulation (try it)? Does that mean that slides
are advancing for the simulation whilst you're watching the flash
movie? Or are they watching the Flash movie as a kind of help to
then go and do the Try It session?
If it's the first, then I would suggest calling the Flash swf
and the Captivate swf as seperate instances in flash (using
loadmovienum or something). If it's the second, you should be able
to remove the failure captions from that slide so they don't bug
you.
Apologies if I've got the wrong end of the stick though
Cheers
AJ (jiminiCricket) -
Import .swf files into keynote slide
Hi,
I have a short flash file that I would like to embed into my keynote presentation. Is there any way to do this? Should I convert the .swf file first? And which program should I use? Or is there a simple way to import this .swf file into Keynote?
I hope someone can help me!
Regards,
Ellen van der Zwan(The Netherlands)OIh by the way, the .swf is a scripted flash file. I have tried multiple converters, but no success yet...
Maybe you are looking for
-
hello my iphone 3gs just been stolen how can i block the iphone and how could i track it i don't know for sure if i have find my iphone? please help i got many accounts on it and i don't have a passcode :((
-
Hi, I am working with a standard business content IC that has the key figure InfoObjects defined as type date. When I double click on the InfoObject to review the detail from tab 'Type/unit', I see that it is defined with the radio button 'Date', but
-
what is wrong with this code? it is not showing my 7 records. the output is this [LINK|http://i338.photobucket.com/albums/n440/googleb0y/album1/output01.jpg] when i use the debugger, intenal table is empty. [LINK|http://i338.photobucket.com/albums/n4
-
Hi, When I try to post some messages to Web service, Follwing Error displayed is the Receiver SOAP communication channel, No description available except the following message Requet entering and Call failed. What could be the problem? How can test
-
Hi guys, This is my first post - my first real problem since switching to Mac a few years ago - but I seem to have a problem with the play counts on my iPhone 3GS. With my iPods the play counts updated as usual and stayed the same and increased corre