What am i doing wrong, SWF File
Hello all,
This is driving me crazy!
I have made a flex app, that imports a swf file, converts it to a movie clip, and then pulls which frame to display from a XML file, that is checked every second. This works fine when using the following SWF file - http://davidtest.webcastglobal.com/swf/flash.swf
Although when i tried re-creating my own example - http://davidtest.webcastglobal.com/swf/flash2.swf
my flex app fails to respond correctly. THe swf file just loops thru all the frames in one go, and fails to take into account the XML file pointing at what frame to look at, and fails to look at the HTTPS service.
Ok so here is an example of the app with both examples embeded.
http://davidtest.webcastglobal.com/swfwork/Main.html - This is using the working swf file,
http://davidtest.webcastglobal.com/swfbroke/Main.html - This is using the swf file that i have created.
THe code that i am using to achieve this is as follows -
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="load()">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
[Bindable] public var dataDump:String = "datadump";
[Bindable] private var myText:String
private var flashMovie:MovieClip;
private function initMovie():void{
flashMovie = loader.content as MovieClip;
private function load():void{
flashMovie.gotoAndStop(myText)
getImage.send();
setTimeout(load,1000);
private function handleImage(event:ResultEvent):void
myText = event.result.framelocation;
]]>
</mx:Script>
<mx:SWFLoader id="loader" source="flash2.swf" complete="initMovie()" x="-9" y="-3"/>
<mx:Button label="Next" click="flashMovie.nextFrame()" x="78" y="405"/>
<mx:Button label="Previous" click="flashMovie.prevFrame()" x="0" y="405"/>
<mx:Button label="4" click="flashMovie.gotoAndPlay(7)" x="156" y="405"/>
<mx:HTTPService id="getImage" result="handleImage(event)" url="http://davidtest.webcastglobal.com/change.xml" method="POST">
<mx:request xmlns="">
<dataDumping>
{dataDump}
</dataDumping>
</mx:request>
</mx:HTTPService>
<mx:Text x="817" y="10" text="Total: {myText}" width="157"/>
</mx:Application>
My question is when creating my own swf file, what am i doing wrong? Flex clearly isnt interacting with it in the same way as the original swf, by the way, this swf was taken from a tutorial.
If anyone could point me in a direction or offer help on this i would be thankful. Im sure i am just missing something out when i create my swf in flash
1. your swf file must be published for as3.
2. it should consist of a main timeline with more than 1 frame.
3. it needs as many frames as you're going to reference in the xml.
4. that main timeline should contain objects on its frames so you can see when the main timeline is on one frame vs another referenced in your xml.
that's it. those are the only requirements of the swf.
have you confirmed that intiMovie() is called first and then load()? if so, how did you confirm?
Similar Messages
-
I purchased an mp3 from a private website on my laptop. The itunes library i sync ipod to is on my desktop, so i copied the mp3 onto a flash drive and then into my desktop in the Downloads folder and Desktop folder as well as the itunes music folder, 3 places. I opened itunes on the desktop and read the instructions for importing music that's already in my computer. Neither the drag-and-drop or the Add File to Library method works. I've tried both ways over and over. Cannot figure out what the problem is. I do note that the name of the mp3 file doesn't show the .mp3 extension, it appears as simply it's title, Eating Healthy, without any extension at all. Could the filename be the problem, or do you have any other idea what I'm doing wrong? My OS is Windows 7, using IE9. Thanks.
ADDENDUM AFTER READING ANOTHER DISCUSSION HERE: I have now tried right clicking the song in Windows Explorer and choosing Open With, clicking itunes. The mp3 plays in itunes but does not add to the library.I don't have a Recently Added playlist. However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes. I'm guessing iTunes pulled the full name of the piece from the internet. Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there. Thanks for your help.
-
I'm trying to copy music from my PC to itunes. I open itunes, go to 'file', go to 'add folder to library', select the folder and nothing happens. What am I doing wrong?
Hello there, gleab.
The following Knowledge Base article reviews the ways to import content into iTunes:
Adding music and other content to iTunes
http://support.apple.com/kb/ht1473
Also keep in mind which formats can be added:
You can add audio files that are in AAC, MP3, WAV, AIFF, Apple Lossless, or Audible.com (.aa) format. If you have unprotected WMA content, iTunes for Windows can convert these files to one of these formats.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
I keep getting this error in Dreamweaver when I am trying to upload my website? Can you tell me what I am doing wrong? here is the error message: /html - error occurred - Unable to create remote folder /html. Access denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured. File activity incomplete. 1 file(s) or folder(s) were not completed. Files with errors: 1 /html
Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
Mylenium -
# Question
I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?You probably have not seen anyone reporting the exact same problem as you. All three crash reports have the same crash signature and as currently ranked 67 it is not the commonest of reasons for a crash.
I hope you enter your email contact information when reporting crashes. I note you see this crash when using videos, others may possibly see this crash in other circumstances.
You have already tried the obvious, attempts at a fix so it is now down to wait and see, maybe developers working on the bug will report something or fix it.
Did you try my suggestion of installing portable ESR ?
For forum cross referencing purposes
* Crash Reports for Crash IDs <br />bp-71697f5d-41d4-48ae-9db9-3e6302130607<br /> bp-6e1347bc-153f-433a-9c35-a5f022130607<br /> bp-92a533a2-9e09-4c1e-8df7-deb4c2130607
*(all three) Crash Signature: EnumSoftwareMFTs(_GUID const&, unsigned int, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, IMFActivate***, unsigned int*)
* Related bug 858667 NEW crash in mozilla::wmf::MFTEnumEx @ EnumSoftwareMFTs
*I note this was first seen in Fx21 and is 100% Windows 7
<br /> -
Using Photoshop online, when I try to open a file in RAW filter the page opens in bright red and won't allow me to acess the filter. What am I doing wrong?
Photoshoponline has a link you can try which web browser are you using? If may be your browser or that they do not support your camera's raw format. I received an error tht states try layer. You should ask them your question Adobe Photoshop is not the problem its their Web application use their link Pixlr.com Contact Us
-
After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?
Hi
Error -49 opWrErr File already open with write permission
Trash the preference files while application is NOT Running.
from Karsten Schlüter
Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
This issue occours only on MacOs machines using 10.7x
try switching-off the Local Mobile Backup
in Terminal copy/paste
sudo tmutil disablelocal
Re-launch Mac
Yours Bengt W -
Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?
I've installed three times with no luck. I downloaded the Creative Cloud Packager off the licensing site: https://licensing.adobe.com. I unpacked and choose my applications. The install seemed to be successful, but I don't so any of the applications anywhere.Hi,
Creating package doesn't mean it will install the product,
You will need to install the package now. Please follow the instructions mentioned in the below articles
Creative Cloud Help | Creating or editing packages
Creative Cloud Help | Deploying packages
Please let me know if it doesn't help.
Regards,
Devendra -
I am running Windows Vista on my desktop. I also have Firefox 5.0 downloaded on my pc.
Whenever i try to download a software update or any type of file the Firefox Download box doesn't activate anymore like it once did.
Why? What am i doing wrong?'''''Options > General''''', be sure "Show the downloads window when downloading a file" is selected. See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]<br />
To remember download history in the download window, '''''Options > Privacy''''', "Remember download history" must be selected. See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window - Privacy panel]
'''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.''' -
I'm trying to install the new version, but each time during the installation, "Error writing to file: C:/Program Files (x86)/Common Files/Apple/Mobile Device/Support/AppleMobileDeviceHelper.resources/Info.plist." Keeps popping up. What am I doing wrong?
That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards? -
ghlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro. What am I doing wrong?
Holding down the control key will invoke "right-click."
Depending on the View, holding down Shift will with either toggle the selection (Icon View), or it will make a continuous selection from the previous selection (List View or Column View).
The only way to make a continuous selection in Icon View is to drag out a selection marquee around or through the icons.
I can't remember the behavior of previous OS's. -
Hi. I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme. Comes up with error 50. I am using a Macbook Pro to copy from so not sure what I am doing wrong. Can someone help? thanks Rory
These links might provide some information that may be of help.
http://support.apple.com/kb/TA20831
https://discussions.apple.com/message/2035035?messageID=2035035
I've encountered this error myself upon occasion. If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying. -
I have converted two PDF files to both Word and Excel. The result is garbage and unreadable. I want to edit the content of the PDF file and thought that this was the solution. What am I doing wrong?
It's probably not something wrong you're doing, just the way the file was
created. You can look under File - Properties - Description and see what
application and PDF producer were used to generate it. My guess is it was
not produced using Adobe software.
At any rate, there's no a lot you can do about it, I'm afraid. You can try
re-frying it, ie sending it to the PDF Printer to produce a new copy, and
then exporting that to Word/Excel, but that's about it. -
HT1751 i could not get the file to drag over using windows 7 what am i doing wrong?
I am trying to back up itunes on an external hard drive. When I get to the advanced tab (in edit_preferences) I see the file but I am unable to drag it to the external drive. what am i doing wrong?
You cannot drag anything from the Advanced tab.
Go to the location indicated in the Advance tab, that folder is what needs to be moved. -
Hi, every time I attempt to purchase OXS Mountain Lion I get a message that says unable to complete your purchase because "The product distribution file could not be verified. It may be damaged or was not signed." Any idea what I am doing wrong, cheers.
Welcome to Apple Support Communities
Press Shift key on boot and purchase OS X 10.8
Maybe you are looking for
-
User exit in enjoy Purchase order transactions -MM06E005
I am trying to write a code in the enhancement MM06E005 - to check a field in the enjoy PO transaction me22n when saving and issue a warning message. I am using the function module EXIT_SAPMM06E_012 to do this. It does not work. But when I try to ma
-
Problem with generic data source
I have a infoset using this infoset I have developed one datasource everything fine,When i see the data on RSA3 it is going to dump. Please help.. what is the problem..... Regards, Sasidhar.
-
Any suggestions how I can do this?
-
Why has Dictation stopped working?
I have been very pleased with the improvement to Dictation in its enhanced mode, including provision for spoken commands in place of Speakable Items. Just as I have got fully familiar with the feature, Dictation has stopped working. When I call upo
-
I am trying to parse the html output of a web page. I need to grab all the URLs which are in hrefs, actions etc inside. I am using the regex pattern Pattern p = Pattern.compile("http.*?//\\S+[^\"]"); (basically grab anything that starts with http til