It's realy a silly question but I don't want to waste time looking for it.
The things is, I've build an application in flex which suppose to be for web but when I'm running it through the Flash builder, it opens up flash player app instead of openning in a web browser. I've tried to do "run as webapplication" but failed.
What should I do?
Thanks.
Most likely you do not have a browser set up in Flash Builder; but rather have it specified to use the setand alone player.
Bring up Window => preferences and type Browser. You'll see "General => Web browser" . What is selected? Are any web browsers installed on your machine listed there?
You can add new browsers by selecting the "new" button and providing the location of the executable file which launches the browser.
Configure your debug configuration in order to launch html with your swf, but not swf itself: Run -> Debug Configurations -> URL or path to launch.
You can write html page yourself (alternatively - specify URL of your site), or you can set up autogenerating: Project -> Properties -> Flex Compiler -> Generate HTML wrapper file. After the last one your debug configuration will be changed automatically.
Related
I am trying to get a basic demo working but can't succeed, I've spent hours and hours on it..
I am building an iis smooth streaming player with no controls at first that auto plays the video, I am using "MMP"- Microsoft media platform which was formerly "SMF"- Silverlight media framework, the example I am using to build a smooth streaming player is here on the middle of this page: http://smf.codeplex.com/documentation
A brief explanation of the issue I am facing:
I am sure I got everything right in terms of the player itself, I got the .ism file, i can view its manifest if I browse to it with the browser, I can even get everything to work and play the video in an html file that is running straight from an IIS website.
another key note: I can also run any test silverlight application for example, the main form with a button and a few radio buttons and I do get this application to run and display. the problem happens only when I try the smooth streaming player, it gives a black and blank page for the whole page and right clicking shows "silverlight".
so the problem starts when I try to run it from a Silverlight application that is hosted in an asp.net MVC 4 (with Razor) application.
I have an asp.net MVC project in visual studio and then I add a silverlight application to it and choose to host it in the MVC application, then I follow the same routin as for the silverlight application player building and it even renders and plays the video on the visual studio's silverlight XAML design page. I build the whole solutio and then I get a "silverlightApplication1.xap" file in a "ClientBin" new folder on the MVC application and also a test html file and an test aspx file again in the MVC application.
if I make sure the linking is correct I can take this html file to another IIS website and run it from there and it works and plays! but if I try to run it straight from within the application (view in browser) for the html/aspx files it says that it's not running on the platform/fabric of the website and for the silverlight application itself it opens the same blank silvelight application with a black screen and also a URL of file:// and not http://localhost.. etc', so what I was trying to do for a long time is to make the silverlight application work as a view in the MVC application.
so I took a view and deleted everything in it and gave it a property of Layout=""; (nothing) and then I put the content of the test html file the SL application produced earlier, modified the value for the silverlightapplication path etc', when built and ran, the page comes up, even the application comes up as I see "Silverlight" on a right click of the mouse but the whole screen is just plain black again and it doesn't play the video.
I had the .ism file on anther location or a an entirely different location like another online website.
I also can't get to view the manifest when I run the MVC application it says its 404 but I am not sure if it's an MVC platform thing that it won't let me get to it or it's just not getting to it but the files are there and the URL's are correct both in the code and also in the URL i am putting in.
I have also came to the understanding that I might need to make sure the silverlight application is allowing cross domain traffic and it has a Client access policy like seen on this page: http://msdn.microsoft.com/en-us/library/cc838250(VS.95).aspx , so I've added two XML files to the root folder for these two issues. trying to figure out what's going on with firefox's web developer gives nothing as for what happens..
Please Help! Thanks! :)
Ray.
I don't know why and I have tried everything+making sure I get the manifest content if i browse to it.
it just worked with this URL for the ism file:
http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest
there was no need for cross domain xml and Client access policy xml.
I was wondering if there is an option to change the debugger url when I initialize the debugger. I want it to start off at http://localhost:xxxx/controller/view rather than just http://localhost:xxxx/.
To answer my own question it can be done like so:
Go to your project right click Properties then go to Web then change the Start Action's Start Url to http://{port}/{controller}/{view} then click the radio button Use Visual Studio Development Server and click radio button Specific Port to the port in your Start Url and leave Virtual Path to "/"
Using Visual Studio? I think you can change the default page to /Controller/View in properties window... I'm not sure if designer will let you (because it doesn't map to a file), but you may then be able to edit the project file directly to inject it...
Sometimes it removes the /controller/view for the default controller.
I am relatively new in C# and ASP.NET MVC.
There is something unusual that happens and it could be a simple property setup...
I have a MVC Web app and a css file associated with it in my Content folder.
Now everytime I do some changes in the css file I don't see these changes when I run the app. It seems that whatever I do the app keeps on using the old file. I can see it when I do a View Source on the page.
I played a bit with the Copy to Output Directory property in Web Developer without any good results.
Am I really missing something here ?
Thanks
Either restart casini, the web server for asp.net, the icon down by the clock or try hitting F5 in the browser a bunch of times.
Try clearing the cache in your browser.
I have some strange behavior.
My embedded images show up in the Flex Builder Design Preview, but are not displayed when the application is run. The images have relative paths (/assets/images/...), and the application is run on the server (wamp). I've appended the path to the compiled location (http://localhost/...) and tried to display a image in the browser, and the image exists, too.
I've compiled it via FlashDevelop, Flex Builder, and Ant. I've deleted and remade the bin/bin-debug/release/bin-release files to no avail.
Anyone run into this problem before? Thanks for any help!
Try using httpfox extension to debug the application requests, there you would be able to see the images path in the server.
i have to work on various web projects for different customers. some use IE only, some Firefox and other browsers in their companys.
i would like to debug project/solution A with IE and project/solution B with firefox (and so on) by just hitting F5 or "view in browser".
I do NOT want to switch the default browser in visual studio via:
right click on an .aspx file in the solution explorer
browse with...
selecting the browser i want to use
pressing "set as default" to make it remember my choise (optional)
everytime i have to work on another project/solution.
Can i save the default browser by solution or project and NOT via VS global settings somehow?
do you have any hint for me how to archive this? is there maybe even an addin for this?
thanks, toebens
In the project properties, in the Web section you can have it start an external application with parameters at the start of debug (F5) so you could specify the path of the browser as the Start External program path and the http://servername:port/virtualdirectory as the command line argument
alt text http://img142.imageshack.us/img142/3708/projectprops.gif