I have a problem with classes in my project, when I declare new functions or variables, or just trace something in them, it doesn't work, like it doesn't upload new functionality. I found out that I should delete aso files and I did that, from controls panel. but still it doesn't work. maybe I did something wrong? maybe it's because I use Gaia Framework?
and one more thing when I rename my classes and asign this new classes to my movieclips, then it works fine
Depending on how you are testing I would suspect your browser is caching your swf. Try clearing your cache and see if that helps.
If it does work, consider getting a browser extension/plugin that lets you disable the cache for things like these.
Related
This is a bit of a weird question, so please bare with me.
So I've joined a new project at work and it's pretty old (Vue2, no ts support, etc.). It also utilizes a couple UI libraries, amongst other dependencies.
As I am combing through, I've found a few tags labeled <Sider> and I cannot find where they are coming from. Neither of the UI Libraries seem to utilize it and I cannot just cmd click to see where it's coming from. It's also not a custom component or anything in the app.
Is there anyway to tell where these sorts of tags would be coming from?
This is for work so I can't share the app itself, but here's a quick image of what one of those tags looks like:
Any advice would be greatly appreciated. Cheers!
If the app is working and the components (Sider and side-menu) are not registered in the component it self, they might be registered globally (see vue2 docs). Global registration typically gets done in your main.js file.
This could also be the reason that you cannot find the component in your project, because it may have another file name. In your main.js might be something like:
import TotallyDifferentName from '#/components/TotallyDifferentName.vue'
Vue.component('Sider', TotallyDifferentName) // Now you can use component in templates as Sider
Hope this helps.
When I try and change my current CSS or add new CSS to my style-sheet no change shows up (tags are still being styled by the old unchanged code).
For example, if I delete the contents of a class and I go into chrome debug tool using F12, I can see that the contents which I deleted are still showing up - even if I clear the cache by pressing Ctrl+Shift+R, OR by pressing Ctrl+F5!
All the other files of my website seem to be updating correctly, so if I use inline styles it will update correctly.
Strangely when I go into my websites control panel and manually download the CSS style-sheet from my server I can see that the code has indeed being updated with the new code, this is weird because upon inspecting it with F12, I can still see the old code with no changes.
I am using Microsoft Webmatrix to do my coding.
I am using the Chrome Web browser.
I am using Hostgator hosting.
I've exhausted all my trouble shooting options and have been beat by something that by all means should not occur. I think I've had a problem like this before and I think that it was solved by just waiting a day for whatever magic to work but I shouldn't have to wait. A problem like this is absolutely unacceptable in a live environment. Any ideas of what could be causing this?
FIXED!
changed: https://example.com/app/source/css/main.css
to this: https://example.com/app/source/css/main.css?v=1
You could try ctrl + shift + r (on a PC) to hard reset the browser and make sure the cache isn't displaying old CSS.
One thing is to verify you are editing the correct file. I managed to have that issue one time when I had two files named the same, but one was outside the folder with the index.html and that was the one I was editing.
Add ?v=1 behind the URL of the CSS link in the head, which will force using a non-cached version, because of the different (new) file name. The number should be unique, so if you want to use this in the future, make sure to replace the 1.
So I have a flash game (written in AS3, of course), and written with a whole bunch of classes. One certain class links to a page with
navigateToURL(new URLRequest("websitehere"), "_blank");
The class works fine and flawlessly when I test movie, and when I run the published file. However, when I post it on deviantArt, the entire class doesn't execute (it's almost as if it didn't exist). I suspect it's because of the navigateToURL command since I vaguely remember reading somewhere that deviantArt doesn't allow navigateToURL commands. I tested it with a test, though, that had only a navigateToURL function, and it worked.
Anyways, is there a fix for this issue or some way around it?
I can post the deviantArt link to the flash game, as well as the coding to the actual flash file and its classes if it's necessary.
I have no idea what I did, but when I reuploaded the .swf file (I tried it a couple of times before to no avail), the problem was solved.
There's this weird thing that when I try to execute the swf file independently, it can attach the camera then remove it and makes the video freeze (well that's the desired result)
but
when I tried to embed it into an html then deployed in a local server, when I am dettaching the camera via video.attachCamera(null) it doesn't work and the camera is still there and I can still see myself moving.
Why? and How can I fix this?
Finally fount the issue. It's because of the framework I used. It's robotlegs MVC maybe there's something wrong with my code or it's a bug of the framework itself. Changed my code not to use robotlegs.
I have the following problem.
We have a site. I changed some sprites to make it look cooler. The thing is that we already have users and there is a big chance that their browser have the old images cached. Is there anyway to force a new request to images from them?
Note: On firefox (default settings) after some refreshes the new sprites are requested but seems like chrome (default settings) just doesn't request them unless you explicitly clear cache.
Another Note: One way would be to rename the sprites but this also means that we have to find them in css files and rename there also, etc. etc. etc.
Have a great day and ty for help.
One solution would be to add a random number onto the end of the image name e.g.
.mybackground {
background-image:url(../images/background.jpg?16549);
}
If you could make the number random every time the page is loaded via some JS or PHP or whatever that would work for you. YOu could maybe take the images out of your stylesheet and place then in a style tag in your header include or whatever so that you can do the random number bit to them. (Not sure if you could do directly into the stylesheet)
Renaming sounds more feasible. You can most likely automate it with (shell)scripts so it shouldn't be a too bad.
(Most IDE have a feature to find and replace in multiple files, you can use it to change the path to the sprite in the CSS files. Your best bet, is to give a new name for the new image for now.
As for later on, I suggest looking at your caching and expires headers of your web sever. (These are links to the Apache documentation, if your web server isn't apache, it would be same idea, but requires different implementation.)